Skip to content

Commit d641582

Browse files
Setoid version of indexed containers. (#1511)
* Setoid version of indexed containers. Following the structure for non-indexed containers. * An example for indexed containers: multi-sorted algebras. This tests the new setoid version of indexed containers. * Brought code up to date * Added CHANGELOG entry --------- Co-authored-by: MatthewDaggitt <[email protected]>
1 parent d0fe603 commit d641582

File tree

8 files changed

+637
-16
lines changed

8 files changed

+637
-16
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ New modules
7575
Relation.Binary.Construct.Interior.Symmetric
7676
```
7777

78+
* Pointwise and equality relations over indexed containers:
79+
```agda
80+
Data.Container.Indexed.Relation.Binary.Pointwise
81+
Data.Container.Indexed.Relation.Binary.Pointwise.Properties
82+
Data.Container.Indexed.Relation.Binary.Equality.Setoid
83+
```
84+
7885
Additions to existing modules
7986
-----------------------------
8087

@@ -142,6 +149,11 @@ Additions to existing modules
142149
idem-×-homo-* : (_*_ IdempotentOn x) → (m × x) * (n × x) ≈ (m ℕ.* n) × x
143150
```
144151

152+
* In `Data.Container.Indexed.Core`:
153+
```agda
154+
Subtrees o c = (r : Response c) → X (next c r)
155+
```
156+
145157
* In `Data.Fin.Properties`:
146158
```agda
147159
nonZeroIndex : Fin n → ℕ.NonZero n

doc/README/Data.agda

+2-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ import README.Data.Vec.Relation.Binary.Equality.Cast
218218
-- monad, least fixed point, etc.) can be used
219219

220220
import README.Data.Container.FreeMonad
221-
import README.Data.Container.Indexed
221+
import README.Data.Container.Indexed.VectorExample
222+
import README.Data.Container.Indexed.MultiSortedAlgebraExample
222223

223224
-- Wrapping n-ary relations into a record definition so type-inference
224225
-- remembers the things being related.

0 commit comments

Comments
 (0)