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.Bicategory.EqToHom

16 declarations. Mathlib docs · Source

def CategoryTheory.Bicategory.eqToHomTransIso E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {x y z : B} →
      (e₁ : x = y) →
        (e₂ : y = z) →
          CategoryTheory.eqToHom ⋯ ≅
            CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom e₁) (CategoryTheory.eqToHom e₂)

In a bicategory, eqToHoms do not compose strictly, but they do up to isomorphism.

theorem CategoryTheory.Bicategory.eqToHomTransIso_refl_refl E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] (x : B),
  CategoryTheory.Bicategory.eqToHomTransIso ⋯ ⋯ =
    (CategoryTheory.Bicategory.leftUnitor (CategoryTheory.CategoryStruct.id x)).symm

theorem CategoryTheory.Bicategory.eqToHomTransIso_refl_right E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {x y : B} (e₁ : x = y),
  CategoryTheory.Bicategory.eqToHomTransIso e₁ ⋯ =
    (CategoryTheory.Bicategory.rightUnitor (CategoryTheory.eqToHom e₁)).symm

theorem CategoryTheory.Bicategory.eqToHomTransIso_refl_left E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {x y : B} (e₁ : x = y),
  CategoryTheory.Bicategory.eqToHomTransIso ⋯ e₁ =
    (CategoryTheory.Bicategory.leftUnitor (CategoryTheory.eqToHom e₁)).symm

theorem CategoryTheory.Bicategory.associator_eqToHom_hom_assoc E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {x y z t : B} (e₁ : x = y) (e₂ : y = z) (e₃ : z = t) {Z : x ⟶ t}
  (h :
    CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom e₁)
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom e₂) (CategoryTheory.eqToHom e₃)) ⟶
      Z),
  CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Bicategory.associator (CategoryTheory.eqToHom e₁) (CategoryTheory.eqToHom e₂)
          (CategoryTheory.eqToHom e₃)).hom
      h =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Bicategory.whiskerRight (CategoryTheory.Bicategory.eqToHomTransIso e₁ e₂).inv
        (CategoryTheory.eqToHom e₃))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.eqToHomTransIso ⋯ e₃).inv
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.eqToHomTransIso e₁ ⋯).hom
          (CategoryTheory.CategoryStruct.comp
            (CategoryTheory.Bicategory.whiskerLeft (CategoryTheory.eqToHom e₁)
              (CategoryTheory.Bicategory.eqToHomTransIso e₂ e₃).hom)
            h)))

theorem CategoryTheory.Bicategory.associator_eqToHom_hom E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {x y z t : B} (e₁ : x = y) (e₂ : y = z) (e₃ : z = t),
  (CategoryTheory.Bicategory.associator (CategoryTheory.eqToHom e₁) (CategoryTheory.eqToHom e₂)
        (CategoryTheory.eqToHom e₃)).hom =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Bicategory.whiskerRight (CategoryTheory.Bicategory.eqToHomTransIso e₁ e₂).inv
        (CategoryTheory.eqToHom e₃))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.eqToHomTransIso ⋯ e₃).inv
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.eqToHomTransIso e₁ ⋯).hom
          (CategoryTheory.Bicategory.whiskerLeft (CategoryTheory.eqToHom e₁)
            (CategoryTheory.Bicategory.eqToHomTransIso e₂ e₃).hom)))

theorem CategoryTheory.Bicategory.associator_eqToHom_inv E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {x y z t : B} (e₁ : x = y) (e₂ : y = z) (e₃ : z = t),
  (CategoryTheory.Bicategory.associator (CategoryTheory.eqToHom e₁) (CategoryTheory.eqToHom e₂)
        (CategoryTheory.eqToHom e₃)).inv =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Bicategory.whiskerLeft (CategoryTheory.eqToHom e₁)
        (CategoryTheory.Bicategory.eqToHomTransIso e₂ e₃).inv)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.eqToHomTransIso e₁ ⋯).inv
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.eqToHomTransIso ⋯ e₃).hom
          (CategoryTheory.Bicategory.whiskerRight (CategoryTheory.Bicategory.eqToHomTransIso e₁ e₂).hom
            (CategoryTheory.eqToHom e₃))))

