Skip to Content.
Sympa Menu

coq-club - [Coq-Club] How to prove two constructors are different

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] How to prove two constructors are different


chronological Thread 
  • From: GANGCHEN5 AT aol.com
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] How to prove two constructors are different
  • Date: Fri, 19 Sep 2003 15:28:59 EDT
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hello,

Given an inductive definition:

Inductive A : Set := a : A | b : A | c : A.

I want to prove that each pair of two constructors are
different. Here is a proof following the method proposed in the book CoqArt:

Lemma ineq : ~a=b.
Proof.
Unfold not; Intros H; Change ([o:A]Cases o of a => True | _ => False end b);Rewrite <- H; Trivial.
Qed.

Question:
Are there simpler or general proofs for this problem ?

With the above method, each lemma ~x=y needs a slightly different proof.


Thanks.

gang chen



Archive powered by MhonArc 2.6.16.

Top of Page