Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Questions about eq_rect

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Questions about eq_rect


chronological Thread 
  • From: "Andrew McCreight" <continuation AT gmail.com>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] Questions about eq_rect
  • Date: Wed, 27 Aug 2008 14:10:29 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:subject:cc:in-reply-to:mime-version :content-type:references; b=GtckY3XnpGtBtfD1tuJLMjO2by80KLi+rLzPo/wRWhikxbiUCA4500c4IPFepKR3mL F0dGIi8ezRUf87aAu7CXo9DNCMdDhD+c/ATsHLrkZm2WxD+o77OHRZa5+DIVWY1wehQ3 b5ZOzdxQzUoR9cQWKYa8hADW7WcueqP79SRTs=
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Separate question: in Coq, is there a way to add a conjunct to a goal, e.g., for the purpose of obtaining a stronger induction hypothesis?

I don't know if there is a built-in way to do it, but it is easy enough to write a little tactic that will do this, like this:

(* add /\ B to the goal *)
Ltac strengthen B :=
  match goal with
  | |- ?A =>
    let H := fresh in
      assert (H : A /\ B); [ | destruct H; assumption]
  end.


Lemma foo : forall A B,
  A /\ B.
Proof.
  intros A B.
  strengthen (A \/ B).





Archive powered by MhonArc 2.6.16.

Top of Page