Skip to content

Commit 185f65c

Browse files
committed
Add definition of an adjunction in Bicategory
1 parent 12163af commit 185f65c

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{-# OPTIONS --without-K --safe #-}
2+
3+
module Categories.Bicategory.Adjunction where
4+
5+
open import Categories.Bicategory
6+
import Categories.Bicategory.Extras as Extras
7+
open import Categories.Category
8+
open import Level
9+
10+
private
11+
variable
12+
o ℓ e t : Level
13+
14+
module _ (𝒞 : Bicategory o ℓ e t) where
15+
open Bicategory 𝒞
16+
17+
record Adjunction (A B : Obj) : Set (o ⊔ ℓ ⊔ e ⊔ t) where
18+
private
19+
module C = Extras 𝒞
20+
21+
field
22+
L : A ⇒₁ B
23+
R : B ⇒₁ A
24+
25+
field
26+
unit : id₁ ⇒₂ R ⊚₀ L
27+
counit : L ⊚₀ R ⇒₂ id₁
28+
29+
private
30+
{-
31+
L 1 → L (R L) → (L R) L
32+
↓ L 1
33+
1 ∘ L ~ ↓
34+
↓ L
35+
L
36+
-}
37+
l-triangle-l : L ⊚₀ id₁ ⇒₂ L
38+
l-triangle-l = C.unitorˡ.from ∘ᵥ (counit ⊚₁ id₂) ∘ᵥ C.associator.to ∘ᵥ (id₂ ⊚₁ unit)
39+
40+
l-triangle-r : L ⊚₀ id₁ ⇒₂ L
41+
l-triangle-r = C.unitorʳ.from
42+
{-
43+
1 R → (R L) R → R (L R)
44+
↓ L 1
45+
R ∘ id ~ ↓
46+
↓ L
47+
R
48+
-}
49+
r-triangle-l : id₁ ⊚₀ R ⇒₂ R
50+
r-triangle-l = C.unitorʳ.from ∘ᵥ (id₂ ⊚₁ counit) ∘ᵥ C.associator.from ∘ᵥ (unit ⊚₁ id₂)
51+
52+
r-triangle-r : id₁ ⊚₀ R ⇒₂ R
53+
r-triangle-r = C.unitorˡ.from
54+
field
55+
l-triangle : l-triangle-l C.≈ l-triangle-r
56+
r-triangle : r-triangle-l C.≈ r-triangle-r

0 commit comments

Comments
 (0)