package lambdapi

  1. Overview
  2. Docs

Module Core.InverseSource

Compute the inverse image of a term wrt an injective function.

Sourceval log : 'a Lplib.Base.outfmt -> 'a
Sourceval cache : (Term.sym -> 'a) -> Term.sym -> 'a

cache f s is equivalent to f s but f s is computed only once unless the rules of s are changed.

Sourceval const_graph : Term.sym -> (Term.sym * Term.sym) list

cached version of const_rules.

Sourceval inverse_const : Term.sym -> Term.sym -> Term.sym

inverse_const s s' returns s0 if s has a rule of the form s (s0 ...) ↪ s' .... Raises Not_found otherwise.

Sourceval prod_graph : Term.sym -> (Term.sym * Term.sym * Term.sym * bool) list

cached version of prod_graph.

Sourceval inverse : Term.sym -> Term.term -> Term.term