coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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
- [Coq-Club] a question when defining the inductive type, Liang Dou, 12/05/2012
- Re: [Coq-Club] a question when defining the inductive type, Jacques-Henri Jourdan, 12/05/2012
Archive powered by MHonArc 2.6.18.