Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JasonGross opened this issue Apr 15, 2014 · 1 comment

Comments

@JasonGross
Copy link

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
Copy link
Author

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. *)

letouzey pushed a commit to coq/coq that referenced this issue Jun 23, 2014
…344)

Every time you use abstract a kitten dies, please stop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant