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.Adjunction.Basic

95 declarations. Mathlib docs · Source

Adjunctions in bicategories

For 1-morphisms f : a ⟶ b and g : b ⟶ a in a bicategory, an adjunction between f and g consists of a pair of 2-morphisms η : 𝟙 a ⟶ f ≫ g and ε : g ≫ f ⟶ 𝟙 b satisfying the triangle identities. The 2-morphism η is called the unit and ε is called the counit.

Main definitions

  • Bicategory.Adjunction: adjunctions between two 1-morphisms.
  • Bicategory.Equivalence: adjoint equivalences between two objects.
  • Bicategory.Equivalence.mkOfAdjointifyCounit: construct an adjoint equivalence from 2-isomorphisms η : 𝟙 a ≅ f ≫ g and ε : g ≫ f ≅ 𝟙 b, by upgrading ε to a counit.
  • Pseudofunctor.mapAdjunction: a pseudofunctor F carries an adjunction f ⊣ g between 1-morphisms to an adjunction F.map f ⊣ F.map g. An analogous definition is given for StrictPseudofunctor.

TODO

  • Bicategory.Equivalence.mkOfAdjointifyUnit: construct an adjoint equivalence from 2-isomorphisms η : 𝟙 a ≅ f ≫ g and ε : g ≫ f ≅ 𝟙 b, by upgrading η to a unit.

theorem CategoryTheory.Bicategory.RightAdjoint.mk.injEq E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {left : a ⟶ b} (right : b ⟶ a)
  (adj : CategoryTheory.Bicategory.Adjunction left right) (right_1 : b ⟶ a)
  (adj_1 : CategoryTheory.Bicategory.Adjunction left right_1),
  ({ right := right, adj := adj } = { right := right_1, adj := adj_1 }) = (right = right_1 ∧ adj ≍ adj_1)

def CategoryTheory.Bicategory.Equivalence.ctorIdx E1 #

{B : Type u₁} → {inst : CategoryTheory.Bicategory B} → {a b : B} → CategoryTheory.Bicategory.Equivalence a b → ℕ

theorem CategoryTheory.Bicategory.Adjunction.mk.inj E1 #

∀ {B : Type u₁} {inst : CategoryTheory.Bicategory B} {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  {unit : CategoryTheory.CategoryStruct.id a ⟶ CategoryTheory.CategoryStruct.comp f g}
  {counit : CategoryTheory.CategoryStruct.comp g f ⟶ CategoryTheory.CategoryStruct.id b}
  {left_triangle :
    autoParam
      (CategoryTheory.Bicategory.leftZigzag unit counit =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor f).hom
          (CategoryTheory.Bicategory.rightUnitor f).inv)
      CategoryTheory.Bicategory.Adjunction.left_triangle._autoParam}
  {right_triangle :
    autoParam
      (CategoryTheory.Bicategory.rightZigzag unit counit =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor g).hom
          (CategoryTheory.Bicategory.leftUnitor g).inv)
      CategoryTheory.Bicategory.Adjunction.right_triangle._autoParam}
  {unit_1 : CategoryTheory.CategoryStruct.id a ⟶ CategoryTheory.CategoryStruct.comp f g}
  {counit_1 : CategoryTheory.CategoryStruct.comp g f ⟶ CategoryTheory.CategoryStruct.id b}
  {left_triangle_1 :
    autoParam
      (CategoryTheory.Bicategory.leftZigzag unit_1 counit_1 =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor f).hom
          (CategoryTheory.Bicategory.rightUnitor f).inv)
      CategoryTheory.Bicategory.Adjunction.left_triangle._autoParam}
  {right_triangle_1 :
    autoParam
      (CategoryTheory.Bicategory.rightZigzag unit_1 counit_1 =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor g).hom
          (CategoryTheory.Bicategory.leftUnitor g).inv)
      CategoryTheory.Bicategory.Adjunction.right_triangle._autoParam},
  { unit := unit, counit := counit, left_triangle := left_triangle, right_triangle := right_triangle } =
      { unit := unit_1, counit := counit_1, left_triangle := left_triangle_1, right_triangle := right_triangle_1 } →
    unit = unit_1 ∧ counit = counit_1

theorem CategoryTheory.Bicategory.Adjunction.mk.injEq E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (unit : CategoryTheory.CategoryStruct.id a ⟶ CategoryTheory.CategoryStruct.comp f g)
  (counit : CategoryTheory.CategoryStruct.comp g f ⟶ CategoryTheory.CategoryStruct.id b)
  (left_triangle :
    autoParam
      (CategoryTheory.Bicategory.leftZigzag unit counit =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor f).hom
          (CategoryTheory.Bicategory.rightUnitor f).inv)
      CategoryTheory.Bicategory.Adjunction.left_triangle._autoParam)
  (right_triangle :
    autoParam
      (CategoryTheory.Bicategory.rightZigzag unit counit =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor g).hom
          (CategoryTheory.Bicategory.leftUnitor g).inv)
      CategoryTheory.Bicategory.Adjunction.right_triangle._autoParam)
  (unit_1 : CategoryTheory.CategoryStruct.id a ⟶ CategoryTheory.CategoryStruct.comp f g)
  (counit_1 : CategoryTheory.CategoryStruct.comp g f ⟶ CategoryTheory.CategoryStruct.id b)
  (left_triangle_1 :
    autoParam
      (CategoryTheory.Bicategory.leftZigzag unit_1 counit_1 =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor f).hom
          (CategoryTheory.Bicategory.rightUnitor f).inv)
      CategoryTheory.Bicategory.Adjunction.left_triangle._autoParam)
  (right_triangle_1 :
    autoParam
      (CategoryTheory.Bicategory.rightZigzag unit_1 counit_1 =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor g).hom
          (CategoryTheory.Bicategory.leftUnitor g).inv)
      CategoryTheory.Bicategory.Adjunction.right_triangle._autoParam),
  ({ unit := unit, counit := counit, left_triangle := left_triangle, right_triangle := right_triangle } =
      { unit := unit_1, counit := counit_1, left_triangle := left_triangle_1, right_triangle := right_triangle_1 }) =
    (unit = unit_1 ∧ counit = counit_1)

theorem CategoryTheory.Bicategory.LeftAdjoint.mk.injEq E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {right : b ⟶ a} (left : a ⟶ b)
  (adj : CategoryTheory.Bicategory.Adjunction left right) (left_1 : a ⟶ b)
  (adj_1 : CategoryTheory.Bicategory.Adjunction left_1 right),
  ({ left := left, adj := adj } = { left := left_1, adj := adj_1 }) = (left = left_1 ∧ adj ≍ adj_1)

theorem CategoryTheory.Bicategory.Equivalence.mk.inj E1 #

∀ {B : Type u₁} {inst : CategoryTheory.Bicategory B} {a b : B} {hom : a ⟶ b} {inv : b ⟶ a}
  {unit : CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp hom inv}
  {counit : CategoryTheory.CategoryStruct.comp inv hom ≅ CategoryTheory.CategoryStruct.id b}
  {left_triangle :
    autoParam
      (CategoryTheory.Bicategory.leftZigzagIso unit counit =
        CategoryTheory.Bicategory.leftUnitor hom ≪≫ (CategoryTheory.Bicategory.rightUnitor hom).symm)
      CategoryTheory.Bicategory.Equivalence.left_triangle._autoParam}
  {hom_1 : a ⟶ b} {inv_1 : b ⟶ a}
  {unit_1 : CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp hom_1 inv_1}
  {counit_1 : CategoryTheory.CategoryStruct.comp inv_1 hom_1 ≅ CategoryTheory.CategoryStruct.id b}
  {left_triangle_1 :
    autoParam
      (CategoryTheory.Bicategory.leftZigzagIso unit_1 counit_1 =
        CategoryTheory.Bicategory.leftUnitor hom_1 ≪≫ (CategoryTheory.Bicategory.rightUnitor hom_1).symm)
      CategoryTheory.Bicategory.Equivalence.left_triangle._autoParam},
  { hom := hom, inv := inv, unit := unit, counit := counit, left_triangle := left_triangle } =
      { hom := hom_1, inv := inv_1, unit := unit_1, counit := counit_1, left_triangle := left_triangle_1 } →
    hom = hom_1 ∧ inv = inv_1 ∧ unit ≍ unit_1 ∧ counit ≍ counit_1

def CategoryTheory.Bicategory.RightAdjoint.ctorIdx E1 #

{B : Type u₁} →
  {inst : CategoryTheory.Bicategory B} → {a b : B} → {left : a ⟶ b} → CategoryTheory.Bicategory.RightAdjoint left → ℕ

theorem CategoryTheory.Bicategory.LeftAdjoint.mk.inj E1 #

∀ {B : Type u₁} {inst : CategoryTheory.Bicategory B} {a b : B} {right : b ⟶ a} {left : a ⟶ b}
  {adj : CategoryTheory.Bicategory.Adjunction left right} {left_1 : a ⟶ b}
  {adj_1 : CategoryTheory.Bicategory.Adjunction left_1 right},
  { left := left, adj := adj } = { left := left_1, adj := adj_1 } → left = left_1 ∧ adj ≍ adj_1

theorem CategoryTheory.Bicategory.RightAdjoint.mk.inj E1 #

∀ {B : Type u₁} {inst : CategoryTheory.Bicategory B} {a b : B} {left : a ⟶ b} {right : b ⟶ a}
  {adj : CategoryTheory.Bicategory.Adjunction left right} {right_1 : b ⟶ a}
  {adj_1 : CategoryTheory.Bicategory.Adjunction left right_1},
  { right := right, adj := adj } = { right := right_1, adj := adj_1 } → right = right_1 ∧ adj ≍ adj_1

def CategoryTheory.Bicategory.LeftAdjoint.ctorIdx E1 #

{B : Type u₁} →
  {inst : CategoryTheory.Bicategory B} → {a b : B} → {right : b ⟶ a} → CategoryTheory.Bicategory.LeftAdjoint right → ℕ

theorem CategoryTheory.Bicategory.Equivalence.mk.injEq E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} (hom : a ⟶ b) (inv : b ⟶ a)
  (unit : CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp hom inv)
  (counit : CategoryTheory.CategoryStruct.comp inv hom ≅ CategoryTheory.CategoryStruct.id b)
  (left_triangle :
    autoParam
      (CategoryTheory.Bicategory.leftZigzagIso unit counit =
        CategoryTheory.Bicategory.leftUnitor hom ≪≫ (CategoryTheory.Bicategory.rightUnitor hom).symm)
      CategoryTheory.Bicategory.Equivalence.left_triangle._autoParam)
  (hom_1 : a ⟶ b) (inv_1 : b ⟶ a)
  (unit_1 : CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp hom_1 inv_1)
  (counit_1 : CategoryTheory.CategoryStruct.comp inv_1 hom_1 ≅ CategoryTheory.CategoryStruct.id b)
  (left_triangle_1 :
    autoParam
      (CategoryTheory.Bicategory.leftZigzagIso unit_1 counit_1 =
        CategoryTheory.Bicategory.leftUnitor hom_1 ≪≫ (CategoryTheory.Bicategory.rightUnitor hom_1).symm)
      CategoryTheory.Bicategory.Equivalence.left_triangle._autoParam),
  ({ hom := hom, inv := inv, unit := unit, counit := counit, left_triangle := left_triangle } =
      { hom := hom_1, inv := inv_1, unit := unit_1, counit := counit_1, left_triangle := left_triangle_1 }) =
    (hom = hom_1 ∧ inv = inv_1 ∧ unit ≍ unit_1 ∧ counit ≍ counit_1)

