package lambdapi

  1. Overview
  2. Docs
Proof assistant for the λΠ-calculus modulo rewriting

Install

Dune Dependency

Authors

Maintainers

Sources

lambdapi-2.5.0.tbz
sha256=9bc8ae3694dd51bd5742e7aba760bd2878c4b0e5ef9b3d4a7b06f3cd303b611d
sha512=c812c3129b3d85b0c4d7e741d11137dbb4fe2a0aaba3a5968409080b742924ecb506280c19ad83ef6bc910346db96d87780313fa7683c29345edae16ae79c704

doc/lambdapi.export/Export/Coq/index.html

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).

Sourceval log : 'a Lplib.Base.outfmt -> 'a

Symbols necessary to encode STT.

Sourcetype builtin =
  1. | Set
  2. | Prop
  3. | Arr
  4. | El
  5. | Imp
  6. | All
  7. | Prf
  8. | Eq
  9. | Or
  10. | And
  11. | Ex
  12. | Not
Sourceval index_of_builtin : builtin -> int
Sourceval nb_builtins : int
Sourceval builtin_of_index : int -> builtin
Sourceval index_of_name : string -> int option
Sourceval name_of_index : int -> string
Sourceval builtin : Core.Term.qident array

Set renaming map from file.

Sourceval set_renaming : string -> unit

Set symbols whose declarations have to be erased.

Sourcemodule Qid : sig ... end
Sourcemodule QidMap : sig ... end
Sourceval map_erased_qid_coq : string QidMap.t ref
Sourceval set_erasing : string -> unit

Set encoding.

Sourceval map_qid_builtin : builtin QidMap.t ref
Sourceval set_encoding : string -> unit

Translation of identifiers.

Sourceval translate_ident : string -> string
Sourceval raw_ident : string Lplib.Base.pp
Sourceval param_ids : Parsing.Syntax.p_ident option list Lplib.Base.pp

Translation of terms.

Sourceval stt : bool ref
Sourceval use_implicits : bool ref
Sourceval use_notations : bool ref
Sourceval params_list_in_abs : Parsing.Syntax.p_params list Lplib.Base.pp

Translation of commands.

Set Coq required file.

Sourceval require : string option ref
Sourceval set_requiring : string -> unit
Sourceval print : Parsing.Syntax.ast -> unit
OCaml

Innovation. Community. Security.