Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Equality

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Equality


Chronological Thread 
  • From: Saulo Araujo <saulo2 AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Equality
  • Date: Tue, 9 Dec 2014 21:53:03 -0300

Hi,

I need to compare values of the type PATH defined below

Definition ID := string.

Inductive STEP : Type := 
  | LastStep : ID -> STEP | Step : ID -> PATH -> STEP | Init : ID -> STEP
with PATH : Type := Path : list STEP -> PATH.

Is there a way to compare those values in Gallina like we compare them in SML?

I tried the suggestion in http://stackoverflow.com/questions/6636131/searching-through-a-list-recursively-in-coq

Definition PATH_dec : forall x y : ID, {x = y} + {x <> y}.
Proof. decide equality. Defined.

but Coq says Error: Attempt to save an incomplete proofCompilation output:

Thanks in advance,
Saulo



Archive powered by MHonArc 2.6.18.

Top of Page