@@ -24,22 +24,22 @@ private
2424 module R = Functor R
2525
2626 record FromUnit : Set (levelOfTerm L ⊔ levelOfTerm R) where
27-
27+
2828 field
2929 unit : NaturalTransformation idF (R ∘F L)
30-
30+
3131 module unit = NaturalTransformation unit
32-
32+
3333 field
3434 θ : ∀ {X Y} → C [ X , R.₀ Y ] → D [ L.₀ X , Y ]
3535 commute : ∀ {X Y} (g : C [ X , R.₀ Y ]) → g C.≈ R.₁ (θ g) C.∘ unit.η X
3636 unique : ∀ {X Y} {f : D [ L.₀ X , Y ]} {g : C [ X , R.₀ Y ]} →
3737 g C.≈ R.₁ f C.∘ unit.η X → θ g D.≈ f
38-
38+
3939 module _ where
4040 open C.HomReasoning
4141 open MR C
42-
42+
4343 θ-natural : ∀ {X Y Z} (f : D [ Y , Z ]) (g : C [ X , R.₀ Y ]) → θ (R.₁ f C.∘ g) D.≈ θ (R.₁ f) D.∘ L.₁ g
4444 θ-natural {X} {Y} f g = unique eq
4545 where eq : R.₁ f C.∘ g C.≈ R.₁ (θ (R.₁ f) D.∘ L.₁ g) C.∘ unit.η X
@@ -49,15 +49,15 @@ private
4949 R.₁ (θ (R.₁ f)) C.∘ unit.η (R.₀ Y) C.∘ g ≈⟨ pushʳ (unit.commute g) ⟩
5050 (R.₁ (θ (R.₁ f)) C.∘ R.₁ (L.₁ g)) C.∘ unit.η X ≈˘⟨ R.homomorphism ⟩∘⟨refl ⟩
5151 R.₁ (θ (R.₁ f) D.∘ L.₁ g) C.∘ unit.η X ∎
52-
52+
5353 θ-cong : ∀ {X Y} {f g : C [ X , R.₀ Y ]} → f C.≈ g → θ f D.≈ θ g
5454 θ-cong eq = unique (eq ○ commute _)
55-
55+
5656 θ-natural′ : ∀ {X Y} (g : C [ X , R.₀ Y ]) → θ g D.≈ θ C.id D.∘ L.₁ g
5757 θ-natural′ g = θ-cong (introˡ R.identity) ○ θ-natural D.id g ○ D.∘-resp-≈ˡ (θ-cong R.identity)
5858 where open D.HomReasoning
5959 open MR C
60-
60+
6161 counit : NaturalTransformation (L ∘F R) idF
6262 counit = ntHelper record
6363 { η = λ d → θ C.id
@@ -68,13 +68,13 @@ private
6868 }
6969 where open D.HomReasoning
7070 module CH = C.HomReasoning
71-
71+
7272 unique′ : ∀ {X Y} {f g : D [ L.₀ X , Y ]} (h : C [ X , R.₀ Y ]) →
7373 h C.≈ R.₁ f C.∘ unit.η X →
7474 h C.≈ R.₁ g C.∘ unit.η X → f D.≈ g
7575 unique′ _ eq₁ eq₂ = ⟺ (unique eq₁) ○ unique eq₂
7676 where open D.HomReasoning
77-
77+
7878 zig : ∀ {A} → θ C.id D.∘ L.F₁ (unit.η A) D.≈ D.id
7979 zig {A} = unique′ (unit.η A)
8080 (commute (unit.η A) ○ (C.∘-resp-≈ˡ (R.F-resp-≈ (θ-natural′ (unit.η A)))))
@@ -91,12 +91,12 @@ private
9191 }
9292
9393 record FromCounit : Set (levelOfTerm L ⊔ levelOfTerm R) where
94-
94+
9595 field
9696 counit : NaturalTransformation (L ∘F R) idF
97-
97+
9898 module counit = NaturalTransformation counit
99-
99+
100100 field
101101 θ : ∀ {X Y} → D [ L.₀ X , Y ] → C [ X , R.₀ Y ]
102102 commute : ∀ {X Y} (g : D [ L.₀ X , Y ]) → g D.≈ counit.η Y D.∘ L.₁ (θ g)
@@ -106,7 +106,7 @@ private
106106 module _ where
107107 open D.HomReasoning
108108 open MR D
109-
109+
110110 θ-natural : ∀ {X Y Z} (f : C [ X , Y ]) (g : D [ L.₀ Y , Z ]) → θ (g D.∘ L.₁ f) C.≈ R.₁ g C.∘ θ (L.₁ f)
111111 θ-natural {X} {Y} {Z} f g = unique eq
112112 where eq : g D.∘ L.₁ f D.≈ counit.η Z D.∘ L.₁ (R.₁ g C.∘ θ (L.₁ f))
@@ -115,10 +115,10 @@ private
115115 (g D.∘ counit.η (L.F₀ Y)) D.∘ L.F₁ (θ (L.F₁ f)) ≈⟨ pushˡ (counit.sym-commute g) ⟩
116116 counit.η Z D.∘ L.₁ (R.₁ g) D.∘ L.₁ (θ (L.₁ f)) ≈˘⟨ refl⟩∘⟨ L.homomorphism ⟩
117117 counit.η Z D.∘ L.₁ (R.₁ g C.∘ θ (L.₁ f)) ∎
118-
118+
119119 θ-cong : ∀ {X Y} {f g : D [ L.₀ X , Y ]} → f D.≈ g → θ f C.≈ θ g
120120 θ-cong eq = unique (eq ○ commute _)
121-
121+
122122 θ-natural′ : ∀ {X Y} (g : D [ L.₀ X , Y ]) → θ g C.≈ R.₁ g C.∘ θ D.id
123123 θ-natural′ g = θ-cong (introʳ L.identity) ○ θ-natural C.id g ○ C.∘-resp-≈ʳ (θ-cong L.identity)
124124 where open C.HomReasoning
@@ -135,14 +135,14 @@ private
135135 where open C.HomReasoning
136136 module DH = D.HomReasoning
137137 open MR D
138-
138+
139139 unique′ : ∀ {X Y} {f g : C [ X , R.₀ Y ]} (h : D [ L.₀ X , Y ]) →
140140 h D.≈ counit.η Y D.∘ L.₁ f →
141141 h D.≈ counit.η Y D.∘ L.₁ g →
142142 f C.≈ g
143143 unique′ _ eq₁ eq₂ = ⟺ (unique eq₁) ○ unique eq₂
144144 where open C.HomReasoning
145-
145+
146146 zag : ∀ {B} → R.F₁ (counit.η B) C.∘ θ D.id C.≈ C.id
147147 zag {B} = unique′ (counit.η B)
148148 (⟺ (cancelʳ (⟺ (commute D.id))) ○ pushˡ (counit.sym-commute (counit.η B)) ○ D.∘-resp-≈ʳ (⟺ L.homomorphism))
@@ -162,6 +162,6 @@ module _ {L : Functor C D} {R : Functor D C} where
162162
163163 fromUnit : FromUnit L R → L ⊣ R
164164 fromUnit = FromUnit.L⊣R
165-
165+
166166 fromCounit : FromCounit L R → L ⊣ R
167167 fromCounit = FromCounit.L⊣R
0 commit comments