Documentation

CategorialAlgebras.ChangeOfSignature.HeterogeneousTerms

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.

@[reducible, inline]
abbrev CategorialAlgebras.Heterogeneous.CategorialAlgebra.positionProduct {I : Type i} [Preorder I] {T : Type u} {tau : Signature T} (B : CategorialAlgebra I tau) {R : Type u'} (φ : R → T) (a : List R) :

The product of the categories of the positions of a word, after a change of sorts.

Equations
Instances For
    def CategorialAlgebras.Heterogeneous.CategorialAlgebra.termFunctor {I : Type i} [Preorder I] {T : Type u} {tau : Signature T} (B : CategorialAlgebra I tau) {R : Type u'} (φ : R → T) (a : List R) {t : T} :
    Term tau (Word.MappedVariables φ a) t → Functor (B.positionProduct φ a) (B.sort t)

    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
    Instances For
      theorem CategorialAlgebras.Heterogeneous.CategorialAlgebra.termFunctor_toFun {I : Type i} [Preorder I] {T : Type u} {tau : Signature T} (B : CategorialAlgebra I tau) {R : Type u'} (φ : R → T) (a : List R) {t : T} (P : Term tau (Word.MappedVariables φ a) t) (k : I) (x : Word.Family (fun (r : R) => B.carrier (k, φ r)) a) :

      In each dimension, a term functor computes the term operation of the total algebra of the cells of that dimension.

      @[simp]
      theorem CategorialAlgebras.Heterogeneous.CategorialAlgebra.termFunctor_mappedVariable_toFun {I : Type i} [Preorder I] {T : Type u} {tau : Signature T} (B : CategorialAlgebra I tau) {R : Type u'} (φ : R → T) (a : List R) (j : Fin a.length) (k : I) (x : Word.Family (fun (r : R) => B.carrier (k, φ r)) a) :
      (B.termFunctor φ a (Term.var (Word.mappedVariable φ a j))).toFun k x = x j

      Term functors of variables at their own positions are projections.

      theorem CategorialAlgebras.Heterogeneous.CategorialAlgebra.termFunctor_substFamily {I : Type i} [Preorder I] {T : Type u} {tau : Signature T} (B : CategorialAlgebra I tau) {R : Type u'} {R' : Type x} (φ : R → T) (ψ : R' → T) (a : List R) (b : List R') (q : Word.Family (fun (r : R') => Term tau (Word.MappedVariables φ a) (ψ r)) b) {t : T} (P : Term tau (Word.MappedVariables ψ b) t) :
      B.termFunctor φ a (Term.substFamily q P) = (HigherCategory.productLift fun (j : Fin b.length) => B.termFunctor φ a (q j)).comp (B.termFunctor ψ b P)

      Term functors commute with substitution of terms for the positions.

      theorem CategorialAlgebras.Heterogeneous.CategorialAlgebra.Hom.map_termFunctor {I : Type i} [Preorder I] {T : Type u} {tau : Signature T} {B C : CategorialAlgebra I tau} (f : B ⟶ C) {R : Type u'} (φ : R → T) (a : List R) {t : T} (P : Term tau (Word.MappedVariables φ a) t) (k : I) (x : Word.Family (fun (r : R) => B.carrier (k, φ r)) a) :
      (f.sort t).toFun k ((B.termFunctor φ a P).toFun k x) = (C.termFunctor φ a P).toFun k fun (j : Fin a.length) => (f.sort (φ (a.get j))).toFun k (x j)

      Homomorphisms of categorial algebras commute with term operations.