Skip to content
Snippets Groups Projects
Commit 7baccddd authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Some documentation about `mapset`.

parent 9453a8b5
No related branches found
No related tags found
1 merge request!370Avoid universe bumps of `gset`/`mapset` (fixes #134)
Pipeline #63298 passed
......@@ -8,8 +8,13 @@ From stdpp Require Import options.
locally (or things moved out of sections) as no default works well enough. *)
Unset Default Proof Using.
Record mapset' (M : Type) : Type :=
Mapset { mapset_car: M }.
(** Given a type of maps [M : Type → Type], we constructs sets as [M ()], i.e.,
maps with unit values. To avoid unnecessary universe constraints, we first
define [mapset' Munit] with [Munit : Type] as a record, and then [mapset M] with
[M : Type → Type] as a notation. See [tests/universes.v] for a test case that
fails otherwise. *)
Record mapset' (Munit : Type) : Type :=
Mapset { mapset_car: Munit }.
Notation mapset M := (mapset' (M unit)).
Global Arguments Mapset {_} _ : assert.
Global Arguments mapset_car {_} _ : assert.
......
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