coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Adam Koprowski <adam.koprowski AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] specializing without repeating large expressions
- Date: Mon, 15 Mar 2010 14:38:08 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=ULJ1idUehrD7JjZusFqxIExemov+LDELaJTRWSwSQJjc9IxB8wLTLRMT9Lku4st/N6 ZU+4EKICDluDHue4Zufqv+1zTvTyjjVNboiWGGaB/8d3ob8Y4sItE3q2Wc6iYDyC0G86 Me5tZR08PwS9c0G22FDzWZ3Ca3WcVMeOMnmoQ=
(* Suppose we are here, "nat"s can be shown to exist, and "x = y"
and "x = z" are provable (we'll just pretend and use admit).
How can we write this proof without writing "nat" or "x = y"?
(in a real proof, "nat" and "x = y" would be large expressions I don't
want to have to repeat) *)
I don't know if your underlying question has some deeper aspect to it, but [eauto] solves the remaining subgoal here. If that doesn't work in your real case, then I, at least, would need an example that better exposes the key difficulties.
Another possible hint may be that one can often avoid writing large expressions occurring in the goal, by using Ltac's possibly of matching on the goal (and hypotheses).
Adam
--
Adam Koprowski [http://www.cs.ru.nl/~Adam.Koprowski]
R&D @ MLstate [http://mlstate.com, 15 rue Berlier, 75013 Paris, France]
- [Coq-Club] specializing without repeating large expressions, Ian Lynagh
- Re: [Coq-Club] specializing without repeating large expressions,
Adam Chlipala
- Re: [Coq-Club] specializing without repeating large expressions, Adam Koprowski
- Re: [Coq-Club] specializing without repeating large expressions, Guillaume Melquiond
- Re: [Coq-Club] specializing without repeating large expressions,
Adam Chlipala
Archive powered by MhonArc 2.6.16.