Skip to content
Snippets Groups Projects
Commit 5140c630 authored by David Swasey's avatar David Swasey
Browse files

Adjust comment.

parent cb65a2e5
Branches swasey/sets
No related tags found
No related merge requests found
...@@ -8,19 +8,21 @@ Set Primitive Projections. ...@@ -8,19 +8,21 @@ Set Primitive Projections.
(** CMRAs for sets with union and disjoint union. *) (** CMRAs for sets with union and disjoint union. *)
(** To define these CMRAs generically without breaking canonical (** To define these CMRAs generically without breaking canonical
structures, we bundle the (mainly) typeclass instances used by the structures, we bundle the assumptions made by the CMRAs into canonical
CMRAs into canonical structures. These TC instances are defined structures. These assumptions are mainly typeclass instances. These TC
elsewhere, so we keep our `typeclass_instances` hints `Local`. instances are defined elsewhere, so we keep our `typeclass_instances`
hints `Local`.
To use these CMRAs with a set implementation, define canonical To use these CMRAs with a set implementation, define canonical
structures for structures for
- [semi_setT] the union CMRA (suffix "U") - [semi_setT] assumptions made by the union CMRA (suffix "U")
- [disjoint_setT] the disjoint union CMRA (suffix "D") - [disjoint_setT] assumptions made by the disjoint union CMRA (suffix
"D")
- [fresh_setT] a "subclass" of [disjoint_setT] with extra assumptions - [fresh_setT] a "subclass" of [disjoint_setT] with extra assumptions
enabling local updates (in the disjoint union CMRA) for allocating enabling, in the disjoint union CMRA, local updates for allocating
elements not in a finite set (suffix "DF") elements not in a finite set (suffix "DF")
The `std++` type [gset], for example, supports all three via [gsetU], The `std++` type [gset], for example, supports all three via [gsetU],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment