Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Using sigT and existT

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Using sigT and existT


chronological Thread 
  • From: Ramon <i AT ramon.org.il>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Using sigT and existT
  • Date: Thu, 29 Dec 2011 13:46:23 +0000 (UTC)

Hello,

I am playing around with Coq, and got stuck when trying to prove:

Lemma existT_equal
    : forall T F (X : T) a b,
        existT F X a = existT F X b ->
            a = b.

Using both apply and eapply using f_equal and projT2 gives type errors, I'm 
guessing that this would require something a bit less straight-forward.

I have attempted many variations of the following, which I understand why is 
wrong, but haven't found a better solution):

eapply f_equal with (f := fun x => projT2 x) in H.

Thanks!




Archive powered by MhonArc 2.6.16.

Top of Page