Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Anomaly: Cannot take the successor of a non variable universe

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Anomaly: Cannot take the successor of a non variable universe


Chronological Thread 
  • From: Jason Gross <jasongross9 AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Anomaly: Cannot take the successor of a non variable universe
  • Date: Tue, 29 May 2012 12:20:50 -0400

Hi,
When I execute the last [Qed] in the following code, I get 
  Anomaly: Cannot take the successor of a non variable universe:
  (maybe a bugged tactic).
  Please report.
I'm pretty sure this is Coq telling me that my [F := A -> Type] is bad (though I'm not sure exactly what's wrong with it).  Is this worth reporting, and, if so, where should I report it to?  Thanks.

Require Import Eqdep.
Import Eq_rect_eq.

Definition cast a b (p : a = b) : a -> b.
  intro; rewrite <- p; assumption.
Defined.

Implicit Arguments cast [a b].

Lemma cast_nop T (p : T = T) (a : T) : cast p a = a.
  unfold cast; rewrite <- eq_rect_eq; reflexivity.
Qed.

Lemma cast_app_nop A (F := A -> Type) (pF : F = F) (pA : A = A) (f : F) (a : A) : ((cast pF f) (cast pA a)) = f a.
  unfold cast; repeat (rewrite <- eq_rect_eq); reflexivity.
Qed.


-Jason

P.S. I also get it if I replace the proof and the [Qed.] with [admit.]



Archive powered by MHonArc 2.6.18.

Top of Page