coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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)].)
- [Coq-Club] Variables of pairs and pairs components, Edward Z. Yang
- Re: [Coq-Club] Variables of pairs and pairs components, Adam Chlipala
Archive powered by MhonArc 2.6.16.