coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "N. Raghavendra" <raghu AT hri.res.in>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] Re: Applying a definition
- Date: Sat, 10 Aug 2013 23:54:02 +0530
- Cancel-lock: sha1:NbHnFQcsUN6t26QHvqBsPRJAHFQ=
At 2013-08-10T12:49:22-05:00, Andrew Hirsch wrote:
> You can use the tactic simpl to run coq compuations in Gallina. So,
> in this case, you can use simpl in H to run the andb and orb
> functions, and you end up getting
>
> H: c = false
>
> You can get the result you want from there.
Thanks for that. I now have
----------------------------------------------------------------------
Theorem andb_eq_orb :
forall (b c : bool),
(andb b c = orb b c) ->
b = c.
Proof.
intros b c H.
destruct b.
simpl in H.
rewrite -> H.
reflexivity.
simpl in H.
rewrite -> H.
reflexivity.
Qed.
----------------------------------------------------------------------
Best regards,
Raghu.
--
N. Raghavendra
<raghu AT hri.res.in>,
http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
- [Coq-Club] Applying a definition, N. Raghavendra, 08/10/2013
- Re: [Coq-Club] Applying a definition, Andrew Hirsch, 08/10/2013
- [Coq-Club] Re: Applying a definition, N. Raghavendra, 08/10/2013
- Re: [Coq-Club] Re: Applying a definition, Adam Chlipala, 08/11/2013
- [Coq-Club] Re: Applying a definition, N. Raghavendra, 08/11/2013
- Re: [Coq-Club] Re: Applying a definition, Adam Chlipala, 08/11/2013
- [Coq-Club] Re: Applying a definition, N. Raghavendra, 08/10/2013
- Re: [Coq-Club] Applying a definition, Andrew Hirsch, 08/10/2013
Archive powered by MHonArc 2.6.18.