package lambdapi

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

Install

Dune Dependency

Authors

Maintainers

Sources

lambdapi-2.4.1.tbz
sha256=221dff97ab245c49b7e6480fa2a3a331ab70eb86dd5d521e2c73151029bbb787
sha512=a39961bb7f04f739660a98a52981d4793709619cd21310ca6982ba78af81ef09e01c7517ee3b8b2687b09f7d2614d878c1d69494ca6ab8ef8205d240c216ce8a

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.