Documentation

CategorialAlgebras.Heterogeneous.Recovery

Recovery from heterogeneous equations #

Totality recovers boundaries, identities and original operations without choosing arbitrary values. The remaining equations recover the categorical structures and their compatibilities.

Total values and evaluation #

def CategorialAlgebras.Heterogeneous.boundaryValue {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) {j k : I} (h : j < k) (b : Bool) {s : S} (x : A.carrier (k, s)) :

The total boundary recovered from the equations.

Equations
Instances For
    def CategorialAlgebras.Heterogeneous.identityValue {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) {j k : I} (h : j < k) {s : S} (x : A.carrier (j, s)) :

    The total identity recovered from the equations.

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

      Recovered boundaries give the original partial operation.

      theorem CategorialAlgebras.Heterogeneous.identity_op {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) {j k : I} (h : j < k) {s : S} (x : Word.Family A.carrier [(j, s)]) :
      A.op (Symbol.identity h s) x = Part.some (identityValue hA h (x 0))

      Recovered identities give the original partial operation.

      def CategorialAlgebras.Heterogeneous.operationValue {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) (k : I) {a : List S} {s : S} (σ : sig a s) (x : Word.Family (fun (s : S) => A.carrier (k, s)) a) :

      The original operation recovered in one dimension.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem CategorialAlgebras.Heterogeneous.base_op {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) (k : I) {a : List S} {s : S} (σ : sig a s) (x : Word.Family A.carrier (dimensionWord k a)) :
        A.op (Symbol.base k σ) x = Part.some (operationValue hA k σ ((dimensionFamily k a) x))

        Recovered original operations give the original partial values.

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

        Evaluation of a boundary uses its recovered total map.

        theorem CategorialAlgebras.Heterogeneous.eval_identity {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {X : I × S → Type x} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) (v : SortedSet.Map X A.carrier) {j k : I} (h : j < k) {s : S} (t : Term (Symbol I sig) X (j, s)) :

        Evaluation of an identity uses its recovered total map.

        Pairwise categorical laws #

        theorem CategorialAlgebras.Heterogeneous.composition_dom {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) {j k : I} (hk : j < k) {s : S} (x y : A.carrier (k, s)) :
        (A.op (Symbol.comp hk s) (pair x y)).Dom ↔ boundaryValue h hk false x = boundaryValue h hk true y

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

        theorem CategorialAlgebras.Heterogeneous.boundary_unit {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) {j k : I} (hk : j < k) {s : S} (x : A.carrier (k, s)) :
        x ∈ A.op (Symbol.comp hk s) (pair x (identityValue h hk (boundaryValue h hk false x))) ∧ x ∈ A.op (Symbol.comp hk s) (pair (identityValue h hk (boundaryValue h hk true x)) x)

        Recovered boundaries give the two unit composites.

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

        Recovered boundaries of a composite are its outer boundaries.

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

        The recovered partial compositions associate whenever adjacent pairs exist.

        theorem CategorialAlgebras.Heterogeneous.boundary_retract {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) {j k : I} (h : j < k) (b : Bool) {s : S} (x : A.carrier (j, s)) :
        boundaryValue hA h b (identityValue hA h x) = x

        Each boundary retracts the recovered identity.

        def CategorialAlgebras.Heterogeneous.recoveredDimension {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) {j k : I} (h : j < k) (s : S) :

        The category structure recovered for an increasing pair of dimensions.

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

          Equationally partial domains #

          Every algebra satisfying the equations has exactly the specified domains.

          The equations alone characterize models of the ep-specification.

          Compatibility of dimensions #

          theorem CategorialAlgebras.Heterogeneous.globular_boundary {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) {h j k : I} (hj : h < j) (jk : j < k) (b c : Bool) {s : S} (x : A.carrier (k, s)) :
          boundaryValue hA hj b (boundaryValue hA jk c x) = boundaryValue hA ⋯ b x

          Recovered boundaries are globular.

          theorem CategorialAlgebras.Heterogeneous.identity_identity {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) {h j k : I} (hj : h < j) (jk : j < k) {s : S} (x : A.carrier (h, s)) :
          identityValue hA jk (identityValue hA hj x) = identityValue hA ⋯ x

          Successive recovered identities agree with the direct identity.

          theorem CategorialAlgebras.Heterogeneous.higher_boundary_composition {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (h : SatisfiesEquations A) {l j k : I} (hlj : l < j) (hjk : j < k) (b : Bool) {s : S} (x y z : A.carrier (k, s)) (hz : z ∈ A.op (Symbol.comp ⋯ s) (pair x y)) :
          boundaryValue h hjk b z ∈ A.op (Symbol.comp hlj s) (pair (boundaryValue h hjk b x) (boundaryValue h hjk b y))

          A recovered higher boundary preserves lower composite values.

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

          The recovered compositions satisfy interchange on every composable rectangle.

          theorem CategorialAlgebras.Heterogeneous.identity_composition {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) {h j k : I} (hj : h < j) (jk : j < k) {s : S} (x y z : A.carrier (j, s)) (hz : z ∈ A.op (Symbol.comp hj s) (pair x y)) :
          identityValue hA jk z ∈ A.op (Symbol.comp ⋯ s) (pair (identityValue hA jk x) (identityValue hA jk y))

          Recovered identities preserve lower composite values.

          @[simp]
          theorem CategorialAlgebras.Heterogeneous.recoveredDimension_boundary {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) {j k : I} (h : j < k) (s : S) (b : Bool) :

          Boolean boundaries of recovered pairs are their recovered maps.

          theorem CategorialAlgebras.Heterogeneous.recovered_compatible {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) {h j k : I} (hj : h < j) (jk : j < k) (s : S) :

          Every recovered increasing triple is compatible.

          Recover the higher category at an original sort.

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

            Original operations #

            theorem CategorialAlgebras.Heterogeneous.eval_base {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {X : I × S → Type x} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) (v : SortedSet.Map X A.carrier) (k : I) {a : List S} {s : S} (σ : sig a s) (t : Word.Family (fun (s : S) => Term (Symbol I sig) X (k, s)) a) :
            Term.partialEval v (base k σ t) = (partFamily fun (j : Fin a.length) => Term.partialEval v (t j)).bind fun (z : (j : Fin a.length) → A.carrier (k, a.get j)) => Part.some (operationValue hA k σ z)

            Original operation evaluation uses the recovered total interpretation.

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

            Original operations recovered from the equations preserve boundaries.

            theorem CategorialAlgebras.Heterogeneous.operation_identity {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) {a : List S} {s : S} (σ : sig a s) {j k : I} (hk : j < k) (x : Word.Family (fun (s : S) => A.carrier (j, s)) a) :
            identityValue hA hk (operationValue hA j σ x) = operationValue hA k σ fun (p : Fin a.length) => identityValue hA hk (x p)

            Original operations recovered from the equations preserve identities.

            A valuation of the doubled positional context.

            Equations
            Instances For
              theorem CategorialAlgebras.Heterogeneous.operation_composition {I : Type i} [Preorder I] {S : Type u} {sig : Signature S} {A : PartialAlgebra (Symbol I sig)} (hA : SatisfiesEquations A) {a : List S} {s : S} (σ : sig a s) {j k : I} (hk : j < k) (x y z : Word.Family (fun (s : S) => A.carrier (k, s)) a) (hz : ∀ (p : Fin a.length), z p ∈ A.op (Symbol.comp hk (a.get p)) (pair (x p) (y p))) :
              operationValue hA k σ z ∈ A.op (Symbol.comp hk s) (pair (operationValue hA k σ x) (operationValue hA k σ y))

              Recovered original operations preserve defined composite values.

              Recover a categorial algebra on the exact sorted carriers of a model.

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

                Expansion after recovery returns the original partial algebra.

                Homomorphisms #

                Expand a categorial homomorphism on its unchanged dimension-sorted functions.

                Equations
                Instances For

                  Every homomorphism between expansions is a categorial homomorphism.

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

                    Expansion identifies the homomorphisms bijectively.

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