Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Re: Applying a definition

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Re: Applying a definition


Chronological Thread 
  • 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/




Archive powered by MHonArc 2.6.18.

Top of Page