Skip to content

Commit b0b94e7

Browse files
Changes for compatibility with Agda 2.8.0
1 parent 1c0f00c commit b0b94e7

2 files changed

Lines changed: 8 additions & 31 deletions

File tree

src/Algebra/Fumula/Construct.agda

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module Initial {c ℓ} where
5757
Carrier : Set c
5858
Carrier =
5959

60-
infix 4 _≈_
60+
infix 4 _≈_
6161
_≈_ : Rel Carrier ℓ
6262
_≈_ ()
6363

@@ -71,22 +71,16 @@ module Initial {c ℓ} where
7171
sym : Symmetric _≈_
7272
sym {x = ()}
7373

74-
trans : Transitive _≈_
75-
trans {i = ()}
76-
77-
⤙⤚-cong : Congruent₃ _≈_ _⤙_⤚_
78-
⤙⤚-cong {x = ()}
79-
8074
open ℤero
8175

8276
rawAlmostFumula : RawAlmostFumula c ℓ
8377
rawAlmostFumula = record { ℤero }
8478

8579
isEquivalence : IsEquivalence _≈_
86-
isEquivalence = record { ℤero }
80+
isEquivalence = record { ℤero ; trans = λ {i = i} ⊥-elim i }
8781

8882
isAlmostFumula : IsAlmostFumula _≈_ _⤙_⤚_
89-
isAlmostFumula = record { isEquivalence = isEquivalence ; ⤙⤚-cong = ⤙⤚-cong ; double-exchange = λ () }
83+
isAlmostFumula = record { isEquivalence = isEquivalence ; ⤙⤚-cong = λ {x = x} ⊥-elim x ; double-exchange = λ () }
9084

9185
isReversibleAlmostFumula : IsReversibleAlmostFumula _≈_ _⤙_⤚_
9286
isReversibleAlmostFumula = record { isAlmostFumula = isAlmostFumula ; outer-commute = λ () }

src/Algebra/Fumula/Extrusion/Construct.agda

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -98,37 +98,20 @@ module Initial {x xℓ} where
9898
sym : Symmetric _≈_
9999
sym {x = ()}
100100

101-
trans : Transitive _≈_
102-
trans {i = ()}
103-
104101
module _ {f} {F : Set f} where
105102

106103
infix 7 ❲_❳⤙_⤚_
107104
❲_❳⤙_⤚_ : Op₃ₗ F Carrier
108105
❲_❳⤙_⤚_ _ ()
109106

110-
module _ {fℓ} (_≈ᶠ_ : Rel F fℓ) where
111-
private
112-
module L = LeftDefs ❲_❳⤙_⤚_ _≈_
113-
114-
❲❳⤙⤚-cong : L.Congruent₃ _≈ᶠ_
115-
❲❳⤙⤚-cong {u = ()}
116-
117107
infix 7 _⤙_⤚❲_❳
118108
_⤙_⤚❲_❳ : Op₃ᵣ F Carrier
119109
_⤙_⤚❲_❳ ()
120110

121-
module _ {fℓ} (_≈ᶠ_ : Rel F fℓ) where
122-
private
123-
module R = RightDefs _⤙_⤚❲_❳ _≈_
124-
125-
⤙⤚❲❳-cong : R.Congruent₃ _≈ᶠ_
126-
⤙⤚❲❳-cong {x = ()}
127-
128111
open ℤero
129112

130113
isEquivalence : IsEquivalence _≈_
131-
isEquivalence = record { ℤero }
114+
isEquivalence = record { ℤero; trans = λ {i = i} ⊥-elim i }
132115

133116
module _ {f fℓ} (F : AlmostFumula f fℓ) where
134117

@@ -139,7 +122,7 @@ module Initial {x xℓ} where
139122
; ❲_❳⤙_⤚_ = ❲_❳⤙_⤚_
140123
; isLeftAlmostFumulaExtrusion = record
141124
{ isEquivalence = isEquivalence
142-
; ❲❳⤙⤚-cong = ❲❳⤙⤚-cong (AlmostFumula._≈_ F)
125+
; ❲❳⤙⤚-cong = λ {u = u} ⊥-elim u
143126
; ❲❳⤙⤚-double-exchange = λ _ ()
144127
}
145128
}
@@ -153,7 +136,7 @@ module Initial {x xℓ} where
153136
; _⤙_⤚❲_❳ = _⤙_⤚❲_❳
154137
; isRightAlmostFumulaExtrusion = record
155138
{ isEquivalence = isEquivalence
156-
; ⤙⤚❲❳-cong = ⤙⤚❲❳-cong (AlmostFumula._≈_ F)
139+
; ⤙⤚❲❳-cong = λ {x = x} ⊥-elim x
157140
; ⤙⤚❲❳-double-exchange = λ ()
158141
}
159142
}
@@ -170,9 +153,9 @@ module Initial {x xℓ} where
170153
; _⤙_⤚❲_❳ = _⤙_⤚❲_❳
171154
; isDoubleAlmostFumulaExtrusion = record
172155
{ isEquivalence = isEquivalence
173-
; ❲❳⤙⤚-cong = ❲❳⤙⤚-cong (AlmostFumula._≈_ Fₗ)
156+
; ❲❳⤙⤚-cong = λ {u = u} ⊥-elim u
174157
; ❲❳⤙⤚-double-exchange = λ _ ()
175-
; ⤙⤚❲❳-cong = ⤙⤚❲❳-cong (AlmostFumula._≈_ Fᵣ)
158+
; ⤙⤚❲❳-cong = λ {x = x} ⊥-elim x
176159
; ⤙⤚❲❳-double-exchange = λ ()
177160
; ❲❳⤙⤚-⤙⤚❲❳-double-exchange = λ _ ()
178161
}

0 commit comments

Comments
 (0)