coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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).
- [Coq-Club] Questions about eq_rect, Samuel E. Moelius III
- Re: [Coq-Club] Questions about eq_rect, Andrew McCreight
- Re: [Coq-Club] Questions about eq_rect,
Adam Chlipala
- Re: [Coq-Club] Questions about eq_rect,
Conor McBride
- Message not available
- Re: [Coq-Club] Questions about eq_rect, Conor McBride
- Message not available
- Re: [Coq-Club] Questions about eq_rect,
Samuel E. Moelius III
- Re: [Coq-Club] Questions about eq_rect, Adam Chlipala
- Re: [Coq-Club] Questions about eq_rect,
Conor McBride
Archive powered by MhonArc 2.6.16.