package term-indexing
Module Subst.MakeSource
Parameters
module P : Intf.SignatureSignature
The type of substitutions
ub subst is an upper bound on the absolute value of variables appearing in subst (either in the domain or the range of the substitution).
eval v subst returns Some t if v is mapped to the term t in subst or None if v is not in the domain of subst.
Exception-raising variant of eval. Raises Not_found if v is not in the domain of subst.
add v t subst adds a mapping from v to t in subst. If v is already in the domain of subst, the previous mapping is replaced.
Raises Invalid_argument if t is a variable equal to v
unsafe_add does as add but doen't check for validity of the mapping.
lift subst term applies the substitution subst to term. Note that lift does not perform an occur check: do not use with substitutions that are not well-founded.
union s1 s2 computes the union of s1 and s2.
Raises Invalid_argument if s1 and s2 have overlapping domains.
Unification contains facilities to perform first-order term unification