package lambdapi
Module Export.LeanSource
Translate parser-level Lambdapi commands to Lean.
There are two modes:
- raw_lean: translation of commands as they are
- stt_lean: 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.
Translation of terms.
Translation of commands.
Source
val replace_Set_by_Type :
Parsing.Syntax.p_term_aux Common.Pos.loc ->
(Parsing.Syntax.p_term_aux Common.Pos.loc * int) optionSource
val handle_requires :
Parsing.Syntax.p_command_aux Common.Pos.loc Stream.t ->
Parsing.Syntax.p_command_aux Common.Pos.loc option