package lambdapi

  1. Overview
  2. Docs

Module Core.PrintSource

Pretty-printing for the core AST.

The functions of this module are used for printing terms and other objects defined in the Term module. This is mainly used for displaying log messages, and feedback in case of success or error while type-checking terms or testing convertibility.

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

Current signature state.

Sourceval print_domains : bool Timed.ref

Flag for printing the domains of λ-abstractions.

Sourceval print_implicits : bool Timed.ref

Flag for printing implicit arguments.

Sourceval print_contexts : bool Timed.ref

Flag for printing contexts in unification problems.

Sourceval print_meta_args : bool Timed.ref

Flag for printing metavariable arguments.

Sourceval print_pattern_names : bool Timed.ref
Sourceval print_domains_in : ('a -> 'b) -> 'a -> 'b
Sourceval print_implicits_and_domains_in : ('a -> 'b) -> 'a -> 'b
Sourceval safe_unbind_no_check : int Lplib.Extra.StrMap.t -> Term.binder -> (Term.var * Term.term) * int Lplib.Extra.StrMap.t
Sourceval uid : string Lplib.Base.pp
Sourceval do_not_qualify : bool Timed.ref
Sourceval no_qualif : (unit -> 'a) -> 'a
Sourceexception Not_a_nat

Exception raised when trying to convert a term into a nat.

Sourceval nat_of_term : Term.term -> int

nat_of_term t converts a term into a natural number.

Sourceval pos_of_term : Term.term -> int

pos_of_term t converts a term into a positive number.

Sourceval int_of_term : Term.term -> int

int_of_term t converts a term into a positive number.

Sourceval are_quant_args : Term.term list -> bool

are_quant_args args returns true iff args has only one argument that is an abstraction.

Sourceval arrow_lhs : int Lplib.Extra.StrMap.t -> Format.formatter -> Term.term -> unit
Sourceval appl : int Lplib.Extra.StrMap.t -> Format.formatter -> Term.term -> Term.term list -> unit
Sourceval postfix : int Lplib.Extra.StrMap.t -> Format.formatter -> Term.sym -> Term.term list -> unit
Sourceval quantifier : int Lplib.Extra.StrMap.t -> Format.formatter -> Term.sym -> Term.term list -> unit
Sourceval meta : Format.formatter -> Term.meta -> unit
Sourceval abstractions : int Lplib.Extra.StrMap.t -> Format.formatter -> Term.term -> unit
Sourceval term_in : int Lplib.Extra.StrMap.t -> Format.formatter -> Term.term -> unit
Sourceval term : Format.formatter -> Term.term -> unit
Sourceval env : Format.formatter -> Term.term array -> unit
Sourceval prod_in : int Lplib.Extra.StrMap.t -> (Term.term * bool list) Lplib.Base.pp
Sourceval prod : (Term.term * bool list) Lplib.Base.pp
Sourceval sym_type : Format.formatter -> Term.sym -> unit
Sourceval typ : Format.formatter -> Term.term -> unit
Sourceval constrs : Term.constr list Lplib.Base.pp