Skip to Content.
Sympa Menu

coq-club - [Coq-Club] injection tactic

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] injection tactic


chronological Thread 
  • From: AUGER <Cedric.Auger AT lri.fr>
  • Cc: coq-club <coq-club AT inria.fr>
  • Subject: [Coq-Club] injection tactic
  • Date: Thu, 08 Apr 2010 18:43:55 +0200
  • Organization: ProVal

While trying to compile Ynot, in Axioms.v, theorem Dyn_inj, I had an error on injection 1.

I succeed in repairing it in the file


Theorem Dyn_inj : forall (T : Set) (x y : T),
  Dyn x = Dyn y
  -> x = y.
 set (pi := fun (X : dynamic) =>
      match X with
      | Dyn T t => existT (fun t : Type => t) T t
      end).
 intros; assert (pi (Dyn x) = pi (Dyn y)).
  case H; split.
 clear H; subst pi; simpl in H0.
 exact (inj_pair2 _ _ _ _ _ H0).
Qed.

instead of

Theorem Dyn_inj : forall (T : Set) (x y : T),
  Dyn x = Dyn y
  -> x = y.
 injection 1; intros.
 exact (inj_pair2 _ _ _ _ _ H0).
Qed.

So injection seems to be broken. As I am in trunk, I don't know if I must submit a bug report or if it is known and intended to be repaired.

--
Cédric AUGER

Univ Paris-Sud, Laboratoire LRI, UMR 8623, F-91405, Orsay




Archive powered by MhonArc 2.6.16.

Top of Page