Export.CoqSourceTranslate the parser-level AST to Coq.
There are two modes:
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.
Basic printing functions. We use Printf for efficiency reasons.
Translation of identifiers.
Translation of terms.
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.