Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[draft] Add definition of an adjunction in Bicategory #348

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions src/Categories/Bicategory/Adjunction.agda
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{-# OPTIONS --without-K --safe #-}

module Categories.Bicategory.Adjunction where

open import Categories.Bicategory
import Categories.Bicategory.Extras as Extras
open import Categories.Category
open import Level

private
variable
o ℓ e t : Level

module _ (𝒞 : Bicategory o ℓ e t) where
open Bicategory 𝒞

record Adjunction (A B : Obj) : Set (o ⊔ ℓ ⊔ e ⊔ t) where
private
module C = Extras 𝒞
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably pull this module out of the record, and into the enclosing module.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. And may as well open it extracting the unitors and ≈.


field
L : A ⇒₁ B
R : B ⇒₁ A

field
unit : id₁ ⇒₂ R ⊚₀ L
counit : L ⊚₀ R ⇒₂ id₁

private
{-
L 1 → L (R L) → (L R) L
↓ L 1
1 ∘ L ~ ↓
↓ L
L
-}
l-triangle-l : L ⊚₀ id₁ ⇒₂ L
l-triangle-l = C.unitorˡ.from ∘ᵥ (counit ⊚₁ id₂) ∘ᵥ C.associator.to ∘ᵥ (id₂ ⊚₁ unit)

l-triangle-r : L ⊚₀ id₁ ⇒₂ L
l-triangle-r = C.unitorʳ.from
{-
1 R → (R L) R → R (L R)
↓ L 1
R ∘ id ~ ↓
↓ L
R
-}
r-triangle-l : id₁ ⊚₀ R ⇒₂ R
r-triangle-l = C.unitorʳ.from ∘ᵥ (id₂ ⊚₁ counit) ∘ᵥ C.associator.from ∘ᵥ (unit ⊚₁ id₂)

r-triangle-r : id₁ ⊚₀ R ⇒₂ R
r-triangle-r = C.unitorˡ.from
field
l-triangle : l-triangle-l C.≈ l-triangle-r
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should name these zig and zag for alignment with Categories.Adjoint.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed!

r-triangle : r-triangle-l C.≈ r-triangle-r