def CategoryTheory.Bicategory.Adjunction.ctorIdx E1 #

{B : Type u₁} →
  {inst : CategoryTheory.Bicategory B} →
    {a b : B} → {f : a ⟶ b} → {g : b ⟶ a} → CategoryTheory.Bicategory.Adjunction f g → ℕ

abbrev CategoryTheory.Bicategory.leftZigzag E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {f : a ⟶ b} →
        {g : b ⟶ a} →
          (CategoryTheory.CategoryStruct.id a ⟶ CategoryTheory.CategoryStruct.comp f g) →
            (CategoryTheory.CategoryStruct.comp g f ⟶ CategoryTheory.CategoryStruct.id b) →
              (CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.id a) f ⟶
                CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.id b))

The 2-morphism defined by the following pasting diagram:

a ------ ▸ a
  \    η      ◥   \
  f \   g  /       \ f
       ◢  /     ε      ◢
        b ------ ▸ b

abbrev CategoryTheory.Bicategory.rightZigzag E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {f : a ⟶ b} →
        {g : b ⟶ a} →
          (CategoryTheory.CategoryStruct.id a ⟶ CategoryTheory.CategoryStruct.comp f g) →
            (CategoryTheory.CategoryStruct.comp g f ⟶ CategoryTheory.CategoryStruct.id b) →
              (CategoryTheory.CategoryStruct.comp g (CategoryTheory.CategoryStruct.id a) ⟶
                CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.id b) g)

The 2-morphism defined by the following pasting diagram:

        a ------ ▸ a
       ◥  \     η      ◥
  g /      \ f     / g
  /    ε      ◢   /
b ------ ▸ b

theorem CategoryTheory.Bicategory.rightZigzag_idempotent_of_left_triangle E1 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (η : CategoryTheory.CategoryStruct.id a ⟶ CategoryTheory.CategoryStruct.comp f g)
  (ε : CategoryTheory.CategoryStruct.comp g f ⟶ CategoryTheory.CategoryStruct.id b),
  CategoryTheory.Bicategory.leftZigzag η ε =
      CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor f).hom
        (CategoryTheory.Bicategory.rightUnitor f).inv →
    CategoryTheory.bicategoricalComp (CategoryTheory.Bicategory.rightZigzag η ε)
        (CategoryTheory.Bicategory.rightZigzag η ε) =
      CategoryTheory.Bicategory.rightZigzag η ε

structure CategoryTheory.Bicategory.Adjunction E3 #

{B : Type u₁} → [inst : CategoryTheory.Bicategory B] → {a b : B} → (a ⟶ b) → (b ⟶ a) → Type w₁

Adjunction between two 1-morphisms.

theorem CategoryTheory.Bicategory.Adjunction.ext E1 #

∀ {B : Type u₁} {inst : CategoryTheory.Bicategory B} {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  {x y : CategoryTheory.Bicategory.Adjunction f g}, x.unit = y.unit → x.counit = y.counit → x = y

theorem CategoryTheory.Bicategory.Adjunction.ext_iff E0 #

∀ {B : Type u₁} {inst : CategoryTheory.Bicategory B} {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  {x y : CategoryTheory.Bicategory.Adjunction f g}, x = y ↔ x.unit = y.unit ∧ x.counit = y.counit

ctor CategoryTheory.Bicategory.Adjunction.mk E0 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {f : a ⟶ b} →
        {g : b ⟶ a} →
          (unit : CategoryTheory.CategoryStruct.id a ⟶ CategoryTheory.CategoryStruct.comp f g) →
            (counit : CategoryTheory.CategoryStruct.comp g f ⟶ CategoryTheory.CategoryStruct.id b) →
              autoParam
                  (CategoryTheory.Bicategory.leftZigzag unit counit =
                    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor f).hom
                      (CategoryTheory.Bicategory.rightUnitor f).inv)
                  CategoryTheory.Bicategory.Adjunction.left_triangle._autoParam →
                autoParam
                    (CategoryTheory.Bicategory.rightZigzag unit counit =
                      CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor g).hom
                        (CategoryTheory.Bicategory.leftUnitor g).inv)
                    CategoryTheory.Bicategory.Adjunction.right_triangle._autoParam →
                  CategoryTheory.Bicategory.Adjunction f g

abbrev CategoryTheory.Bicategory.Adjunction.unit E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {f : a ⟶ b} →
        {g : b ⟶ a} →
          CategoryTheory.Bicategory.Adjunction f g →
            (CategoryTheory.CategoryStruct.id a ⟶ CategoryTheory.CategoryStruct.comp f g)

The unit of an adjunction.

abbrev CategoryTheory.Bicategory.Adjunction.counit E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {f : a ⟶ b} →
        {g : b ⟶ a} →
          CategoryTheory.Bicategory.Adjunction f g →
            (CategoryTheory.CategoryStruct.comp g f ⟶ CategoryTheory.CategoryStruct.id b)

The counit of an adjunction.

theorem CategoryTheory.Bicategory.Adjunction.left_triangle E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (self : CategoryTheory.Bicategory.Adjunction f g),
  CategoryTheory.Bicategory.leftZigzag self.unit self.counit =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor f).hom
      (CategoryTheory.Bicategory.rightUnitor f).inv

The composition of the unit and the counit is equal to the identity up to unitors.

theorem CategoryTheory.Bicategory.Adjunction.right_triangle E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (self : CategoryTheory.Bicategory.Adjunction f g),
  CategoryTheory.Bicategory.rightZigzag self.unit self.counit =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor g).hom
      (CategoryTheory.Bicategory.leftUnitor g).inv

The composition of the unit and the counit is equal to the identity up to unitors.

def CategoryTheory.Bicategory.«term_⊣_» E1 #

Lean.TrailingParserDescr

Adjunction between two 1-morphisms.

def CategoryTheory.Bicategory.Adjunction.id E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    (a : B) →
      CategoryTheory.Bicategory.Adjunction (CategoryTheory.CategoryStruct.id a) (CategoryTheory.CategoryStruct.id a)

