Documentation

CategorialAlgebras.ChangeOfSignature.HomogeneousTerms

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.

@[reducible, inline]
abbrev CategorialAlgebras.Homogeneous.CategorialAlgebra.positionProduct {I : Type i} [LT 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.Homogeneous.CategorialAlgebra.termFunctor {I : Type i} [LT 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 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
    Instances For
      theorem CategorialAlgebras.Homogeneous.CategorialAlgebra.termFunctor_toFun {I : Type i} [LT 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) (x : Word.Family (fun (r : R) => B.carrier (φ r)) a) :

      A term functor computes the term operation of the total algebra of cells.

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

      Term functors of variables at their own positions are projections.

      theorem CategorialAlgebras.Homogeneous.CategorialAlgebra.termFunctor_source {I : Type i} [LT 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 (φ r)) a) :
      ((B.sort t).str.dim k).source ((B.termFunctor φ a P).toFun x) = (B.termFunctor φ a P).toFun fun (j : Fin a.length) => ((B.sort (φ (a.get j))).str.dim k).source (x j)

      Term operations of terms of the original signature preserve sources.

      theorem CategorialAlgebras.Homogeneous.CategorialAlgebra.termFunctor_target {I : Type i} [LT 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 (φ r)) a) :
      ((B.sort t).str.dim k).target ((B.termFunctor φ a P).toFun x) = (B.termFunctor φ a P).toFun fun (j : Fin a.length) => ((B.sort (φ (a.get j))).str.dim k).target (x j)

      Term operations of terms of the original signature preserve targets.

      theorem CategorialAlgebras.Homogeneous.CategorialAlgebra.termFunctor_comp {I : Type i} [LT 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 y z : Word.Family (fun (r : R) => B.carrier (φ r)) a) (h : ∀ (j : Fin a.length), z j ∈ ((B.sort (φ (a.get j))).str.dim k).comp (x j) (y j)) :
      (B.termFunctor φ a P).toFun z ∈ ((B.sort t).str.dim k).comp ((B.termFunctor φ a P).toFun x) ((B.termFunctor φ a P).toFun y)

      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.

      theorem CategorialAlgebras.Homogeneous.CategorialAlgebra.termFunctor_substFamily {I : Type i} [LT 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.Homogeneous.CategorialAlgebra.Hom.map_termFunctor {I : Type i} [LT 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) (x : Word.Family (fun (r : R) => B.carrier (φ r)) a) :
      (f.sort t).toFun ((B.termFunctor φ a P).toFun x) = (C.termFunctor φ a P).toFun fun (j : Fin a.length) => (f.sort (φ (a.get j))).toFun (x j)

      Homomorphisms of categorial algebras commute with term operations.