Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Translation of empty types

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Translation of empty types


chronological Thread 
  • From: Eric Jaeger <eric.jaeger AT ssi.gouv.fr>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Translation of empty types
  • Date: Mon, 15 Mar 2010 12:42:58 +0100
  • Organization: ANSSI

Hi all,

Just a short remark : the definition "Inductive Empty:Set:=." is
translated (versions 8.1 and 8.2) into Ocaml as "type empty=unit", which
does not appear to be the best possible translation today.

As far as I know, it is possible to declare an abstract type in Ocaml by
"type empty;;" - or, according to the revised syntax (not working on my
oooold ocaml version) "type empty='a;;".

Should one of these be used instead of the current translation ?

  Regards, Eric




Archive powered by MhonArc 2.6.16.

Top of Page