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.Mate

64 declarations. Mathlib docs · Source

Mates in bicategories

This file establishes the bijection between the 2-cells

         l₁                  r₁
      c --→ d             c ←-- d
    g ↓  ↗  ↓ h         g ↓  ↘  ↓ h
      e --→ f             e ←-- f
         l₂                  r₂

where l₁ ⊣ r₁ and l₂ ⊣ r₂. The corresponding 2-morphisms are called mates.

For the bicategory Cat, the definitions in this file are provided in Mathlib/CategoryTheory/Adjunction/Mates.lean, where you can find more detailed documentation about mates.

Implementation

The correspondence between mates is obtained by combining bijections of the form (g ⟶ l ≫ h) ≃ (r ≫ g ⟶ h) and (g ≫ l ⟶ h) ≃ (g ⟶ h ≫ r) when l ⊣ r is an adjunction. Indeed, g ≫ l₂ ⟶ l₁ ≫ h identifies to g ⟶ (l₁ ≫ h) ≫ r₂ by using the second bijection applied to l₂ ⊣ r₂, and this identifies to r₁ ≫ g ⟶ h ≫ r₂ by using the first bijection applied to l₁ ⊣ r₁.

Remarks

To be precise, the definitions in Mathlib/CategoryTheory/Adjunction/Mates.lean are universe polymorphic, so they are not simple specializations of the definitions in this file.

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

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

def CategoryTheory.Bicategory.Adjunction.homEquiv₁ E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {b c d : B} →
      {l : b ⟶ c} →
        {r : c ⟶ b} →
          CategoryTheory.Bicategory.Adjunction l r →
            {g : b ⟶ d} →
              {h : c ⟶ d} → (g ⟶ CategoryTheory.CategoryStruct.comp l h) ≃ (CategoryTheory.CategoryStruct.comp r g ⟶ h)

The bijection (g ⟶ l ≫ h) ≃ (r ≫ g ⟶ h) induced by an adjunction l ⊣ r in a bicategory.

theorem CategoryTheory.Bicategory.Adjunction.homEquiv₁_apply E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {b c d : B} {l : b ⟶ c} {r : c ⟶ b}
  (adj : CategoryTheory.Bicategory.Adjunction l r) {g : b ⟶ d} {h : c ⟶ d}
  (γ : g ⟶ CategoryTheory.CategoryStruct.comp l h),
  adj.homEquiv₁ γ =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.whiskerLeft r γ)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.associator r l h).inv
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.whiskerRight adj.counit h)
          (CategoryTheory.Bicategory.leftUnitor h).hom))

theorem CategoryTheory.Bicategory.Adjunction.homEquiv₁_symm_apply E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {b c d : B} {l : b ⟶ c} {r : c ⟶ b}
  (adj : CategoryTheory.Bicategory.Adjunction l r) {g : b ⟶ d} {h : c ⟶ d}
  (β : CategoryTheory.CategoryStruct.comp r g ⟶ h),
  adj.homEquiv₁.symm β =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor g).inv
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.whiskerRight adj.unit g)
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.associator l r g).hom
          (CategoryTheory.Bicategory.whiskerLeft l β)))

def CategoryTheory.Bicategory.Adjunction.homEquiv₂ E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b c : B} →
      {l : b ⟶ c} →
        {r : c ⟶ b} →
          CategoryTheory.Bicategory.Adjunction l r →
            {g : a ⟶ b} →
              {h : a ⟶ c} → (CategoryTheory.CategoryStruct.comp g l ⟶ h) ≃ (g ⟶ CategoryTheory.CategoryStruct.comp h r)

The bijection (g ≫ l ⟶ h) ≃ (g ⟶ h ≫ r) induced by an adjunction l ⊣ r in a bicategory.

theorem CategoryTheory.Bicategory.Adjunction.homEquiv₂_symm_apply E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c : B} {l : b ⟶ c} {r : c ⟶ b}
  (adj : CategoryTheory.Bicategory.Adjunction l r) {g : a ⟶ b} {h : a ⟶ c}
  (γ : g ⟶ CategoryTheory.CategoryStruct.comp h r),
  adj.homEquiv₂.symm γ =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.whiskerRight γ l)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.associator h r l).hom
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.whiskerLeft h adj.counit)
          (CategoryTheory.Bicategory.rightUnitor h).hom))

theorem CategoryTheory.Bicategory.Adjunction.homEquiv₂_apply E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c : B} {l : b ⟶ c} {r : c ⟶ b}
  (adj : CategoryTheory.Bicategory.Adjunction l r) {g : a ⟶ b} {h : a ⟶ c}
  (α : CategoryTheory.CategoryStruct.comp g l ⟶ h),
  adj.homEquiv₂ α =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor g).inv
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.whiskerLeft g adj.unit)
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.associator g l r).inv
          (CategoryTheory.Bicategory.whiskerRight α r)))

def CategoryTheory.Bicategory.mateEquiv E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {c d e f : B} →
      {g : c ⟶ e} →
        {h : d ⟶ f} →
          {l₁ : c ⟶ d} →
            {r₁ : d ⟶ c} →
              {l₂ : e ⟶ f} →
                {r₂ : f ⟶ e} →
                  CategoryTheory.Bicategory.Adjunction l₁ r₁ →
                    CategoryTheory.Bicategory.Adjunction l₂ r₂ →
                      (CategoryTheory.CategoryStruct.comp g l₂ ⟶ CategoryTheory.CategoryStruct.comp l₁ h) ≃
                        (CategoryTheory.CategoryStruct.comp r₁ g ⟶ CategoryTheory.CategoryStruct.comp h r₂)

Suppose we have a square of 1-morphisms (where the top and bottom are adjunctions l₁ ⊣ r₁ and l₂ ⊣ r₂ respectively).

      c ↔ d
    g ↓   ↓ h
      e ↔ f

Then we have a bijection between 2-morphisms g ≫ l₂ ⟶ l₁ ≫ h and r₁ ≫ g ⟶ h ≫ r₂. This can be seen as a bijection of the 2-cells:

         l₁                  r₁
      c --→ d             c ←-- d
    g ↓  ↗  ↓ h         g ↓  ↘  ↓ h
      e --→ f             e ←-- f
         l₂                  r₂

Note that if one of the 2-morphisms is an iso, it does not imply the other is an iso.

