package lambdapi

  1. Overview
  2. Docs

Module Export.CoqSource

Translate parser-level Lambdapi commands to Rocq.

There are two modes:

  • raw_coq: translation of commands as they are
  • stt_coq: translation of commands modulo an encoding of simple type theory specified through a lambdapi file with the option --encoding. A map giving the number of type variables of each function symbol can be given as a .tvs file (as generated by hol2dk) with the option --arities.

In both modes, a renaming map can be provided with the option --renaming to rename some identifiers.

Valid Rocq identifiers (excluding unicode characters).

Sourceval is_valid_first_letter : char -> bool
Sourceval is_valid_letter : char -> bool
Sourceval is_valid_rocq_id : string -> bool

Translation of terms.

Sourceval raw_params : out_channel -> Parsing.Syntax.p_params -> unit
Sourceval params_list : out_channel -> Parsing.Syntax.p_params list -> unit
Sourceval params_list_in_abs : out_channel -> Parsing.Syntax.p_params list -> unit

Translation of commands.