module Cat.Bi.Diagram.Adjunction where

Adjunctions in a bicategoryπŸ”—

Let be a bicategory, be objects, and and be 1-cells. Generalising the situation where and are functors, we say they are adjoints if there exist 2-cells and (the unit and counit respectively), satisfying the equations

and

called the triangle identities (because of their shape) or zigzag identities (because it sounds cool). Note that we have to insert appropriate associators and unitors in order to translate the diagrams above into equations that are well-typed in a (weak) bicategory.

  record _⊣_ {a b : B.Ob} (f : a B.↦ b) (g : b B.↦ a) : Type β„“' where
    field
      Ξ· : B.id B.β‡’ (g B.βŠ— f)
      Ξ΅ : (f B.βŠ— g) B.β‡’ B.id

      zig : B.Hom.id ≑ B.λ← f B.∘ (Ξ΅ B.β—€ f) B.∘ B.α← f g f B.∘ (f B.β–Ά Ξ·) B.∘ B.ρ→ f
      zag : B.Hom.id ≑ B.ρ← g B.∘ (g B.β–Ά Ξ΅) B.∘ B.Ξ±β†’ g f g B.∘ (Ξ· B.β—€ g) B.∘ B.Ξ»β†’ g

This means the triangle identities, rather than simply expressing a compatibility relation between and as is the case for adjoint functors, instead exhibit a complicated compatibility relation between and the structural isomorphisms (the unitors and associator) of the ambient bicategory.