| 1 |
Require Import ssreflect ssrbool. |
| 2 |
|
| 3 |
Axiom eqn : nat -> nat -> bool. |
| 4 |
Infix "==" := eqn (at level 40). |
| 5 |
Axiom eqP : forall x y : nat, reflect (x = y) (x == y). |
| 6 |
|
| 7 |
Lemma test1 : |
| 8 |
forall x y : nat, x = y -> forall z : nat, y == z -> x = z. |
| 9 |
Proof. |
| 10 |
by move=> x y + z /eqP <-; apply. |
| 11 |
Qed. |
| 12 |
|
| 13 |
Lemma test2 : forall (x y : nat) (e : x = y), e = e -> x = y. |
| 14 |
Proof. |
| 15 |
move=> + y + _ => x def_x; exact: (def_x : x = y). |
| 16 |
Qed. |
| 17 |
|
| 18 |
Lemma test3 : |
| 19 |
forall x y : nat, x = y -> forall z : nat, y == z -> x = z. |
| 20 |
Proof. |
| 21 |
move=> ++++ /eqP <- => x y e z; exact: e. |
| 22 |
Qed. |