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/LibMeta/index.html

Module Core.LibMetaSource

Functions to manipulate metavariables.

Sourceval log : 'a Lplib.Base.outfmt -> 'a
Sourceval meta_counter : int ref
Sourceval reset_meta_counter : unit -> unit

reset_meta_counter () resets the counter used to produce meta keys.

Sourceval fresh : Term.problem -> Term.term -> int -> Term.meta

fresh p a n creates a fresh metavariable of type a and arity n and adds it to p.

Sourceval set : Term.problem -> Term.meta -> Term.mbinder -> unit

set p m v sets the metavariable m of p to v. WARNING: No specific check is performed, so this function may lead to cyclic terms. To use with care.

make p ctx a creates a fresh metavariable term of type a in the context ctx, and adds it to p.

Sourceval make_codomain : Term.problem -> Term.ctxt -> Term.term -> Term.binder

make_codomain p ctx a creates a fresh metavariable term of type Type in the context ctx extended with a fresh variable of type a, and updates p with generated metavariables.

Sourceval iter : bool -> (Term.meta -> unit) -> Term.ctxt -> Term.term -> unit

iter b f c t applies the function f to every metavariable of t and, if x is a variable of t mapped to v in the context c, then to every metavariable of v, and to the type of every metavariable recursively if b is true.

Sourceval occurs : Term.meta -> Term.ctxt -> Term.term -> bool

occurs m c t tests whether the metavariable m occurs in the term t when variables defined in the context c are unfolded.