| 1 |
Lemma test (X : nat -> Prop) (H : forall n, X n) (H' : forall n, X n -> X (S n)) : True. |
| 2 |
Proof. |
| 3 |
specialize (H 5) as J%H'. |
| 4 |
Check (J : X 6). |
| 5 |
Fail Check H. |
| 6 |
Undo. |
| 7 |
specialize (H 5) as ?%H'. |
| 8 |
Check (H0 : X 6). |
| 9 |
Fail Check H. |
| 10 |
Abort. |
| 11 |
|
| 12 |
Lemma test2 (b : bool) (f : bool -> nat) : True. |
| 13 |
Proof. |
| 14 |
specialize b as [|n]%f. |
| 15 |
Fail Check b. |
| 16 |
2:Check (n : nat). |
| 17 |
Abort. |
| 18 |
|
| 19 |
Lemma test3 (b : bool) (f : bool -> nat) : True. |
| 20 |
Proof. |
| 21 |
specialize (f b) as f'. |
| 22 |
Check (f : bool -> nat). |
| 23 |
Undo. |
| 24 |
specialize (f b) as ?f. |
| 25 |
Check (f : bool -> nat). |
| 26 |
Check (f0 : nat). |
| 27 |
Undo. |
| 28 |
specialize (f b) as f. |
| 29 |
Check (f : nat). |
| 30 |
Abort. |