Term functors in heterogeneous categorial algebras #
A term $P$ of the original signature, with one variable for each position of a word, is interpreted in a heterogeneous categorial algebra as a heterogeneous higher functor from the product of the categories of its positions. In dimension $k$ it computes the term operation of $P_k$, the term obtained from $P$ by replacing every operation symbol $\tau$ by its copy $\tau_k$. Hence these term operations are total and preserve sources, targets, identities and composites between every pair of dimensions.
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.Heterogeneous.HigherCategory.product fun (j : Fin a.length) => B.sort (φ (a.get j))
Instances For
The heterogeneous higher functor interpreting a term whose variables are the positions of a word. A variable is a projection and an operation is composed with the tuple of the functors of its arguments.
Equations
- B.termFunctor φ a (CategorialAlgebras.Term.var ⟨j, ⋯⟩) = CategorialAlgebras.Heterogeneous.HigherCategory.projection (fun (j : Fin a.length) => B.sort (φ (a.get j))) j
- B.termFunctor φ a (CategorialAlgebras.Term.app σ t) = (CategorialAlgebras.Heterogeneous.HigherCategory.productLift fun (j : Fin a_1.length) => B.termFunctor φ a (t j)).comp (B.op σ)
Instances For
In each dimension, a term functor computes the term operation of the total algebra of the cells of that dimension.
Term functors of variables at their own positions are projections.
Term functors commute with substitution of terms for the positions.
Homomorphisms of categorial algebras commute with term operations.