Documentation

CategorialAlgebras.Homogeneous.Models

Validity of the homogeneous equations #

Expansion of a categorial algebra satisfies every contextual equation. Together with recovery, this gives the two directions of the presentation on unchanged carriers.

def CategorialAlgebras.Homogeneous.CategorialAlgebra.boundary {I : Type i} [LT I] {S : Type u} {sig : Signature S} (A : CategorialAlgebra I sig) (k : I) (b : Bool) {s : S} (x : A.carrier s) :

Select a source or target map in a categorial algebra.

Equations
Instances For
    theorem CategorialAlgebras.Homogeneous.CategorialAlgebra.boundary_retract {I : Type i} [LT I] {S : Type u} {sig : Signature S} (A : CategorialAlgebra I sig) (k : I) (b c : Bool) {s : S} (x : A.carrier s) :
    A.boundary k b (A.boundary k c x) = A.boundary k c x

    All boundaries in one dimension fix each other's images.

    theorem CategorialAlgebras.Homogeneous.CategorialAlgebra.boundary_comp {I : Type i} [LT I] {S : Type u} {sig : Signature S} (A : CategorialAlgebra I sig) (k : I) (b : Bool) {s : S} {x y z : A.carrier s} (hz : z ∈ ((A.sort s).str.dim k).comp x y) :
    A.boundary k b z = A.boundary k b (if b = true then x else y)

    Boundaries of a composite are its outer boundaries.

    theorem CategorialAlgebras.Homogeneous.CategorialAlgebra.higher_lower {I : Type i} [LT I] {S : Type u} {sig : Signature S} (A : CategorialAlgebra I sig) {l k : I} (h : l < k) (b : Bool) {s : S} (x : A.carrier s) :
    A.boundary k b (A.boundary l b x) = A.boundary l b x

    Higher boundaries fix the corresponding lower boundaries.

    theorem CategorialAlgebras.Homogeneous.CategorialAlgebra.lower_higher {I : Type i} [LT I] {S : Type u} {sig : Signature S} (A : CategorialAlgebra I sig) {l k : I} (h : l < k) (b c : Bool) {s : S} (x : A.carrier s) :
    A.boundary l b (A.boundary k c x) = A.boundary l b x

    Lower boundaries absorb either higher boundary.

    theorem CategorialAlgebras.Homogeneous.CategorialAlgebra.higher_comp {I : Type i} [LT I] {S : Type u} {sig : Signature S} (A : CategorialAlgebra I sig) {l k : I} (h : l < k) (b : Bool) {s : S} {x y z : A.carrier s} (hz : z ∈ ((A.sort s).str.dim l).comp x y) :
    A.boundary k b z ∈ ((A.sort s).str.dim l).comp (A.boundary k b x) (A.boundary k b y)

    Higher boundaries preserve lower composite values.

    theorem CategorialAlgebras.Homogeneous.CategorialAlgebra.operation_boundary {I : Type i} [LT I] {S : Type u} {sig : Signature S} (A : CategorialAlgebra I sig) {a : List S} {s : S} (σ : sig a s) (k : I) (b : Bool) (x : Word.Family A.carrier a) :
    A.boundary k b ((A.op σ).toFun x) = (A.op σ).toFun fun (j : Fin a.length) => A.boundary k b (x j)

    Original operations preserve both kinds of boundary.

    theorem CategorialAlgebras.Homogeneous.eval_expansion_boundary {I : Type i} [LT I] {S : Type u} {sig : Signature S} {X : S → Type x} (A : CategorialAlgebra I sig) (v : SortedSet.Map X A.carrier) (k : I) (b : Bool) {s : S} (t : Term (Symbol I sig) X s) :

    Boundary evaluation in an expanded categorial algebra.

    theorem CategorialAlgebras.Homogeneous.eval_expansion_base {I : Type i} [LT I] {S : Type u} {sig : Signature S} {X : S → Type x} (A : CategorialAlgebra I sig) (v : SortedSet.Map X A.carrier) {a : List S} {s : S} (σ : sig a s) (t : Word.Family (Term (Symbol I sig) X) a) :
    Term.partialEval v (Term.app (Symbol.base σ) t) = (partFamily fun (j : Fin a.length) => Term.partialEval v (t j)).bind fun (z : (j : Fin a.length) → A.toPartialAlgebra.carrier (a.get j)) => Part.some ((A.op σ).toFun z)

    Original operation evaluation in an expanded categorial algebra.

    theorem CategorialAlgebras.Homogeneous.eval_expansion_binary {I : Type i} [LT I] {S : Type u} {sig : Signature S} (A : CategorialAlgebra I sig) {s : S} {m : ℕ} (x : Fin m → A.carrier s) (k : I) (j j' : Fin m) :
    Term.partialEval (uniformValuation x) (binary k (variableTerm s j) (variableTerm s j')) = ((A.sort s).str.dim k).comp (x j) (x j')

    Uniform binary terms evaluate to the corresponding categorical composition.

    All contextual equations hold in the expansion of a categorial algebra.