theorem CategoryTheory.Bicategory.associator_eqToHom_inv_assoc E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {x y z t : B} (e₁ : x = y) (e₂ : y = z) (e₃ : z = t) {Z : x ⟶ t}
  (h :
    CategoryTheory.CategoryStruct.comp
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom e₁) (CategoryTheory.eqToHom e₂))
        (CategoryTheory.eqToHom e₃) ⟶
      Z),
  CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Bicategory.associator (CategoryTheory.eqToHom e₁) (CategoryTheory.eqToHom e₂)
          (CategoryTheory.eqToHom e₃)).inv
      h =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Bicategory.whiskerLeft (CategoryTheory.eqToHom e₁)
        (CategoryTheory.Bicategory.eqToHomTransIso e₂ e₃).inv)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.eqToHomTransIso e₁ ⋯).inv
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.eqToHomTransIso ⋯ e₃).hom
          (CategoryTheory.CategoryStruct.comp
            (CategoryTheory.Bicategory.whiskerRight (CategoryTheory.Bicategory.eqToHomTransIso e₁ e₂).hom
              (CategoryTheory.eqToHom e₃))
            h)))

theorem CategoryTheory.Bicategory.associator_hom_congr E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {x y z t : B} {f f' : x ⟶ y} {g g' : y ⟶ z} {h h' : z ⟶ t}
  (ef : f = f') (eg : g = g') (eh : h = h'),
  (CategoryTheory.Bicategory.associator f g h).hom =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.associator f' g' h').hom
        (CategoryTheory.eqToHom ⋯))

theorem CategoryTheory.Bicategory.associator_inv_congr E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {x y z t : B} {f f' : x ⟶ y} {g g' : y ⟶ z} {h h' : z ⟶ t}
  (ef : f = f') (eg : g = g') (eh : h = h'),
  (CategoryTheory.Bicategory.associator f g h).inv =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.associator f' g' h').inv
        (CategoryTheory.eqToHom ⋯))

theorem CategoryTheory.Bicategory.congr_whiskerLeft E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {x y : B} {f f' : x ⟶ y} (h : f = f') {z : B} {g g' : y ⟶ z}
  (η : g ⟶ g'),
  CategoryTheory.Bicategory.whiskerLeft f η =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.whiskerLeft f' η) (CategoryTheory.eqToHom ⋯))

theorem CategoryTheory.Bicategory.whiskerRight_congr E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {y z : B} {g g' : y ⟶ z} (h : g = g') {x : B} {f f' : x ⟶ y}
  (η : f ⟶ f'),
  CategoryTheory.Bicategory.whiskerRight η g =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.whiskerRight η g') (CategoryTheory.eqToHom ⋯))

theorem CategoryTheory.Bicategory.leftUnitor_hom_congr E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {x y : B} {f f' : x ⟶ y} (h : f = f'),
  (CategoryTheory.Bicategory.leftUnitor f).hom =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Bicategory.whiskerLeft (CategoryTheory.CategoryStruct.id x) (CategoryTheory.eqToHom h))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor f').hom (CategoryTheory.eqToHom ⋯))

theorem CategoryTheory.Bicategory.leftUnitor_inv_congr E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {x y : B} {f f' : x ⟶ y} (h : f = f'),
  (CategoryTheory.Bicategory.leftUnitor f).inv =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom h)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor f').inv
        (CategoryTheory.Bicategory.whiskerLeft (CategoryTheory.CategoryStruct.id x) (CategoryTheory.eqToHom ⋯)))

theorem CategoryTheory.Bicategory.rightUnitor_hom_congr E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {x y : B} {f f' : x ⟶ y} (h : f = f'),
  (CategoryTheory.Bicategory.rightUnitor f).hom =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Bicategory.whiskerRight (CategoryTheory.eqToHom h) (CategoryTheory.CategoryStruct.id y))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor f').hom (CategoryTheory.eqToHom ⋯))

theorem CategoryTheory.Bicategory.rightUnitor_inv_congr E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {x y : B} {f f' : x ⟶ y} (h : f = f'),
  (CategoryTheory.Bicategory.rightUnitor f).inv =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom h)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor f').inv
        (CategoryTheory.Bicategory.whiskerRight (CategoryTheory.eqToHom ⋯) (CategoryTheory.CategoryStruct.id y)))