theorem CategoryTheory.Bicategory.mateEquiv_symm_apply E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d e f : B} {g : c ⟶ e} {h : d ⟶ f} {l₁ : c ⟶ d} {r₁ : d ⟶ c}
  {l₂ : e ⟶ f} {r₂ : f ⟶ e} (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁)
  (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂)
  (a : CategoryTheory.CategoryStruct.comp r₁ g ⟶ CategoryTheory.CategoryStruct.comp h r₂),
  (CategoryTheory.Bicategory.mateEquiv adj₁ adj₂).symm a =
    adj₂.homEquiv₂.symm
      (CategoryTheory.CategoryStruct.comp (adj₁.homEquiv₁.symm a) (CategoryTheory.Bicategory.associator l₁ h r₂).inv)

theorem CategoryTheory.Bicategory.mateEquiv_apply E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d e f : B} {g : c ⟶ e} {h : d ⟶ f} {l₁ : c ⟶ d} {r₁ : d ⟶ c}
  {l₂ : e ⟶ f} {r₂ : f ⟶ e} (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁)
  (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂)
  (a : CategoryTheory.CategoryStruct.comp g l₂ ⟶ CategoryTheory.CategoryStruct.comp l₁ h),
  (CategoryTheory.Bicategory.mateEquiv adj₁ adj₂) a =
    adj₁.homEquiv₁
      (CategoryTheory.CategoryStruct.comp (adj₂.homEquiv₂ a) (CategoryTheory.Bicategory.associator l₁ h r₂).hom)

theorem CategoryTheory.Bicategory.mateEquiv_eq_iff E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d e f : B} {g : c ⟶ e} {h : d ⟶ f} {l₁ : c ⟶ d} {r₁ : d ⟶ c}
  {l₂ : e ⟶ f} {r₂ : f ⟶ e} (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁)
  (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂)
  (α : CategoryTheory.CategoryStruct.comp g l₂ ⟶ CategoryTheory.CategoryStruct.comp l₁ h)
  (β : CategoryTheory.CategoryStruct.comp r₁ g ⟶ CategoryTheory.CategoryStruct.comp h r₂),
  (CategoryTheory.Bicategory.mateEquiv adj₁ adj₂) α = β ↔
    adj₁.homEquiv₁.symm β =
      CategoryTheory.CategoryStruct.comp (adj₂.homEquiv₂ α) (CategoryTheory.Bicategory.associator l₁ h r₂).hom

theorem CategoryTheory.Bicategory.mateEquiv_apply' E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d e f : B} {g : c ⟶ e} {h : d ⟶ f} {l₁ : c ⟶ d} {r₁ : d ⟶ c}
  {l₂ : e ⟶ f} {r₂ : f ⟶ e} (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁)
  (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂)
  (α : CategoryTheory.CategoryStruct.comp g l₂ ⟶ CategoryTheory.CategoryStruct.comp l₁ h),
  (CategoryTheory.Bicategory.mateEquiv adj₁ adj₂) α =
    CategoryTheory.bicategoricalComp (CategoryTheory.CategoryStruct.id (CategoryTheory.CategoryStruct.comp r₁ g))
      (CategoryTheory.bicategoricalComp
        (CategoryTheory.Bicategory.whiskerLeft r₁ (CategoryTheory.Bicategory.whiskerLeft g adj₂.unit))
        (CategoryTheory.bicategoricalComp
          (CategoryTheory.Bicategory.whiskerLeft r₁ (CategoryTheory.Bicategory.whiskerRight α r₂))
          (CategoryTheory.bicategoricalComp
            (CategoryTheory.Bicategory.whiskerRight (CategoryTheory.Bicategory.whiskerRight adj₁.counit h) r₂)
            (CategoryTheory.CategoryStruct.id (CategoryTheory.CategoryStruct.comp h r₂)))))

theorem CategoryTheory.Bicategory.mateEquiv_symm_apply' E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d e f : B} {g : c ⟶ e} {h : d ⟶ f} {l₁ : c ⟶ d} {r₁ : d ⟶ c}
  {l₂ : e ⟶ f} {r₂ : f ⟶ e} (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁)
  (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂)
  (β : CategoryTheory.CategoryStruct.comp r₁ g ⟶ CategoryTheory.CategoryStruct.comp h r₂),
  (CategoryTheory.Bicategory.mateEquiv adj₁ adj₂).symm β =
    CategoryTheory.bicategoricalComp (CategoryTheory.CategoryStruct.id (CategoryTheory.CategoryStruct.comp g l₂))
      (CategoryTheory.bicategoricalComp
        (CategoryTheory.Bicategory.whiskerRight (CategoryTheory.Bicategory.whiskerRight adj₁.unit g) l₂)
        (CategoryTheory.bicategoricalComp
          (CategoryTheory.Bicategory.whiskerLeft l₁ (CategoryTheory.Bicategory.whiskerRight β l₂))
          (CategoryTheory.bicategoricalComp
            (CategoryTheory.Bicategory.whiskerLeft l₁ (CategoryTheory.Bicategory.whiskerLeft h adj₂.counit))
            (CategoryTheory.CategoryStruct.id (CategoryTheory.CategoryStruct.comp l₁ h)))))

theorem CategoryTheory.Bicategory.mateEquiv_id_comp_right E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d : B} {l₁ : a ⟶ b} {r₁ : b ⟶ a}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) {l₂ : c ⟶ d} {r₂ : d ⟶ c}
  (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) {f : a ⟶ c} {g : b ⟶ d}
  (φ :
    CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.id c) l₂) ⟶
      CategoryTheory.CategoryStruct.comp l₁ g),
  (CategoryTheory.Bicategory.mateEquiv adj₁ ((CategoryTheory.Bicategory.Adjunction.id c).comp adj₂)) φ =
    CategoryTheory.CategoryStruct.comp
      ((CategoryTheory.Bicategory.mateEquiv adj₁ adj₂)
        (CategoryTheory.CategoryStruct.comp
          (CategoryTheory.Bicategory.whiskerLeft f (CategoryTheory.Bicategory.leftUnitor l₂).inv) φ))
      (CategoryTheory.CategoryStruct.comp
        (CategoryTheory.Bicategory.rightUnitor (CategoryTheory.CategoryStruct.comp g r₂)).inv
        (CategoryTheory.Bicategory.associator g r₂ (CategoryTheory.CategoryStruct.id c)).hom)

