| 1 |
(* This used to fail in 8.0pl1 *) |
| 2 |
|
| 3 |
Goal forall n, n+n=0->0=n+n. |
| 4 |
intros. |
| 5 |
set n in * |-. |
| 6 |
Abort. |
| 7 |
|
| 8 |
(* This works from 8.4pl1, since merging of different instances of the |
| 9 |
same metavariable in a pattern is done modulo conversion *) |
| 10 |
|
| 11 |
Notation "p .+1" := (S p) (at level 1, left associativity, format "p .+1"). |
| 12 |
|
| 13 |
Goal forall (f:forall n, n=0 -> Prop) n (H:(n+n).+1=0), f (n.+1+n) H. |
| 14 |
intros. |
| 15 |
set (f _ _). |
| 16 |
Abort. |
| 17 |
|
| 18 |
Module UsingSProp. |
| 19 |
|
| 20 |
Inductive STrue : SProp := I. |
| 21 |
Inductive SBool : SProp := T | F. |
| 22 |
Axiom f : forall {A B:SProp}, A -> B -> unit. |
| 23 |
Goal f (fun _ : nat => F) (fun _:nat => I) = f (fun _ : nat => F) (fun _:nat => I). |
| 24 |
set (x := fun _ => _). |
| 25 |
reflexivity. |
| 26 |
Qed. (* Was failing because all 4 "fun _ => ..." were identified *) |
| 27 |
|
| 28 |
End UsingSProp. |