Skip to Content.
Sympa Menu

coq-club - [Coq-Club] a question when defining the inductive type

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] a question when defining the inductive type


Chronological Thread 
  • From: Liang Dou <ldou.ecnu AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] a question when defining the inductive type
  • Date: Wed, 5 Dec 2012 20:19:51 +0800

hi,all
I have a question when defining the inductive type:

Inductive test : Set:=
|base : string -> test
|rule : string -> list test -> test.

When i write the following definition for this inductive type:

Definition test_dec:forall (a1 b1 : test) ,{a1 = b1} + {a1 <> b1}.
repeat decide equality.
Defined.

It doesn't work and seems to go into an infinite loop.
Then how can i judge if two elements of type "test" are equal?

Thanks!

Lisa



Archive powered by MHonArc 2.6.18.

Top of Page