Skip to content

Commit 21da184

Browse files
Merge pull request #465 from agda/agda-2.8.0
agda 2.8.0 compatibility (useless 'private' and some trailing whitespace cleanup at the same time.)
2 parents a71c7b3 + 8747302 commit 21da184

File tree

74 files changed

+385
-390
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+385
-390
lines changed

src/Categories/Adjoint/AFT.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ module _ {R : Functor C D} where
7474
X↙R = X ↙ R
7575
module X↙R = Category X↙R
7676

77-
s′ : SolutionSet X↙R
77+
s′ : SolutionSet X↙R
7878
s′ = record
7979
{ D = D′
8080
; arr = arr′

src/Categories/Adjoint/Alternatives.agda

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -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

src/Categories/Adjoint/Construction/CoEilenbergMoore.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ Forgetful⊣Cofree = record
7878
}
7979
; zig = λ {A} Comodule.identity A
8080
; zag = λ {B} Comonad.identityˡ M
81-
}
81+
}

src/Categories/Adjoint/Parametric.agda

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ record ParametricAdjoint {C D E : Category o ℓ e} (L : Functor C (Functors D E
117117
where
118118
open D.HomReasoning
119119
open MR D
120-
120+
121121
adjunction-iso : {X Y} (f : X C.⇒ Y) A.Ladjunct X (A.Radjunct X (η (R.₁ f) A))
122122
D.≈ A.Ladjunct X (A.counit.η Y A E.∘ η (L.₁ f) (RR.₀ Y A))
123123
adjunction-iso {X} {Y} f = adjunction-isoˡ f ○ ⟺ (adjunction-isoʳ f)
124124
where open D.HomReasoning
125125

126126
is-cowedge : {X Y} (f : X C.⇒ Y) A.Radjunct X (η (R.₁ f) A) E.≈ A.counit.η Y A E.∘ η (L.₁ f) (RR.₀ Y A)
127127
is-cowedge {X} {Y} f = Injection.injective (Inverse⇒Injection (Hom-inverse (areAdjoint X) (RR.₀ Y A) A)) (adjunction-iso f)
128-
128+
129129
-- the dinat needed is DinaturalTransformation F (const E)
130130
-- where F = PABifunctor {A} and E is A and G = const E
131131
-- here we inline the definitions

src/Categories/Adjoint/RAPL.agda

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module _ {o″ ℓ″ e″} {J : Category o″ ℓ″ e″} (F : Functor J D) wh
4545
}
4646
where module lim = LF.Limit lim
4747
open lim
48-
48+
4949
: CRF.Cone
5050
= record
5151
{ N = R.F₀ apex
@@ -54,7 +54,7 @@ module _ {o″ ℓ″ e″} {J : Category o″ ℓ″ e″} (F : Functor J D) wh
5454
; commute = λ f [ R ]-resp-∘ (limit-commute f)
5555
}
5656
}
57-
57+
5858
K′ : CRF.Cone CF.Cone
5959
K′ K = record
6060
{ N = L.F₀ K.N
@@ -72,9 +72,9 @@ module _ {o″ ℓ″ e″} {J : Category o″ ℓ″ e″} (F : Functor J D) wh
7272
where module K = CRF.Cone K
7373
open D.HomReasoning
7474
open MR D
75-
75+
7676
module K′ K = CF.Cone (K′ K)
77-
77+
7878
! : {K : CRF.Cone} CRF.Cones [ K , ⊤ ]
7979
! {K} = record
8080
{ arr = R.F₁ (rep (K′ K)) C.∘ unit.η K.N
@@ -93,7 +93,7 @@ module _ {o″ ℓ″ e″} {J : Category o″ ℓ″ e″} (F : Functor J D) wh
9393
open MR C
9494

9595
module ! {K} = CRF.Cone⇒ (! {K})
96-
96+
9797
!-unique : {K : CRF.Cone} (f : CRF.Cones [ K , ⊤ ]) CRF.Cones [ ! ≈ f ]
9898
!-unique {K} f =
9999
let open C.HomReasoning
@@ -104,7 +104,7 @@ module _ {o″ ℓ″ e″} {J : Category o″ ℓ″ e″} (F : Functor J D) wh
104104
f.arr ∎
105105
where module K = CRF.Cone K
106106
module f = CRF.Cone⇒ f
107-
107+
108108
f′ : CF.Cones [ K′ K , limit ]
109109
f′ = record
110110
{ arr = Radjunct f.arr

src/Categories/Adjoint/TwoSided/Compose.agda

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ _∘⊣⊢_ {C = C} {D} {E} {L} {R} {L′} {R′} L⊣⊢R L′⊣⊢R′ = with
2929
; zig = zig
3030
}
3131
where
32-
private
3332
module C = Category C using (_∘_; id; assoc; identityˡ; module HomReasoning)
3433
module D = Category D using (id)
3534
module E = Category E using (_∘_; id; _≈_; assoc; identityˡ; module HomReasoning)

src/Categories/Bicategory/Construction/LaxSlice.agda

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ module SliceHom (A : Obj) where
6868
open HomReasoning
6969
open Equiv
7070
open MR (hom X.Y A)
71-
71+
7272
SliceHomCat : SliceObj A SliceObj A 1Category (o ⊔ ℓ) (ℓ ⊔ e) e
7373
SliceHomCat X Y = record
7474
{ Obj = Slice⇒₁ X Y
7575
; _⇒_ = Slice⇒₂
76-
; _≈_ = λ (slicearr₂ {ϕ} _) (slicearr₂ {ψ} _) ϕ ≈ ψ
76+
; _≈_ = λ (slicearr₂ {ϕ} _) (slicearr₂ {ψ} _) ϕ ≈ ψ
7777
; id = slice-id _
7878
; _∘_ = _∘ᵥ/_
7979
; assoc = hom.assoc
@@ -102,7 +102,7 @@ module SliceHom (A : Obj) where
102102
_⊚₀/_ {X}{Y}{Z} J K = slicearr₁ ((α⇒ ∘ᵥ J.Δ ◁ K.h) ∘ᵥ K.Δ)
103103
where module K = Slice⇒₁ K
104104
module J = Slice⇒₁ J
105-
105+
106106
_⊚₁/_ : {X Y Z : SliceObj A} {J J' : Slice⇒₁ Y Z} {K K' : Slice⇒₁ X Y} Slice⇒₂ J J' Slice⇒₂ K K' Slice⇒₂ (J ⊚₀/ K) (J' ⊚₀/ K')
107107
_⊚₁/_ {X}{Y}{Z}{J'}{J}{K'}{K} δ γ = slicearr₂ $ begin
108108
(α⇒ ∘ᵥ J.Δ ◁ K.h) ∘ᵥ K.Δ ≈⟨ (refl⟩∘⟨ γ.E) ⟩
@@ -122,7 +122,7 @@ module SliceHom (A : Obj) where
122122
module K = Slice⇒₁ K
123123
module K' = Slice⇒₁ K'
124124
module γ = Slice⇒₂ γ
125-
module δ = Slice⇒₂ δ
125+
module δ = Slice⇒₂ δ
126126
open 1Category (hom X.Y A)
127127
open HomReasoning
128128
open MR (hom X.Y A)
@@ -142,7 +142,7 @@ module SliceHom (A : Obj) where
142142
where module X = SliceObj X
143143
module Y = SliceObj Y
144144
module Z = SliceObj Z
145-
145+
146146
α⇒/ : {W X Y Z}(J : Slice⇒₁ Y Z) (K : Slice⇒₁ X Y) (L : Slice⇒₁ W X) Slice⇒₂ ((J ⊚₀/ K) ⊚₀/ L) (J ⊚₀/ (K ⊚₀/ L))
147147
α⇒/ {W}{X}{Y}{Z} J K L = slicearr₂ $ begin
148148
(α⇒ ∘ᵥ J.Δ ◁ K.h ⊚₀ L.h) ∘ᵥ ((α⇒ ∘ᵥ K.Δ ◁ L.h) ∘ᵥ L.Δ ) ≈⟨ pullʳ (center⁻¹ (sym α⇒-◁-∘₁) refl) ⟩
@@ -205,7 +205,7 @@ module SliceHom (A : Obj) where
205205
module Y = SliceObj Y
206206
module J = Slice⇒₁ J
207207
module K = Slice⇒₁ K
208-
module α = Slice⇒₂ α
208+
module α = Slice⇒₂ α
209209
open 1Category (hom X.Y A)
210210
open HomReasoning
211211
open MR (hom X.Y A)

src/Categories/Bicategory/Construction/Spans.agda

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ module _ (f : Span C D) (g : Span B C) (h : Span A B) where
136136
p₂ pullback-gh ∘ universal pullback-gh _ ∘ universal pullback-⟨fg⟩h _ ≈⟨ pullˡ (p₂∘universal≈h₂ pullback-gh) ⟩
137137
(p₁ pullback-fg ∘ p₂ pullback-⟨fg⟩h) ∘ universal pullback-⟨fg⟩h _ ≈⟨ pullʳ (p₂∘universal≈h₂ pullback-⟨fg⟩h) ⟩
138138
p₁ pullback-fg ∘ universal pullback-fg _ ≈⟨ p₁∘universal≈h₁ pullback-fg ⟩
139-
p₂ pullback-gh ∘ p₁ pullback-f⟨gh⟩ ∎
139+
p₂ pullback-gh ∘ p₁ pullback-f⟨gh⟩ ∎
140140

141141
lemmaˡ = begin
142142
p₁ pullback-f⟨gh⟩ ∘ universal pullback-f⟨gh⟩ _ ∘ universal pullback-⟨fg⟩h _ ≈⟨ pullˡ (p₁∘universal≈h₁ pullback-f⟨gh⟩) ⟩
@@ -291,7 +291,7 @@ pentagon {A} {B} {C} {D} {E} f g h i =
291291
p₂ pullback-fg ∘ universal pullback-fg _ ∘ universal pullback-f⟨gh⟩ _ ∘ universal pullback-f⟨⟨gh⟩i⟩ _ ≈⟨ pullˡ (p₂∘universal≈h₂ pullback-fg) ⟩
292292
(p₁ pullback-gh ∘ p₂ pullback-f⟨gh⟩) ∘ universal pullback-f⟨gh⟩ _ ∘ universal pullback-f⟨⟨gh⟩i⟩ _ ≈⟨ center (p₂∘universal≈h₂ pullback-f⟨gh⟩) ⟩
293293
p₁ pullback-gh ∘ (p₁ pullback-⟨gh⟩i ∘ p₂ pullback-f⟨⟨gh⟩i⟩) ∘ universal pullback-f⟨⟨gh⟩i⟩ _ ≈⟨ center⁻¹ refl (p₂∘universal≈h₂ pullback-f⟨⟨gh⟩i⟩) ⟩
294-
(p₁ pullback-gh ∘ p₁ pullback-⟨gh⟩i) ∘ universal pullback-⟨gh⟩i _ ∘ p₂ pullback-f⟨g⟨hi⟩⟩ ≈⟨ center (p₁∘universal≈h₁ pullback-⟨gh⟩i) ⟩
294+
(p₁ pullback-gh ∘ p₁ pullback-⟨gh⟩i) ∘ universal pullback-⟨gh⟩i _ ∘ p₂ pullback-f⟨g⟨hi⟩⟩ ≈⟨ center (p₁∘universal≈h₁ pullback-⟨gh⟩i) ⟩
295295
p₁ pullback-gh ∘ universal pullback-gh _ ∘ p₂ pullback-f⟨g⟨hi⟩⟩ ≈⟨ pullˡ (p₁∘universal≈h₁ pullback-gh) ⟩
296296
p₁ pullback-g⟨hi⟩ ∘ p₂ pullback-f⟨g⟨hi⟩⟩ ≈˘⟨ p₂∘universal≈h₂ pullback-fg ⟩
297297
p₂ pullback-fg ∘ universal pullback-fg _ ∎

src/Categories/Bicategory/Object/Product.agda

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ record Product (A B : Obj) : Set (o ⊔ ℓ ⊔ e ⊔ t) where
2424
β₁a : {Γ} f g hom Γ A [ πa ∘₁ ⟨ f , g ⟩₁ ≅ f ]
2525
β₁b : {Γ} f g hom Γ B [ πb ∘₁ ⟨ f , g ⟩₁ ≅ g ]
2626
β₂a : {Γ}{fa ga fb gb}(αa : hom Γ A [ fa , ga ])(αb : hom Γ B [ fb , gb ])
27-
Along β₁a _ _ , β₁a _ _ [ πa ▷ ⟨ αa , αb ⟩₂ ≈ αa ]
27+
Along β₁a _ _ , β₁a _ _ [ πa ▷ ⟨ αa , αb ⟩₂ ≈ αa ]
2828
β₂b : {Γ}{fa ga fb gb}(αa : hom Γ A [ fa , ga ])(αb : hom Γ B [ fb , gb ])
29-
Along β₁b _ _ , β₁b _ _ [ πb ▷ ⟨ αa , αb ⟩₂ ≈ αb ]
29+
Along β₁b _ _ , β₁b _ _ [ πb ▷ ⟨ αa , αb ⟩₂ ≈ αb ]
3030

3131
η₁ : {Γ} p hom Γ A×B [ p ≅ ⟨ πa ∘₁ p , πb ∘₁ p ⟩₁ ]
3232
η₂ : {Γ}{p p'}(ϕ : hom Γ A×B [ p , p' ])

src/Categories/Bicategory/Object/Terminal.agda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ record IsTerminal (⊤ : Obj) : Set (o ⊔ ℓ ⊔ e ⊔ t) where
1717

1818
η₁ : {A} f hom A ⊤ [ f ≅ !₁ ]
1919
η₂ : {A}{f g}(α : hom A ⊤ [ f , g ])
20-
Along η₁ _ , η₁ _ [ α ≈ !₂ ]
20+
Along η₁ _ , η₁ _ [ α ≈ !₂ ]
2121

0 commit comments

Comments
 (0)