Debian Codegraph @

test-suite/success/clear.v

raw
1 Goal forall x:nat, (forall x, x=0 -> True)->True.
2 intros; eapply H.
3 instantiate (1:=(fun y => _) (S x)).
4 simpl.
5 clear x. trivial.
6 Qed.
7
8 Goal forall y z, (forall x:nat, x=y -> True) -> y=z -> True.
9 intros; eapply H.
10 rename z into z'.
11 clear H0.
12 clear z'.
13 reflexivity.
14 Qed.
15
16 Class A.
17
18 Section Foo.
19
20 Variable a : A.
21
22 Goal A.
23 solve [typeclasses eauto].
24 Undo 1.
25 clear a.
26 try typeclasses eauto.
27 assert(a:=Build_A).
28 solve [ typeclasses eauto ].
29 Undo 2.
30 assert(b:=Build_A).
31 solve [ typeclasses eauto ].
32 Qed.
33 End Foo.