theorem CategoryTheory.Bicategory.mateEquiv_comp_id_right E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d : B} {l₁ : a ⟶ b} {r₁ : b ⟶ a}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) {l₂ : c ⟶ d} {r₂ : d ⟶ c}
  (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) {f : a ⟶ c} {g : b ⟶ d}
  (φ :
    CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.comp l₂ (CategoryTheory.CategoryStruct.id d)) ⟶
      CategoryTheory.CategoryStruct.comp l₁ g),
  (CategoryTheory.Bicategory.mateEquiv adj₁ (adj₂.comp (CategoryTheory.Bicategory.Adjunction.id d))) φ =
    CategoryTheory.CategoryStruct.comp
      ((CategoryTheory.Bicategory.mateEquiv adj₁ adj₂)
        (CategoryTheory.CategoryStruct.comp
          (CategoryTheory.Bicategory.rightUnitor (CategoryTheory.CategoryStruct.comp f l₂)).inv
          (CategoryTheory.CategoryStruct.comp
            (CategoryTheory.Bicategory.associator f l₂ (CategoryTheory.CategoryStruct.id d)).hom φ)))
      (CategoryTheory.Bicategory.whiskerLeft g (CategoryTheory.Bicategory.leftUnitor r₂).inv)

def CategoryTheory.Bicategory.leftAdjointSquare.vcomp E1 #

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

Squares between left adjoints can be composed "vertically" by pasting.

def CategoryTheory.Bicategory.rightAdjointSquare.vcomp E1 #

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

Squares between right adjoints can be composed "vertically" by pasting.

theorem CategoryTheory.Bicategory.mateEquiv_vcomp E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d e f : B} {g₁ : a ⟶ c} {g₂ : c ⟶ e} {h₁ : b ⟶ d}
  {h₂ : d ⟶ f} {l₁ : a ⟶ b} {r₁ : b ⟶ a} {l₂ : c ⟶ d} {r₂ : d ⟶ c} {l₃ : e ⟶ f} {r₃ : f ⟶ e}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂)
  (adj₃ : CategoryTheory.Bicategory.Adjunction l₃ r₃)
  (α : CategoryTheory.CategoryStruct.comp g₁ l₂ ⟶ CategoryTheory.CategoryStruct.comp l₁ h₁)
  (β : CategoryTheory.CategoryStruct.comp g₂ l₃ ⟶ CategoryTheory.CategoryStruct.comp l₂ h₂),
  (CategoryTheory.Bicategory.mateEquiv adj₁ adj₃) (CategoryTheory.Bicategory.leftAdjointSquare.vcomp α β) =
    CategoryTheory.Bicategory.rightAdjointSquare.vcomp ((CategoryTheory.Bicategory.mateEquiv adj₁ adj₂) α)
      ((CategoryTheory.Bicategory.mateEquiv adj₂ adj₃) β)

The mates equivalence commutes with vertical composition.

def CategoryTheory.Bicategory.leftAdjointSquare.hcomp E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b c d e f : B} →
      {g : a ⟶ d} →
        {h : b ⟶ e} →
          {k : c ⟶ f} →
            {l₁ : a ⟶ b} →
              {l₂ : d ⟶ e} →
                {l₃ : b ⟶ c} →
                  {l₄ : e ⟶ f} →
                    (CategoryTheory.CategoryStruct.comp g l₂ ⟶ CategoryTheory.CategoryStruct.comp l₁ h) →
                      (CategoryTheory.CategoryStruct.comp h l₄ ⟶ CategoryTheory.CategoryStruct.comp l₃ k) →
                        (CategoryTheory.CategoryStruct.comp g (CategoryTheory.CategoryStruct.comp l₂ l₄) ⟶
                          CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp l₁ l₃) k)

Squares between left adjoints can be composed "horizontally" by pasting.

def CategoryTheory.Bicategory.rightAdjointSquare.hcomp E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b c d e f : B} →
      {g : a ⟶ d} →
        {h : b ⟶ e} →
          {k : c ⟶ f} →
            {r₁ : b ⟶ a} →
              {r₂ : e ⟶ d} →
                {r₃ : c ⟶ b} →
                  {r₄ : f ⟶ e} →
                    (CategoryTheory.CategoryStruct.comp r₁ g ⟶ CategoryTheory.CategoryStruct.comp h r₂) →
                      (CategoryTheory.CategoryStruct.comp r₃ h ⟶ CategoryTheory.CategoryStruct.comp k r₄) →
                        (CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp r₃ r₁) g ⟶
                          CategoryTheory.CategoryStruct.comp k (CategoryTheory.CategoryStruct.comp r₄ r₂))

Squares between right adjoints can be composed "horizontally" by pasting.

theorem CategoryTheory.Bicategory.mateEquiv_hcomp E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d e f : B} {g : a ⟶ d} {h : b ⟶ e} {k : c ⟶ f} {l₁ : a ⟶ b}
  {r₁ : b ⟶ a} {l₂ : d ⟶ e} {r₂ : e ⟶ d} {l₃ : b ⟶ c} {r₃ : c ⟶ b} {l₄ : e ⟶ f} {r₄ : f ⟶ e}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂)
  (adj₃ : CategoryTheory.Bicategory.Adjunction l₃ r₃) (adj₄ : CategoryTheory.Bicategory.Adjunction l₄ r₄)
  (α : CategoryTheory.CategoryStruct.comp g l₂ ⟶ CategoryTheory.CategoryStruct.comp l₁ h)
  (β : CategoryTheory.CategoryStruct.comp h l₄ ⟶ CategoryTheory.CategoryStruct.comp l₃ k),
  (CategoryTheory.Bicategory.mateEquiv (adj₁.comp adj₃) (adj₂.comp adj₄))
      (CategoryTheory.Bicategory.leftAdjointSquare.hcomp α β) =
    CategoryTheory.Bicategory.rightAdjointSquare.hcomp ((CategoryTheory.Bicategory.mateEquiv adj₁ adj₂) α)
      ((CategoryTheory.Bicategory.mateEquiv adj₃ adj₄) β)

The mates equivalence commutes with horizontal composition of squares.

def CategoryTheory.Bicategory.leftAdjointSquare.comp E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b c d e f x y z : B} →
      {g₁ : a ⟶ d} →
        {h₁ : b ⟶ e} →
          {k₁ : c ⟶ f} →
            {g₂ : d ⟶ x} →
              {h₂ : e ⟶ y} →
                {k₂ : f ⟶ z} →
                  {l₁ : a ⟶ b} →
                    {l₂ : b ⟶ c} →
                      {l₃ : d ⟶ e} →
                        {l₄ : e ⟶ f} →
                          {l₅ : x ⟶ y} →
                            {l₆ : y ⟶ z} →
                              (CategoryTheory.CategoryStruct.comp g₁ l₃ ⟶ CategoryTheory.CategoryStruct.comp l₁ h₁) →
                                (CategoryTheory.CategoryStruct.comp h₁ l₄ ⟶ CategoryTheory.CategoryStruct.comp l₂ k₁) →
                                  (CategoryTheory.CategoryStruct.comp g₂ l₅ ⟶
                                      CategoryTheory.CategoryStruct.comp l₃ h₂) →
                                    (CategoryTheory.CategoryStruct.comp h₂ l₆ ⟶
                                        CategoryTheory.CategoryStruct.comp l₄ k₂) →
                                      (CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp g₁ g₂)
                                          (CategoryTheory.CategoryStruct.comp l₅ l₆) ⟶
                                        CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp l₁ l₂)
                                          (CategoryTheory.CategoryStruct.comp k₁ k₂))

A square of squares between left adjoints can be composed by iterating vertical and horizontal composition.

theorem CategoryTheory.Bicategory.leftAdjointSquare.comp_vhcomp E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d e f x y z : B} {g₁ : a ⟶ d} {h₁ : b ⟶ e} {k₁ : c ⟶ f}
  {g₂ : d ⟶ x} {h₂ : e ⟶ y} {k₂ : f ⟶ z} {l₁ : a ⟶ b} {l₂ : b ⟶ c} {l₃ : d ⟶ e} {l₄ : e ⟶ f} {l₅ : x ⟶ y} {l₆ : y ⟶ z}
  (α : CategoryTheory.CategoryStruct.comp g₁ l₃ ⟶ CategoryTheory.CategoryStruct.comp l₁ h₁)
  (β : CategoryTheory.CategoryStruct.comp h₁ l₄ ⟶ CategoryTheory.CategoryStruct.comp l₂ k₁)
  (γ : CategoryTheory.CategoryStruct.comp g₂ l₅ ⟶ CategoryTheory.CategoryStruct.comp l₃ h₂)
  (δ : CategoryTheory.CategoryStruct.comp h₂ l₆ ⟶ CategoryTheory.CategoryStruct.comp l₄ k₂),
  CategoryTheory.Bicategory.leftAdjointSquare.comp α β γ δ =
    CategoryTheory.Bicategory.leftAdjointSquare.vcomp (CategoryTheory.Bicategory.leftAdjointSquare.hcomp α β)
      (CategoryTheory.Bicategory.leftAdjointSquare.hcomp γ δ)

theorem CategoryTheory.Bicategory.leftAdjointSquare.comp_hvcomp E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d e f x y z : B} {g₁ : a ⟶ d} {h₁ : b ⟶ e} {k₁ : c ⟶ f}
  {g₂ : d ⟶ x} {h₂ : e ⟶ y} {k₂ : f ⟶ z} {l₁ : a ⟶ b} {l₂ : b ⟶ c} {l₃ : d ⟶ e} {l₄ : e ⟶ f} {l₅ : x ⟶ y} {l₆ : y ⟶ z}
  (α : CategoryTheory.CategoryStruct.comp g₁ l₃ ⟶ CategoryTheory.CategoryStruct.comp l₁ h₁)
  (β : CategoryTheory.CategoryStruct.comp h₁ l₄ ⟶ CategoryTheory.CategoryStruct.comp l₂ k₁)
  (γ : CategoryTheory.CategoryStruct.comp g₂ l₅ ⟶ CategoryTheory.CategoryStruct.comp l₃ h₂)
  (δ : CategoryTheory.CategoryStruct.comp h₂ l₆ ⟶ CategoryTheory.CategoryStruct.comp l₄ k₂),
  CategoryTheory.Bicategory.leftAdjointSquare.comp α β γ δ =
    CategoryTheory.Bicategory.leftAdjointSquare.hcomp (CategoryTheory.Bicategory.leftAdjointSquare.vcomp α γ)
      (CategoryTheory.Bicategory.leftAdjointSquare.vcomp β δ)

Horizontal and vertical composition of squares commutes.

def CategoryTheory.Bicategory.rightAdjointSquare.comp E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {a b c d e f x y z : B} →
      {g₁ : a ⟶ d} →
        {h₁ : b ⟶ e} →
          {k₁ : c ⟶ f} →
            {g₂ : d ⟶ x} →
              {h₂ : e ⟶ y} →
                {k₂ : f ⟶ z} →
                  {r₁ : b ⟶ a} →
                    {r₂ : c ⟶ b} →
                      {r₃ : e ⟶ d} →
                        {r₄ : f ⟶ e} →
                          {r₅ : y ⟶ x} →
                            {r₆ : z ⟶ y} →
                              (CategoryTheory.CategoryStruct.comp r₁ g₁ ⟶ CategoryTheory.CategoryStruct.comp h₁ r₃) →
                                (CategoryTheory.CategoryStruct.comp r₂ h₁ ⟶ CategoryTheory.CategoryStruct.comp k₁ r₄) →
                                  (CategoryTheory.CategoryStruct.comp r₃ g₂ ⟶
                                      CategoryTheory.CategoryStruct.comp h₂ r₅) →
                                    (CategoryTheory.CategoryStruct.comp r₄ h₂ ⟶
                                        CategoryTheory.CategoryStruct.comp k₂ r₆) →
                                      (CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp r₂ r₁)
                                          (CategoryTheory.CategoryStruct.comp g₁ g₂) ⟶
                                        CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp k₁ k₂)
                                          (CategoryTheory.CategoryStruct.comp r₆ r₅))

A square of squares between right adjoints can be composed by iterating vertical and horizontal composition.

theorem CategoryTheory.Bicategory.rightAdjointSquare.comp_vhcomp E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d e f x y z : B} {g₁ : a ⟶ d} {h₁ : b ⟶ e} {k₁ : c ⟶ f}
  {g₂ : d ⟶ x} {h₂ : e ⟶ y} {k₂ : f ⟶ z} {r₁ : b ⟶ a} {r₂ : c ⟶ b} {r₃ : e ⟶ d} {r₄ : f ⟶ e} {r₅ : y ⟶ x} {r₆ : z ⟶ y}
  (α : CategoryTheory.CategoryStruct.comp r₁ g₁ ⟶ CategoryTheory.CategoryStruct.comp h₁ r₃)
  (β : CategoryTheory.CategoryStruct.comp r₂ h₁ ⟶ CategoryTheory.CategoryStruct.comp k₁ r₄)
  (γ : CategoryTheory.CategoryStruct.comp r₃ g₂ ⟶ CategoryTheory.CategoryStruct.comp h₂ r₅)
  (δ : CategoryTheory.CategoryStruct.comp r₄ h₂ ⟶ CategoryTheory.CategoryStruct.comp k₂ r₆),
  CategoryTheory.Bicategory.rightAdjointSquare.comp α β γ δ =
    CategoryTheory.Bicategory.rightAdjointSquare.vcomp (CategoryTheory.Bicategory.rightAdjointSquare.hcomp α β)
      (CategoryTheory.Bicategory.rightAdjointSquare.hcomp γ δ)

