@@ -97,7 +97,8 @@ ordering relation `R`/`<` are expected to play together nicely (if `a < b`, and
|
||||
{{< codelines "agda" "agda-spa/Chain.agda" 3 7 >}}
|
||||
|
||||
From there, the definition of the `Chain` data type is much like the definition
|
||||
of a vector, but indexed by the endpoints, and containing witnesses of `R`/`<`
|
||||
of [a vector from `Data.Vec`](https://agda.github.io/agda-stdlib/v2.0/Data.Vec.Base.html#1111),
|
||||
but indexed by the endpoints, and containing witnesses of `R`/`<`
|
||||
between its elements. The indexing allows for representing
|
||||
the type of chains between particular lattice elements, and serves to ensure
|
||||
concatenation and other operations don't merge disparate chains.
|
||||
|
||||
Reference in New Issue
Block a user