| 1 |
Module X. |
| 2 |
Inductive paths A (x : A) : A -> Type := idpath : paths A x x. |
| 3 |
Notation "x = y" := (@paths _ x y) : type_scope. |
| 4 |
Scheme Rewriting for paths. |
| 5 |
|
| 6 |
Axioms A B : Type. |
| 7 |
Axiom P : A = B. |
| 8 |
Definition foo : A = B. |
| 9 |
abstract (rewrite <- P; reflexivity). |
| 10 |
(* Error: internal_paths_rew already exists. *) |
| 11 |
Defined. (* Anomaly: Uncaught exception Not_found(_). Please report. *) |
| 12 |
End X. |
| 13 |
|
| 14 |
Module Y. |
| 15 |
Inductive paths A (x : A) : A -> Type := idpath : paths A x x. |
| 16 |
Notation "x = y" := (@paths _ x y) : type_scope. |
| 17 |
Scheme Rewriting for paths. |
| 18 |
|
| 19 |
Axioms A B : Type. |
| 20 |
Axiom P : A = B. |
| 21 |
Definition foo : (A = B) * (A = B). |
| 22 |
split; abstract (rewrite <- P; reflexivity). |
| 23 |
(* Error: internal_paths_rew already exists. *) |
| 24 |
Defined. (* Anomaly: Uncaught exception Not_found(_). Please report. *) |
| 25 |
End Y. |