Debian Codegraph @

test-suite/success/abstract_chain.v

raw
1 Lemma foo1 : nat -> True.
2 Proof.
3 intros _.
4 assert (H : True -> True).
5 { abstract (exact (fun x => x)) using bar. }
6 assert (H' : True).
7 { abstract (exact (bar I)) using qux. }
8 exact H'.
9 Qed.
10
11 Lemma foo2 : True.
12 Proof.
13 assert (H : True -> True).
14 { abstract (exact (fun x => x)) using bar. }
15 assert (H' : True).
16 { abstract (exact (bar I)) using qux. }
17 assert (H'' : True).
18 { abstract (exact (bar qux)) using quz. }
19 exact H''.
20 Qed.
21
22 Set Universe Polymorphism.
23
24 Lemma foo3 : nat -> True.
25 Proof.
26 intros _.
27 assert (H : True -> True).
28 { abstract (exact (fun x => x)) using bar. }
29 assert (H' : True).
30 { abstract (exact (bar I)) using qux. }
31 exact H'.
32 Qed.
33
34 Lemma foo4 : True.
35 Proof.
36 assert (H : True -> True).
37 { abstract (exact (fun x => x)) using bar. }
38 assert (H' : True).
39 { abstract (exact (bar I)) using qux. }
40 assert (H'' : True).
41 { abstract (exact (bar qux)) using quz. }
42 exact H''.
43 Qed.