(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* 'b tag -> ('a,'b) CSig.eq option val make : unit -> 'a onetag val tag_of_onetag : 'a onetag -> 'a tag module type MapS = sig type t type _ value val empty : t val find : 'a tag -> t -> 'a value val add : 'a onetag -> 'a value -> t -> t val mem : 'a tag -> t -> bool val update : 'a onetag -> ('a value option -> 'a value option) -> t -> t val modify : 'a tag -> ('a value -> 'a value) -> t -> t type 'acc fold = { fold : 'a. 'a onetag -> 'a value -> 'acc -> 'acc } val fold : 'acc fold -> t -> 'acc -> 'acc end module Map(V:ValueS) : MapS with type 'a value := 'a V.t end