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
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
|
Version 0.15
============
The library has been tested using Agda version 2.5.3.
Non-backwards compatible changes
--------------------------------
#### Upgrade and overhaul of organisation of relations over data
* Relations over data have been moved from the `Relation` subtree to the `Data`
subtree. This increases the usability of the library by:
1. keeping all the definitions concerning a given datatype in the same directory
2. providing a location to reason about how operations on the data affect the
relations (e.g. how `Pointwise` is affected by `map`)
3. increasing the discoverability of the relations. There is anecdotal evidence that many
users were not aware of the existence of the relations in the old location.
In general the files have been moved from `Relation.Binary.X` to
`Data.X.Relation`. The full list of moves is as follows:
```
`Relation.Binary.List.Pointwise` ↦ `Data.List.Relation.Pointwise`
`Relation.Binary.List.StrictLex` ↦ `Data.List.Relation.Lex.Strict`
`Relation.Binary.List.NonStrictLex` ↦ `Data.List.Relation.Lex.NonStrict`
`Relation.Binary.Sum` ↦ `Data.Sum.Relation.Pointwise`
↘ `Data.Sum.Relation.LeftOrder`
`Relation.Binary.Sigma.Pointwise` ↦ `Data.Product.Relation.Pointwise.Dependent'
`Relation.Binary.Product.Pointwise` ↦ `Data.Product.Relation.Pointwise.NonDependent`
`Relation.Binary.Product.StrictLex` ↦ `Data.Product.Relation.Lex.Strict`
`Relation.Binary.Product.NonStrictLex` ↦ `Data.Product.Relation.Lex.NonStrict`
`Relation.Binary.Vec.Pointwise` ↦ `Data.Vec.Relation.Pointwise.Inductive`
↘ `Data.Vec.Relation.Pointwise.Extensional`
```
The old files in `Relation.Binary.X` still exist for backwards compatability reasons and
re-export the contents of files' new location in `Data.X.Relation` but may be removed in some
future release.
* The contents of `Relation.Binary.Sum` has been split into two modules
`Data.Sum.Relation.Pointwise` and `Data.Sum.Relation.LeftOrder`
* The contents of `Relation.Binary.Vec.Pointwise` has been split into two modules
`Data.Vec.Relation.Pointwise.Inductive` and `Data.Vec.Relation.Pointwise.Extensional`.
The inductive form of `Pointwise` has been generalised so that technically it can apply to two
vectors with different lengths (although in practice the lengths must turn out to be equal). This
allows a much wider range of proofs such as the fact that `[]` is a right identity for `_++_`
which previously did not type check using the old definition. In order to ensure
compatability with the `--without-K` option, the universe level of `Inductive.Pointwise`
has been increased from `ℓ` to `a ⊔ b ⊔ ℓ`.
* `Data.Vec.Equality` has been almost entirely reworked into four separate modules
inside `Data.Vec.Relation.Equality` (namely `Setoid`, `DecSetoid`, `Propositional`
and `DecPropositional`). All four of them now use `Data.Vec.Relation.Pointwise.Inductive`
as a base.
The proofs from the submodule `UsingVecEquality` in `Data.Vec.Properties` have been moved
to these four new modules.
* The datatype `All₂` has been removed from `Data.Vec.All`, along with associated proofs
as it duplicates existing functionality in `Data.Vec.Relation.Pointwise.Inductive`.
Unfortunately it is not possible to maintain backwards compatability due to dependency
cycles.
* Added new modules
`Data.List.Relation.Equality.(Setoid/DecSetoid/Propositional/DecPropositional)`.
#### Upgrade of `Data.AVL`
* `Data.AVL.Key` and `Data.AVL.Height` have been split out of `Data.AVL`
therefore ensuring they are independent on the type of `Value` the tree contains.
* `Indexed` has been put into its own core module `Data.AVL.Indexed`, following the
example of `Category.Monad.Indexed` and `Data.Container.Indexed`.
* These changes allow `map` to have a polymorphic type and so it is now possible
to change the type of values contained in a tree when mapping over it.
#### Upgrade of `Algebra.Morphism`
* Previously `Algebra.Morphism` only provides an example of a `Ring` homomorphism which
packs the homomorphism and the proofs that it behaves the right way.
Instead we have adopted and `Algebra.Structures`-like approach with proof-only
records parametrised by the homomorphism and the structures it acts on. This make
it possible to define the proof requirement for e.g. a ring in terms of the proof
requirements for its additive abelian group and multiplicative monoid.
#### Upgrade of `filter` and `partition` in `Data.List`
* The functions `filter` and `partition` in `Data.List.Base` now use decidable
predicates instead of boolean-valued functions. The boolean versions discarded
type information, and hence were difficult to use and prove
properties about. The proofs have been updated and renamed accordingly.
The old boolean versions still exist as `boolFilter` and `boolPartition` for
backwards compatibility reasons, but are deprecated and may be removed in some
future release. The old versions can be implemented via the new versions
by passing the decidability proof `λ v → f v ≟ true` with `_≟_` from `Data.Bool`.
#### Overhaul of categorical interpretations of List and Vec
* New modules `Data.List.Categorical` and `Data.Vec.Categorical` have been added
for the categorical interpretations of `List` and `Vec`.
The following have been moved to `Data.List.Categorical`:
- The module `Monad` from `Data.List.Properties` (renamed to `MonadProperties`)
- The module `Applicative` from `Data.List.Properties`
- `monad`, `monadZero`, `monadPlus` and monadic operators from `Data.List`
The following has been moved to `Data.Vec.Categorical`:
- `applicative` and `functor` from `Data.Vec`
- `lookup-morphism` and `lookup-functor-morphism` from `Data.Vec.Properties`
#### Other
* Removed support for GHC 7.8.4.
* Renamed `Data.Container.FreeMonad.do` and `Data.Container.Indexed.FreeMonad.do`
to `inn` as Agda 2.5.4 now supports proper 'do' notation.
* Changed the fixity of `⋃` and `⋂` in `Relation.Unary` to make space for `_⊢_`.
* Changed `_|_` from `Data.Nat.Divisibility` from data to a record. Consequently,
the two parameters are no longer implicit arguments of the constructor (but
such values can be destructed using a let-binding rather than a with-clause).
* Names in `Data.Nat.Divisibility` now use the `divides` symbol (typed \\|) consistently.
Previously a mixture of \\| and | was used.
* Moved the proof `eq?` from `Data.Nat` to `Data.Nat.Properties`
* The proofs that were called `+-monoˡ-<` and `+-monoʳ-<` in `Data.Nat.Properties`
have been renamed `+-mono-<-≤` and `+-mono-≤-<` respectively. The original
names are now used for proofs of left and right monotonicity of `_+_`.
* Moved the proof `monoid` from `Data.List` to `++-monoid` in `Data.List.Properties`.
* Names in Data.Nat.Divisibility now use the `divides` symbol (typed \\|) consistently.
Previously a mixture of \\| and | was used.
* Starting from Agda 2.5.4 the GHC backend compiles `Coinduction.∞` in
a different way, and for this reason the GHC backend pragmas for
`Data.Colist.Colist` and `Data.Stream.Stream` have been modified.
Deprecated features
-------------------
The following renaming has occurred as part of a drive to improve consistency across
the library. The old names still exist and therefore all existing code should still
work, however they have been deprecated and use of the new names is encouraged. Although not
anticipated any time soon, they may eventually be removed in some future release of the library.
* In `Data.Bool.Properties`:
```agda
∧-∨-distˡ ↦ ∧-distribˡ-∨
∧-∨-distʳ ↦ ∧-distribʳ-∨
distrib-∧-∨ ↦ ∧-distrib-∨
∨-∧-distˡ ↦ ∨-distribˡ-∧
∨-∧-distʳ ↦ ∨-distribʳ-∧
∨-∧-distrib ↦ ∨-distrib-∧
∨-∧-abs ↦ ∨-abs-∧
∧-∨-abs ↦ ∧-abs-∨
not-∧-inverseˡ ↦ ∧-inverseˡ
not-∧-inverseʳ ↦ ∧-inverseʳ
not-∧-inverse ↦ ∧-inverse
not-∨-inverseˡ ↦ ∨-inverseˡ
not-∨-inverseʳ ↦ ∨-inverseʳ
not-∨-inverse ↦ ∨-inverse
isCommutativeSemiring-∨-∧ ↦ ∨-∧-isCommutativeSemiring
commutativeSemiring-∨-∧ ↦ ∨-∧-commutativeSemiring
isCommutativeSemiring-∧-∨ ↦ ∧-∨-isCommutativeSemiring
commutativeSemiring-∧-∨ ↦ ∧-∨-commutativeSemiring
isBooleanAlgebra ↦ ∨-∧-isBooleanAlgebra
booleanAlgebra ↦ ∨-∧-booleanAlgebra
commutativeRing-xor-∧ ↦ xor-∧-commutativeRing
proof-irrelevance ↦ T-irrelevance
```
* In `Data.Fin.Properties`:
```agda
cmp ↦ <-cmp
strictTotalOrder ↦ <-strictTotalOrder
```
* In `Data.Integer.Properties`:
```agda
inverseˡ ↦ +-inverseˡ
inverseʳ ↦ +-inverseʳ
distribʳ ↦ *-distribʳ-+
isCommutativeSemiring ↦ +-*-isCommutativeSemiring
commutativeRing ↦ +-*-commutativeRing
*-+-right-mono ↦ *-monoʳ-≤-pos
cancel-*-+-right-≤ ↦ *-cancelʳ-≤-pos
cancel-*-right ↦ *-cancelʳ-≡
doubleNeg ↦ neg-involutive
-‿involutive ↦ neg-involutive
+-⊖-left-cancel ↦ +-cancelˡ-⊖
```
* In `Data.List.Base`:
```agda
gfilter ↦ mapMaybe
```
* In `Data.List.Properties`:
```agda
right-identity-unique ↦ ++-identityʳ-unique
left-identity-unique ↦ ++-identityˡ-unique
```
* In `Data.List.Relation.Pointwise`:
```agda
Rel ↦ Pointwise
Rel≡⇒≡ ↦ Pointwise-≡⇒≡
≡⇒Rel≡ ↦ ≡⇒Pointwise-≡
Rel↔≡ ↦ Pointwise-≡↔≡
```
* In `Data.Nat.Properties`:
```agda
¬i+1+j≤i ↦ i+1+j≰i
≤-steps ↦ ≤-stepsˡ
```
* In all modules in the `Data.(Product/Sum).Relation` folders, all proofs with
names using infix notation have been deprecated in favour of identical
non-infix names, e.g.
```
_×-isPreorder_ ↦ ×-isPreorder
```
* In `Data.Product.Relation.Lex.(Non)Strict`:
```agda
×-≈-respects₂ ↦ ×-respects₂
```
* In `Data.Product.Relation.Pointwise.Dependent`:
```agda
Rel ↦ Pointwise
Rel↔≡ ↦ Pointwise-≡↔≡
```
* In `Data.Product.Relation.Pointwise.NonDependent`:
```agda
_×-Rel_ ↦ Pointwise
Rel↔≡ ↦ Pointwise-≡↔≡
_×-≈-respects₂_ ↦ ×-respects₂
```
* In `Data.Sign.Properties`:
```agda
opposite-not-equal ↦ s≢opposite[s]
opposite-cong ↦ opposite-injective
cancel-*-left ↦ *-cancelˡ-≡
cancel-*-right ↦ *-cancelʳ-≡
*-cancellative ↦ *-cancel-≡
```
* In `Data.Vec.Properties`:
```agda
proof-irrelevance-[]= ↦ []=-irrelevance
```
* In `Data.Vec.Relation.Pointwise.Inductive`:
```agda
Pointwise-≡ ↦ Pointwise-≡↔≡
```
* In `Data.Vec.Relation.Pointwise.Extensional`:
```agda
Pointwise-≡ ↦ Pointwise-≡↔≡
```
* In `Induction.Nat`:
```agda
rec-builder ↦ recBuilder
cRec-builder ↦ cRecBuilder
<′-rec-builder ↦ <′-recBuilder
<-rec-builder ↦ <-recBuilder
≺-rec-builder ↦ ≺-recBuilder
<′-well-founded ↦ <′-wellFounded
<′-well-founded′ ↦ <′-wellFounded′
<-well-founded ↦ <-wellFounded
≺-well-founded ↦ ≺-wellFounded
```
* In `Induction.WellFounded`:
```agda
Well-founded ↦ WellFounded
Some.wfRec-builder ↦ Some.wfRecBuilder
All.wfRec-builder ↦ All.wfRecBuilder
Subrelation.well-founded ↦ Subrelation.wellFounded
InverseImage.well-founded ↦ InverseImage.wellFounded
TransitiveClosure.downwards-closed ↦ TransitiveClosure.downwardsClosed
TransitiveClosure.well-founded ↦ TransitiveClosure.wellFounded
Lexicographic.well-founded ↦ Lexicographic.wellFounded
```
* In `Relation.Binary.PropositionalEquality`:
```agda
proof-irrelevance ↦ ≡-irrelevance
```
Removed features
----------------
#### Deprecated in version 0.10
* Modules `Deprecated-inspect` and `Deprecated-inspect-on-steroids` in `Relation.Binary.PropositionalEquality`.
* Module `Deprecated-inspect-on-steroids` in `Relation.Binary.HeterogeneousEquality`.
Backwards compatible changes
----------------------------
* Added support for GHC 8.2.2.
* New module `Data.Word` for new builtin type `Agda.Builtin.Word.Word64`.
* New modules `Data.Table`, `Data.Table.Base`,
`Data.Table.Relation.Equality` and `Data.Table.Properties`. A `Table` is a
fixed-length collection of objects similar to a `Vec` from `Data.Vec`, but
implemented as a function `Fin n → A`. This prioritises ease of lookup as opposed
to `Vec` which prioritises the ease of adding and removing elements.
* The contents of the following modules are now more polymorphic with respect to levels:
```agda
Data.Covec
Data.List.Relation.Lex.Strict
Data.List.Relation.Lex.NonStrict
Data.Vec.Properties
Data.Vec.Relation.Pointwise.Inductive
Data.Vec.Relation.Pointwise.Extensional
```
* Added new proof to `asymmetric : Asymmetric _<_` to the `IsStrictPartialOrder` record.
* Added new proofs to `Data.AVL`:
```agda
leaf-injective : leaf p ≡ leaf q → p ≡ q
node-injective-key : node k₁ lk₁ ku₁ bal₁ ≡ node k₂ lk₂ ku₂ bal₂ → k₁ ≡ k₂
node-injectiveˡ : node k lk₁ ku₁ bal₁ ≡ node k lk₂ ku₂ bal₂ → lk₁ ≡ lk₂
node-injectiveʳ : node k lk₁ ku₁ bal₁ ≡ node k lk₂ ku₂ bal₂ → ku₁ ≡ ku₂
node-injective-bal : node k lk₁ ku₁ bal₁ ≡ node k lk₂ ku₂ bal₂ → bal₁ ≡ bal₂
```
* Added new proofs to `Data.Bin`:
```agda
less-injective : (b₁ < b₂ ∋ less lt₁) ≡ less lt₂ → lt₁ ≡ lt₂
```
* Added new proofs to `Data.Bool.Properties`:
```agda
∨-identityˡ : LeftIdentity false _∨_
∨-identityʳ : RightIdentity false _∨_
∨-identity : Identity false _∨_
∨-zeroˡ : LeftZero true _∨_
∨-zeroʳ : RightZero true _∨_
∨-zero : Zero true _∨_
∨-idem : Idempotent _∨_
∨-sel : Selective _∨_
∨-isSemigroup : IsSemigroup _≡_ _∨_
∨-isCommutativeMonoid : IsCommutativeMonoid _≡_ _∨_ false
∧-identityˡ : LeftIdentity true _∧_
∧-identityʳ : RightIdentity true _∧_
∧-identity : Identity true _∧_
∧-zeroˡ : LeftZero false _∧_
∧-zeroʳ : RightZero false _∧_
∧-zero : Zero false _∧_
∧-idem : Idempotent _∧_
∧-sel : Selective _∧_
∧-isSemigroup : IsSemigroup _≡_ _∧_
∧-isCommutativeMonoid : IsCommutativeMonoid _≡_ _∧_ true
∨-∧-isLattice : IsLattice _≡_ _∨_ _∧_
∨-∧-isDistributiveLattice : IsDistributiveLattice _≡_ _∨_ _∧_
```
* Added missing bindings to functions on `Data.Char.Base`:
```agda
isLower : Char → Bool
isDigit : Char → Bool
isAlpha : Char → Bool
isSpace : Char → Bool
isAscii : Char → Bool
isLatin1 : Char → Bool
isPrint : Char → Bool
isHexDigit : Char → Bool
toNat : Char → ℕ
fromNat : ℕ → Char
```
* Added new proofs to `Data.Cofin`:
```agda
suc-injective : (Cofin (suc m) ∋ suc p) ≡ suc q → p ≡ q
```
* Added new proofs to `Data.Colist`:
```agda
∷-injectiveˡ : (Colist A ∋ x ∷ xs) ≡ y ∷ ys → x ≡ y
∷-injectiveʳ : (Colist A ∋ x ∷ xs) ≡ y ∷ ys → xs ≡ ys
here-injective : (Any P (x ∷ xs) ∋ here p) ≡ here q → p ≡ q
there-injective : (Any P (x ∷ xs) ∋ there p) ≡ there q → p ≡ q
∷-injectiveˡ : (All P (x ∷ xs) ∋ px ∷ pxs) ≡ qx ∷ qxs → px ≡ qx
∷-injectiveʳ : (All P (x ∷ xs) ∋ px ∷ pxs) ≡ qx ∷ qxs → pxs ≡ qxs
∷-injective : (Finite (x ∷ xs) ∋ x ∷ p) ≡ x ∷ q → p ≡ q
∷-injective : (Infinite (x ∷ xs) ∋ x ∷ p) ≡ x ∷ q → p ≡ q
```
* Added new operations and proofs to `Data.Conat`:
```agda
pred : Coℕ → Coℕ
suc-injective : (Coℕ ∋ suc m) ≡ suc n → m ≡ n
fromℕ-injective : fromℕ m ≡ fromℕ n → m ≡ n
suc-injective : (suc m ≈ suc n ∋ suc p) ≡ suc q → p ≡ q
```
* Added new proofs to `Data.Covec`:
```agda
∷-injectiveˡ : (Covec A (suc n) ∋ a ∷ as) ≡ b ∷ bs → a ≡ b
∷-injectiveʳ : (Covec A (suc n) ∋ a ∷ as) ≡ b ∷ bs → as ≡ bs
```
* Added new proofs to `Data.Fin.Properties`:
```agda
≤-isDecTotalOrder : ∀ {n} → IsDecTotalOrder _≡_ (_≤_ {n})
≤-irrelevance : ∀ {n} → IrrelevantRel (_≤_ {n})
<-asym : ∀ {n} → Asymmetric (_<_ {n})
<-irrefl : ∀ {n} → Irreflexive _≡_ (_<_ {n})
<-irrelevance : ∀ {n} → IrrelevantRel (_<_ {n})
```
* Added new proofs to `Data.Integer.Properties`:
```agda
+-cancelˡ-⊖ : (a + b) ⊖ (a + c) ≡ b ⊖ c
neg-minus-pos : -[1+ m ] - (+ n) ≡ -[1+ (m + n) ]
[+m]-[+n]≡m⊖n : (+ m) - (+ n) ≡ m ⊖ n
∣m-n∣≡∣n-m∣ : ∣ m - n ∣ ≡ ∣ n - m ∣
+-minus-telescope : (m - n) + (n - o) ≡ m - o
pos-distrib-* : ∀ x y → (+ x) * (+ y) ≡ + (x * y)
≤-irrelevance : IrrelevantRel _≤_
<-irrelevance : IrrelevantRel _<_
```
* Added new combinators to `Data.List.Base`:
```agda
lookup : (xs : List A) → Fin (length xs) → A
unzipWith : (A → B × C) → List A → List B × List C
unzip : List (A × B) → List A × List B
```
* Added new proofs to `Data.List.Properties`:
```agda
∷-injectiveˡ : x ∷ xs ≡ y List.∷ ys → x ≡ y
∷-injectiveʳ : x ∷ xs ≡ y List.∷ ys → xs ≡ ys
∷ʳ-injectiveˡ : xs ∷ʳ x ≡ ys ∷ʳ y → xs ≡ ys
∷ʳ-injectiveʳ : xs ∷ʳ x ≡ ys ∷ʳ y → x ≡ y
++-assoc : Associative {A = List A} _≡_ _++_
++-identityˡ : LeftIdentity _≡_ [] _++_
++-identityʳ : RightIdentity _≡_ [] _++_
++-identity : Identity _≡_ [] _++_
++-isSemigroup : IsSemigroup {A = List A} _≡_ _++_
++-isMonoid : IsMonoid {A = List A} _≡_ _++_ []
++-semigroup : ∀ {a} (A : Set a) → Semigroup _ _
++-monoid : ∀ {a} (A : Set a) → Monoid _ _
filter-none : All P xs → dfilter P? xs ≡ xs
filter-some : Any (∁ P) xs → length (filter P? xs) < length xs
filter-notAll : Any P xs → 0 < length (filter P? xs)
filter-all : All (∁ P) xs → dfilter P? xs ≡ []
filter-complete : length (filter P? xs) ≡ length xs → filter P? xs ≡ xs
tabulate-cong : f ≗ g → tabulate f ≡ tabulate g
tabulate-lookup : tabulate (lookup xs) ≡ xs
zipWith-identityˡ : ∀ xs → zipWith f [] xs ≡ []
zipWith-identityʳ : ∀ xs → zipWith f xs [] ≡ []
zipWith-comm : (∀ x y → f x y ≡ f y x) → zipWith f xs ys ≡ zipWith f ys xs
zipWith-unzipWith : uncurry′ g ∘ f ≗ id → uncurry′ (zipWith g) ∘ (unzipWith f) ≗ id
zipWith-map : zipWith f (map g xs) (map h ys) ≡ zipWith (λ x y → f (g x) (h y)) xs ys
map-zipWith : map g (zipWith f xs ys) ≡ zipWith (λ x y → g (f x y)) xs ys
length-zipWith : length (zipWith f xs ys) ≡ length xs ⊓ length ys
length-unzipWith₁ : length (proj₁ (unzipWith f xys)) ≡ length xys
length-unzipWith₂ : length (proj₂ (unzipWith f xys)) ≡ length xys
```
* Added new proofs to `Data.List.All.Properties`:
```agda
All-irrelevance : IrrelevantPred P → IrrelevantPred (All P)
filter⁺₁ : All P (filter P? xs)
filter⁺₂ : All Q xs → All Q (filter P? xs)
mapMaybe⁺ : All (Maybe.All P) (map f xs) → All P (mapMaybe f xs)
zipWith⁺ : Pointwise (λ x y → P (f x y)) xs ys → All P (zipWith f xs ys)
```
* Added new proofs to `Data.List.Any.Properties`:
```agda
mapMaybe⁺ : Any (Maybe.Any P) (map f xs) → Any P (mapMaybe f xs)
```
* Added new proofs to `Data.List.Relation.Lex.NonStrict`:
```agda
<-antisymmetric : Symmetric _≈_ → Antisymmetric _≈_ _≼_ → Antisymmetric _≋_ _<_
<-transitive : IsPartialOrder _≈_ _≼_ → Transitive _<_
<-resp₂ : IsEquivalence _≈_ → _≼_ Respects₂ _≈_ → _<_ Respects₂ _≋_
≤-antisymmetric : Symmetric _≈_ → Antisymmetric _≈_ _≼_ → Antisymmetric _≋_ _≤_
≤-transitive : IsPartialOrder _≈_ _≼_ → Transitive _≤_
≤-resp₂ : IsEquivalence _≈_ → _≼_ Respects₂ _≈_ → _≤_ Respects₂ _≋_
```
* Added new proofs to `Data.List.Relation.Pointwise`:
```agda
tabulate⁺ : (∀ i → f i ∼ g i) → Pointwise _∼_ (tabulate f) (tabulate g)
tabulate⁻ : Pointwise _∼_ (tabulate f) (tabulate g) → (∀ i → f i ∼ g i)
++⁺ : Pointwise _∼_ ws xs → Pointwise _∼_ ys zs → Pointwise _∼_ (ws ++ ys) (xs ++ zs)
concat⁺ : Pointwise (Pointwise _∼_) xss yss → Pointwise _∼_ (concat xss) (concat yss)
```
* Added new proofs to `Data.List.Relation.Lex.Strict`:
```agda
<-antisymmetric : Symmetric _≈_ → Irreflexive _≈_ _≺_ → Asymmetric _≺_ → Antisymmetric _≋_ _<_
<-transitive : IsEquivalence _≈_ → _≺_ Respects₂ _≈_ → Transitive _≺_ → Transitive _<_
<-respects₂ : IsEquivalence _≈_ → _≺_ Respects₂ _≈_ → _<_ Respects₂ _≋_
≤-antisymmetric : Symmetric _≈_ → Irreflexive _≈_ _≺_ → Asymmetric _≺_ → Antisymmetric _≋_ _≤_
≤-transitive : IsEquivalence _≈_ → _≺_ Respects₂ _≈_ → Transitive _≺_ → Transitive _≤_
≤-respects₂ : IsEquivalence _≈_ → _≺_ Respects₂ _≈_ → _≤_ Respects₂ _≋_
```
* Added new proofs to `Data.Maybe.Base`:
```agda
just-injective : (Maybe A ∋ just a) ≡ just b → a ≡ b
```
* Added new proofs to `Data.Nat.Divisibility`:
```agda
m|m*n : m ∣ m * n
∣m⇒∣m*n : i ∣ m → i ∣ m * n
∣n⇒∣m*n : i ∣ n → i ∣ m * n
```
* Added new proofs to `Data.Nat.Properties`:
```agda
≤⇒≯ : _≤_ ⇒ _≯_
n≮n : ∀ n → n ≮ n
≤-stepsʳ : ∀ m ≤ n → m ≤ n + o
≤-irrelevance : IrrelevantRel _≤_
<-irrelevance : IrrelevantRel _<_
+-monoˡ-≤ : ∀ n → (_+ n) Preserves _≤_ ⟶ _≤_
+-monoʳ-≤ : ∀ n → (n +_) Preserves _≤_ ⟶ _≤_
+-monoˡ-< : ∀ n → (_+ n) Preserves _<_ ⟶ _<_
+-monoʳ-< : ∀ n → (n +_) Preserves _<_ ⟶ _<_
+-semigroup : Semigroup _ _
+-0-monoid : Monoid _ _
+-0-commutativeMonoid : CommutativeMonoid _ _
*-monoˡ-≤ : ∀ n → (_* n) Preserves _≤_ ⟶ _≤_
*-monoʳ-≤ : ∀ n → (n *_) Preserves _≤_ ⟶ _≤_
*-semigroup : Semigroup _ _
*-1-monoid : Monoid _ _
*-1-commutativeMonoid : CommutativeMonoid _ _
*-+-semiring : Semiring _ _
^-identityʳ : RightIdentity 1 _^_
^-zeroˡ : LeftZero 1 _^_
^-semigroup-morphism : (x ^_) Is +-semigroup -Semigroup⟶ *-semigroup
^-monoid-morphism : (x ^_) Is +-0-monoid -Monoid⟶ *-1-monoid
m≤n⇒m⊓n≡m : m ≤ n → m ⊓ n ≡ m
m≤n⇒n⊓m≡m : m ≤ n → n ⊓ m ≡ m
m≤n⇒n⊔m≡n : m ≤ n → n ⊔ m ≡ n
m≤n⇒m⊔n≡n : m ≤ n → m ⊔ n ≡ n
⊔-monoˡ-≤ : ∀ n → (_⊔ n) Preserves _≤_ ⟶ _≤_
⊔-monoʳ-≤ : ∀ n → (n ⊔_) Preserves _≤_ ⟶ _≤_
⊓-monoˡ-≤ : ∀ n → (_⊓ n) Preserves _≤_ ⟶ _≤_
⊓-monoʳ-≤ : ∀ n → (n ⊓_) Preserves _≤_ ⟶ _≤_
m∸n+n≡m : n ≤ m → (m ∸ n) + n ≡ m
m∸[m∸n]≡n : n ≤ m → m ∸ (m ∸ n) ≡ n
s≤s-injective : s≤s p ≡ s≤s q → p ≡ q
≤′-step-injective : ≤′-step p ≡ ≤′-step q → p ≡ q
```
* Added new proofs to `Data.Plus`:
```agda
[]-injective : (x [ _∼_ ]⁺ y ∋ [ p ]) ≡ [ q ] → p ≡ q
∼⁺⟨⟩-injectiveˡ : (x [ _∼_ ]⁺ z ∋ x ∼⁺⟨ p ⟩ q) ≡ (x ∼⁺⟨ r ⟩ s) → p ≡ r
∼⁺⟨⟩-injectiveʳ : (x [ _∼_ ]⁺ z ∋ x ∼⁺⟨ p ⟩ q) ≡ (x ∼⁺⟨ r ⟩ s) → q ≡ s
```
* Added new combinator to `Data.Product`:
```agda
curry′ : (A × B → C) → (A → B → C)
```
* Added new proofs to `Data.Product.Properties`:
```agda
,-injectiveˡ : (a , b) ≡ (c , d) → a ≡ c
,-injectiveʳ : (Σ A B ∋ (a , b)) ≡ (a , c) → b ≡ c
```
* Added new operator in `Data.Product.Relation.Pointwise.NonDependent`:
```agda
_×ₛ_ : Setoid ℓ₁ ℓ₂ → Setoid ℓ₃ ℓ₄ → Setoid _ _
```
* Added new proofs to `Data.Rational.Properties`:
```agda
≤-irrelevance : IrrelevantRel _≤_
```
* Added new proofs to `Data.ReflexiveClosure`:
```agda
[]-injective : (Refl _∼_ x y ∋ [ p ]) ≡ [ q ] → p ≡ q
```
* Added new proofs to `Data.Sign`:
```agda
*-isSemigroup : IsSemigroup _≡_ _*_
*-semigroup : Semigroup _ _
*-isMonoid : IsMonoid _≡_ _*_ +
*-monoid : Monoid _ _
```
* Added new proofs to `Data.Star.Properties`:
```agda
◅-injectiveˡ : (Star T i k ∋ x ◅ xs) ≡ y ◅ ys → x ≡ y
◅-injectiveʳ : (Star T i k ∋ x ◅ xs) ≡ y ◅ ys → xs ≡ ys
```
* Added new proofs to `Data.Sum.Properties`:
```agda
inj₁-injective : (A ⊎ B ∋ inj₁ x) ≡ inj₁ y → x ≡ y
inj₂-injective : (A ⊎ B ∋ inj₂ x) ≡ inj₂ y → x ≡ y
```
* Added new operator in `Data.Sum.Relation.Pointwise`:
```agda
_⊎ₛ_ : Setoid ℓ₁ ℓ₂ → Setoid ℓ₃ ℓ₄ → Setoid _ _
```
* Added new proofs to `Data.Vec.Properties`:
```agda
∷-injectiveˡ : x ∷ xs ≡ y ∷ ys → x ≡ y
∷-injectiveʳ : x ∷ xs ≡ y ∷ ys → xs ≡ ys
[]=⇒lookup : xs [ i ]= x → lookup i xs ≡ x
lookup⇒[]= : lookup i xs ≡ x → xs [ i ]= x
lookup-replicate : lookup i (replicate x) ≡ x
lookup-⊛ : lookup i (fs ⊛ xs) ≡ (lookup i fs $ lookup i xs)
tabulate-cong : f ≗ g → tabulate f ≡ tabulate g
```
* Added new proofs to `Data.Vec.All.Properties`
```agda
All-irrelevance : IrrelevantPred P → ∀ {n} → IrrelevantPred (All P {n})
```
* Added new proofs to `Data.Vec.Relation.Pointwise.Extensional`:
```agda
isDecEquivalence : IsDecEquivalence _~_ → IsDecEquivalence (Pointwise _~_)
extensional⇒inductive : Pointwise _~_ xs ys → IPointwise _~_ xs ys
inductive⇒extensional : IPointwise _~_ xs ys → Pointwise _~_ xs ys
≡⇒Pointwise-≡ : Pointwise _≡_ xs ys → xs ≡ ys
Pointwise-≡⇒≡ : xs ≡ ys → Pointwise _≡_ xs ys
```
* Added new proofs to `Data.Vec.Relation.Pointwise.Inductive`:
```agda
++⁺ : Pointwise P xs → Pointwise P ys → Pointwise P (xs ++ ys)
++⁻ˡ : Pointwise P (xs ++ ys) → Pointwise P xs
++⁻ʳ : Pointwise P (xs ++ ys) → Pointwise P ys
++⁻ : Pointwise P (xs ++ ys) → Pointwise P xs × Pointwise P ys
concat⁺ : Pointwise (Pointwise P) xss → Pointwise P (concat xss)
concat⁻ : Pointwise P (concat xss) → Pointwise (Pointwise P) xss
lookup : Pointwise _~_ xs ys → ∀ i → lookup i xs ~ lookup i ys
isDecEquivalence : IsDecEquivalence _~_ → IsDecEquivalence (Pointwise _~_)
≡⇒Pointwise-≡ : Pointwise _≡_ xs ys → xs ≡ ys
Pointwise-≡⇒≡ : xs ≡ ys → Pointwise _≡_ xs ys
Pointwiseˡ⇒All : Pointwise (λ x y → P x) xs ys → All P xs
Pointwiseʳ⇒All : Pointwise (λ x y → P y) xs ys → All P ys
All⇒Pointwiseˡ : All P xs → Pointwise (λ x y → P x) xs ys
All⇒Pointwiseʳ : All P ys → Pointwise (λ x y → P y) xs ys
```
* Added new functions and proofs to `Data.W`:
```agda
map : (f : A → C) → ∀[ D ∘ f ⇒ B ] → W A B → W C D
induction : (∀ a {f} (hf : ∀ (b : B a) → P (f b)) → (w : W A B) → P w
foldr : (∀ a → (B a → P) → P) → W A B → P
sup-injective₁ : sup x f ≡ sup y g → x ≡ y
sup-injective₂ : sup x f ≡ sup x g → f ≡ g
```
* Added new properties to `Relation.Binary.PropositionalEquality`
```agda
isPropositional A = (a b : A) → a ≡ b
IrrelevantPred P = ∀ {x} → isPropositional (P x)
IrrelevantRel _~_ = ∀ {x y} → isPropositional (x ~ y)
```
* Added new combinator to ` Relation.Binary.PropositionalEquality.TrustMe`:
```agda
postulate[_↦_] : (t : A) → B t → (x : A) → B x
```
* Added new proofs to `Relation.Binary.StrictToNonStrict`:
```agda
isPreorder₁ : IsPreorder _≈_ _<_ → IsPreorder _≈_ _≤_
isPreorder₂ : IsStrictPartialOrder _≈_ _<_ → IsPreorder _≈_ _≤_
isPartialOrder : IsStrictPartialOrder _≈_ _<_ → IsPartialOrder _≈_ _≤_
isTotalOrder : IsStrictTotalOrder _≈_ _<_ → IsTotalOrder _≈_ _≤_
isDecTotalOrder : IsStrictTotalOrder _≈_ _<_ → IsDecTotalOrder _≈_ _≤_
```
* Added new syntax, relations and proofs to `Relation.Unary`:
```agda
syntax Universal P = ∀[ P ]
P ⊈ Q = ¬ (P ⊆ Q)
P ⊉ Q = ¬ (P ⊇ Q)
P ⊂ Q = P ⊆ Q × Q ⊈ P
P ⊃ Q = Q ⊂ P
P ⊄ Q = ¬ (P ⊂ Q)
P ⊅ Q = ¬ (P ⊃ Q)
P ⊈′ Q = ¬ (P ⊆′ Q)
P ⊉′ Q = ¬ (P ⊇′ Q)
P ⊂′ Q = P ⊆′ Q × Q ⊈′ P
P ⊃′ Q = Q ⊂′ P
P ⊄′ Q = ¬ (P ⊂′ Q)
P ⊅′ Q = ¬ (P ⊃′ Q)
f ⊢ P = λ x → P (f x)
∁? : Decidable P → Decidable (∁ P)
```
* Added `recompute` to `Relation.Nullary`:
```agda
recompute : ∀ {a} {A : Set a} → Dec A → .A → A
```
|