Add set_omap to finite sets
Add omap
-like function to finite sets, aka OCaml's filter_map
operation.
I needed it to destruct a set of X + Y
into a set of X
and a set of Y
.
Also add a few lemmas to reason about it.
Merge request reports
Activity
added 7 commits
-
12cc431c...0727c134 - 6 commits from branch
iris:master
- accdd9ca - Merge branch 'master' into 'dorian/set_omap'
-
12cc431c...0727c134 - 6 commits from branch
- Resolved by Robbert Krebbers
General question first: For your use case, you could also use
set_bind
cannot you?The
omap
operation might be more convenient and this sounds like a useful MR.Could we add a correspondence with
mbind
?
added 2 commits
I pushed some minor improvements, this MR looks good.
Please add the correspondence with
mbind
.Also feel free to add
(by YOURNAME)
in the CHANGELOG so you receive the deserved credit :).Edited by Robbert Krebbers@jung Any comments about this?
added 28 commits
-
290723a3...504d165a - 20 commits from branch
iris:master
- 17cac1d5 - Add set_omap operation
- 04aa97fc - CHANGELOG
- 12b0bd3a - Minor tweaks.
- d8b8610f - Compatibility with bind and map
- 62a5000b - Add set_omap_filter
- 0f9fda3d - Styling
- 13b83bd0 - Weaken `set_bind` lemmas to require `Set_` instead of `FinSet` for the resulting set.
- cf2ea0e7 - More tweaks.
Toggle commit list-
290723a3...504d165a - 20 commits from branch
added 11 commits
-
cf2ea0e7...28d33f1f - 3 commits from branch
iris:master
- 906a7bef - Add set_omap operation
- 3363cdfc - CHANGELOG
- 34a8ec0a - Minor tweaks.
- 3634203c - Compatibility with bind and map
- 01f80762 - Add set_omap_filter
- 86b802c5 - Styling
- 3a80961c - Weaken `set_bind` lemmas to require `Set_` instead of `FinSet` for the resulting set.
- 0f7f6619 - More tweaks.
Toggle commit list-
cf2ea0e7...28d33f1f - 3 commits from branch
enabled an automatic merge when the pipeline for 0f7f6619 succeeds
mentioned in commit a1765eda