Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Using tactics to build Existentials

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Using tactics to build Existentials


Chronological Thread 
  • 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




Archive powered by MHonArc 2.6.18.

Top of Page