Adjunction between identities.

instance CategoryTheory.Bicategory.Adjunction.instInhabitedId E0 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a : B} →
      Inhabited
        (CategoryTheory.Bicategory.Adjunction (CategoryTheory.CategoryStruct.id a) (CategoryTheory.CategoryStruct.id a))

def CategoryTheory.Bicategory.Adjunction.compUnit E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b c : B} →
      {f₁ : a ⟶ b} →
        {g₁ : b ⟶ a} →
          {f₂ : b ⟶ c} →
            {g₂ : c ⟶ b} →
              CategoryTheory.Bicategory.Adjunction f₁ g₁ →
                CategoryTheory.Bicategory.Adjunction f₂ g₂ →
                  (CategoryTheory.CategoryStruct.id a ⟶
                    CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp f₁ f₂)
                      (CategoryTheory.CategoryStruct.comp g₂ g₁))

Auxiliary definition for Adjunction.comp.

def CategoryTheory.Bicategory.Adjunction.compCounit E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b c : B} →
      {f₁ : a ⟶ b} →
        {g₁ : b ⟶ a} →
          {f₂ : b ⟶ c} →
            {g₂ : c ⟶ b} →
              CategoryTheory.Bicategory.Adjunction f₁ g₁ →
                CategoryTheory.Bicategory.Adjunction f₂ g₂ →
                  (CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp g₂ g₁)
                      (CategoryTheory.CategoryStruct.comp f₁ f₂) ⟶
                    CategoryTheory.CategoryStruct.id c)

Auxiliary definition for Adjunction.comp.

theorem CategoryTheory.Bicategory.Adjunction.comp_left_triangle_aux E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b c : B} {f₁ : a ⟶ b} {g₁ : b ⟶ a} {f₂ : b ⟶ c} {g₂ : c ⟶ b}
  (adj₁ : CategoryTheory.Bicategory.Adjunction f₁ g₁) (adj₂ : CategoryTheory.Bicategory.Adjunction f₂ g₂),
  CategoryTheory.Bicategory.leftZigzag (adj₁.compUnit adj₂) (adj₁.compCounit adj₂) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Bicategory.leftUnitor (CategoryTheory.CategoryStruct.comp f₁ f₂)).hom
      (CategoryTheory.Bicategory.rightUnitor (CategoryTheory.CategoryStruct.comp f₁ f₂)).inv

theorem CategoryTheory.Bicategory.Adjunction.comp_right_triangle_aux E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b c : B} {f₁ : a ⟶ b} {g₁ : b ⟶ a} {f₂ : b ⟶ c} {g₂ : c ⟶ b}
  (adj₁ : CategoryTheory.Bicategory.Adjunction f₁ g₁) (adj₂ : CategoryTheory.Bicategory.Adjunction f₂ g₂),
  CategoryTheory.Bicategory.rightZigzag (adj₁.compUnit adj₂) (adj₁.compCounit adj₂) =
    CategoryTheory.CategoryStruct.comp
      (CategoryTheory.Bicategory.rightUnitor (CategoryTheory.CategoryStruct.comp g₂ g₁)).hom
      (CategoryTheory.Bicategory.leftUnitor (CategoryTheory.CategoryStruct.comp g₂ g₁)).inv

def CategoryTheory.Bicategory.Adjunction.comp E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b c : B} →
      {f₁ : a ⟶ b} →
        {g₁ : b ⟶ a} →
          {f₂ : b ⟶ c} →
            {g₂ : c ⟶ b} →
              CategoryTheory.Bicategory.Adjunction f₁ g₁ →
                CategoryTheory.Bicategory.Adjunction f₂ g₂ →
                  CategoryTheory.Bicategory.Adjunction (CategoryTheory.CategoryStruct.comp f₁ f₂)
                    (CategoryTheory.CategoryStruct.comp g₂ g₁)

Composition of adjunctions.

theorem CategoryTheory.Bicategory.Adjunction.comp_counit E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b c : B} {f₁ : a ⟶ b} {g₁ : b ⟶ a} {f₂ : b ⟶ c} {g₂ : c ⟶ b}
  (adj₁ : CategoryTheory.Bicategory.Adjunction f₁ g₁) (adj₂ : CategoryTheory.Bicategory.Adjunction f₂ g₂),
  (adj₁.comp adj₂).counit = adj₁.compCounit adj₂

theorem CategoryTheory.Bicategory.Adjunction.comp_unit E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b c : B} {f₁ : a ⟶ b} {g₁ : b ⟶ a} {f₂ : b ⟶ c} {g₂ : c ⟶ b}
  (adj₁ : CategoryTheory.Bicategory.Adjunction f₁ g₁) (adj₂ : CategoryTheory.Bicategory.Adjunction f₂ g₂),
  (adj₁.comp adj₂).unit = adj₁.compUnit adj₂

abbrev CategoryTheory.Bicategory.leftZigzagIso E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {f : a ⟶ b} →
        {g : b ⟶ a} →
          (CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp f g) →
            (CategoryTheory.CategoryStruct.comp g f ≅ CategoryTheory.CategoryStruct.id b) →
              (CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.id a) f ≅
                CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.id b))

The isomorphism version of leftZigzag.

abbrev CategoryTheory.Bicategory.rightZigzagIso E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {f : a ⟶ b} →
        {g : b ⟶ a} →
          (CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp f g) →
            (CategoryTheory.CategoryStruct.comp g f ≅ CategoryTheory.CategoryStruct.id b) →
              (CategoryTheory.CategoryStruct.comp g (CategoryTheory.CategoryStruct.id a) ≅
                CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.id b) g)

The isomorphism version of rightZigzag.

