Documentation

Mathlib.CategoryTheory.Bicategory.Coherence

The coherence theorem for bicategories #

In this file, we prove the coherence theorem for bicategories, stated in the following form: the free bicategory over any quiver is locally thin.

The proof is almost the same as the proof of the coherence theorem for monoidal categories that has been previously formalized in mathlib, which is based on the proof described by Ilya Beylin and Peter Dybjer. The idea is to view a path on a quiver as a normal form of a 1-morphism in the free bicategory on the same quiver. A normalization procedure is then described by normalize : FreeBicategory B ⥤ᵖ (LocallyDiscrete (Paths B)), which is a pseudofunctor from the free bicategory to the locally discrete bicategory on the path category. It turns out that this pseudofunctor is locally an equivalence of categories, and the coherence theorem follows immediately from this fact.

Main statements #

References #

Auxiliary definition for inclusionPath.

Instances For
    @[implicit_reducible]

    Category structure on Hom a b. In this file, we will use Hom a b for a b : B (precisely, FreeBicategory.Hom a b) instead of the definitionally equal expression a ⟶ b for a b : FreeBicategory B. The main reason is that we have to annoyingly write @Quiver.Hom (FreeBicategory B) _ a b to get the latter expression when given a b : B.

    Instances For

      The discrete category on the paths includes into the category of 1-morphisms in the free bicategory.

      Instances For

        The inclusion from the locally discrete bicategory on the path category into the free bicategory as a prelax functor. This will be promoted to a pseudofunctor after proving the coherence theorem. See inclusion.

        Instances For
          @[simp]
          theorem CategoryTheory.FreeBicategory.preinclusion_map₂ {B : Type u} [Quiver B] {a b : B} (f g : Discrete (Quiver.Path a b)) (η : f g) :
          def CategoryTheory.FreeBicategory.normalizeAux {B : Type u} [Quiver B] {a b c : B} :
          Quiver.Path a bHom b cQuiver.Path a c

          The normalization of the composition of p : Path a b and f : Hom b c. p will eventually be taken to be nil and we then get the normalization of f alone, but the auxiliary p is necessary for Lean to accept the definition of normalizeIso and the whisker_left case of normalizeAux_congr and normalize_naturality.

          Instances For
            def CategoryTheory.FreeBicategory.normalizeIso {B : Type u} [Quiver B] {a b c : B} (p : Quiver.Path a b) (f : Hom b c) :

            A 2-isomorphism between a partially-normalized 1-morphism in the free bicategory to the fully-normalized 1-morphism.

            Instances For
              theorem CategoryTheory.FreeBicategory.normalizeAux_congr {B : Type u} [Quiver B] {a b c : B} (p : Quiver.Path a b) {f g : Hom b c} (η : f g) :

              Given a 2-morphism between f and g in the free bicategory, we have the equality normalizeAux p f = normalizeAux p g.

              The 2-isomorphism normalizeIso p f is natural in f.

              The normalization pseudofunctor for the free bicategory on a quiver B.

              Instances For

                Normalization as an equivalence of categories.

                Instances For

                  The coherence theorem for bicategories.

                  def CategoryTheory.FreeBicategory.inclusionMapCompAux {B : Type u} [Quiver B] {a b c : B} (f : Quiver.Path a b) (g : Quiver.Path b c) :
                  (preinclusion B).map (CategoryStruct.comp { as := f } { as := g }) CategoryStruct.comp ((preinclusion B).map { as := f }) ((preinclusion B).map { as := g })

                  Auxiliary definition for inclusion.

                  Instances For

                    The inclusion pseudofunctor from the locally discrete bicategory on the path category into the free bicategory.

                    Instances For