The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V24. Category theory

Mathlib.CategoryTheory.Profunctor.Bicategory

24 declarations. Mathlib docs · Source

theorem CategoryTheory.ProfCat.of.injEq E0 #

∀ (obj : Type u) [str : CategoryTheory.Category.{v, u} obj] (obj_1 : Type u)
  (str_1 : CategoryTheory.Category.{v, u} obj_1),
  ({ obj := obj, str := str } = { obj := obj_1, str := str_1 }) = (obj = obj_1 ∧ str ≍ str_1)

def CategoryTheory.ProfCat.ctorIdx E1 #

CategoryTheory.ProfCat → ℕ

theorem CategoryTheory.ProfCat.of.inj E1 #

∀ {obj : Type u} {str : CategoryTheory.Category.{v, u} obj} {obj_1 : Type u}
  {str_1 : CategoryTheory.Category.{v, u} obj_1},
  { obj := obj, str := str } = { obj := obj_1, str := str_1 } → obj = obj_1 ∧ str ≍ str_1

structure CategoryTheory.ProfCat E1 #

Type (max (u + 1) (v + 1))

The bicategory of categories where the 1-morphisms are profunctors.

ctor CategoryTheory.ProfCat.of E0 #

(obj : Type u) → [str : CategoryTheory.Category.{v, u} obj] → CategoryTheory.ProfCat

abbrev CategoryTheory.ProfCat.obj E1 #

CategoryTheory.ProfCat → Type u

The objects of the bicategory are types...

instance CategoryTheory.ProfCat.str E0 #

(self : CategoryTheory.ProfCat) → CategoryTheory.Category.{v, u} self.obj

... bundled with a category instance.

instance CategoryTheory.instCoeSortProfCatType E0 #

CoeSort CategoryTheory.ProfCat (Type u)

theorem CategoryTheory.ProfCat.of_obj E0 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C], { obj := C, str := inst }.obj = C

theorem CategoryTheory.ProfCat.coe_of E0 #

∀ (C : CategoryTheory.ProfCat), { obj := C.obj, str := C.str } = C

theorem CategoryTheory.Profunctor.pentagon E0 #

∀ {C D E F G : Type u} [inst : CategoryTheory.Category.{v_1, u} C] [inst_1 : CategoryTheory.Category.{v_2, u} D]
  [inst_2 : CategoryTheory.Category.{v_3, u} E] [inst_3 : CategoryTheory.Category.{v_4, u} F]
  [inst_4 : CategoryTheory.Category.{v_5, u} G] (P : CategoryTheory.Profunctor.{max u w, v_1, v_2, u, u} C D)
  (Q : CategoryTheory.Profunctor.{max u w, v_2, v_3, u, u} D E)
  (R : CategoryTheory.Profunctor.{max u w, v_3, v_4, u, u} E F)
  (S : CategoryTheory.Profunctor.{max u w, v_4, v_5, u, u} F G),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Profunctor.whiskerRight S (P.associator Q R).hom)
      (CategoryTheory.CategoryStruct.comp (P.associator (Q.comp R) S).hom (P.whiskerLeft (Q.associator R S).hom)) =
    CategoryTheory.CategoryStruct.comp ((P.comp Q).associator R S).hom (P.associator Q (R.comp S)).hom

theorem CategoryTheory.Profunctor.pentagon_assoc E0 #

∀ {C D E F G : Type u} [inst : CategoryTheory.Category.{v_1, u} C] [inst_1 : CategoryTheory.Category.{v_2, u} D]
  [inst_2 : CategoryTheory.Category.{v_3, u} E] [inst_3 : CategoryTheory.Category.{v_4, u} F]
  [inst_4 : CategoryTheory.Category.{v_5, u} G] (P : CategoryTheory.Profunctor.{max u w, v_1, v_2, u, u} C D)
  (Q : CategoryTheory.Profunctor.{max u w, v_2, v_3, u, u} D E)
  (R : CategoryTheory.Profunctor.{max u w, v_3, v_4, u, u} E F)
  (S : CategoryTheory.Profunctor.{max u w, v_4, v_5, u, u} F G)
  {Z : CategoryTheory.Profunctor.{max u w, v_1, v_5, u, u} C G} (h : P.comp (Q.comp (R.comp S)) ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Profunctor.whiskerRight S (P.associator Q R).hom)
      (CategoryTheory.CategoryStruct.comp (P.associator (Q.comp R) S).hom
        (CategoryTheory.CategoryStruct.comp (P.whiskerLeft (Q.associator R S).hom) h)) =
    CategoryTheory.CategoryStruct.comp ((P.comp Q).associator R S).hom
      (CategoryTheory.CategoryStruct.comp (P.associator Q (R.comp S)).hom h)

theorem CategoryTheory.Profunctor.triangle E0 #

∀ {C D E : Type u} [inst : CategoryTheory.Category.{v_1, u} C] [inst_1 : CategoryTheory.Category.{u, u} D]
  [inst_2 : CategoryTheory.Category.{v_2, u} E] (P : CategoryTheory.Profunctor.{u, v_1, u, u, u} C D)
  (Q : CategoryTheory.Profunctor.{u, u, v_2, u, u} D E),
  CategoryTheory.CategoryStruct.comp (P.associator CategoryTheory.Profunctor.id Q).hom
      (P.whiskerLeft Q.leftUnitor.hom) =
    CategoryTheory.Profunctor.whiskerRight Q P.rightUnitor.hom

