Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] need help converting hol proof to coq.

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] need help converting hol proof to coq.


chronological Thread 
  • From: Thery Laurent <thery AT ns.di.univaq.it>
  • To: Robert T Bauer <rtbauer AT us.ibm.com>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] need help converting hol proof to coq.
  • Date: Fri, 16 Apr 2004 22:31:32 +0200 (CEST)
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

On Fri, 16 Apr 2004, Robert T Bauer wrote:

> Hi,
> 
> I have the following deep embedding in hol and want to convert it to coq:
> 
> Hol_dataype `e = L of num | V of string | E of e => e`
> 
> I can live without strings - so that Hol_datatype `e = L of num | V of num 
> | E of e => e`
> works quite well for me.
> 
> I think this needs to be defined as mutually inductive type in coq.
> 

Unfortunately there is no string in Coq at the moment. I've been using a
library for String in Coq 7.4 that was directly inspired by the one of HOL
but I'ven't succeeded yet in converting it to Coq 8.0. The version for Coq
7.4 of the library is available at:

ftp://ftp-sop.inria.fr/lemme/Laurent.Thery/String.tar.gz

Using natural numbers instead, your definition in Coq is direct: 

Inductive e: Set :=
  L: nat -> e
| V: nat -> e
| E: e -> e -> e.

--
Laurent Thery






Archive powered by MhonArc 2.6.16.

Top of Page