Substitution

Type Alias Substitution 

Source
pub type Substitution = HashMap<String, ProofTerm>;
Expand description

A substitution mapping variable names to terms.

Substitutions are the output of unification. Applying a substitution to both sides of a unification problem yields identical terms.

§Example

After unifying Mortal(x) with Mortal(Socrates):

{ "x" ↦ Constant("Socrates") }

§Operations

Aliased Type§

pub struct Substitution { /* private fields */ }