coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Ian Lynagh <igloo AT earth.li>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] specializing without repeating large expressions
- Date: Mon, 15 Mar 2010 17:23:10 +0000
On Mon, Mar 15, 2010 at 04:08:35PM +0100, Guillaume Melquiond wrote:
> Ian Lynagh a écrit :
>> In the (very abstracted example of a) lemma below, is there a way to
>> prove the result without writing "nat" or "x = y"?
>>
>> What I'd like is to be able to write something like
>> specialize (H _).
>> admit.
>
> There have been several suggestions already, but none that mentioned the
> "refine" tactic. So here it comes. "specialize (H _)" can be written
>
> refine (let v := _ in _ (H v)).
Aha, thanks! I think that
Ltac solveFirstIn hyp := refine (let v := _ in _ (hyp v));
[ | clear hyp; intro hyp ].
is what I am looking for.
Thanks
Ian
- [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,
Guillaume Melquiond
- Re: [Coq-Club] specializing without repeating large expressions, Ian Lynagh
Archive powered by MhonArc 2.6.16.