Substitutions #
A sorted assignment of terms to variables extends to a homomorphism between free algebras. Assignments given by a family use the valuation-family equivalence of word positions. The family API also allows positions whose sorts have been changed by a map.
General substitutions #
Substitution as a homomorphism of free algebras.
Instances For
Substitute $f_s(x)$ for every occurrence of the variable $x$.
Equations
Instances For
Substitution preserves operation nodes.
Substitutions compose by substituting in their assigned terms.
Substitutions specified by families #
Substitution specified by a family indexed by a word, possibly with changed sorts.
Equations
Instances For
Family substitution sends the variable at position $j$ to the $j$th term.
Substitution of the positional variables themselves fixes every term.
Substituting after a family substitution substitutes in each member of the family.
The composition rule $R^\sharp(Q^\sharp(P))=(R^\sharp(Q_j))_j^\sharp(P)$.