@@ -44,6 +44,9 @@ record Magma c ℓ : Set (suc (c ⊔ ℓ)) where
44
44
rawMagma : RawMagma _ _
45
45
rawMagma = record { _≈_ = _≈_; _∙_ = _∙_ }
46
46
47
+ open Setoid setoid public
48
+ using (_≉_)
49
+
47
50
48
51
record Semigroup c ℓ : Set (suc (c ⊔ ℓ)) where
49
52
infixl 7 _∙_
@@ -59,7 +62,8 @@ record Semigroup c ℓ : Set (suc (c ⊔ ℓ)) where
59
62
magma : Magma c ℓ
60
63
magma = record { isMagma = isMagma }
61
64
62
- open Magma magma public using (rawMagma)
65
+ open Magma magma public
66
+ using (_≉_; rawMagma)
63
67
64
68
65
69
record Band c ℓ : Set (suc (c ⊔ ℓ)) where
@@ -76,7 +80,8 @@ record Band c ℓ : Set (suc (c ⊔ ℓ)) where
76
80
semigroup : Semigroup c ℓ
77
81
semigroup = record { isSemigroup = isSemigroup }
78
82
79
- open Semigroup semigroup public using (magma; rawMagma)
83
+ open Semigroup semigroup public
84
+ using (_≉_; magma; rawMagma)
80
85
81
86
82
87
record CommutativeSemigroup c ℓ : Set (suc (c ⊔ ℓ)) where
@@ -93,7 +98,8 @@ record CommutativeSemigroup c ℓ : Set (suc (c ⊔ ℓ)) where
93
98
semigroup : Semigroup c ℓ
94
99
semigroup = record { isSemigroup = isSemigroup }
95
100
96
- open Semigroup semigroup public using (magma; rawMagma)
101
+ open Semigroup semigroup public
102
+ using (_≉_; magma; rawMagma)
97
103
98
104
99
105
record Semilattice c ℓ : Set (suc (c ⊔ ℓ)) where
@@ -110,7 +116,8 @@ record Semilattice c ℓ : Set (suc (c ⊔ ℓ)) where
110
116
band : Band c ℓ
111
117
band = record { isBand = isBand }
112
118
113
- open Band band public using (rawMagma; magma; semigroup)
119
+ open Band band public
120
+ using (_≉_; rawMagma; magma; semigroup)
114
121
115
122
116
123
record SelectiveMagma c ℓ : Set (suc (c ⊔ ℓ)) where
@@ -127,7 +134,8 @@ record SelectiveMagma c ℓ : Set (suc (c ⊔ ℓ)) where
127
134
magma : Magma c ℓ
128
135
magma = record { isMagma = isMagma }
129
136
130
- open Magma magma public using (rawMagma)
137
+ open Magma magma public
138
+ using (_≉_; rawMagma)
131
139
132
140
------------------------------------------------------------------------
133
141
-- Bundles with 1 binary operation & 1 element
@@ -166,7 +174,8 @@ record Monoid c ℓ : Set (suc (c ⊔ ℓ)) where
166
174
semigroup : Semigroup _ _
167
175
semigroup = record { isSemigroup = isSemigroup }
168
176
169
- open Semigroup semigroup public using (rawMagma; magma)
177
+ open Semigroup semigroup public
178
+ using (_≉_; rawMagma; magma)
170
179
171
180
rawMonoid : RawMonoid _ _
172
181
rawMonoid = record { _≈_ = _≈_; _∙_ = _∙_; ε = ε}
@@ -187,7 +196,8 @@ record CommutativeMonoid c ℓ : Set (suc (c ⊔ ℓ)) where
187
196
monoid : Monoid _ _
188
197
monoid = record { isMonoid = isMonoid }
189
198
190
- open Monoid monoid public using (rawMagma; magma; semigroup; rawMonoid)
199
+ open Monoid monoid public
200
+ using (_≉_; rawMagma; magma; semigroup; rawMonoid)
191
201
192
202
commutativeSemigroup : CommutativeSemigroup _ _
193
203
commutativeSemigroup = record { isCommutativeSemigroup = isCommutativeSemigroup }
@@ -209,7 +219,7 @@ record IdempotentCommutativeMonoid c ℓ : Set (suc (c ⊔ ℓ)) where
209
219
commutativeMonoid = record { isCommutativeMonoid = isCommutativeMonoid }
210
220
211
221
open CommutativeMonoid commutativeMonoid public
212
- using (rawMagma; magma; semigroup; rawMonoid; monoid)
222
+ using (_≉_; rawMagma; magma; semigroup; rawMonoid; monoid)
213
223
214
224
215
225
-- Idempotent commutative monoids are also known as bounded lattices.
@@ -268,7 +278,8 @@ record Group c ℓ : Set (suc (c ⊔ ℓ)) where
268
278
monoid : Monoid _ _
269
279
monoid = record { isMonoid = isMonoid }
270
280
271
- open Monoid monoid public using (rawMagma; magma; semigroup; rawMonoid)
281
+ open Monoid monoid public
282
+ using (_≉_; rawMagma; magma; semigroup; rawMonoid)
272
283
273
284
record AbelianGroup c ℓ : Set (suc (c ⊔ ℓ)) where
274
285
infix 8 _⁻¹
@@ -288,7 +299,7 @@ record AbelianGroup c ℓ : Set (suc (c ⊔ ℓ)) where
288
299
group = record { isGroup = isGroup }
289
300
290
301
open Group group public
291
- using (rawMagma; magma; semigroup; monoid; rawMonoid; rawGroup)
302
+ using (_≉_; rawMagma; magma; semigroup; monoid; rawMonoid; rawGroup)
292
303
293
304
commutativeMonoid : CommutativeMonoid _ _
294
305
commutativeMonoid = record { isCommutativeMonoid = isCommutativeMonoid }
@@ -337,11 +348,15 @@ record Lattice c ℓ : Set (suc (c ⊔ ℓ)) where
337
348
; _∨_ = _∨_
338
349
}
339
350
340
- open RawLattice rawLattice using (∨-rawMagma; ∧-rawMagma)
351
+ open RawLattice rawLattice
352
+ using (∨-rawMagma; ∧-rawMagma)
341
353
342
354
setoid : Setoid _ _
343
355
setoid = record { isEquivalence = isEquivalence }
344
356
357
+ open Setoid setoid public
358
+ using (_≉_)
359
+
345
360
346
361
record DistributiveLattice c ℓ : Set (suc (c ⊔ ℓ)) where
347
362
infixr 7 _∧_
@@ -359,7 +374,8 @@ record DistributiveLattice c ℓ : Set (suc (c ⊔ ℓ)) where
359
374
lattice : Lattice _ _
360
375
lattice = record { isLattice = isLattice }
361
376
362
- open Lattice lattice public using (rawLattice; setoid)
377
+ open Lattice lattice public
378
+ using (_≉_; rawLattice; setoid)
363
379
364
380
365
381
------------------------------------------------------------------------
@@ -419,7 +435,7 @@ record NearSemiring c ℓ : Set (suc (c ⊔ ℓ)) where
419
435
+-monoid = record { isMonoid = +-isMonoid }
420
436
421
437
open Monoid +-monoid public
422
- using () renaming
438
+ using (_≉_ ) renaming
423
439
( rawMagma to +-rawMagma
424
440
; magma to +-magma
425
441
; semigroup to +-semigroup
@@ -455,7 +471,7 @@ record SemiringWithoutOne c ℓ : Set (suc (c ⊔ ℓ)) where
455
471
456
472
open NearSemiring nearSemiring public
457
473
using
458
- ( +-rawMagma; +-magma; +-semigroup
474
+ ( _≉_; +-rawMagma; +-magma; +-semigroup
459
475
; +-rawMonoid; +-monoid
460
476
; *-rawMagma; *-magma; *-semigroup
461
477
; rawNearSemiring
@@ -490,7 +506,7 @@ record CommutativeSemiringWithoutOne c ℓ : Set (suc (c ⊔ ℓ)) where
490
506
491
507
open SemiringWithoutOne semiringWithoutOne public
492
508
using
493
- ( +-rawMagma; +-magma; +-semigroup; +-commutativeSemigroup
509
+ ( _≉_; +-rawMagma; +-magma; +-semigroup; +-commutativeSemigroup
494
510
; *-rawMagma; *-magma; *-semigroup
495
511
; +-rawMonoid; +-monoid; +-commutativeMonoid
496
512
; nearSemiring; rawNearSemiring
@@ -565,7 +581,7 @@ record SemiringWithoutAnnihilatingZero c ℓ : Set (suc (c ⊔ ℓ)) where
565
581
record { isCommutativeMonoid = +-isCommutativeMonoid }
566
582
567
583
open CommutativeMonoid +-commutativeMonoid public
568
- using () renaming
584
+ using (_≉_ ) renaming
569
585
( rawMagma to +-rawMagma
570
586
; magma to +-magma
571
587
; semigroup to +-semigroup
@@ -610,7 +626,7 @@ record Semiring c ℓ : Set (suc (c ⊔ ℓ)) where
610
626
open SemiringWithoutAnnihilatingZero
611
627
semiringWithoutAnnihilatingZero public
612
628
using
613
- ( +-rawMagma; +-magma; +-semigroup; +-commutativeSemigroup
629
+ ( _≉_; +-rawMagma; +-magma; +-semigroup; +-commutativeSemigroup
614
630
; *-rawMagma; *-magma; *-semigroup
615
631
; +-rawMonoid; +-monoid; +-commutativeMonoid
616
632
; *-rawMonoid; *-monoid
@@ -645,7 +661,7 @@ record CommutativeSemiring c ℓ : Set (suc (c ⊔ ℓ)) where
645
661
646
662
open Semiring semiring public
647
663
using
648
- ( +-rawMagma; +-magma; +-semigroup; +-commutativeSemigroup
664
+ ( _≉_; +-rawMagma; +-magma; +-semigroup; +-commutativeSemigroup
649
665
; *-rawMagma; *-magma; *-semigroup
650
666
; +-rawMonoid; +-monoid; +-commutativeMonoid
651
667
; *-rawMonoid; *-monoid
@@ -746,7 +762,7 @@ record Ring c ℓ : Set (suc (c ⊔ ℓ)) where
746
762
747
763
open Semiring semiring public
748
764
using
749
- ( +-rawMagma; +-magma; +-semigroup; +-commutativeSemigroup
765
+ ( _≉_; +-rawMagma; +-magma; +-semigroup; +-commutativeSemigroup
750
766
; *-rawMagma; *-magma; *-semigroup
751
767
; +-rawMonoid; +-monoid ; +-commutativeMonoid
752
768
; *-rawMonoid; *-monoid
@@ -788,11 +804,12 @@ record CommutativeRing c ℓ : Set (suc (c ⊔ ℓ)) where
788
804
ring : Ring _ _
789
805
ring = record { isRing = isRing }
790
806
807
+ open Ring ring public using (_≉_; rawRing; +-group; +-abelianGroup)
808
+
791
809
commutativeSemiring : CommutativeSemiring _ _
792
810
commutativeSemiring =
793
811
record { isCommutativeSemiring = isCommutativeSemiring }
794
812
795
- open Ring ring public using (rawRing; +-group; +-abelianGroup)
796
813
open CommutativeSemiring commutativeSemiring public
797
814
using
798
815
( +-rawMagma; +-magma; +-semigroup; +-commutativeSemigroup
@@ -826,7 +843,7 @@ record BooleanAlgebra c ℓ : Set (suc (c ⊔ ℓ)) where
826
843
distributiveLattice = record { isDistributiveLattice = isDistributiveLattice }
827
844
828
845
open DistributiveLattice distributiveLattice public
829
- using (setoid; lattice)
846
+ using (_≉_; setoid; lattice)
830
847
831
848
832
849
------------------------------------------------------------------------
0 commit comments