Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Proof from Software foundations.

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Proof from Software foundations.


Chronological Thread 
  • From: mukesh tiwari <mukeshtiwari.iiitm AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Proof from Software foundations.
  • Date: Wed, 23 Oct 2013 21:03:16 +0530

Hello all,
I am learning Coq and trying to prove  this theorem from Software Foundations by Benjamin Pierce[1].

 Theorem andb_eq_orb : forall (b c : bool),
  ( andb b c = orb b c) ->
  b = c.


Till now I came upto this and not able to solve this further.
Proof.
  intros b c.
  destruct b.
  simpl.
   

I am getting this.

2 subgoals, subgoal 1 (ID 291)
 
  c : bool
  ============================
   c = true -> true = c

subgoal 2 (ID 290) is:
 andb false c = orb false c -> false = c


Could some one please give me some hint to prove this theorem.

Regards,
Mukesh Tiwair



Archive powered by MHonArc 2.6.18.

Top of Page