cogset
Add a type cogset A
of finite/cofinite sets of elements of countable type A
. When A
is also infinite, all the usual operations are decidable. The implementation uses a pair of constructors (finite or infinite) each carrying a finite set.
The file includes efficient conversions to and from gset A
(for finite cogsets) and to coPset
(for arbitrary cogsets), as well as less efficient conversions to and from other finite sets and other sets with a top element.
Two things are marked TODO in the source, which really means "to discuss".
Merge request reports
Activity
- Resolved by David Swasey
- Resolved by David Swasey
- Resolved by David Swasey
- Resolved by Robbert Krebbers
- Resolved by Robbert Krebbers
- Resolved by David Swasey
- Resolved by David Swasey
mentioned in issue #48
- Resolved by David Swasey
- Resolved by David Swasey
- Resolved by David Swasey
Thanks for the MR. Overall looks good to me.
I'm not sure I'd like the name
cogset
. Maybe some capitals would make it easier to read?Would be worth taking a look at the conventions used elsewhere (and also in Iris). I think @jung had some opinions about capitalization of acronyms.
added 2 commits
- ce3c6219 - Note limitation of [cogset positive].
- 69a94a48 - Drop a TODO (now issue #49 (closed)).
added 1 commit