Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Equality

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Equality


Chronological Thread 
  • From: Nuno Gaspar <nmpgaspar AT gmail.com>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Equality
  • Date: Wed, 10 Dec 2014 02:48:37 +0100

Hi.

try

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

Cheers.


2014-12-10 1:53 GMT+01:00 Saulo Araujo <saulo2 AT gmail.com>:
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?


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



--
Bart: Look at me, I'm a grad student, I'm 30 years old and I made $600 dollars last year.
Marge: Bart! Don't make fun of grad students, they just made a terrible life choice.



Archive powered by MHonArc 2.6.18.

Top of Page