Term functors in homogeneous categorial algebras #
A term of the original signature, with one variable for each position of a word, is interpreted in a homogeneous categorial algebra as a higher functor from the product of the categories of its positions. Variables are projections and operations are composed with the tuples of their arguments. The underlying function is the term operation of the total algebra of cells, so the term operations of the original terms are total and preserve sources, targets and composites in every dimension.
Term functors commute with substitution and with homomorphisms of categorial algebras.
The product of the categories of the positions of a word, after a change of sorts.
Equations
- B.positionProduct φ a = CategorialAlgebras.Homogeneous.HigherCategory.product fun (j : Fin a.length) => B.sort (φ (a.get j))
Instances For
The higher functor interpreting a term whose variables are the positions of a word. A variable is a projection, transported along its sort, and an operation is composed with the tuple of the functors of its arguments.
Equations
- B.termFunctor φ a (CategorialAlgebras.Term.var ⟨j, ⋯⟩) = CategorialAlgebras.Homogeneous.HigherCategory.projection (fun (j : Fin a.length) => B.sort (φ (a.get j))) j
- B.termFunctor φ a (CategorialAlgebras.Term.app σ t) = (CategorialAlgebras.Homogeneous.HigherCategory.productLift fun (j : Fin a_1.length) => B.termFunctor φ a (t j)).comp (B.op σ)
Instances For
A term functor computes the term operation of the total algebra of cells.
Term functors of variables at their own positions are projections.
Term operations of terms of the original signature preserve sources.
Term operations of terms of the original signature preserve targets.
Term operations of terms of the original signature preserve composites: if the arguments are composable at every position, then the values are composable, with composite the value at the composites.
Term functors commute with substitution of terms for the positions.
Homomorphisms of categorial algebras commute with term operations.