Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] How to prove that inductive substructures are not equal?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] How to prove that inductive substructures are not equal?


Chronological Thread 
  • From: Adam Chlipala <adamc AT csail.mit.edu>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] How to prove that inductive substructures are not equal?
  • Date: Mon, 15 Jul 2013 09:19:29 -0400

On 07/15/2013 08:59 AM, Michiel Helvensteijn wrote:
Given any inductive type, let's say a `nat`-like structure:

Inductive T :=
| Zero : T
| Succ : T -> T.

I'm in the position where I have to prove that:

Goal forall t: T, t<> Succ t.

Generally this work is easy to push off onto [congruence], which is a complete decision procedure for equality with constructors.

Goal forall t: T, t <> Succ t.
induction t; congruence.
Qed.




Archive powered by MHonArc 2.6.18.

Top of Page