theorem CategoryTheory.Profunctor.triangle_assoc E0 #

∀ {C D E : Type u} [inst : CategoryTheory.Category.{v_1, u} C] [inst_1 : CategoryTheory.Category.{u, u} D]
  [inst_2 : CategoryTheory.Category.{v_2, u} E] (P : CategoryTheory.Profunctor.{u, v_1, u, u, u} C D)
  (Q : CategoryTheory.Profunctor.{u, u, v_2, u, u} D E) {Z : CategoryTheory.Profunctor.{u, v_1, v_2, u, u} C E}
  (h : P.comp Q ⟶ Z),
  CategoryTheory.CategoryStruct.comp (P.associator CategoryTheory.Profunctor.id Q).hom
      (CategoryTheory.CategoryStruct.comp (P.whiskerLeft Q.leftUnitor.hom) h) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Profunctor.whiskerRight Q P.rightUnitor.hom) h

instance CategoryTheory.ProfCat.bicategory E0 #

CategoryTheory.Bicategory CategoryTheory.ProfCat

The bicategory of categories, profunctors, and natural transformations.

theorem CategoryTheory.ProfCat.bicategory_rightUnitor E0 #

∀ {a b : CategoryTheory.ProfCat} (P : CategoryTheory.Profunctor.{u, u, u, u, u} a.obj b.obj),
  CategoryTheory.Bicategory.rightUnitor P = P.rightUnitor

theorem CategoryTheory.ProfCat.bicategory_id E0 #

∀ (X : CategoryTheory.ProfCat), CategoryTheory.CategoryStruct.id X = CategoryTheory.Profunctor.id

theorem CategoryTheory.ProfCat.bicategory_whiskerRight E0 #

∀ {a b c : CategoryTheory.ProfCat} {f g : CategoryTheory.Profunctor.{u, u, u, u, u} a.obj b.obj} (f_1 : f ⟶ g)
  (R : CategoryTheory.Profunctor.{u, u, u, u, u} b.obj c.obj),
  CategoryTheory.Bicategory.whiskerRight f_1 R = CategoryTheory.Profunctor.whiskerRight R f_1

theorem CategoryTheory.ProfCat.bicategory_associator E0 #

∀ {a b c d : CategoryTheory.ProfCat} (P : CategoryTheory.Profunctor.{u, u, u, u, u} a.obj b.obj)
  (Q : CategoryTheory.Profunctor.{u, u, u, u, u} b.obj c.obj)
  (R : CategoryTheory.Profunctor.{u, u, u, u, u} c.obj d.obj),
  CategoryTheory.Bicategory.associator P Q R = P.associator Q R

theorem CategoryTheory.ProfCat.bicategory_leftUnitor E0 #

∀ {a b : CategoryTheory.ProfCat} (P : CategoryTheory.Profunctor.{u, u, u, u, u} a.obj b.obj),
  CategoryTheory.Bicategory.leftUnitor P = P.leftUnitor

theorem CategoryTheory.ProfCat.bicategory_comp E0 #

∀ {X Y Z : CategoryTheory.ProfCat} (P : CategoryTheory.Profunctor.{u, u, u, u, u} X.obj Y.obj)
  (Q : CategoryTheory.Profunctor.{u, u, u, u, u} Y.obj Z.obj), CategoryTheory.CategoryStruct.comp P Q = P.comp Q

theorem CategoryTheory.ProfCat.bicategory_whiskerLeft E0 #

∀ {x x_1 x_2 : CategoryTheory.ProfCat} (P : CategoryTheory.Profunctor.{u, u, u, u, u} x.obj x_1.obj)
  {x_3 x_4 : CategoryTheory.Profunctor.{u, u, u, u, u} x_1.obj x_2.obj} (f : x_3 ⟶ x_4),
  CategoryTheory.Bicategory.whiskerLeft P f = P.whiskerLeft f

theorem CategoryTheory.ProfCat.hom_ext E1 #

∀ {C D : CategoryTheory.ProfCat} {P Q : C ⟶ D} {η θ : P ⟶ Q},
  (∀ (X : C.obj) (Y : D.objᵒᵖ) (x : (P.obj X).obj Y),
      (CategoryTheory.ConcreteCategory.hom ((η.app X).app Y)) x =
        (CategoryTheory.ConcreteCategory.hom ((θ.app X).app Y)) x) →
    η = θ

Two 2-morphisms in ProfCat are equal if they agree on every element.

theorem CategoryTheory.ProfCat.hom_ext_iff E0 #

∀ {C D : CategoryTheory.ProfCat} {P Q : C ⟶ D} {η θ : P ⟶ Q},
  η = θ ↔
    ∀ (X : C.obj) (Y : D.objᵒᵖ) (x : (P.obj X).obj Y),
      (CategoryTheory.ConcreteCategory.hom ((η.app X).app Y)) x =
        (CategoryTheory.ConcreteCategory.hom ((θ.app X).app Y)) x