coq icon indicating copy to clipboard operation
coq copied to clipboard

[abstract] duplicates fresh lemmas in universe polymorphic mode (polyproj)

Open JasonGross opened this issue 11 years ago • 1 comments

Set Universe Polymorphism.
Inductive paths A (x : A) : forall _ : A, Type := idpath : paths A x x.
Notation "x = y" := (@paths _ x y) (at level 70, no associativity) : type_scope.

Axioms A B : Type.
Axiom P : A = B.
Definition foo : (A = B) * (A = B).
split; abstract (rewrite <- P; reflexivity).
(* Error: internal_paths_rew already exists. *)
Defined. (* Anomaly: Uncaught exception Not_found(_). Please report. *)

This is the universe polymorphism version of #110. Might also be related to #108.

JasonGross avatar Apr 15 '14 04:04 JasonGross

Here's a slightly simpler example:

Set Universe Polymorphism.
Inductive paths A (x : A) : forall _ : A, Type := idpath : paths A x x.
Notation "x = y" := (@paths _ x y) (at level 70, no associativity) : type_scope.

Axioms A B : Type.
Axiom P : A = B.
Definition foo : A = B.
abstract (rewrite <- P; reflexivity).
(* Error: internal_paths_rew already exists. *)
Defined. (* Anomaly: Uncaught exception Not_found(_). Please report. *)

JasonGross avatar Apr 15 '14 04:04 JasonGross