Documentation

CategorialAlgebras.Homogeneous.Recovery

Categorial algebras and models #

The expanded partial algebra retains the exact carrier of a categorial algebra. Its homomorphisms are precisely the sorted higher functors commuting with operations. Conversely, totality and the domain equations recover the categorical operations.

def CategorialAlgebras.Homogeneous.boundaryValue {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) (k : I) (b : Bool) {s : S} (x : A.carrier s) :

The total boundary map recovered from a model of the equations.

Equations
Instances For
    theorem CategorialAlgebras.Homogeneous.boundary_op {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) (k : I) (b : Bool) {s : S} (x : Word.Family A.carrier [s]) :
    A.op (Symbol.boundary k s b) x = Part.some (boundaryValue h k b (x 0))

    A recovered boundary gives the original partial unary operation.

    def CategorialAlgebras.Homogeneous.operationValue {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) {a : List S} {s : S} (σ : sig a s) (x : Word.Family A.carrier a) :

    The total original operation recovered from a model.

    Equations
    Instances For
      theorem CategorialAlgebras.Homogeneous.base_op {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) {a : List S} {s : S} (σ : sig a s) (x : Word.Family A.carrier a) :

      Recovered original operations have their original partial values.

      theorem CategorialAlgebras.Homogeneous.eval_boundary {I : Type i} [LT I] {S : Type u} {sig : Signature S} {X : S → Type x} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) (v : SortedSet.Map X A.carrier) {s : S} (k : I) (b : Bool) (t : Term (Symbol I sig) X s) :
      Term.partialEval v (boundary k b t) = (Term.partialEval v t).bind fun (x : A.carrier s) => Part.some (boundaryValue h k b x)

      Evaluation of boundaries in a model uses the recovered total boundary map.

      theorem CategorialAlgebras.Homogeneous.composition_dom {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) (k : I) {s : S} (x y : A.carrier s) :

      The domain of a recovered composition is equality of its two total boundaries.

      Every partial algebra satisfying the contextual equations is an ep-algebra.

      Models of the ep-specification are exactly the algebras satisfying its equations.

      theorem CategorialAlgebras.Homogeneous.boundary_retract {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) (k : I) (b c : Bool) {s : S} (x : A.carrier s) :
      boundaryValue h k b (boundaryValue h k c x) = boundaryValue h k c x

      Recovered boundaries fix one another in the same dimension.

      theorem CategorialAlgebras.Homogeneous.boundary_unit {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) (k : I) {s : S} (x : A.carrier s) :
      x ∈ A.op (Symbol.comp k s) (pair x (boundaryValue h k false x)) ∧ x ∈ A.op (Symbol.comp k s) (pair (boundaryValue h k true x) x)

      Recovered boundaries give the two unit composites.

      theorem CategorialAlgebras.Homogeneous.boundary_composite {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) (k : I) (b : Bool) {s : S} (x y z : A.carrier s) (hz : z ∈ A.op (Symbol.comp k s) (pair x y)) :
      boundaryValue h k b z = boundaryValue h k b (if b = true then x else y)

      Recovered boundaries of a composite are its outer boundaries.

      theorem CategorialAlgebras.Homogeneous.composition_assoc {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) (k : I) {s : S} (x y z xy yz : A.carrier s) (hxy : xy ∈ A.op (Symbol.comp k s) (pair x y)) (hyz : yz ∈ A.op (Symbol.comp k s) (pair y z)) :
      ∃ q ∈ A.op (Symbol.comp k s) (pair xy z), q ∈ A.op (Symbol.comp k s) (pair x yz)

      The recovered partial compositions associate whenever adjacent pairs exist.

      def CategorialAlgebras.Homogeneous.recoveredDimension {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) (k : I) (s : S) :

      The category structure in each dimension recovered from contextual equations.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem CategorialAlgebras.Homogeneous.higher_lower_boundary {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) {l k : I} (hlk : l < k) (b : Bool) {s : S} (x : A.carrier s) :
        boundaryValue h k b (boundaryValue h l b x) = boundaryValue h l b x

        A higher boundary fixes the corresponding lower boundary.

        theorem CategorialAlgebras.Homogeneous.lower_higher_boundary {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) {l k : I} (hlk : l < k) (b c : Bool) {s : S} (x : A.carrier s) :
        boundaryValue h l b (boundaryValue h k c x) = boundaryValue h l b x

        A lower boundary absorbs either higher boundary.

        theorem CategorialAlgebras.Homogeneous.higher_boundary_composition {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) {l k : I} (hlk : l < k) (b : Bool) {s : S} (x y z : A.carrier s) (hz : z ∈ A.op (Symbol.comp l s) (pair x y)) :
        boundaryValue h k b z ∈ A.op (Symbol.comp l s) (pair (boundaryValue h k b x) (boundaryValue h k b y))

        A recovered higher boundary preserves lower composite values.

        theorem CategorialAlgebras.Homogeneous.composition_interchange {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) {l k : I} (hlk : l < k) {s : S} (x y z t xy zt xz yt : A.carrier s) (hxy : xy ∈ A.op (Symbol.comp l s) (pair x y)) (hzt : zt ∈ A.op (Symbol.comp l s) (pair z t)) (hxz : xz ∈ A.op (Symbol.comp k s) (pair x z)) (hyt : yt ∈ A.op (Symbol.comp k s) (pair y t)) :
        ∃ q ∈ A.op (Symbol.comp k s) (pair xy zt), q ∈ A.op (Symbol.comp l s) (pair xz yt)

        The recovered compositions satisfy interchange on every composable rectangle.

        theorem CategorialAlgebras.Homogeneous.recovered_compatible {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) {l k : I} (hlk : l < k) (s : S) :

        Every increasing pair of recovered dimensions is compatible.

        The sorted higher categories recovered from a model of the equations.

        Equations
        Instances For
          theorem CategorialAlgebras.Homogeneous.eval_base {I : Type i} [LT I] {S : Type u} {sig : Signature S} {X : S → Type x} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) (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.carrier (a.get j)) => Part.some (operationValue h σ z)

          Evaluation of an original operation uses its recovered total interpretation.

          theorem CategorialAlgebras.Homogeneous.operation_boundary {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) {a : List S} {s : S} (σ : sig a s) (k : I) (b : Bool) (x : Word.Family A.carrier a) :
          boundaryValue h k b (operationValue h σ x) = operationValue h σ fun (j : Fin a.length) => boundaryValue h k b (x j)

          The recovered original operations preserve boundaries.

          A valuation of the doubled context from a pair of input families.

          Equations
          Instances For
            theorem CategorialAlgebras.Homogeneous.operation_composition {I : Type i} [LT I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) {a : List S} {s : S} (σ : sig a s) (k : I) (x y z : Word.Family A.carrier a) (hz : ∀ (j : Fin a.length), z j ∈ A.op (Symbol.comp k (a.get j)) (pair (x j) (y j))) :

            The recovered original operations preserve all defined composites.

            Recover a categorial algebra on the unchanged carrier of any model of the equations.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              Expansion after recovery returns the original partial algebra exactly.

              An expanded homomorphism associated to a categorial homomorphism.

              Equations
              Instances For

                Every expanded partial homomorphism is a categorial homomorphism.

                Equations
                Instances For

                  Expansion and recovery of homomorphisms are mutually inverse.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For