package lambdapi

All checked builds pass
  1. Overview
  2. Docs
Proof assistant for the λΠ-calculus modulo rewriting

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lambdapi-4.0.0.tbz
sha256=0e2e73e0ea0c674f1263bf85ed3453ed3d6084d38eea29974a03ba9e382d29d7
sha512=2831db57fcd09206687a92fc9ee7d363e87bcec5167949e9c8161d41c63d5887b9f3556bfd63a7a9a0c12e5a5dc61a397baf4f496ebdb2a2fce122142c05e7a1

doc/lambdapi.core/Core/Builtin/index.html

Module Core.BuiltinSource

Registering and checking builtin symbols.

get ss pos path name returns the symbol mapped to the builtin name in path if any. If the symbol cannot be found then Fatal is raised.

Type of functions checking the validity of a builtin symbol in a given signature state. The pos argument is used for error reporting.

Sourceval no_check : 'a -> 'b -> 'c -> unit
Sourceval htbl : (string, check) Hashtbl.t

Hash-table used to record checking functions for builtins.

Sourceval check : string -> check

check name returns the registered check function for name.

Sourceval register : string -> check -> unit

register name check registers the checking function check, for the builtin symbols named name. When the check is run, check receives as argument a position for error reporting as well as the map of every builtin symbol in scope. It is expected to raise the Fatal exception to signal an error. Note that this function should not be called using a name for which a check has already been registered.

Sourceval register_expected_type : Term.term Lplib.Base.eq -> Term.term Lplib.Base.pp -> string -> (Sig_state.sig_state -> Common.Pos.popt -> Term.term) -> unit

register_expected_type name build pp registers a checking function that checks the type of a symbol defining the builtin name against a type constructed using the given build function.

Sourcemodule M : sig ... end

Declare and check the types of builtins.