Multisets of sigma types #
Alias of the reverse direction of Multiset.nodup_keys
.
Finmap #
Lifting from AList #
Lift a permutation-respecting function on 2 AList
s to 2 Finmap
s.
Equations
Instances For
Induction #
extensionality #
mem #
The predicate a ∈ s
means that s
has a value associated to the key a
.
Equations
keys #
empty #
The empty map.
Equations
Alias of Finmap.notMem_empty
.
singleton #
The singleton map.
Equations
Instances For
Equations
lookup #
Look up the value associated to a key in a map.
Equations
Instances For
Equations
An equivalence between Finmap β
and pairs (keys : Finset α, lookup : ∀ a, Option (β a))
such
that (lookup a).isSome ↔ a ∈ keys
.
Equations
Instances For
replace #
Replace a key with a given value in a finite map. If the key is not present it does nothing.
Equations
Instances For
foldl #
erase #
Erase a key from the map. If the key is not present it does nothing.
Equations
Instances For
Alias of Finmap.notMem_erase_self
.
sdiff #
sdiff s s'
consists of all key-value pairs from s
and s'
where the keys are in s
or
s'
but not both.
Equations
Instances For
Equations
insert #
Insert a key-value pair into a finite map, replacing any existing pair with the same key.
Equations
Instances For
Alias of Finmap.entries_insert_of_notMem
.
extract #
Erase a key from the map, and return the corresponding value, if found.