Skip to Content.
Sympa Menu

coq-club - [Coq-Club] representation of Coq list in Ocaml

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] representation of Coq list in Ocaml


chronological Thread 
  • From: Michel Levy <michel.levy AT imag.fr>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] representation of Coq list in Ocaml
  • Date: Tue, 03 Dec 2002 18:36:32 +0100
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

I would like to represent the type list of PolyList by the same type in Ocaml.
The command "Extract Inductive list => bool["[]" "(::)" ]." could not be used, because the (::) is not the
ocaml list constructor. Actually, (::) produces in Ocaml a syntax error.
How is it possible to represent cons (in Coq) by :: (in Ocaml) ?
--
Michel Levy

Laboratoire L.S.R., Bureau C214, B.P.72 - 38042 SAINT MARTIN D'HERES CEDEX e.mail : Michel.Levy AT imag.fr tel :(33)476514022
http://www-lsr.imag.fr/users/Michel.Levy






Archive powered by MhonArc 2.6.16.

Top of Page