coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Pierre-Marie Pédrot <pierre-marie.pedrot AT inria.fr>
- To: coq-club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Using tactics to build Existentials
- Date: Sat, 17 Aug 2013 14:42:36 +0200
On 17/08/2013 14:32, t x wrote:
(1) construct existentials using tactics or
(2) have some form of rewrite generate new goals rather than existentials?
Have you tried the refine tactic? You give it a partial term corresponding to the part of the proof you're building, and it turns the holes into goals.
To simulate a rewrite, you have to refine a term on [eq_rect], like this for instance:
Goal forall m n, m + S n = S (m + n).
Proof.
intros m n.
refine (eq_rect _ _ _ _ (plus_Sn_m _ _)).
Abort.
PMP
- [Coq-Club] Using tactics to build Existentials, t x, 08/17/2013
- Re: [Coq-Club] Using tactics to build Existentials, Pierre-Marie Pédrot, 08/17/2013
- Re: [Coq-Club] Using tactics to build Existentials, t x, 08/17/2013
- Re: [Coq-Club] Using tactics to build Existentials, Dmitry Grebeniuk, 08/17/2013
- Re: [Coq-Club] Using tactics to build Existentials, t x, 08/18/2013
- Re: [Coq-Club] Using tactics to build Existentials, Dmitry Grebeniuk, 08/17/2013
- Re: [Coq-Club] Using tactics to build Existentials, t x, 08/17/2013
- Re: [Coq-Club] Using tactics to build Existentials, Jason Gross, 08/17/2013
- Re: [Coq-Club] Using tactics to build Existentials, Pierre-Marie Pédrot, 08/17/2013
Archive powered by MHonArc 2.6.18.