Derivors #
A derivor changes sorts and interprets each operation as a term in the translated positions of its input word. It transforms free algebras, translates terms, and commutes with substitution. Many-sorted signatures of fixed sort and symbol universes form a category.
A derivor sends sorts to sorts and symbols to terms in the corresponding positions.
- sortMap : S → T
The map of sorts.
- image {a : List S} {s : S} : sig a s → Term tau (Word.MappedVariables self.sortMap a) (self.sortMap s)
The term interpreting each symbol, with one variable for each input position.
Instances For
Transformed algebras and translation #
The transformed free algebra interprets symbols by substituting into their images.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Substitution is a homomorphism between the transformed free algebras.
Formally stronger than the informal statement. Informally, it is stated for the substitution of a family of terms for the positional variables of a word; here it holds for every substitution between sorted sets of variables.
Equations
- c.substHom f = { toMap := fun (x : S) => CategorialAlgebras.Term.subst f, map_op := ⋯ }
Instances For
Algebraic extension of an assignment of translated terms to the source variables.
Equations
Instances For
Translation of a term with an arbitrary assignment for its variables.
Equations
- c.translate f t = (c.translateHom f).toMap s t
Instances For
Translation sends a variable to its assigned translated term.
Translation substitutes the translated arguments in the image of an operation.
Target substitutions commute with translation by substituting in its variable assignment.
Translating a source substitution translates all the terms assigned to variables.
Translate a context of positions along the sort map, preserving each position.
Equations
- c.positionMap φ a x✝ ⟨j, h⟩ = CategorialAlgebras.Term.var ⟨j, ⋯⟩
Instances For
Translation $c^\sharp$ on the positional variables of a word.
Equations
- c.translateWord a t = c.translate (c.positionMap id a) t
Instances For
Word translation has the operation equation specified by substitution in symbol images.
The identity derivor interprets a symbol by applying it to its positional variables.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The composite interprets each source symbol by translating its first image.
Equations
Instances For
Substitution and composition laws #
Translation commutes with a substitution specified by a family of terms.
Translation on word variables commutes with substitutions specified by families.
Translation by a composite is successive translation by its two derivors.
Translation by the identity derivor is ordinary substitution of its variable assignment.
The identity derivor fixes all terms in positional variables.
Many-sorted signatures and derivors form a category at fixed sort and symbol universes.
Equations
- One or more equations did not get rendered due to their size.