theorem CategoryTheory.Bicategory.leftZigzagIso_hom E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (η : CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp f g)
  (ε : CategoryTheory.CategoryStruct.comp g f ≅ CategoryTheory.CategoryStruct.id b),
  (CategoryTheory.Bicategory.leftZigzagIso η ε).hom = CategoryTheory.Bicategory.leftZigzag η.hom ε.hom

theorem CategoryTheory.Bicategory.rightZigzagIso_hom E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (η : CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp f g)
  (ε : CategoryTheory.CategoryStruct.comp g f ≅ CategoryTheory.CategoryStruct.id b),
  (CategoryTheory.Bicategory.rightZigzagIso η ε).hom = CategoryTheory.Bicategory.rightZigzag η.hom ε.hom

theorem CategoryTheory.Bicategory.leftZigzagIso_inv E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (η : CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp f g)
  (ε : CategoryTheory.CategoryStruct.comp g f ≅ CategoryTheory.CategoryStruct.id b),
  (CategoryTheory.Bicategory.leftZigzagIso η ε).inv = CategoryTheory.Bicategory.rightZigzag ε.inv η.inv

theorem CategoryTheory.Bicategory.rightZigzagIso_inv E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (η : CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp f g)
  (ε : CategoryTheory.CategoryStruct.comp g f ≅ CategoryTheory.CategoryStruct.id b),
  (CategoryTheory.Bicategory.rightZigzagIso η ε).inv = CategoryTheory.Bicategory.leftZigzag ε.inv η.inv

theorem CategoryTheory.Bicategory.leftZigzagIso_symm E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (η : CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp f g)
  (ε : CategoryTheory.CategoryStruct.comp g f ≅ CategoryTheory.CategoryStruct.id b),
  (CategoryTheory.Bicategory.leftZigzagIso η ε).symm = CategoryTheory.Bicategory.rightZigzagIso ε.symm η.symm

theorem CategoryTheory.Bicategory.rightZigzagIso_symm E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (η : CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp f g)
  (ε : CategoryTheory.CategoryStruct.comp g f ≅ CategoryTheory.CategoryStruct.id b),
  (CategoryTheory.Bicategory.rightZigzagIso η ε).symm = CategoryTheory.Bicategory.leftZigzagIso ε.symm η.symm

instance CategoryTheory.Bicategory.instIsIsoHomLeftZigzagHom E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (η : CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp f g)
  (ε : CategoryTheory.CategoryStruct.comp g f ≅ CategoryTheory.CategoryStruct.id b),
  CategoryTheory.IsIso (CategoryTheory.Bicategory.leftZigzag η.hom ε.hom)

instance CategoryTheory.Bicategory.instIsIsoHomRightZigzagHom E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (η : CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp f g)
  (ε : CategoryTheory.CategoryStruct.comp g f ≅ CategoryTheory.CategoryStruct.id b),
  CategoryTheory.IsIso (CategoryTheory.Bicategory.rightZigzag η.hom ε.hom)

theorem CategoryTheory.Bicategory.right_triangle_of_left_triangle E1 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (η : CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp f g)
  (ε : CategoryTheory.CategoryStruct.comp g f ≅ CategoryTheory.CategoryStruct.id b),
  CategoryTheory.Bicategory.leftZigzag η.hom ε.hom =
      CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor f).hom
        (CategoryTheory.Bicategory.rightUnitor f).inv →
    CategoryTheory.Bicategory.rightZigzag η.hom ε.hom =
      CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor g).hom
        (CategoryTheory.Bicategory.leftUnitor g).inv

def CategoryTheory.Bicategory.adjointifyCounit E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {f : a ⟶ b} →
        {g : b ⟶ a} →
          (CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp f g) →
            (CategoryTheory.CategoryStruct.comp g f ≅ CategoryTheory.CategoryStruct.id b) →
              (CategoryTheory.CategoryStruct.comp g f ≅ CategoryTheory.CategoryStruct.id b)

An auxiliary definition for mkOfAdjointifyCounit.

theorem CategoryTheory.Bicategory.adjointifyCounit_left_triangle E1 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (η : CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp f g)
  (ε : CategoryTheory.CategoryStruct.comp g f ≅ CategoryTheory.CategoryStruct.id b),
  CategoryTheory.Bicategory.leftZigzagIso η (CategoryTheory.Bicategory.adjointifyCounit η ε) =
    CategoryTheory.Bicategory.leftUnitor f ≪≫ (CategoryTheory.Bicategory.rightUnitor f).symm

structure CategoryTheory.Bicategory.Equivalence E3 #

{B : Type u₁} → [CategoryTheory.Bicategory B] → B → B → Type (max v₁ w₁)

Adjoint equivalences between two objects.

ctor CategoryTheory.Bicategory.Equivalence.mk E0 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      (hom : a ⟶ b) →
        (inv : b ⟶ a) →
          (unit : CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp hom inv) →
            (counit : CategoryTheory.CategoryStruct.comp inv hom ≅ CategoryTheory.CategoryStruct.id b) →
              autoParam
                  (CategoryTheory.Bicategory.leftZigzagIso unit counit =
                    CategoryTheory.Bicategory.leftUnitor hom ≪≫ (CategoryTheory.Bicategory.rightUnitor hom).symm)
                  CategoryTheory.Bicategory.Equivalence.left_triangle._autoParam →
                CategoryTheory.Bicategory.Equivalence a b

abbrev CategoryTheory.Bicategory.Equivalence.hom E1 #

{B : Type u₁} → [inst : CategoryTheory.Bicategory B] → {a b : B} → CategoryTheory.Bicategory.Equivalence a b → (a ⟶ b)

A 1-morphism in one direction.

abbrev CategoryTheory.Bicategory.Equivalence.inv E1 #

{B : Type u₁} → [inst : CategoryTheory.Bicategory B] → {a b : B} → CategoryTheory.Bicategory.Equivalence a b → (b ⟶ a)

A 1-morphism in the other direction.

abbrev CategoryTheory.Bicategory.Equivalence.unit E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      (self : CategoryTheory.Bicategory.Equivalence a b) →
        CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp self.hom self.inv

