Substitution in first-order terms #
Mathlib's FirstOrder.Language.Term.subst replaces each variable of a term by a term. This file
records its algebra: substituting variables for themselves is the identity, two substitutions
compose to one, relabelling is the substitution of variables, and both relabelling and
language maps commute with substitution. These are the term cases of the corresponding laws for
substitution into formulas.
Main results #
FirstOrder.Language.Term.subst_var: substituting each variable by itself.FirstOrder.Language.Term.subst_subst: two substitutions compose to one.FirstOrder.Language.Term.relabel_eq_subst: relabelling is substitution of variables.FirstOrder.Language.Term.relabel_subst,FirstOrder.Language.Term.subst_relabel: relabelling after and before a substitution.FirstOrder.Language.LHom.onTerm_subst: language maps commute with substitution.