theorem CategoryTheory.Bicategory.rightAdjointSquare.comp_hvcomp E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d e f x y z : B} {g₁ : a ⟶ d} {h₁ : b ⟶ e} {k₁ : c ⟶ f}
  {g₂ : d ⟶ x} {h₂ : e ⟶ y} {k₂ : f ⟶ z} {r₁ : b ⟶ a} {r₂ : c ⟶ b} {r₃ : e ⟶ d} {r₄ : f ⟶ e} {r₅ : y ⟶ x} {r₆ : z ⟶ y}
  (α : CategoryTheory.CategoryStruct.comp r₁ g₁ ⟶ CategoryTheory.CategoryStruct.comp h₁ r₃)
  (β : CategoryTheory.CategoryStruct.comp r₂ h₁ ⟶ CategoryTheory.CategoryStruct.comp k₁ r₄)
  (γ : CategoryTheory.CategoryStruct.comp r₃ g₂ ⟶ CategoryTheory.CategoryStruct.comp h₂ r₅)
  (δ : CategoryTheory.CategoryStruct.comp r₄ h₂ ⟶ CategoryTheory.CategoryStruct.comp k₂ r₆),
  CategoryTheory.Bicategory.rightAdjointSquare.comp α β γ δ =
    CategoryTheory.Bicategory.rightAdjointSquare.hcomp (CategoryTheory.Bicategory.rightAdjointSquare.vcomp α γ)
      (CategoryTheory.Bicategory.rightAdjointSquare.vcomp β δ)

Horizontal and vertical composition of squares commutes.

theorem CategoryTheory.Bicategory.mateEquiv_square E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d e f x y z : B} {g₁ : a ⟶ d} {h₁ : b ⟶ e} {k₁ : c ⟶ f}
  {g₂ : d ⟶ x} {h₂ : e ⟶ y} {k₂ : f ⟶ z} {l₁ : a ⟶ b} {r₁ : b ⟶ a} {l₂ : b ⟶ c} {r₂ : c ⟶ b} {l₃ : d ⟶ e} {r₃ : e ⟶ d}
  {l₄ : e ⟶ f} {r₄ : f ⟶ e} {l₅ : x ⟶ y} {r₅ : y ⟶ x} {l₆ : y ⟶ z} {r₆ : z ⟶ y}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂)
  (adj₃ : CategoryTheory.Bicategory.Adjunction l₃ r₃) (adj₄ : CategoryTheory.Bicategory.Adjunction l₄ r₄)
  (adj₅ : CategoryTheory.Bicategory.Adjunction l₅ r₅) (adj₆ : CategoryTheory.Bicategory.Adjunction l₆ r₆)
  (α : CategoryTheory.CategoryStruct.comp g₁ l₃ ⟶ CategoryTheory.CategoryStruct.comp l₁ h₁)
  (β : CategoryTheory.CategoryStruct.comp h₁ l₄ ⟶ CategoryTheory.CategoryStruct.comp l₂ k₁)
  (γ : CategoryTheory.CategoryStruct.comp g₂ l₅ ⟶ CategoryTheory.CategoryStruct.comp l₃ h₂)
  (δ : CategoryTheory.CategoryStruct.comp h₂ l₆ ⟶ CategoryTheory.CategoryStruct.comp l₄ k₂),
  (CategoryTheory.Bicategory.mateEquiv (adj₁.comp adj₂) (adj₅.comp adj₆))
      (CategoryTheory.Bicategory.leftAdjointSquare.comp α β γ δ) =
    CategoryTheory.Bicategory.rightAdjointSquare.comp ((CategoryTheory.Bicategory.mateEquiv adj₁ adj₃) α)
      ((CategoryTheory.Bicategory.mateEquiv adj₂ adj₄) β) ((CategoryTheory.Bicategory.mateEquiv adj₃ adj₅) γ)
      ((CategoryTheory.Bicategory.mateEquiv adj₄ adj₆) δ)

The mates equivalence commutes with composition of a square of squares. These results form the basis for an isomorphism of double categories to be proven later.

def CategoryTheory.Bicategory.conjugateEquiv E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {c d : B} →
      {l₁ l₂ : c ⟶ d} →
        {r₁ r₂ : d ⟶ c} →
          CategoryTheory.Bicategory.Adjunction l₁ r₁ →
            CategoryTheory.Bicategory.Adjunction l₂ r₂ → (l₂ ⟶ l₁) ≃ (r₁ ⟶ r₂)

Given two adjunctions l₁ ⊣ r₁ and l₂ ⊣ r₂ both between objects c, d, there is a bijection between 2-morphisms l₂ ⟶ l₁ and 2-morphisms r₁ ⟶ r₂. This is defined as a special case of mateEquiv, where the two "vertical" 1-morphisms are identities. This bijection is conjugateEquiv; the image of a 2-morphism under it is called its conjugate.

Furthermore, this bijection preserves (and reflects) isomorphisms, i.e. a 2-morphism is an iso iff its image under the bijection is an iso.

theorem CategoryTheory.Bicategory.conjugateEquiv_apply E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ : c ⟶ d} {r₁ r₂ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (α : l₂ ⟶ l₁),
  (CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₂) α =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor r₁).inv
      (CategoryTheory.CategoryStruct.comp
        ((CategoryTheory.Bicategory.mateEquiv adj₁ adj₂)
          (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor l₂).hom
            (CategoryTheory.CategoryStruct.comp α (CategoryTheory.Bicategory.rightUnitor l₁).inv)))
        (CategoryTheory.Bicategory.leftUnitor r₂).hom)

theorem CategoryTheory.Bicategory.conjugateEquiv_apply' E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ : c ⟶ d} {r₁ r₂ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (α : l₂ ⟶ l₁),
  (CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₂) α =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor r₁).inv
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.whiskerLeft r₁ adj₂.unit)
        (CategoryTheory.CategoryStruct.comp
          (CategoryTheory.Bicategory.whiskerLeft r₁ (CategoryTheory.Bicategory.whiskerRight α r₂))
          (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.associator r₁ l₁ r₂).inv
            (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.whiskerRight adj₁.counit r₂)
              (CategoryTheory.Bicategory.leftUnitor r₂).hom))))

