Documentation

CategorialAlgebras.Preliminaries.PartialAlgebra

Partial algebras #

Partial operations take word-indexed families to Part. Homomorphisms preserve defined values. Total algebras embed fully faithfully, isomorphisms are bijective homomorphisms reflecting definedness, and products have componentwise domains and values.

Families of partial values #

def CategorialAlgebras.partFamily {I : Type i} {A : I → Type w} (p : (j : I) → Part (A j)) :
Part ((j : I) → A j)

Assemble a dependent family of partial values, defined exactly when every entry is.

Equations
Instances For
    theorem CategorialAlgebras.mem_partFamily {I : Type i} {A : I → Type w} (p : (j : I) → Part (A j)) (x : (j : I) → A j) :
    x ∈ partFamily p ↔ ∀ (j : I), x j ∈ p j

    Membership in an assembled family is componentwise membership.

    @[reducible, inline]
    abbrev CategorialAlgebras.PartialAlgebraStructure {S : Type u} (sig : Signature S) (A : S → Type w) :
    Type (max (max u v) w)

    A partial algebra structure on a fixed sorted carrier.

    Equations
    Instances For
      structure CategorialAlgebras.PartialAlgebra {S : Type u} (sig : Signature S) :
      Type (max (max u v) (w + 1))

      A many-sorted partial algebra.

      Instances For

        Homomorphisms #

        structure CategorialAlgebras.PartialAlgebra.Hom {S : Type u} {sig : Signature S} (A : PartialAlgebra sig) (B : PartialAlgebra sig) :
        Type (max (max u w) w')

        A homomorphism preserves each defined operation value.

        Instances For
          theorem CategorialAlgebras.PartialAlgebra.Hom.ext {S : Type u} {sig : Signature S} {A : PartialAlgebra sig} {B : PartialAlgebra sig} {x y : A.Hom B} (toMap : x.toMap = y.toMap) :
          x = y
          theorem CategorialAlgebras.PartialAlgebra.Hom.ext_iff {S : Type u} {sig : Signature S} {A : PartialAlgebra sig} {B : PartialAlgebra sig} {x y : A.Hom B} :
          x = y ↔ x.toMap = y.toMap

          Identity homomorphism.

          Equations
          Instances For
            def CategorialAlgebras.PartialAlgebra.Hom.comp {S : Type u} {sig : Signature S} {A : PartialAlgebra sig} {B : PartialAlgebra sig} {C : PartialAlgebra sig} (f : A.Hom B) (g : B.Hom C) :
            A.Hom C

            Composition in diagrammatic order.

            Equations
            Instances For
              @[instance_reducible]

              Partial algebras with carriers in a fixed universe form a category.

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

              The forgetful functor to sorted sets.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                theorem CategorialAlgebras.PartialAlgebra.Hom.map_dom {S : Type u} {sig : Signature S} {A : PartialAlgebra sig} {B : PartialAlgebra sig} (f : A.Hom B) {a : List S} {s : S} (σ : sig a s) (x : Word.Family A.carrier a) (h : (A.op σ x).Dom) :
                (B.op σ fun (j : Fin a.length) => f.toMap (a.get j) (x j)).Dom

                A homomorphism preserves definedness.

                Total algebras #

                @[reducible, inline]

                Regard a total algebra as a partial algebra with everywhere defined operations.

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

                  Inclusion of total algebras into partial algebras.

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

                    The inclusion of total algebras is fully faithful.

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

                      The total inclusion is full.

                      The total inclusion is faithful.

                      Isomorphisms #

                      Reflection of the domains of all basic operations.

                      Equations
                      Instances For
                        noncomputable def CategorialAlgebras.PartialAlgebra.Hom.inverse {S : Type u} {sig : Signature S} {A : PartialAlgebra sig} {B : PartialAlgebra sig} (f : A.Hom B) (hb : ∀ (s : S), Function.Bijective (f.toMap s)) (hr : f.ReflectsDefinedness) :
                        B.Hom A

                        A bijective homomorphism reflecting definedness has a homomorphic inverse.

                        Equations
                        Instances For

                          An isomorphism has a bijective underlying sorted mapping.

                          Isomorphisms reflect definedness.

                          A homomorphism is invertible exactly when it is bijective and reflects definedness.

                          A bijective homomorphism is invertible exactly when it reflects definedness.

                          theorem CategorialAlgebras.PartialAlgebra.Hom.isIso_iff_inverse {S : Type u} {sig : Signature S} {A B : PartialAlgebra sig} (f : A ⟶ B) :
                          CategoryTheory.IsIso f ↔ (∀ (s : S), Function.Bijective (f.toMap s)) ∧ ∃ (g : B ⟶ A), ∀ (s : S) (y : B.carrier s), f.toMap s (g.toMap s y) = y

                          Invertibility is equivalent to bijectivity and a homomorphic inverse mapping. For a bijective map its right inverse is necessarily its unique inverse.

                          Products #

                          Product algebra; its operations are defined in every component simultaneously.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            theorem CategorialAlgebras.PartialAlgebra.product_op_dom {S : Type u} {sig : Signature S} {I : Type i} (A : I → PartialAlgebra sig) {a : List S} {s : S} (σ : sig a s) (x : Word.Family (product A).carrier a) :
                            ((product A).op σ x).Dom ↔ ∀ (i : I), ((A i).op σ fun (j : Fin a.length) => x j i).Dom

                            A product operation is defined exactly when all component operations are.

                            def CategorialAlgebras.PartialAlgebra.projection {S : Type u} {sig : Signature S} {I : Type i} (A : I → PartialAlgebra sig) (i : I) :
                            (product A).Hom (A i)

                            The canonical projection from a product.

                            Equations
                            Instances For
                              def CategorialAlgebras.PartialAlgebra.productLift {S : Type u} {sig : Signature S} {I : Type i} {A : I → PartialAlgebra sig} {B : PartialAlgebra sig} (f : (i : I) → B.Hom (A i)) :
                              B.Hom (product A)

                              The homomorphism induced by a family of homomorphisms into the factors.

                              Equations
                              Instances For

                                The fan of canonical projections, with product index and carriers in a fixed universe.

                                Equations
                                Instances For

                                  The componentwise product satisfies the categorical product universal property.

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