Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Variables of pairs and pairs components

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Variables of pairs and pairs components


chronological Thread 
  • From: Adam Chlipala <adamc AT csail.mit.edu>
  • To: "Edward Z. Yang" <ezyang AT mit.edu>
  • Cc: coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Variables of pairs and pairs components
  • Date: Sat, 19 Nov 2011 14:44:26 -0500

Edward Z. Yang wrote:
     n : nat
     a : A
     b : B n
     f : P (a * b)
     -------------
     ... (a, b) ...

then induction on f will fail with "b is used in hypothesis", whereas

     n : nat
     ab : A * B n
     f : P ab
     -------------
     ... ab ...

Will work fine.  What's the correct tactic to interconvert? 'set' doesn't 
quite
seem to do the right thing.

Often the cleanest approach is to prove a lemma, which will have a single variable standing for the pair. You can also use [generalize dependent] in some cases.

(I assume [P (a * b)] above should be [P (a, b)].)



Archive powered by MhonArc 2.6.16.

Top of Page