Skip to Content.
Sympa Menu

coq-club - Re: extracting to equality

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: extracting to equality


chronological Thread 
  • From: Jean-Christophe Filliatre <filliatr AT lri.fr>
  • To: Ewen Denney <denney AT irisa.fr>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: extracting to equality
  • Date: Fri, 22 Oct 1999 16:39:07 +0200 (MEST)


> For example, suppose I want to write a program that uses an equality on
> lists of pairs. In Caml, we just use "=", and in Coq we could suppose a
> parameter eq_listpair, but how can these be connected? There isn't an
> identifier in Caml, as there is for eq_string, say, which would allow a
> link, and I'd rather not have to define the (obvious) equality by hand
> in Coq.

The fact  that there is no name  for generic equality in  ocaml is not
problematic. You can link your extracted code with an ocaml ``header''
declaring :

======================================================================
let equality = (=);;
======================================================================

and extract in Coq your decidable equality over pairs to that function.

-- 
Jean-Christophe FILLIATRE
  
mailto:Jean-Christophe.Filliatre AT lri.fr
  http://www.lri.fr/~filliatr





Archive powered by MhonArc 2.6.16.

Top of Page