package lambdapi
Module Export.CoqSource
Translate the parser-level AST to Coq.
There are two modes:
- raw_coq mode (option -o raw_coq): translation of the AST as it is (lambdapi-calculus is a subset system of coq if we ignore rules)
- stt_coq mode (option -o stt_coq): translation of the AST as an encoding in simple type theory.
The encoding can be specified through a lambdapi file (option --encoding).
In both modes, a renaming map can be provided to rename some identifiers.
The renaming map can be specified through a lambdapi file (option --renaming).
Symbols necessary to encode STT.
Set renaming map from file.
Set symbols whose declarations have to be erased.
Set encoding.
Translation of identifiers.
Translation of terms.
Source
val app :
Parsing.Syntax.p_term ->
(Parsing.Syntax.p_term -> Parsing.Syntax.p_term list -> 'a) ->
(Parsing.Syntax.p_term ->
Parsing.Syntax.p_term list ->
bool ->
builtin ->
'a) ->
'aTranslation of commands.
Set Coq required file.