coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Clement Renard <Clement.Renard AT inria.fr>
- To: "Bauer, Robert" <rbauer AT rational.com>
- Cc: "'coq-club AT pauillac.inria.fr'" <coq-club AT pauillac.inria.fr>
- Subject: Re: beginners question
- Date: Fri, 5 Oct 2001 09:16:25 +0200 (CEST)
Hi,
On Thu, 4 Oct 2001, Bauer, Robert wrote:
> Hi,
>
> I want to complete a simple proof without using "auto" - here's the relevant
> part:
>
> a: Prop
> b: Prop
> H: a /\ b
> H0 : a
> H1 : b
> ============
> a \/ b
>
> I know that a -> a \/ b, but can't seem to figure out what command to give
> for the next step in the proof.
You can use "Left." if you want to prove "a" or "Right." if you want to
prove "b".
> Along the same lines, suppose I had
>
> H0: a
> H1: a->b
> ========
> b
>
> In hol, I would do something like modus ponens on the assumptions, and
> rewrite - I can't figure out how to do the modus ponens on the
> assumption to get H2: b - so that I could use Exact.
You can use the tactic "Apply". Here You can use "Apply H1." and you
will have to prove "a". Then you can conclude with "Exact H0."
> Thanks.
You should have a look at the Coq tutorial where you can find some
examples to get started with Coq.
http://coq.inria.fr/doc/tutorial.html
Clement Renard
- beginners question, Bauer, Robert
- Re: beginners question, Clement Renard
- Re: beginners question,
Hugo Herbelin
- Re: beginners question, Robert R. Schneck
Archive powered by MhonArc 2.6.16.