theorem CategoryTheory.Bicategory.conjugateEquiv_symm_apply E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ : c ⟶ d} {r₁ r₂ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (α : r₁ ⟶ r₂),
  (CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₂).symm α =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor l₂).inv
      (CategoryTheory.CategoryStruct.comp
        ((CategoryTheory.Bicategory.mateEquiv adj₁ adj₂).symm
          (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor r₁).hom
            (CategoryTheory.CategoryStruct.comp α (CategoryTheory.Bicategory.leftUnitor r₂).inv)))
        (CategoryTheory.Bicategory.rightUnitor l₁).hom)

theorem CategoryTheory.Bicategory.conjugateEquiv_symm_apply' E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ : c ⟶ d} {r₁ r₂ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (α : r₁ ⟶ r₂),
  (CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₂).symm α =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor l₂).inv
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.whiskerRight adj₁.unit l₂)
        (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.associator l₁ r₁ l₂).hom
          (CategoryTheory.CategoryStruct.comp
            (CategoryTheory.Bicategory.whiskerLeft l₁ (CategoryTheory.Bicategory.whiskerRight α l₂))
            (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.whiskerLeft l₁ adj₂.counit)
              (CategoryTheory.Bicategory.rightUnitor l₁).hom))))

theorem CategoryTheory.Bicategory.conjugateEquiv_id E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ : c ⟶ d} {r₁ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁),
  (CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₁) (CategoryTheory.CategoryStruct.id l₁) =
    CategoryTheory.CategoryStruct.id r₁

theorem CategoryTheory.Bicategory.conjugateEquiv_symm_id E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ : c ⟶ d} {r₁ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁),
  (CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₁).symm (CategoryTheory.CategoryStruct.id r₁) =
    CategoryTheory.CategoryStruct.id l₁

theorem CategoryTheory.Bicategory.conjugateEquiv_adjunction_id E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c : B} {l r : c ⟶ c}
  (adj : CategoryTheory.Bicategory.Adjunction l r) (α : CategoryTheory.CategoryStruct.id c ⟶ l),
  (CategoryTheory.Bicategory.conjugateEquiv adj (CategoryTheory.Bicategory.Adjunction.id c)) α =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor r).inv
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.whiskerLeft r α) adj.counit)

theorem CategoryTheory.Bicategory.conjugateEquiv_adjunction_id_symm E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c : B} {l r : c ⟶ c}
  (adj : CategoryTheory.Bicategory.Adjunction l r) (α : r ⟶ CategoryTheory.CategoryStruct.id c),
  (CategoryTheory.Bicategory.conjugateEquiv adj (CategoryTheory.Bicategory.Adjunction.id c)).symm α =
    CategoryTheory.CategoryStruct.comp adj.unit
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.whiskerLeft l α)
        (CategoryTheory.Bicategory.rightUnitor l).hom)

theorem CategoryTheory.Bicategory.mateEquiv_leftUnitor_hom_rightUnitor_inv E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : B} {l : a ⟶ b} {r : b ⟶ a}
  (adj : CategoryTheory.Bicategory.Adjunction l r),
  (CategoryTheory.Bicategory.mateEquiv adj adj)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor l).hom
        (CategoryTheory.Bicategory.rightUnitor l).inv) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor r).hom
      (CategoryTheory.Bicategory.leftUnitor r).inv