The composition hom ≫ inv is isomorphic to the identity.

abbrev CategoryTheory.Bicategory.Equivalence.counit E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      (self : CategoryTheory.Bicategory.Equivalence a b) →
        CategoryTheory.CategoryStruct.comp self.inv self.hom ≅ CategoryTheory.CategoryStruct.id b

The composition inv ≫ hom is isomorphic to the identity.

theorem CategoryTheory.Bicategory.Equivalence.left_triangle E1 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} (self : CategoryTheory.Bicategory.Equivalence a b),
  CategoryTheory.Bicategory.leftZigzagIso self.unit self.counit =
    CategoryTheory.Bicategory.leftUnitor self.hom ≪≫ (CategoryTheory.Bicategory.rightUnitor self.hom).symm

The composition of the unit and the counit is equal to the identity up to unitors.

def CategoryTheory.Bicategory.«term_≌_» E1 #

Lean.TrailingParserDescr

Adjoint equivalences between two objects.

def CategoryTheory.Bicategory.Equivalence.id E1 #

{B : Type u₁} → [inst : CategoryTheory.Bicategory B] → (a : B) → CategoryTheory.Bicategory.Equivalence a a

The identity 1-morphism is an equivalence.

instance CategoryTheory.Bicategory.Equivalence.instInhabited E0 #

{B : Type u₁} → [inst : CategoryTheory.Bicategory B] → {a : B} → Inhabited (CategoryTheory.Bicategory.Equivalence a a)

theorem CategoryTheory.Bicategory.Equivalence.left_triangle_hom E1 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} (e : CategoryTheory.Bicategory.Equivalence a b),
  CategoryTheory.Bicategory.leftZigzag e.unit.hom e.counit.hom =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor e.hom).hom
      (CategoryTheory.Bicategory.rightUnitor e.hom).inv

theorem CategoryTheory.Bicategory.Equivalence.right_triangle E1 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} (e : CategoryTheory.Bicategory.Equivalence a b),
  CategoryTheory.Bicategory.rightZigzagIso e.unit e.counit =
    CategoryTheory.Bicategory.rightUnitor e.inv ≪≫ (CategoryTheory.Bicategory.leftUnitor e.inv).symm

theorem CategoryTheory.Bicategory.Equivalence.right_triangle_hom E1 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} (e : CategoryTheory.Bicategory.Equivalence a b),
  CategoryTheory.Bicategory.rightZigzag e.unit.hom e.counit.hom =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor e.inv).hom
      (CategoryTheory.Bicategory.leftUnitor e.inv).inv

def CategoryTheory.Bicategory.Equivalence.mkOfAdjointifyCounit E3 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {f : a ⟶ b} →
        {g : b ⟶ a} →
          (CategoryTheory.CategoryStruct.id a ≅ CategoryTheory.CategoryStruct.comp f g) →
            (CategoryTheory.CategoryStruct.comp g f ≅ CategoryTheory.CategoryStruct.id b) →
              CategoryTheory.Bicategory.Equivalence a b

Construct an adjoint equivalence from 2-isomorphisms by upgrading ε to a counit.

def CategoryTheory.Bicategory.Equivalence.adj E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} → (e : CategoryTheory.Bicategory.Equivalence a b) → CategoryTheory.Bicategory.Adjunction e.hom e.inv

The adjunction induced by an equivalence in a bicategory.

theorem CategoryTheory.Bicategory.Equivalence.adj_counit E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} (e : CategoryTheory.Bicategory.Equivalence a b),
  e.adj.counit = e.counit.hom

theorem CategoryTheory.Bicategory.Equivalence.adj_unit E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} (e : CategoryTheory.Bicategory.Equivalence a b),
  e.adj.unit = e.unit.hom

structure CategoryTheory.Bicategory.RightAdjoint E1 #

{B : Type u₁} → [inst : CategoryTheory.Bicategory B] → {a b : B} → (a ⟶ b) → Type (max v₁ w₁)

A structure giving a chosen right adjoint of a 1-morphism left.

ctor CategoryTheory.Bicategory.RightAdjoint.mk E0 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {left : a ⟶ b} →
        (right : b ⟶ a) → CategoryTheory.Bicategory.Adjunction left right → CategoryTheory.Bicategory.RightAdjoint left

abbrev CategoryTheory.Bicategory.RightAdjoint.right E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} → {left : a ⟶ b} → CategoryTheory.Bicategory.RightAdjoint left → (b ⟶ a)

The right adjoint to left.

abbrev CategoryTheory.Bicategory.RightAdjoint.adj E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {left : a ⟶ b} →
        (self : CategoryTheory.Bicategory.RightAdjoint left) → CategoryTheory.Bicategory.Adjunction left self.right

The adjunction between left and right.

class CategoryTheory.Bicategory.IsLeftAdjoint E1 #

{B : Type u₁} → [inst : CategoryTheory.Bicategory B] → {a b : B} → (a ⟶ b) → Prop

The existence of a right adjoint of f.

ctor CategoryTheory.Bicategory.IsLeftAdjoint.mk' E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {left : a ⟶ b},
  Nonempty (CategoryTheory.Bicategory.RightAdjoint left) → CategoryTheory.Bicategory.IsLeftAdjoint left

theorem CategoryTheory.Bicategory.IsLeftAdjoint.nonempty E1 #

∀ {B : Type u₁} {inst : CategoryTheory.Bicategory B} {a b : B} {left : a ⟶ b}
  [self : CategoryTheory.Bicategory.IsLeftAdjoint left], Nonempty (CategoryTheory.Bicategory.RightAdjoint left)

theorem CategoryTheory.Bicategory.IsLeftAdjoint.mk E1 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (adj : CategoryTheory.Bicategory.Adjunction f g), CategoryTheory.Bicategory.IsLeftAdjoint f

