package coq-core
Install
Dune Dependency
Authors
Maintainers
Sources
md5=64b49dbc3205477bd7517642c0b9cbb6
sha512=02fb5b4fb575af79e092492cbec6dc0d15a1d74a07f827f657a72d4e6066532630e5a6d15be4acdb73314bd40b9a321f9ea0584e0ccfe51fd3a56353bd30db9b
doc/coq-core.kernel/Names/Cmap_env/index.html
Module Names.Cmap_env
Source
A map whose keys are constants (values of the Constant.t
type). Keys are ordered wrt. "user form" of the constant.
The underlying Map library
include CSig.MapS with type key = Constant.t
type key = Constant.t
val empty : 'a t
val is_empty : 'a t -> bool
val cardinal : 'a t -> int
Apply the given function to the binding of the given key.
val domain : 'a t -> Cset_env.t
Recover the set of keys defined in the map.
val bind : (key -> 'a) -> Cset_env.t -> 'a t
bind f s
transform the set x1; ...; xn
into x1 := f x1; ...; xn := f xn
.
Alias for fold
, to easily track where we depend on fold order.
val height : 'a t -> int
An indication of the logarithmic size of a map
find_range in_range m
Given a comparison function in_range x
, that tests if x
is below, above, or inside a given range filter_range
returns the submap of m
whose keys are in range. Note that in_range
has to define a continouous range.
Like map
but keeping only bindings mapped to Some
symmetric_diff f ml mr acc
will efficiently fold over the difference between ml
and mr
, assumed that they share most of their internal structure. A call to f k vl vr
means that if vl
is Some
, then k
exists in ml
. Similarly, if vr
is Some
, then k
exists in mr
. If both vl
and vr
are Some
, then vl != vr
.
module Smart : sig ... end
module Monad (M : Util.Map.MonadS) : sig ... end
Fold operators parameterized by any monad.