theorem CategoryTheory.Bicategory.conjugateEquiv_id_comp_right_apply E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : B} {l : a ⟶ b} {r : b ⟶ a}
  (adj : CategoryTheory.Bicategory.Adjunction l r) {l' : a ⟶ b} {r' : b ⟶ a}
  (adj' : CategoryTheory.Bicategory.Adjunction l' r') (φ : l' ⟶ l),
  (CategoryTheory.Bicategory.conjugateEquiv adj ((CategoryTheory.Bicategory.Adjunction.id a).comp adj'))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.leftUnitor l').hom φ) =
    CategoryTheory.CategoryStruct.comp ((CategoryTheory.Bicategory.conjugateEquiv adj adj') φ)
      (CategoryTheory.Bicategory.rightUnitor r').inv

theorem CategoryTheory.Bicategory.conjugateEquiv_comp_id_right_apply E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b : B} {l : a ⟶ b} {r : b ⟶ a}
  (adj : CategoryTheory.Bicategory.Adjunction l r) {l' : a ⟶ b} {r' : b ⟶ a}
  (adj' : CategoryTheory.Bicategory.Adjunction l' r') (φ : l' ⟶ l),
  (CategoryTheory.Bicategory.conjugateEquiv adj (adj'.comp (CategoryTheory.Bicategory.Adjunction.id b)))
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Bicategory.rightUnitor l').hom φ) =
    CategoryTheory.CategoryStruct.comp ((CategoryTheory.Bicategory.conjugateEquiv adj adj') φ)
      (CategoryTheory.Bicategory.leftUnitor r').inv

theorem CategoryTheory.Bicategory.conjugateEquiv_whiskerLeft E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c : B} {l₁ : a ⟶ b} {r₁ : b ⟶ a}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) {l₂ : b ⟶ c} {r₂ : c ⟶ b}
  (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) {l₂' : b ⟶ c} {r₂' : c ⟶ b}
  (adj₂' : CategoryTheory.Bicategory.Adjunction l₂' r₂') (φ : l₂' ⟶ l₂),
  (CategoryTheory.Bicategory.conjugateEquiv (adj₁.comp adj₂) (adj₁.comp adj₂'))
      (CategoryTheory.Bicategory.whiskerLeft l₁ φ) =
    CategoryTheory.Bicategory.whiskerRight ((CategoryTheory.Bicategory.conjugateEquiv adj₂ adj₂') φ) r₁

theorem CategoryTheory.Bicategory.conjugateEquiv_whiskerRight E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c : B} {l₁ : a ⟶ b} {r₁ : b ⟶ a}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) {l₁' : a ⟶ b} {r₁' : b ⟶ a}
  (adj₁' : CategoryTheory.Bicategory.Adjunction l₁' r₁') {l₂ : b ⟶ c} {r₂ : c ⟶ b}
  (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (φ : l₁' ⟶ l₁),
  (CategoryTheory.Bicategory.conjugateEquiv (adj₁.comp adj₂) (adj₁'.comp adj₂))
      (CategoryTheory.Bicategory.whiskerRight φ l₂) =
    CategoryTheory.Bicategory.whiskerLeft r₂ ((CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₁') φ)

theorem CategoryTheory.Bicategory.conjugateEquiv_associator_hom E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d : B} {l₁ : a ⟶ b} {r₁ : b ⟶ a}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) {l₂ : b ⟶ c} {r₂ : c ⟶ b}
  (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) {l₃ : c ⟶ d} {r₃ : d ⟶ c}
  (adj₃ : CategoryTheory.Bicategory.Adjunction l₃ r₃),
  (CategoryTheory.Bicategory.conjugateEquiv (adj₁.comp (adj₂.comp adj₃)) ((adj₁.comp adj₂).comp adj₃))
      (CategoryTheory.Bicategory.associator l₁ l₂ l₃).hom =
    (CategoryTheory.Bicategory.associator r₃ r₂ r₁).hom

theorem CategoryTheory.Bicategory.conjugateEquiv_comp E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ l₃ : c ⟶ d} {r₁ r₂ r₃ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂)
  (adj₃ : CategoryTheory.Bicategory.Adjunction l₃ r₃) (α : l₂ ⟶ l₁) (β : l₃ ⟶ l₂),
  CategoryTheory.CategoryStruct.comp ((CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₂) α)
      ((CategoryTheory.Bicategory.conjugateEquiv adj₂ adj₃) β) =
    (CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₃) (CategoryTheory.CategoryStruct.comp β α)

theorem CategoryTheory.Bicategory.conjugateEquiv_symm_comp E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ l₃ : c ⟶ d} {r₁ r₂ r₃ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂)
  (adj₃ : CategoryTheory.Bicategory.Adjunction l₃ r₃) (α : r₁ ⟶ r₂) (β : r₂ ⟶ r₃),
  CategoryTheory.CategoryStruct.comp ((CategoryTheory.Bicategory.conjugateEquiv adj₂ adj₃).symm β)
      ((CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₂).symm α) =
    (CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₃).symm (CategoryTheory.CategoryStruct.comp α β)

theorem CategoryTheory.Bicategory.conjugateEquiv_comm E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ : c ⟶ d} {r₁ r₂ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) {α : l₂ ⟶ l₁}
  {β : l₁ ⟶ l₂},
  CategoryTheory.CategoryStruct.comp β α = CategoryTheory.CategoryStruct.id l₁ →
    CategoryTheory.CategoryStruct.comp ((CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₂) α)
        ((CategoryTheory.Bicategory.conjugateEquiv adj₂ adj₁) β) =
      CategoryTheory.CategoryStruct.id r₁

theorem CategoryTheory.Bicategory.conjugateEquiv_symm_comm E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ : c ⟶ d} {r₁ r₂ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) {α : r₁ ⟶ r₂}
  {β : r₂ ⟶ r₁},
  CategoryTheory.CategoryStruct.comp α β = CategoryTheory.CategoryStruct.id r₁ →
    CategoryTheory.CategoryStruct.comp ((CategoryTheory.Bicategory.conjugateEquiv adj₂ adj₁).symm β)
        ((CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₂).symm α) =
      CategoryTheory.CategoryStruct.id l₁

instance CategoryTheory.Bicategory.conjugateEquiv_iso E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ : c ⟶ d} {r₁ r₂ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (α : l₂ ⟶ l₁)
  [CategoryTheory.IsIso α], CategoryTheory.IsIso ((CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₂) α)

If α is an isomorphism between left adjoints, then its conjugate 2-morphism is an isomorphism. The converse is given in conjugateEquiv_of_iso.

instance CategoryTheory.Bicategory.conjugateEquiv_symm_iso E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ : c ⟶ d} {r₁ r₂ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (α : r₁ ⟶ r₂)
  [CategoryTheory.IsIso α], CategoryTheory.IsIso ((CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₂).symm α)

If α is an isomorphism between right adjoints, then its conjugate 2-morphism is an isomorphism. The converse is given in conjugateEquiv_symm_of_iso.

theorem CategoryTheory.Bicategory.conjugateEquiv_of_iso E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ : c ⟶ d} {r₁ r₂ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (α : l₂ ⟶ l₁)
  [CategoryTheory.IsIso ((CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₂) α)], CategoryTheory.IsIso α

If α is a 2-morphism between left adjoints whose conjugate 2-morphism is an isomorphism, then α is an isomorphism. The converse is given in conjugateEquiv_iso.

theorem CategoryTheory.Bicategory.conjugateEquiv_symm_of_iso E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ : c ⟶ d} {r₁ r₂ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (α : r₁ ⟶ r₂)
  [CategoryTheory.IsIso ((CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₂).symm α)], CategoryTheory.IsIso α

If α is a 2-morphism between right adjoints whose conjugate 2-morphism is an isomorphism, then α is an isomorphism. The converse is given in conjugateEquiv_symm_iso.

def CategoryTheory.Bicategory.conjugateIsoEquiv E1 #

{B : Type u} →
  [inst : CategoryTheory.Bicategory B] →
    {c d : B} →
      {l₁ l₂ : c ⟶ d} →
        {r₁ r₂ : d ⟶ c} →
          CategoryTheory.Bicategory.Adjunction l₁ r₁ →
            CategoryTheory.Bicategory.Adjunction l₂ r₂ → (l₂ ≅ l₁) ≃ (r₁ ≅ r₂)

Thus conjugation defines an equivalence between isomorphisms.

theorem CategoryTheory.Bicategory.conjugateIsoEquiv_apply_inv E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ : c ⟶ d} {r₁ r₂ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (α : l₂ ≅ l₁),
  ((CategoryTheory.Bicategory.conjugateIsoEquiv adj₁ adj₂) α).inv =
    (CategoryTheory.Bicategory.conjugateEquiv adj₂ adj₁) α.inv

theorem CategoryTheory.Bicategory.conjugateIsoEquiv_apply_hom E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ : c ⟶ d} {r₁ r₂ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (α : l₂ ≅ l₁),
  ((CategoryTheory.Bicategory.conjugateIsoEquiv adj₁ adj₂) α).hom =
    (CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₂) α.hom

theorem CategoryTheory.Bicategory.conjugateIsoEquiv_symm_apply_hom E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ : c ⟶ d} {r₁ r₂ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (β : r₁ ≅ r₂),
  ((CategoryTheory.Bicategory.conjugateIsoEquiv adj₁ adj₂).symm β).hom =
    (CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₂).symm β.hom

theorem CategoryTheory.Bicategory.conjugateIsoEquiv_symm_apply_inv E0 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {c d : B} {l₁ l₂ : c ⟶ d} {r₁ r₂ : d ⟶ c}
  (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁) (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (β : r₁ ≅ r₂),
  ((CategoryTheory.Bicategory.conjugateIsoEquiv adj₁ adj₂).symm β).inv =
    (CategoryTheory.Bicategory.conjugateEquiv adj₂ adj₁).symm β.inv

theorem CategoryTheory.Bicategory.iterated_mateEquiv_conjugateEquiv E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d : B} {f₁ : a ⟶ c} {u₁ : c ⟶ a} {f₂ : b ⟶ d} {u₂ : d ⟶ b}
  {l₁ : a ⟶ b} {r₁ : b ⟶ a} {l₂ : c ⟶ d} {r₂ : d ⟶ c} (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁)
  (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (adj₃ : CategoryTheory.Bicategory.Adjunction f₁ u₁)
  (adj₄ : CategoryTheory.Bicategory.Adjunction f₂ u₂)
  (α : CategoryTheory.CategoryStruct.comp f₁ l₂ ⟶ CategoryTheory.CategoryStruct.comp l₁ f₂),
  (CategoryTheory.Bicategory.mateEquiv adj₄ adj₃) ((CategoryTheory.Bicategory.mateEquiv adj₁ adj₂) α) =
    (CategoryTheory.Bicategory.conjugateEquiv (adj₁.comp adj₄) (adj₃.comp adj₂)) α

When all four morphisms in a square are left adjoints, the mates operation can be iterated:

         l₁                  r₁                  r₁
      a --→ b             a ←-- b             a ←-- b
   f₁ ↓  ↗  ↓  f₂      f₁ ↓  ↘  ↓ f₂       u₁ ↑  ↙  ↑ u₂
      c --→ d             c ←-- d             c ←-- d
         l₂                  r₂                  r₂

In this case the iterated mate equals the conjugate of the original 2-morphism and is thus an isomorphism if and only if the original 2-morphism is. This explains why some Beck-Chevalley 2-morphisms are isomorphisms.

theorem CategoryTheory.Bicategory.iterated_mateEquiv_conjugateEquiv_symm E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d : B} {f₁ : a ⟶ c} {u₁ : c ⟶ a} {f₂ : b ⟶ d} {u₂ : d ⟶ b}
  {l₁ : a ⟶ b} {r₁ : b ⟶ a} {l₂ : c ⟶ d} {r₂ : d ⟶ c} (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁)
  (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (adj₃ : CategoryTheory.Bicategory.Adjunction f₁ u₁)
  (adj₄ : CategoryTheory.Bicategory.Adjunction f₂ u₂)
  (α : CategoryTheory.CategoryStruct.comp u₂ r₁ ⟶ CategoryTheory.CategoryStruct.comp r₂ u₁),
  (CategoryTheory.Bicategory.mateEquiv adj₁ adj₂).symm ((CategoryTheory.Bicategory.mateEquiv adj₄ adj₃).symm α) =
    (CategoryTheory.Bicategory.conjugateEquiv (adj₁.comp adj₄) (adj₃.comp adj₂)).symm α

def CategoryTheory.Bicategory.leftAdjointSquareConjugate.vcomp E1 #

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

Composition of a square between left adjoints with a conjugate square.

def CategoryTheory.Bicategory.rightAdjointSquareConjugate.vcomp E1 #

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

Composition of a square between right adjoints with a conjugate square.

theorem CategoryTheory.Bicategory.mateEquiv_conjugateEquiv_vcomp E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d : B} {g : a ⟶ c} {h : b ⟶ d} {l₁ : a ⟶ b} {r₁ : b ⟶ a}
  {l₂ : c ⟶ d} {r₂ : d ⟶ c} {l₃ : c ⟶ d} {r₃ : d ⟶ c} (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁)
  (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (adj₃ : CategoryTheory.Bicategory.Adjunction l₃ r₃)
  (α : CategoryTheory.CategoryStruct.comp g l₂ ⟶ CategoryTheory.CategoryStruct.comp l₁ h) (β : l₃ ⟶ l₂),
  (CategoryTheory.Bicategory.mateEquiv adj₁ adj₃) (CategoryTheory.Bicategory.leftAdjointSquareConjugate.vcomp α β) =
    CategoryTheory.Bicategory.rightAdjointSquareConjugate.vcomp ((CategoryTheory.Bicategory.mateEquiv adj₁ adj₂) α)
      ((CategoryTheory.Bicategory.conjugateEquiv adj₂ adj₃) β)

The mates equivalence commutes with this composition, essentially by mateEquiv_vcomp.

def CategoryTheory.Bicategory.leftAdjointConjugateSquare.vcomp E1 #

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

Composition of a conjugate square with a square between left adjoints.

def CategoryTheory.Bicategory.rightAdjointConjugateSquare.vcomp E1 #

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

Composition of a conjugate square with a square between right adjoints.

theorem CategoryTheory.Bicategory.conjugateEquiv_mateEquiv_vcomp E1 #

∀ {B : Type u} [inst : CategoryTheory.Bicategory B] {a b c d : B} {g : a ⟶ c} {h : b ⟶ d} {l₁ : a ⟶ b} {r₁ : b ⟶ a}
  {l₂ : a ⟶ b} {r₂ : b ⟶ a} {l₃ : c ⟶ d} {r₃ : d ⟶ c} (adj₁ : CategoryTheory.Bicategory.Adjunction l₁ r₁)
  (adj₂ : CategoryTheory.Bicategory.Adjunction l₂ r₂) (adj₃ : CategoryTheory.Bicategory.Adjunction l₃ r₃) (α : l₂ ⟶ l₁)
  (β : CategoryTheory.CategoryStruct.comp g l₃ ⟶ CategoryTheory.CategoryStruct.comp l₂ h),
  (CategoryTheory.Bicategory.mateEquiv adj₁ adj₃) (CategoryTheory.Bicategory.leftAdjointConjugateSquare.vcomp α β) =
    CategoryTheory.Bicategory.rightAdjointConjugateSquare.vcomp ((CategoryTheory.Bicategory.conjugateEquiv adj₁ adj₂) α)
      ((CategoryTheory.Bicategory.mateEquiv adj₂ adj₃) β)

The mates equivalence commutes with this composition, essentially by mateEquiv_vcomp.