def CategoryTheory.Bicategory.getRightAdjoint E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} → (f : a ⟶ b) → [CategoryTheory.Bicategory.IsLeftAdjoint f] → CategoryTheory.Bicategory.RightAdjoint f

Use the axiom of choice to extract a right adjoint from an IsLeftAdjoint instance.

def CategoryTheory.Bicategory.rightAdjoint E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] → {a b : B} → (f : a ⟶ b) → [CategoryTheory.Bicategory.IsLeftAdjoint f] → b ⟶ a

The right adjoint of a 1-morphism.

def CategoryTheory.Bicategory.Adjunction.ofIsLeftAdjoint E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      (f : a ⟶ b) →
        [inst_1 : CategoryTheory.Bicategory.IsLeftAdjoint f] →
          CategoryTheory.Bicategory.Adjunction f (CategoryTheory.Bicategory.rightAdjoint f)

Evidence that rightAdjoint f is a right adjoint of f.

structure CategoryTheory.Bicategory.LeftAdjoint E1 #

{B : Type u₁} → [inst : CategoryTheory.Bicategory B] → {a b : B} → (b ⟶ a) → Type (max v₁ w₁)

A structure giving a chosen left adjoint of a 1-morphism right.

ctor CategoryTheory.Bicategory.LeftAdjoint.mk E0 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {right : b ⟶ a} →
        (left : a ⟶ b) → CategoryTheory.Bicategory.Adjunction left right → CategoryTheory.Bicategory.LeftAdjoint right

abbrev CategoryTheory.Bicategory.LeftAdjoint.left E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} → {right : b ⟶ a} → CategoryTheory.Bicategory.LeftAdjoint right → (a ⟶ b)

The left adjoint to right.

abbrev CategoryTheory.Bicategory.LeftAdjoint.adj E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      {right : b ⟶ a} →
        (self : CategoryTheory.Bicategory.LeftAdjoint right) → CategoryTheory.Bicategory.Adjunction self.left right

The adjunction between left and right.

class CategoryTheory.Bicategory.IsRightAdjoint E1 #

{B : Type u₁} → [inst : CategoryTheory.Bicategory B] → {a b : B} → (b ⟶ a) → Prop

The existence of a left adjoint of right.

ctor CategoryTheory.Bicategory.IsRightAdjoint.mk' E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {right : b ⟶ a},
  Nonempty (CategoryTheory.Bicategory.LeftAdjoint right) → CategoryTheory.Bicategory.IsRightAdjoint right

theorem CategoryTheory.Bicategory.IsRightAdjoint.nonempty E1 #

∀ {B : Type u₁} {inst : CategoryTheory.Bicategory B} {a b : B} {right : b ⟶ a}
  [self : CategoryTheory.Bicategory.IsRightAdjoint right], Nonempty (CategoryTheory.Bicategory.LeftAdjoint right)

theorem CategoryTheory.Bicategory.IsRightAdjoint.mk E1 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {a b : B} {f : a ⟶ b} {g : b ⟶ a}
  (adj : CategoryTheory.Bicategory.Adjunction f g), CategoryTheory.Bicategory.IsRightAdjoint g

def CategoryTheory.Bicategory.getLeftAdjoint E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} → (f : b ⟶ a) → [CategoryTheory.Bicategory.IsRightAdjoint f] → CategoryTheory.Bicategory.LeftAdjoint f

Use the axiom of choice to extract a left adjoint from an IsRightAdjoint instance.

def CategoryTheory.Bicategory.leftAdjoint E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] → {a b : B} → (f : b ⟶ a) → [CategoryTheory.Bicategory.IsRightAdjoint f] → a ⟶ b

The left adjoint of a 1-morphism.

def CategoryTheory.Bicategory.Adjunction.ofIsRightAdjoint E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {a b : B} →
      (f : b ⟶ a) →
        [inst_1 : CategoryTheory.Bicategory.IsRightAdjoint f] →
          CategoryTheory.Bicategory.Adjunction (CategoryTheory.Bicategory.leftAdjoint f) f

Evidence that leftAdjoint f is a left adjoint of f.

theorem CategoryTheory.Pseudofunctor.leftZigzag_map E1 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {C : Type u₂} [inst_1 : CategoryTheory.Bicategory C] {a b : B}
  {f : a ⟶ b} {g : b ⟶ a} (F : CategoryTheory.Pseudofunctor B C) (adj : CategoryTheory.Bicategory.Adjunction f g),
  CategoryTheory.Bicategory.leftZigzag
      (CategoryTheory.CategoryStruct.comp (F.mapId a).inv
        (CategoryTheory.CategoryStruct.comp (F.map₂ adj.unit) (F.mapComp f g).hom))
      (CategoryTheory.CategoryStruct.comp (F.mapComp g f).inv
        (CategoryTheory.CategoryStruct.comp (F.map₂ adj.counit) (F.mapId b).hom)) =
    CategoryTheory.bicategoricalComp (CategoryTheory.Bicategory.whiskerRight (F.mapId a).inv (F.map f))
      (CategoryTheory.CategoryStruct.comp (F.mapComp (CategoryTheory.CategoryStruct.id a) f).inv
        (CategoryTheory.CategoryStruct.comp (F.map₂ (CategoryTheory.Bicategory.leftZigzag adj.unit adj.counit))
          (CategoryTheory.bicategoricalComp (F.mapComp f (CategoryTheory.CategoryStruct.id b)).hom
            (CategoryTheory.Bicategory.whiskerLeft (F.map f) (F.mapId b).hom))))

