@@ -92,11 +92,20 @@ record Preorder c ℓ₁ ℓ₂ : Set (suc (c ⊔ ℓ₁ ⊔ ℓ₂)) where
92
92
93
93
open Setoid setoid public
94
94
95
+ infix 4 _⋦_
96
+ _⋦_ : Rel Carrier _
97
+ x ⋦ y = ¬ (x ≲ y)
98
+
95
99
infix 4 _≳_
96
100
_≳_ = flip _≲_
97
101
98
- infix 4 _∼_ -- for deprecation
102
+ -- Deprecated.
103
+ infix 4 _∼_
99
104
_∼_ = _≲_
105
+ {-# WARNING_ON_USAGE _∼_
106
+ "Warning: _∼_ was deprecated in v2.0.
107
+ Please use _≲_ instead. "
108
+ #-}
100
109
101
110
102
111
record TotalPreorder c ℓ₁ ℓ₂ : Set (suc (c ⊔ ℓ₁ ⊔ ℓ₂)) where
@@ -114,7 +123,7 @@ record TotalPreorder c ℓ₁ ℓ₂ : Set (suc (c ⊔ ℓ₁ ⊔ ℓ₂)) where
114
123
preorder = record { isPreorder = isPreorder }
115
124
116
125
open Preorder preorder public
117
- using (module Eq ; _≳_)
126
+ using (module Eq ; _≳_; _⋦_ )
118
127
119
128
120
129
------------------------------------------------------------------------
@@ -139,6 +148,7 @@ record Poset c ℓ₁ ℓ₂ : Set (suc (c ⊔ ℓ₁ ⊔ ℓ₂)) where
139
148
140
149
open Preorder preorder public
141
150
using (module Eq )
151
+ renaming (_⋦_ to _≰_)
142
152
143
153
144
154
record DecPoset c ℓ₁ ℓ₂ : Set (suc (c ⊔ ℓ₁ ⊔ ℓ₂)) where
@@ -159,7 +169,7 @@ record DecPoset c ℓ₁ ℓ₂ : Set (suc (c ⊔ ℓ₁ ⊔ ℓ₂)) where
159
169
}
160
170
161
171
open Poset poset public
162
- using (preorder)
172
+ using (preorder; _≰_ )
163
173
164
174
module Eq where
165
175
decSetoid : DecSetoid c ℓ₁
@@ -189,6 +199,10 @@ record StrictPartialOrder c ℓ₁ ℓ₂ : Set (suc (c ⊔ ℓ₁ ⊔ ℓ₂))
189
199
190
200
open Setoid setoid public
191
201
202
+ infix 4 _≮_
203
+ _≮_ : Rel Carrier _
204
+ x ≮ y = ¬ (x < y)
205
+
192
206
193
207
record DecStrictPartialOrder c ℓ₁ ℓ₂ : Set (suc (c ⊔ ℓ₁ ⊔ ℓ₂)) where
194
208
infix 4 _≈_ _<_
@@ -207,6 +221,9 @@ record DecStrictPartialOrder c ℓ₁ ℓ₂ : Set (suc (c ⊔ ℓ₁ ⊔ ℓ₂
207
221
{ isStrictPartialOrder = isStrictPartialOrder
208
222
}
209
223
224
+ open StrictPartialOrder strictPartialOrder public
225
+ using (_≮_)
226
+
210
227
module Eq where
211
228
212
229
decSetoid : DecSetoid c ℓ₁
@@ -238,7 +255,7 @@ record TotalOrder c ℓ₁ ℓ₂ : Set (suc (c ⊔ ℓ₁ ⊔ ℓ₂)) where
238
255
}
239
256
240
257
open Poset poset public
241
- using (module Eq ; preorder)
258
+ using (module Eq ; preorder; _≰_ )
242
259
243
260
totalPreorder : TotalPreorder c ℓ₁ ℓ₂
244
261
totalPreorder = record
@@ -263,14 +280,16 @@ record DecTotalOrder c ℓ₁ ℓ₂ : Set (suc (c ⊔ ℓ₁ ⊔ ℓ₂)) where
263
280
{ isTotalOrder = isTotalOrder
264
281
}
265
282
266
- open TotalOrder totalOrder public using (poset; preorder)
283
+ open TotalOrder totalOrder public
284
+ using (poset; preorder; _≰_)
267
285
268
286
decPoset : DecPoset c ℓ₁ ℓ₂
269
287
decPoset = record
270
288
{ isDecPartialOrder = isDecPartialOrder
271
289
}
272
290
273
- open DecPoset decPoset public using (module Eq )
291
+ open DecPoset decPoset public
292
+ using (module Eq )
274
293
275
294
276
295
-- Note that these orders are decidable. The current implementation
@@ -295,7 +314,7 @@ record StrictTotalOrder c ℓ₁ ℓ₂ : Set (suc (c ⊔ ℓ₁ ⊔ ℓ₂)) wh
295
314
}
296
315
297
316
open StrictPartialOrder strictPartialOrder public
298
- using (module Eq )
317
+ using (module Eq ; _≮_ )
299
318
300
319
decSetoid : DecSetoid c ℓ₁
301
320
decSetoid = record
@@ -338,18 +357,3 @@ record ApartnessRelation c ℓ₁ ℓ₂ : Set (suc (c ⊔ ℓ₁ ⊔ ℓ₂)) w
338
357
isApartnessRelation : IsApartnessRelation _≈_ _#_
339
358
340
359
open IsApartnessRelation isApartnessRelation public
341
-
342
-
343
-
344
-
345
- ------------------------------------------------------------------------
346
- -- DEPRECATED
347
- ------------------------------------------------------------------------
348
- -- Please use the new names as continuing support for the old names is
349
- -- not guaranteed.
350
-
351
- -- Version 2.0
352
-
353
- {-# WARNING_ON_USAGE Preorder._∼_
354
- "Warning: Preorder._∼_ was deprecated in v2.0. Please use Preorder._≲_ instead. "
355
- #-}
0 commit comments