coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Luke Palmer <lrpalmer AT gmail.com>
- To: emily_p <emilypurfield AT gmail.com>
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] Proof Help
- Date: Sat, 11 Apr 2009 18:18:23 -0600
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=OWeghXwpfhK2BWX0dXA8asOhbGENDm0wc0sI0cpIECKhEyEf5XhcyP9aElao5Ne5Yt JjlffGQPrqhW6p71V8is14duchdaZokbPjdlecvV60Zu8iMzzfG33pRgdAglFzb1fP9e Y9qgCgghNcYBQCnTWg0kOelysVEkj0dZZyXvw=
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
On Sat, Apr 11, 2009 at 4:53 PM, emily_p <emilypurfield AT gmail.com> wrote:
Hello,
I am fairly new to Coq and I am not sure if this is the right place to ask
but I am hoping someone can help me. I am having trouble with what I think
should be a simple proof. I am trying to solve the following
forall x, P x^Q x |- (forall x Px) ^(forall x Qx)
I have managed to solve the reverse of this but for this question I can't
seem to complete the proof. I can get to the stage where I have two subgoals
Px0 and Qx0 with the hypothesis forall x : S, Px^Qx but I am not sure how to
combine the goals to get a conjunction. I have used the following to get
this far but I may have gone down the wrong route completely.
intros. split. intro x0. 2: intro x0.
Thanks to anyone who can shed some light on this.
Remember that forall propositions are functions.
intros P Q H.
split ; intro x ; destruct (H x) ; assumption.
The key was destruct (H x); you can eliminate things which are not immediately your hypotheses. You can take it more granularly and "pose (H x)", which will give you a hypothesis "e : P x /\ Q x".
Luke
- [Coq-Club] Proof Help, emily_p
- Re: [Coq-Club] Proof Help, Luke Palmer
- Re: [Coq-Club] Proof Help, muad
- <Possible follow-ups>
- Re: [Coq-Club] Proof Help,
fdabrows
- Re: [Coq-Club] Proof Help,
Adam Chlipala
- Re: [Coq-Club] Proof Help, fdabrows
- Re: [Coq-Club] Proof Help,
Roman Beslik
- Re: [Coq-Club] Proof Help,
Thomas Braibant
- Re: [Coq-Club] Proof Help, Adam Chlipala
- Re: [Coq-Club] Proof Help, Roman Beslik
- Re: [Coq-Club] Proof Help, Adam Chlipala
- Re: [Coq-Club] Proof Help,
Thomas Braibant
- Re: [Coq-Club] Proof Help,
Adam Chlipala
Archive powered by MhonArc 2.6.16.