| 1 |
|
| 2 |
Set Universe Polymorphism. |
| 3 |
|
| 4 |
Cumulative Inductive EQ {A} (x : A) : A -> Type |
| 5 |
:= EQ_refl : EQ x x. |
| 6 |
|
| 7 |
Register EQ as core.eq.type. |
| 8 |
|
| 9 |
Lemma renamed_EQ_rect {A} (x:A) (P : A -> Type) |
| 10 |
(c : P x) (y : A) (e : EQ x y) : P y. |
| 11 |
Proof. destruct e. assumption. Qed. |
| 12 |
|
| 13 |
Lemma renamed_EQ_rect_r {A} (x:A) (P : A -> Type) |
| 14 |
(c : P x) (y : A) (e : EQ y x) : P y. |
| 15 |
Proof. destruct e. assumption. Qed. |
| 16 |
|
| 17 |
Module Registers. |
| 18 |
#[export] Register renamed_EQ_rect as core.eq.rect. |
| 19 |
|
| 20 |
Register renamed_EQ_rect_r as core.eq.rect_r. |
| 21 |
End Registers. |
| 22 |
|
| 23 |
Lemma EQ_sym1 {A} {x y : A} (e : EQ x y) : EQ y x. |
| 24 |
Proof. rewrite e. reflexivity. Qed. |
| 25 |
|
| 26 |
Lemma EQ_sym2 {A} {x y : A} (e : EQ x y) : EQ y x. |
| 27 |
Proof. |
| 28 |
Fail rewrite <- e. |
| 29 |
Import Registers. |
| 30 |
rewrite <- e. |
| 31 |
reflexivity. |
| 32 |
Qed. |
| 33 |
|
| 34 |
Require Import ssreflect. |
| 35 |
|
| 36 |
Lemma ssr_EQ_sym1 {A} {x y : A} (e : EQ x y) : EQ y x. |
| 37 |
Proof. rewrite e. reflexivity. Qed. |
| 38 |
|
| 39 |
Lemma ssr_EQ_sym2 {A} {x y : A} (e : EQ x y) : EQ y x. |
| 40 |
Proof. rewrite -e. reflexivity. Qed. |