Documentation

CategorialAlgebras.Heterogeneous.Category

Heterogeneous higher categories #

Cells have separate carriers in each dimension. Each increasing pair of dimensions has boundaries, identities and a partial composition with precisely the matching-boundary domain. Increasing triples satisfy globularity, preservation and interchange.

Category structures and compatibility #

A category with an object carrier $A$ and an arrow carrier $B$.

  • source : B → A

    Source of an arrow.

  • target : B → A

    Target of an arrow.

  • identity : A → B

    Identity arrow of an object.

  • comp : B → B → Part B

    Composition, with the later arrow first.

  • source_identity (x : A) : self.source (self.identity x) = x

    Source of an identity.

  • target_identity (x : A) : self.target (self.identity x) = x

    Target of an identity.

  • comp_dom (x y : B) : (self.comp x y).Dom ↔ self.source x = self.target y

    Composition is defined exactly on the fiber product of the boundaries.

  • source_comp (x y z : B) : z ∈ self.comp x y → self.source z = self.source y

    Source of a composite.

  • target_comp (x y z : B) : z ∈ self.comp x y → self.target z = self.target x

    Target of a composite.

  • comp_source (x : B) : x ∈ self.comp x (self.identity (self.source x))

    The identity of the source is a right unit.

  • target_comp_self (x : B) : x ∈ self.comp (self.identity (self.target x)) x

    The identity of the target is a left unit.

  • assoc (x y z xy yz : B) : xy ∈ self.comp x y → yz ∈ self.comp y z → ∃ q ∈ self.comp xy z, q ∈ self.comp x yz

    Adjacent composites extend to equal triple composites.

Instances For

    Choose source (false) or target (true).

    Equations
    Instances For

      Compatibility of the three pairs in an increasing triple of dimensions.

      Instances For
        structure CategorialAlgebras.Heterogeneous.Structure (I : Type i) [Preorder I] (A : I → Type u) :
        Type (max i u)

        Higher category structure on a dimension-indexed family of carriers.

        • dim (j k : I) : j < k → CategoryStructure (A j) (A k)

          Category structure for each increasing pair.

        • compatible (h j k : I) (hj : h < j) (jk : j < k) : Compatible (self.dim h j hj) (self.dim j k jk) (self.dim h k ⋯)

          Compatibility for each increasing triple.

        Instances For
          structure CategorialAlgebras.Heterogeneous.HigherCategory (I : Type i) [Preorder I] :
          Type (max i (u + 1))

          A higher category with a separate carrier in every dimension.

          • carrier : I → Type u

            Cells of each dimension.

          • str : Structure I self.carrier

            The categorical structure of these cells.

          Instances For

            Higher functors #

            structure CategorialAlgebras.Heterogeneous.Functor {I : Type i} [Preorder I] (C : HigherCategory I) (D : HigherCategory I) :
            Type (max (max i u) v)

            A higher functor preserves all boundaries, identities and defined composites.

            Instances For
              theorem CategorialAlgebras.Heterogeneous.Functor.ext {I : Type i} {inst✝ : Preorder I} {C : HigherCategory I} {D : HigherCategory I} {x y : Functor C D} (toFun : x.toFun = y.toFun) :
              x = y

              The identity higher functor.

              Equations
              Instances For

                Composition of higher functors in diagrammatic order.

                Equations
                • f.comp g = { toFun := fun (k : I) => g.toFun k ∘ f.toFun k, map_source := ⋯, map_target := ⋯, map_identity := ⋯, map_comp := ⋯ }
                Instances For
                  @[instance_reducible]

                  Higher categories and higher functors form a category.

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

                  Restriction and products #

                  def CategorialAlgebras.Heterogeneous.Structure.restrict {I : Type i} [Preorder I] {J : Type i'} [Preorder J] {A : I → Type u} (C : Structure I A) (e : J ↪o I) :
                  Structure J fun (j : J) => A (e j)

                  Restriction of dimensions along an order embedding.

                  Equations
                  • C.restrict e = { dim := fun (j k : J) (h : j < k) => C.dim (e j) (e k) ⋯, compatible := ⋯ }
                  Instances For
                    def CategorialAlgebras.Heterogeneous.CategoryStructure.product {J : Type v} {A B : J → Type u} (C : (j : J) → CategoryStructure (A j) (B j)) :
                    CategoryStructure ((j : J) → A j) ((j : J) → B j)

                    The componentwise category structure on dependent products.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      @[simp]
                      theorem CategorialAlgebras.Heterogeneous.CategoryStructure.product_boundary {J : Type v} {A B : J → Type u} (C : (j : J) → CategoryStructure (A j) (B j)) (b : Bool) (x : (j : J) → B j) :
                      (product C).boundary b x = fun (j : J) => (C j).boundary b (x j)

                      Boundaries of a product are computed pointwise.

                      theorem CategorialAlgebras.Heterogeneous.Compatible.product {J : Type v} {A B C : J → Type u} {l : (j : J) → CategoryStructure (A j) (B j)} {k : (j : J) → CategoryStructure (B j) (C j)} {m : (j : J) → CategoryStructure (A j) (C j)} (h : ∀ (j : J), Compatible (l j) (k j) (m j)) :

                      Products preserve compatibility of increasing triples.

                      The dimensionwise product of higher categories, including the empty product.

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

                        A projection from a dimensionwise product.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          def CategorialAlgebras.Heterogeneous.HigherCategory.productLift {I : Type i} [Preorder I] {J : Type v} {C : J → HigherCategory I} {D : HigherCategory I} (f : (j : J) → Functor D (C j)) :

                          The higher functor determined by its projections.

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

                            The fan of product projections.

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

                              The dimensionwise product satisfies the categorical universal property.

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

                                Finite dimensions and dimension $\omega$ #

                                @[reducible, inline]

                                A heterogeneous $n$-category has dimensions $0,\ldots,n$.

                                Equations
                                Instances For
                                  @[reducible, inline]

                                  In dimension $\omega$ every cell already has a dimension in its carrier.

                                  Equations
                                  Instances For