File: CHANGELOG.md

package info (click to toggle)
agda-stdlib 2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,600 kB
  • sloc: haskell: 375; makefile: 32; sh: 28; lisp: 1
file content (615 lines) | stat: -rw-r--r-- 25,709 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
Version 2.3
===========

The library has been tested using Agda 2.7.0 and 2.8.0.

Bug-fixes
---------

* In `Algebra.Apartness.Structures`, renamed `sym` from `IsApartnessRelation`
  to `#-sym` in order to avoid overloaded projection.
  `irrefl` and `cotrans` are similarly renamed for the sake of consistency.

* In `Algebra.Definitions.RawMagma` and `Relation.Binary.Construct.Interior.Symmetric`,
  the record constructors `_,_` incorrectly had no declared fixity. They have been given
  the fixity `infixr 4 _,_`, consistent with that of `Data.Product.Base`.

* In `Data.Product.Function.Dependent.Setoid`, `left-inverse` defined a
  `RightInverse`.
  This has been deprecated in favor or `rightInverse`, and a corrected (and
  correctly-named) function `leftInverse` has been added.

* The implementation of `_IsRelatedTo_` in `Relation.Binary.Reasoning.Base.Partial`
  has been modified to correctly support equational reasoning at the beginning and the end.
  The detail of this issue is described in [#2677](https://github.com/agda/agda-stdlib/pull/2677). Since the names of constructors
  of `_IsRelatedTo_` are changed and the reduction behaviour of reasoning steps
  are changed, this modification is non-backwards compatible.

* The implementation of `≤-total` in `Data.Nat.Properties` used to use recursion
  making it infeasibly slow for even relatively small natural numbers. It's definition
  has been altered to use operations backed by primitives making it
  significantly faster. However, its reduction behaviour on open terms may have
  changed in some limited circumstances.

Deprecated names
----------------

* In `Algebra.Definitions.RawMagma`:
  ```agda
  _∣∣_   ↦  _∥_
  _∤∤_    ↦  _∦_
  ```

* In `Algebra.Lattice.Properties.BooleanAlgebra`
  ```agda
  ⊥≉⊤   ↦  ¬⊥≈⊤
  ⊤≉⊥   ↦  ¬⊤≈⊥
  ```

* In `Algebra.Module.Consequences`
  ```agda
  *ₗ-assoc+comm⇒*ᵣ-assoc      ↦  *ₗ-assoc∧comm⇒*ᵣ-assoc
  *ₗ-assoc+comm⇒*ₗ-*ᵣ-assoc   ↦  *ₗ-assoc∧comm⇒*ₗ-*ᵣ-assoc
  *ᵣ-assoc+comm⇒*ₗ-assoc      ↦  *ᵣ-assoc∧comm⇒*ₗ-assoc
  *ₗ-assoc+comm⇒*ₗ-*ᵣ-assoc   ↦  *ₗ-assoc∧comm⇒*ₗ-*ᵣ-assoc
  ```

* In `Algebra.Modules.Structures.IsLeftModule`:
  ```agda
  uniqueˡ‿⁻ᴹ   ↦  Algebra.Module.Properties.LeftModule.inverseˡ-uniqueᴹ
  uniqueʳ‿⁻ᴹ   ↦  Algebra.Module.Properties.LeftModule.inverseʳ-uniqueᴹ
  ```

* In `Algebra.Modules.Structures.IsRightModule`:
  ```agda
  uniqueˡ‿⁻ᴹ   ↦  Algebra.Module.Properties.RightModule.inverseˡ-uniqueᴹ
  uniqueʳ‿⁻ᴹ   ↦  Algebra.Module.Properties.RightModule.inverseʳ-uniqueᴹ
  ```

* In `Algebra.Properties.Magma.Divisibility`:
  ```agda
  ∣∣-sym       ↦  ∥-sym
  ∣∣-respˡ-≈   ↦  ∥-respˡ-≈
  ∣∣-respʳ-≈   ↦  ∥-respʳ-≈
  ∣∣-resp-≈    ↦  ∥-resp-≈
  ∤∤-sym  -≈    ↦  ∦-sym
  ∤∤-respˡ-≈    ↦  ∦-respˡ-≈
  ∤∤-respʳ-≈    ↦  ∦-respʳ-≈
  ∤∤-resp-≈     ↦  ∦-resp-≈
  ∣-respʳ-≈    ↦ ∣ʳ-respʳ-≈
  ∣-respˡ-≈    ↦ ∣ʳ-respˡ-≈
  ∣-resp-≈     ↦ ∣ʳ-resp-≈
  x∣yx         ↦ x∣ʳyx
  xy≈z⇒y∣z     ↦ xy≈z⇒y∣ʳz
  ```

* In `Algebra.Properties.Monoid.Divisibility`:
  ```agda
  ∣∣-refl            ↦  ∥-refl
  ∣∣-reflexive       ↦  ∥-reflexive
  ∣∣-isEquivalence   ↦  ∥-isEquivalence
  ε∣_                ↦ ε∣ʳ_
  ∣-refl             ↦ ∣ʳ-refl
  ∣-reflexive        ↦ ∣ʳ-reflexive
  ∣-isPreorder       ↦ ∣ʳ-isPreorder
  ∣-preorder         ↦ ∣ʳ-preorder
  ```

* In `Algebra.Properties.Semigroup.Divisibility`:
  ```agda
  ∣∣-trans   ↦  ∥-trans
  ∣-trans    ↦  ∣ʳ-trans
  ```

* In `Algebra.Structures.Group`:
  ```agda
  uniqueˡ-⁻¹   ↦  Algebra.Properties.Group.inverseˡ-unique
  uniqueʳ-⁻¹   ↦  Algebra.Properties.Group.inverseʳ-unique
  ```

* In `Data.List.Base`:
  ```agda
  and       ↦  Data.Bool.ListAction.and
  or        ↦  Data.Bool.ListAction.or
  any       ↦  Data.Bool.ListAction.any
  all       ↦  Data.Bool.ListAction.all
  sum       ↦  Data.Nat.ListAction.sum
  product   ↦  Data.Nat.ListAction.product
  ```

* In `Data.List.Properties`:
  ```agda
  sum-++       ↦  Data.Nat.ListAction.Properties.sum-++
  ∈⇒∣product   ↦  Data.Nat.ListAction.Properties.∈⇒∣product
  product≢0    ↦  Data.Nat.ListAction.Properties.product≢0
  ∈⇒≤product   ↦  Data.Nat.ListAction.Properties.∈⇒≤product
  ∷-ʳ++-eqFree ↦  Data.List.Properties.ʳ++-ʳ++-eqFree
  ```

* In `Data.List.Relation.Binary.Permutation.Propositional.Properties`:
  ```agda
  sum-↭       ↦  Data.Nat.ListAction.Properties.sum-↭
  product-↭   ↦  Data.Nat.ListAction.Properties.product-↭
  ```

* In `Data.Product.Function.Dependent.Setoid`:
  ```agda
  left-inverse ↦ rightInverse
  ```

* In `Data.Product.Nary.NonDependent`:
  ```agda
  Allₙ ↦ Pointwiseₙ
  ```

New modules
-----------

* `Algebra.Module.Properties.{Bimodule|LeftModule|RightModule}`.

* `Algebra.Morphism.Construct.DirectProduct`.

* `Data.Bool.ListAction` - a new location for the lifted specialised list operations `Data.List.Base.{and|or|any|all}`.

* `Data.Nat.ListAction(.Properties)` - a new location for the definitions and properties of `Data.List.Base.{sum|product}`.

* `Data.List.Relation.Binary.Prefix.Propositional.Properties`.

* `Data.List.Relation.Binary.Suffix.Propositional.Properties`.

* `Data.List.Sort.InsertionSort(.{Base|Properties})` - defines insertion sort and proves properties of insertion sort.

* `Data.List.Sort.MergeSort(.{Base|Properties})` - a refactor of the previous `Data.List.Sort.MergeSort`.

* `Data.Sign.Show` - code for converting a sign to a string.

* `Relation.Binary.Morphism.Construct.Product` - plumbing in the (categorical) product structure on `RawSetoid`.

* `Relation.Binary.Properties.PartialSetoid` - systematise properties of the partial equivalence relation bundled with a set.

* `Relation.Nullary.Recomputable.Core`

* `Relation.Nullary.Irrelevant` - moved the concept `Irrelevant` of irrelevance (h-proposition)
  from `Relation.Nullary` to its own dedicated module .

Additions to existing modules
-----------------------------

* In `Algebra.Consequences.Base`:
  ```agda
  module Congruence (_≈_ : Rel A ℓ) (cong : Congruent₂ _≈_ _∙_) (refl : Reflexive _≈_)
  where
    ∙-congˡ : LeftCongruent _≈_ _∙_
    ∙-congʳ : RightCongruent _≈_ _∙_
  ```

* In `Algebra.Consequences.Setoid`:
  ```agda
  module Congruence (cong : Congruent₂ _≈_ _∙_) where
    ∙-congˡ : LeftCongruent _≈_ _∙_
    ∙-congʳ : RightCongruent _≈_ _∙_
  ```

* In `Algebra.Construct.Initial`:
  ```agda
  assoc : Associative _≈_ _∙_
  idem  : Idempotent _≈_ _∙_
  ```

* In `Algebra.Construct.Pointwise`:
  ```agda
  isNearSemiring                  : IsNearSemiring _≈_ _+_ _*_ 0# →
                                    IsNearSemiring (liftRel _≈_) (lift₂ _+_) (lift₂ _*_) (lift₀ 0#)
  isSemiringWithoutOne            : IsSemiringWithoutOne _≈_ _+_ _*_ 0# →
                                    IsSemiringWithoutOne (liftRel _≈_) (lift₂ _+_) (lift₂ _*_) (lift₀ 0#)
  isCommutativeSemiringWithoutOne : IsCommutativeSemiringWithoutOne _≈_ _+_ _*_ 0# →
                                    IsCommutativeSemiringWithoutOne (liftRel _≈_) (lift₂ _+_) (lift₂ _*_) (lift₀ 0#)
  isCommutativeSemiring           : IsCommutativeSemiring _≈_ _+_ _*_ 0# 1# →
                                    IsCommutativeSemiring (liftRel _≈_) (lift₂ _+_) (lift₂ _*_) (lift₀ 0#) (lift₀ 1#)
  isIdempotentSemiring            : IsIdempotentSemiring _≈_ _+_ _*_ 0# 1# →
                                    IsIdempotentSemiring (liftRel _≈_) (lift₂ _+_) (lift₂ _*_) (lift₀ 0#) (lift₀ 1#)
  isKleeneAlgebra                 : IsKleeneAlgebra _≈_ _+_ _*_ _⋆ 0# 1# →
                                    IsKleeneAlgebra (liftRel _≈_) (lift₂ _+_) (lift₂ _*_) (lift₁ _⋆) (lift₀ 0#) (lift₀ 1#)
  isQuasiring                     : IsQuasiring _≈_ _+_ _*_ 0# 1# →
                                    IsQuasiring (liftRel _≈_) (lift₂ _+_) (lift₂ _*_) (lift₀ 0#) (lift₀ 1#)
  isCommutativeRing               : IsCommutativeRing _≈_ _+_ _*_ -_ 0# 1# →
                                    IsCommutativeRing (liftRel _≈_) (lift₂ _+_) (lift₂ _*_) (lift₁ -_) (lift₀ 0#) (lift₀ 1#)
  commutativeMonoid               : CommutativeMonoid c ℓ → CommutativeMonoid (a ⊔ c) (a ⊔ ℓ)
  nearSemiring                    : NearSemiring c ℓ → NearSemiring (a ⊔ c) (a ⊔ ℓ)
  semiringWithoutOne              : SemiringWithoutOne c ℓ → SemiringWithoutOne (a ⊔ c) (a ⊔ ℓ)
  commutativeSemiringWithoutOne   : CommutativeSemiringWithoutOne c ℓ → CommutativeSemiringWithoutOne (a ⊔ c) (a ⊔ ℓ)
  commutativeSemiring             : CommutativeSemiring c ℓ → CommutativeSemiring (a ⊔ c) (a ⊔ ℓ)
  idempotentSemiring              : IdempotentSemiring c ℓ → IdempotentSemiring (a ⊔ c) (a ⊔ ℓ)
  kleeneAlgebra                   : KleeneAlgebra c ℓ → KleeneAlgebra (a ⊔ c) (a ⊔ ℓ)
  quasiring                       : Quasiring c ℓ → Quasiring (a ⊔ c) (a ⊔ ℓ)
  commutativeRing                 : CommutativeRing c ℓ → CommutativeRing (a ⊔ c) (a ⊔ ℓ)
  ```

* In `Algebra.Modules.Properties`:
  ```agda
  inverseˡ-uniqueᴹ : x +ᴹ y ≈ 0ᴹ → x ≈ -ᴹ y
  inverseʳ-uniqueᴹ : x +ᴹ y ≈ 0ᴹ → y ≈ -ᴹ x
  ```

* Added new functions and proofs to `Algebra.Construct.Flip.Op`:
  ```agda
  zero : Zero ≈ ε ∙ → Zero ≈ ε (flip ∙)
  distributes : (≈ DistributesOver ∙) + → (≈ DistributesOver (flip ∙)) +
  isSemiringWithoutAnnihilatingZero : IsSemiringWithoutAnnihilatingZero + * 0# 1# →
                                      IsSemiringWithoutAnnihilatingZero + (flip *) 0# 1#
  isSemiring : IsSemiring + * 0# 1# → IsSemiring + (flip *) 0# 1#
  isCommutativeSemiring : IsCommutativeSemiring + * 0# 1# →
                          IsCommutativeSemiring + (flip *) 0# 1#
  isCancellativeCommutativeSemiring : IsCancellativeCommutativeSemiring + * 0# 1# →
                                      IsCancellativeCommutativeSemiring + (flip *) 0# 1#
  isIdempotentSemiring : IsIdempotentSemiring + * 0# 1# →
                         IsIdempotentSemiring + (flip *) 0# 1#
  isQuasiring : IsQuasiring + * 0# 1# → IsQuasiring + (flip *) 0# 1#
  isRingWithoutOne : IsRingWithoutOne + * - 0# → IsRingWithoutOne + (flip *) - 0#
  isNonAssociativeRing : IsNonAssociativeRing + * - 0# 1# →
                         IsNonAssociativeRing + (flip *) - 0# 1#
  isRing : IsRing ≈ + * - 0# 1# → IsRing ≈ + (flip *) - 0# 1#
  isNearring : IsNearring + * 0# 1# - → IsNearring + (flip *) 0# 1# -
  isCommutativeRing : IsCommutativeRing + * - 0# 1# →
                      IsCommutativeRing + (flip *) - 0# 1#
  semiringWithoutAnnihilatingZero : SemiringWithoutAnnihilatingZero a ℓ →
                                    SemiringWithoutAnnihilatingZero a ℓ
  commutativeSemiring : CommutativeSemiring a ℓ → CommutativeSemiring a ℓ
  cancellativeCommutativeSemiring : CancellativeCommutativeSemiring a ℓ →
                                  CancellativeCommutativeSemiring a ℓ
  idempotentSemiring : IdempotentSemiring a ℓ → IdempotentSemiring a ℓ
  quasiring : Quasiring a ℓ → Quasiring a ℓ
  ringWithoutOne : RingWithoutOne a ℓ → RingWithoutOne a ℓ
  nonAssociativeRing : NonAssociativeRing a ℓ → NonAssociativeRing a ℓ
  nearring : Nearring a ℓ → Nearring a ℓ
  ring : Ring a ℓ → Ring a ℓ
  commutativeRing : CommutativeRing a ℓ → CommutativeRing a ℓ
  ```

* In `Algebra.Properties.Magma.Divisibility`:
  ```agda
  ∣ˡ-respʳ-≈  : _∣ˡ_ Respectsʳ _≈_
  ∣ˡ-respˡ-≈  : _∣ˡ_ Respectsˡ _≈_
  ∣ˡ-resp-≈   : _∣ˡ_ Respects₂ _≈_
  x∣ˡxy       : x ∣ˡ x ∙ y
  xy≈z⇒x∣ˡz   : x ∙ y ≈ z → x ∣ˡ z
  ```

* In `Algebra.Properties.Monoid.Divisibility`:
  ```agda
  ε∣ˡ_          : ε ∣ˡ x
  ∣ˡ-refl       : Reflexive _∣ˡ_
  ∣ˡ-reflexive  : _≈_ ⇒ _∣ˡ_
  ∣ˡ-isPreorder : IsPreorder _≈_ _∣ˡ_
  ∣ˡ-preorder   : Preorder a ℓ _
  ```

* In `Algebra.Properties.Monoid`:
  ```agda
  ε-unique : (∀ b → b ∙ a ≈ b) → a ≈ ε
  ε-comm   : a ∙ ε ≈ ε ∙ a
  elimʳ    : a ≈ ε → b ∙ a ≈ b
  elimˡ    : a ≈ ε → a ∙ b ≈ b
  introʳ   : a ≈ ε → b ≈ b ∙ a
  introˡ   : a ≈ ε → b ≈ a ∙ b
  introᶜ   : a ≈ ε → b ∙ c ≈ b ∙ (a ∙ c)
  cancelʳ  : a ∙ c ≈ ε → (b ∙ a) ∙ c ≈ b
  cancelˡ  : a ∙ c ≈ ε → a ∙ (c ∙ b) ≈ b
  insertˡ  : a ∙ c ≈ ε → b ≈ a ∙ (c ∙ b)
  insertʳ  : a ∙ c ≈ ε → b ≈ (b ∙ a) ∙ c
  cancelᶜ  : a ∙ c ≈ ε → (b ∙ a) ∙ (c ∙ d) ≈ b ∙ d
  insertᶜ  : a ∙ c ≈ ε ∙ d ≈ (b ∙ a) ∙ (c ∙ d)
  ```

* In `Algebra.Properties.Semigroup`:
  ```agda
  uv≈w⇒xu∙v≈xw         : x → (x ∙ u) ∙ v ≈ x ∙ w
  uv≈w⇒u∙vx≈wx         : u ∙ (v ∙ x) ≈ w ∙ x
  uv≈w⇒u[vx∙y]≈w∙xy    : u ∙ ((v ∙ x) ∙ y) ≈ w ∙ (x ∙ y)
  uv≈w⇒x[uv∙y]≈x∙wy    : x ∙ (u ∙ (v ∙ y)) ≈ x ∙ (w ∙ y)
  uv≈w⇒[x∙yu]v≈x∙yw    : (x ∙ (y ∙ u)) ∙ v ≈ x ∙ (y ∙ w)
  uv≈w⇒[xu∙v]y≈x∙wy    : ((x ∙ u) ∙ v) ∙ y ≈ x ∙ (w ∙ y)
  uv≈w⇒[xy∙u]v≈x∙yw    : ((x ∙ y) ∙ u) ∙ v ≈ x ∙ (y ∙ w)
  uv≈w⇒xu∙vy≈x∙wy      : (x ∙ u) ∙ (v ∙ y) ≈ x ∙ (w ∙ y)
  uv≈w⇒xy≈z⇒u[vx∙y]≈wz : x ∙ y ≈ z → u ∙ ((v ∙ x) ∙ y) ≈ w ∙ z
  uv≈w⇒x∙wy≈x∙[u∙vy]   : x ∙ (w ∙ y) ≈ x ∙ (u ∙ (v ∙ y))
  [uv∙w]x≈u[vw∙x]      : ((u ∙ v) ∙ w) ∙ x ≈ u ∙ ((v ∙ w) ∙ x)
  [uv∙w]x≈u[v∙wx]      : ((u ∙ v) ∙ w) ∙ x ≈ u ∙ (v ∙ (w ∙ x))
  [u∙vw]x≈uv∙wx        : (u ∙ (v ∙ w)) ∙ x ≈ (u ∙ v) ∙ (w ∙ x)
  [u∙vw]x≈u[v∙wx]      : (u ∙ (v ∙ w)) ∙ x ≈ u ∙ (v ∙ (w ∙ x))
  uv∙wx≈u[vw∙x]        : (u ∙ v) ∙ (w ∙ x) ≈ u ∙ ((v ∙ w) ∙ x)
  uv≈wx⇒yu∙v≈yw∙x      : (y ∙ u) ∙ v ≈ (y ∙ w) ∙ x
  uv≈wx⇒u∙vy≈w∙xy      : u ∙ (v ∙ y) ≈ w ∙ (x ∙ y)
  uv≈wx⇒yu∙vz≈yw∙xz    : (y ∙ u) ∙ (v ∙ z) ≈ (y ∙ w) ∙ (x ∙ z)
  ```

* In `Algebra.Properties.Semigroup.Divisibility`:
  ```agda
  ∣ˡ-trans     : Transitive _∣ˡ_
  x∣ʳy⇒x∣ʳzy   : x ∣ʳ y → x ∣ʳ z ∙ y
  x∣ʳy⇒xz∣ʳyz  : x ∣ʳ y → x ∙ z ∣ʳ y ∙ z
  x∣ˡy⇒zx∣ˡzy  : x ∣ˡ y → z ∙ x ∣ˡ z ∙ y
  x∣ˡy⇒x∣ˡyz   : x ∣ˡ y → x ∣ˡ y ∙ z
  ```

* In `Algebra.Properties.CommutativeSemigroup.Divisibility`:
  ```agda
  ∙-cong-∣ : x ∣ y → a ∣ b → x ∙ a ∣ y ∙ b
  ```

* In `Data.Bool.Properties`:
  ```agda
  if-eta       : if b then x else x ≡ x
  if-idem-then : (if b then (if b then x else y) else y) ≡ (if b then x else y)
  if-idem-else : (if b then x else (if b then x else y)) ≡ (if b then x else y)
  if-swap-then : (if b then (if c then x else y) else y) ≡ (if c then (if b then x else y) else y)
  if-swap-else : (if b then x else (if c then x else y)) ≡ (if c then x else (if b then x else y))
  if-not       : (if not b then x else y) ≡ (if b then y else x)
  if-∧         : (if b ∧ c then x else y) ≡ (if b then (if c then x else y) else y)
  if-∨         : (if b ∨ c then x else y) ≡ (if b then x else (if c then x else y))
  if-xor       : (if b xor c then x else y) ≡ (if b then (if c then y else x) else (if c then x else y))
  if-cong      : b ≡ c → (if b then x else y) ≡ (if c then x else y)
  if-cong-then : x ≡ z → (if b then x else y) ≡ (if b then z else y)
  if-cong-else : y ≡ z → (if b then x else y) ≡ (if b then x else z)
  if-cong₂     : x ≡ z → y ≡ w → (if b then x else y) ≡ (if b then z else w)
  ```

* In `Data.Fin.Base`:
  ```agda
  _≰_   : Rel (Fin n) 0ℓ
  _≮_   : Rel (Fin n) 0ℓ
  lower : ∀ (i : Fin m) → .(toℕ i ℕ.< n) → Fin n
  ```

* In `Data.Fin.Permutation`:
  ```agda
  cast-id : .(m ≡ n) → Permutation m n
  swap    : Permutation m n → Permutation (2+ m) (2+ n)
  ```

* In `Data.Fin.Properties`:

  ```agda
  punchIn-mono-≤     : ∀ i (j k : Fin n) → j ≤ k → punchIn i j ≤ punchIn i k
  punchIn-cancel-≤   : ∀ i (j k : Fin n) → punchIn i j ≤ punchIn i k → j ≤ k
  punchOut-mono-≤    : (i≢j : i ≢ j) (i≢k : i ≢ k) → j ≤ k → punchOut i≢j ≤ punchOut i≢k
  punchOut-cancel-≤  : (i≢j : i ≢ j) (i≢k : i ≢ k) → punchOut i≢j ≤ punchOut i≢k → j ≤ k
  cast-involutive       : .(eq₁ : m ≡ n) .(eq₂ : n ≡ m) → ∀ k → cast eq₁ (cast eq₂ k) ≡ k
  inject!-injective     : Injective _≡_ _≡_ inject!
  inject!-<             : (k : Fin′ i) → inject! k < i
  lower-injective       : lower i i<n ≡ lower j j<n → i ≡ j
  injective⇒existsPivot : ∀ (f : Fin n → Fin m) → Injective _≡_ _≡_ f → ∀ (i : Fin n) → ∃ λ j → j ≤ i × i ≤ f j
  ```

* In `Data.Fin.Subset`:
  ```agda
  _⊇_ : Subset n → Subset n → Set
  _⊉_ : Subset n → Subset n → Set
  _⊃_ : Subset n → Subset n → Set
  _⊅_ : Subset n → Subset n → Set

  ```

* In `Data.Fin.Subset.Induction`:
  ```agda
  ⊃-Rec         : RecStruct (Subset n) ℓ ℓ
  ⊃-wellFounded : WellFounded _⊃_
  ```

* In `Data.Fin.Subset.Properties`
  ```agda
  p⊆q⇒∁p⊇∁q : p ⊆ q → ∁ p ⊇ ∁ q
  ∁p⊆∁q⇒p⊇q : ∁ p ⊆ ∁ q → p ⊇ q
  p⊂q⇒∁p⊃∁q : p ⊂ q → ∁ p ⊃ ∁ q
  ∁p⊂∁q⇒p⊃q : ∁ p ⊂ ∁ q → p ⊃ q
  ```

* In `Data.List.Instances`:
  ```agda
  instance listIsString : IsString (List Char)
  ```

* In `Data.List.Properties`:
  ```agda
  length-++-sucˡ    : length (x ∷ xs ++ ys) ≡ suc (length (xs ++ ys))
  length-++-sucʳ    : length (xs ++ y ∷ ys) ≡ suc (length (xs ++ ys))
  length-++-comm    : length (xs ++ ys) ≡ length (ys ++ xs)
  length-++-≤ˡ      : length xs ≤ length (xs ++ ys)
  length-++-≤ʳ      : length ys ≤ length (xs ++ ys)
  map-applyUpTo     : map g (applyUpTo f n) ≡ applyUpTo (g ∘ f) n
  map-applyDownFrom : map g (applyDownFrom f n) ≡ applyDownFrom (g ∘ f) n
  map-upTo          : map f (upTo n) ≡ applyUpTo f n
  map-downFrom      : map f (downFrom n) ≡ applyDownFrom f n
  ```

* In `Data.List.Relation.Binary.Permutation.Homogeneous`:
  ```agda
  onIndices : Permutation R xs ys → Fin.Permutation (length xs) (length ys)
  ```

* In `Data.List.Relation.Binary.Permutation.Propositional`:
  ```agda
  ↭⇒↭ₛ′ : IsEquivalence _≈_ → _↭_ ⇒ _↭ₛ′_
  ```

* In `Data.List.Relation.Binary.Permutation.Setoid.Properties`:
  ```agda
  xs↭ys⇒|xs|≡|ys|  : xs ↭ ys → length xs ≡ length ys
  ¬x∷xs↭[]         : ¬ (x ∷ xs ↭ [])
  onIndices-lookup : ∀ i → lookup xs i ≈ lookup ys (Inverse.to (onIndices xs↭ys) i)
  ```

* In `Data.List.Relation.Binary.Permutation.Propositional.Properties`:
  ```agda
  filter-↭ : xs ↭ ys → filter P? xs ↭ filter P? ys
  ```

* In `Data.List.Relation.Binary.Pointwise.Properties`:
  ```agda
  lookup-cast : Pointwise R xs ys → .(∣xs∣≡∣ys∣ : length xs ≡ length ys) → ∀ i → R (lookup xs i) (lookup ys (cast ∣xs∣≡∣ys∣ i))
  ```

* In `Data.List.Relation.Unary.AllPairs.Properties`:
  ```agda
  map⁻ : AllPairs R (map f xs) → AllPairs (R on f) xs
  ```

* In `Data.List.Relation.Unary.Linked`:
  ```agda
  lookup : Transitive R → Linked R xs → Connected R (just x) (head xs) → ∀ i → R x (List.lookup xs i)
  ```

* In `Data.List.Relation.Unary.Unique.Setoid.Properties`:
  ```agda
  map⁻ : Congruent _≈₁_ _≈₂_ f → Unique R (map f xs) → Unique S xs
  ```

* In `Data.List.Relation.Unary.Unique.Propositional.Properties`:
  ```agda
  map⁻ : Unique (map f xs) → Unique xs
  ```

* In `Data.List.Relation.Unary.Sorted.TotalOrder.Properties`:
  ```agda
  lookup-mono-≤ : Sorted xs → i Fin.≤ j → lookup xs i ≤ lookup xs j
  ↗↭↗⇒≋         : Sorted xs → Sorted ys → xs ↭ ys → xs ≋ ys
  ```

* In `Data.List.Sort.Base`:
  ```agda
  SortingAlgorithm.sort-↭ₛ : sort xs ↭ xs
  ```

* In `Data.List.NonEmpty.Properties`:
  ```agda
  ∷→∷⁺             : x ∷ xs ≡ y ∷ ys → (x List⁺.∷ xs) ≡ (y List⁺.∷ ys)
  ∷⁺→∷             : (x List⁺.∷ xs) ≡ (y List⁺.∷ ys) → x ∷ xs ≡ y ∷ ys
  length-⁺++⁺      : length (xs ⁺++⁺ ys) ≡ length xs + length ys
  length-⁺++⁺-comm : length (xs ⁺++⁺ ys) ≡ length (ys ⁺++⁺ xs)
  length-⁺++⁺-≤ˡ   : length xs ≤ length (xs ⁺++⁺ ys)
  length-⁺++⁺-≤ʳ   : length ys ≤ length (xs ⁺++⁺ ys)
  map-⁺++⁺         : map f (xs ⁺++⁺ ys) ≡ map f xs ⁺++⁺ map f ys
  ⁺++⁺-assoc       : Associative _⁺++⁺_
  ⁺++⁺-cancelˡ     : LeftCancellative _⁺++⁺_
  ⁺++⁺-cancelʳ     : RightCancellative _⁺++⁺_
  ⁺++⁺-cancel      : Cancellative _⁺++⁺_
  map-id           : map id ≗ id
  ```

* In `Data.Product.Function.Dependent.Propositional`:
  ```agda
  Σ-↪ : (I↪J : I ↪ J) → (∀ {j} → A (from I↪J j) ↪ B j) → Σ I A ↪ Σ J B
  ```

* In `Data.Product.Function.Dependent.Setoid`:
  ```agda
  rightInverse :
     (I↪J : I ↪ J) →
     (∀ {j} → RightInverse (A atₛ (from I↪J j)) (B atₛ j)) →
     RightInverse (I ×ₛ A) (J ×ₛ B)

  leftInverse :
    (I↩J : I ↩ J) →
    (∀ {i} → LeftInverse (A atₛ i) (B atₛ (to I↩J i))) →
    LeftInverse (I ×ₛ A) (J ×ₛ B)
  ```

* In `Data.Product.Nary.NonDependent`:
  ```agda
  HomoProduct′ n f = Product n (stabulate n (const _) f)
  HomoProduct  n A = HomoProduct′ n (const A)
  ```

* In `Data.Sum.Relation.Binary.LeftOrder` :
  ```agda
  ⊎-<-wellFounded : WellFounded ∼₁ → WellFounded ∼₂ → WellFounded (∼₁ ⊎-< ∼₂)
  ```

* in `Data.Sum.Relation.Binary.Pointwise` :
  ```agda
  ⊎-wellFounded : WellFounded ≈₁ → WellFounded ≈₂ → WellFounded (Pointwise ≈₁ ≈₂)
  ```

* In `Data.Vec.Properties`:
  ```agda
  toList-injective : .(m=n : m ≡ n) → (xs : Vec A m) (ys : Vec A n) → toList xs ≡ toList ys → xs ≈[ m=n ] ys
  toList-∷ʳ        : toList (xs ∷ʳ x) ≡ toList xs List.++ List.[ x ]
  fromList-reverse : (fromList (List.reverse xs)) ≈[ List.length-reverse xs ] reverse (fromList xs)
  fromList∘toList  : fromList (toList xs) ≈[ length-toList xs ] xs
  ```

* In `Data.Vec.Relation.Binary.Pointwise.Inductive`:
  ```agda
  zipWith-assoc     : Associative _∼_ f → Associative (Pointwise _∼_) (zipWith {n = n} f)
  zipWith-identityˡ : LeftIdentity _∼_ e f → LeftIdentity (Pointwise _∼_) (replicate n e) (zipWith f)
  zipWith-identityʳ : RightIdentity _∼_ e f → RightIdentity (Pointwise _∼_) (replicate n e) (zipWith f)
  zipWith-comm      : Commutative _∼_ f → Commutative (Pointwise _∼_) (zipWith {n = n} f)
  zipWith-cong      : Congruent₂ _∼_ f → Pointwise _∼_ ws xs → Pointwise _∼_ ys zs → Pointwise _∼_ (zipWith f ws ys) (zipWith f xs zs)
  ```

* In `Function.Nary.NonDependent.Base`:
  ```agda
  lconst l n = ⨆ l (lreplicate l n)
  stabulate  : ∀ n → (f : Fin n → Level) → (g : (i : Fin n) → Set (f i)) → Sets n (ltabulate n f)
  sreplicate : ∀ n → Set a → Sets n (lreplicate n a)
  ```

* In `Relation.Binary.Consequences`:
  ```agda
  mono₂⇒monoˡ : Reflexive ≤₁ → Monotonic₂ ≤₁ ≤₂ ≤₃ f → LeftMonotonic ≤₂ ≤₃ f
  mono₂⇒monoˡ : Reflexive ≤₂ → Monotonic₂ ≤₁ ≤₂ ≤₃ f → RightMonotonic ≤₁ ≤₃ f
  monoˡ∧monoʳ⇒mono₂ : Transitive ≤₃ →
                      LeftMonotonic ≤₂ ≤₃ f → RightMonotonic ≤₁ ≤₃ f →
                      Monotonic₂ ≤₁ ≤₂ ≤₃ f
  ```

* In `Relation.Binary.Construct.Add.Infimum.Strict`:
  ```agda
  <₋-accessible-⊥₋ : Acc _<₋_ ⊥₋
  <₋-accessible[_] : Acc _<_ x → Acc _<₋_ [ x ]
  <₋-wellFounded   : WellFounded _<_ → WellFounded _<₋_
  ```

* In `Relation.Binary.Definitions`:
  ```agda
  LeftMonotonic  : Rel B ℓ₁ → Rel C ℓ₂ → (A → B → C) → Set _
  RightMonotonic : Rel A ℓ₁ → Rel C ℓ₂ → (A → B → C) → Set _
  ```

* In `Relation.Nullary.Decidable`:
  ```agda
  dec-yes-recompute : (a? : Dec A) → .(a : A) → a? ≡ yes (recompute a? a)
  ```

* In `Relation.Nullary.Decidable.Core`:
  ```agda
  ⊤-dec : Dec ⊤
  ⊥-dec : Dec ⊥
  recompute-irrelevant-id : (a? : Decidable A) → Irrelevant A → (a : A) → recompute a? a ≡ a
  ```

* In `Relation.Unary`:
  ```agda
  _⊥_  : Pred A ℓ₁ → Pred A ℓ₂ → Set _
  _⊥′_ : Pred A ℓ₁ → Pred A ℓ₂ → Set _
  ```

* In `Relation.Unary.Properties`:
  ```agda
  ≬-symmetric : Sym _≬_ _≬_
  ⊥-symmetric : Sym _⊥_ _⊥_
  ≬-sym       : Symmetric _≬_
  ⊥-sym       : Symmetric _⊥_
  ≬⇒¬⊥        : _≬_ ⇒  (¬_ ∘₂ _⊥_)
  ⊥⇒¬≬        : _⊥_ ⇒  (¬_ ∘₂ _≬_)

* In `Relation.Nullary.Negation.Core`:
  ```agda
  contra-diagonal : (A → ¬ A) → ¬ A
  ```

* In `Relation.Nullary.Reflects`:
  ```agda
  ⊤-reflects : Reflects ⊤ true
  ⊥-reflects : Reflects ⊥ false
  ```