theorem CategoryTheory.Pseudofunctor.rightZigzag_map E1 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {C : Type u₂} [inst_1 : CategoryTheory.Bicategory C] {a b : B}
  {f : a ⟶ b} {g : b ⟶ a} (F : CategoryTheory.Pseudofunctor B C) (adj : CategoryTheory.Bicategory.Adjunction f g),
  CategoryTheory.Bicategory.rightZigzag
      (CategoryTheory.CategoryStruct.comp (F.mapId a).inv
        (CategoryTheory.CategoryStruct.comp (F.map₂ adj.unit) (F.mapComp f g).hom))
      (CategoryTheory.CategoryStruct.comp (F.mapComp g f).inv
        (CategoryTheory.CategoryStruct.comp (F.map₂ adj.counit) (F.mapId b).hom)) =
    CategoryTheory.bicategoricalComp (CategoryTheory.Bicategory.whiskerLeft (F.map g) (F.mapId a).inv)
      (CategoryTheory.CategoryStruct.comp (F.mapComp g (CategoryTheory.CategoryStruct.id a)).inv
        (CategoryTheory.CategoryStruct.comp (F.map₂ (CategoryTheory.Bicategory.rightZigzag adj.unit adj.counit))
          (CategoryTheory.bicategoricalComp (F.mapComp (CategoryTheory.CategoryStruct.id b) g).hom
            (CategoryTheory.Bicategory.whiskerRight (F.mapId b).hom (F.map g)))))

def CategoryTheory.Pseudofunctor.mapAdjunction E3 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {C : Type u₂} →
      [inst_1 : CategoryTheory.Bicategory C] →
        {a b : B} →
          {f : a ⟶ b} →
            {g : b ⟶ a} →
              (F : CategoryTheory.Pseudofunctor B C) →
                CategoryTheory.Bicategory.Adjunction f g → CategoryTheory.Bicategory.Adjunction (F.map f) (F.map g)

A pseudofunctor carries an adjunction f ⊣ g to an adjunction F.map f ⊣ F.map g.

theorem CategoryTheory.Pseudofunctor.mapAdjunction_unit E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {C : Type u₂} [inst_1 : CategoryTheory.Bicategory C] {a b : B}
  {f : a ⟶ b} {g : b ⟶ a} (F : CategoryTheory.Pseudofunctor B C) (adj : CategoryTheory.Bicategory.Adjunction f g),
  (F.mapAdjunction adj).unit =
    CategoryTheory.CategoryStruct.comp (F.mapId a).inv
      (CategoryTheory.CategoryStruct.comp (F.map₂ adj.unit) (F.mapComp f g).hom)

theorem CategoryTheory.Pseudofunctor.mapAdjunction_counit E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {C : Type u₂} [inst_1 : CategoryTheory.Bicategory C] {a b : B}
  {f : a ⟶ b} {g : b ⟶ a} (F : CategoryTheory.Pseudofunctor B C) (adj : CategoryTheory.Bicategory.Adjunction f g),
  (F.mapAdjunction adj).counit =
    CategoryTheory.CategoryStruct.comp (F.mapComp g f).inv
      (CategoryTheory.CategoryStruct.comp (F.map₂ adj.counit) (F.mapId b).hom)

def CategoryTheory.StrictPseudofunctor.mapAdjunction E1 #

{B : Type u₁} →
  [inst : CategoryTheory.Bicategory B] →
    {C : Type u₂} →
      [inst_1 : CategoryTheory.Bicategory C] →
        {a b : B} →
          {f : a ⟶ b} →
            {g : b ⟶ a} →
              (F : CategoryTheory.StrictPseudofunctor B C) →
                CategoryTheory.Bicategory.Adjunction f g → CategoryTheory.Bicategory.Adjunction (F.map f) (F.map g)

A strict pseudofunctor carries an adjunction f ⊣ g to an adjunction F.map f ⊣ F.map g.

theorem CategoryTheory.StrictPseudofunctor.mapAdjunction_unit E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {C : Type u₂} [inst_1 : CategoryTheory.Bicategory C] {a b : B}
  {f : a ⟶ b} {g : b ⟶ a} (F : CategoryTheory.StrictPseudofunctor B C) (adj : CategoryTheory.Bicategory.Adjunction f g),
  (F.mapAdjunction adj).unit =
    CategoryTheory.CategoryStruct.comp (F.mapId a).inv
      (CategoryTheory.CategoryStruct.comp (F.map₂ adj.unit) (F.mapComp f g).hom)

theorem CategoryTheory.StrictPseudofunctor.mapAdjunction_counit E0 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {C : Type u₂} [inst_1 : CategoryTheory.Bicategory C] {a b : B}
  {f : a ⟶ b} {g : b ⟶ a} (F : CategoryTheory.StrictPseudofunctor B C) (adj : CategoryTheory.Bicategory.Adjunction f g),
  (F.mapAdjunction adj).counit =
    CategoryTheory.CategoryStruct.comp (F.mapComp g f).inv
      (CategoryTheory.CategoryStruct.comp (F.map₂ adj.counit) (F.mapId b).hom)

theorem CategoryTheory.StrictPseudofunctor.mapAdjunction_unit' E1 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {C : Type u₂} [inst_1 : CategoryTheory.Bicategory C] {a b : B}
  {f : a ⟶ b} {g : b ⟶ a} (F : CategoryTheory.StrictPseudofunctor B C) (adj : CategoryTheory.Bicategory.Adjunction f g),
  (F.mapAdjunction adj).unit =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯)
      (CategoryTheory.CategoryStruct.comp (F.map₂ adj.unit) (CategoryTheory.eqToHom ⋯))

theorem CategoryTheory.StrictPseudofunctor.mapAdjunction_counit' E1 #

∀ {B : Type u₁} [inst : CategoryTheory.Bicategory B] {C : Type u₂} [inst_1 : CategoryTheory.Bicategory C] {a b : B}
  {f : a ⟶ b} {g : b ⟶ a} (F : CategoryTheory.StrictPseudofunctor B C) (adj : CategoryTheory.Bicategory.Adjunction f g),
  (F.mapAdjunction adj).counit =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯)
      (CategoryTheory.CategoryStruct.comp (F.map₂ adj.counit) (CategoryTheory.eqToHom ⋯))