Library MonadVM.Map
File generated by rocq-of-ocaml
Require Import RocqOfOCaml.RocqOfOCaml.
Require Import RocqOfOCaml.Settings.
Require Import MonadVM.Support.Variants.
Require MonadVM.Support.CryptoBlake2.
Require Import RocqOfOCaml.Opaque.
Local Ltac _rocq_witness_type typ :=
let typ := eval hnf in typ in
lazymatch typ with
| list ?a ⇒ let a := _rocq_witness_type a in constr:(list a)
| option ?a ⇒ let a := _rocq_witness_type a in constr:(option a)
| prod ?a ?b ⇒ let a := _rocq_witness_type a in
let b := _rocq_witness_type b in constr:(prod a b)
| sum ?a ?b ⇒ let a := _rocq_witness_type a in
let b := _rocq_witness_type b in constr:(sum a b)
| ?a → ?b ⇒ let a := _rocq_witness_type a in
let b := _rocq_witness_type b in constr:(a → b)
| _ ⇒ typ
end.
Module OrderedType := RocqOfOCaml.OCamlMap.OrderedType.
Definition OrderedType := @OrderedType.signature.
Arguments OrderedType {_}.
Module S.
Record signature {key : Set} {t : Set → Set} : Type := {
key := key;
t := t;
empty : ∀ {a : Set} , t a;
add : ∀ {a : Set} , key → a → t a → t a;
add_to_list : ∀ {a : Set} , key → a → t (list a) → t (list a);
update : ∀ {a : Set} , key → (option a → option a) → t a → t a;
singleton : ∀ {a : Set} , key → a → t a;
remove : ∀ {a : Set} , key → t a → t a;
merge :
∀ {a b c : Set} ,
(key → option a → option b → option c) → t a → t b → t c;
union : ∀ {a : Set} , (key → a → a → option a) → t a → t a → t a;
cardinal : ∀ {a : Set} , t a → int;
bindings : ∀ {a : Set} , t a → list (key × a);
min_binding :
∀ {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ)),
t a → key × a;
min_binding_opt : ∀ {a : Set} , t a → option (key × a);
max_binding :
∀ {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ)),
t a → key × a;
max_binding_opt : ∀ {a : Set} , t a → option (key × a);
choose :
∀ {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ)),
t a → key × a;
choose_opt : ∀ {a : Set} , t a → option (key × a);
find :
∀ {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ)),
key → t a → a;
find_opt : ∀ {a : Set} , key → t a → option a;
find_first :
∀ {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ)),
(key → bool) → t a → key × a;
find_first_opt :
∀ {a : Set} , (key → bool) → t a → option (key × a);
find_last :
∀ {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ)),
(key → bool) → t a → key × a;
find_last_opt : ∀ {a : Set} , (key → bool) → t a → option (key × a);
iter : ∀ {a : Set} , (key → a → unit) → t a → unit;
fold : ∀ {a acc : Set} , (key → a → acc → acc) → t a → acc → acc;
map : ∀ {a b : Set} , (a → b) → t a → t b;
mapi : ∀ {a b : Set} , (key → a → b) → t a → t b;
filter : ∀ {a : Set} , (key → a → bool) → t a → t a;
filter_map : ∀ {a b : Set} , (key → a → option b) → t a → t b;
partition : ∀ {a : Set} , (key → a → bool) → t a → t a × t a;
split : ∀ {a : Set} , key → t a → t a × option a × t a;
is_empty : ∀ {a : Set} , t a → bool;
is_singleton : ∀ {a : Set} , t a → bool;
mem : ∀ {a : Set} , key → t a → bool;
equal : ∀ {a : Set} , (a → a → bool) → t a → t a → bool;
compare : ∀ {a : Set} , (a → a → int) → t a → t a → int;
for_all : ∀ {a : Set} , (key → a → bool) → t a → bool;
_exists : ∀ {a : Set} , (key → a → bool) → t a → bool;
to_list : ∀ {a : Set} , t a → list (key × a);
of_list : ∀ {a : Set} , list (key × a) → t a;
to_seq : ∀ {a : Set} , t a → RocqOfOCaml.OCamlSeq.t (key × a);
to_rev_seq : ∀ {a : Set} , t a → RocqOfOCaml.OCamlSeq.t (key × a);
to_seq_from :
∀ {a : Set} , key → t a → RocqOfOCaml.OCamlSeq.t (key × a);
add_seq : ∀ {a : Set} , RocqOfOCaml.OCamlSeq.t (key × a) → t a → t a;
of_seq : ∀ {a : Set} , RocqOfOCaml.OCamlSeq.t (key × a) → t a;
_at : ∀ {v : Set} , key → Lens.t (t v) (option v);
}.
End S.
Definition S := @S.signature.
Arguments S {_ _}.
Module Make.
Class FArgs {Ord_t : Set} := {
Ord : OrderedType (t := Ord_t);
}.
Arguments Build_FArgs {_}.
Definition RocqOfOCaml_OCamlMap_Make_include `{_fargs : FArgs} :=
RocqOfOCaml.OCamlMap.Make Ord.
Require Import RocqOfOCaml.Settings.
Require Import MonadVM.Support.Variants.
Require MonadVM.Support.CryptoBlake2.
Require Import RocqOfOCaml.Opaque.
Local Ltac _rocq_witness_type typ :=
let typ := eval hnf in typ in
lazymatch typ with
| list ?a ⇒ let a := _rocq_witness_type a in constr:(list a)
| option ?a ⇒ let a := _rocq_witness_type a in constr:(option a)
| prod ?a ?b ⇒ let a := _rocq_witness_type a in
let b := _rocq_witness_type b in constr:(prod a b)
| sum ?a ?b ⇒ let a := _rocq_witness_type a in
let b := _rocq_witness_type b in constr:(sum a b)
| ?a → ?b ⇒ let a := _rocq_witness_type a in
let b := _rocq_witness_type b in constr:(a → b)
| _ ⇒ typ
end.
Module OrderedType := RocqOfOCaml.OCamlMap.OrderedType.
Definition OrderedType := @OrderedType.signature.
Arguments OrderedType {_}.
Module S.
Record signature {key : Set} {t : Set → Set} : Type := {
key := key;
t := t;
empty : ∀ {a : Set} , t a;
add : ∀ {a : Set} , key → a → t a → t a;
add_to_list : ∀ {a : Set} , key → a → t (list a) → t (list a);
update : ∀ {a : Set} , key → (option a → option a) → t a → t a;
singleton : ∀ {a : Set} , key → a → t a;
remove : ∀ {a : Set} , key → t a → t a;
merge :
∀ {a b c : Set} ,
(key → option a → option b → option c) → t a → t b → t c;
union : ∀ {a : Set} , (key → a → a → option a) → t a → t a → t a;
cardinal : ∀ {a : Set} , t a → int;
bindings : ∀ {a : Set} , t a → list (key × a);
min_binding :
∀ {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ)),
t a → key × a;
min_binding_opt : ∀ {a : Set} , t a → option (key × a);
max_binding :
∀ {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ)),
t a → key × a;
max_binding_opt : ∀ {a : Set} , t a → option (key × a);
choose :
∀ {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ)),
t a → key × a;
choose_opt : ∀ {a : Set} , t a → option (key × a);
find :
∀ {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ)),
key → t a → a;
find_opt : ∀ {a : Set} , key → t a → option a;
find_first :
∀ {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ)),
(key → bool) → t a → key × a;
find_first_opt :
∀ {a : Set} , (key → bool) → t a → option (key × a);
find_last :
∀ {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ)),
(key → bool) → t a → key × a;
find_last_opt : ∀ {a : Set} , (key → bool) → t a → option (key × a);
iter : ∀ {a : Set} , (key → a → unit) → t a → unit;
fold : ∀ {a acc : Set} , (key → a → acc → acc) → t a → acc → acc;
map : ∀ {a b : Set} , (a → b) → t a → t b;
mapi : ∀ {a b : Set} , (key → a → b) → t a → t b;
filter : ∀ {a : Set} , (key → a → bool) → t a → t a;
filter_map : ∀ {a b : Set} , (key → a → option b) → t a → t b;
partition : ∀ {a : Set} , (key → a → bool) → t a → t a × t a;
split : ∀ {a : Set} , key → t a → t a × option a × t a;
is_empty : ∀ {a : Set} , t a → bool;
is_singleton : ∀ {a : Set} , t a → bool;
mem : ∀ {a : Set} , key → t a → bool;
equal : ∀ {a : Set} , (a → a → bool) → t a → t a → bool;
compare : ∀ {a : Set} , (a → a → int) → t a → t a → int;
for_all : ∀ {a : Set} , (key → a → bool) → t a → bool;
_exists : ∀ {a : Set} , (key → a → bool) → t a → bool;
to_list : ∀ {a : Set} , t a → list (key × a);
of_list : ∀ {a : Set} , list (key × a) → t a;
to_seq : ∀ {a : Set} , t a → RocqOfOCaml.OCamlSeq.t (key × a);
to_rev_seq : ∀ {a : Set} , t a → RocqOfOCaml.OCamlSeq.t (key × a);
to_seq_from :
∀ {a : Set} , key → t a → RocqOfOCaml.OCamlSeq.t (key × a);
add_seq : ∀ {a : Set} , RocqOfOCaml.OCamlSeq.t (key × a) → t a → t a;
of_seq : ∀ {a : Set} , RocqOfOCaml.OCamlSeq.t (key × a) → t a;
_at : ∀ {v : Set} , key → Lens.t (t v) (option v);
}.
End S.
Definition S := @S.signature.
Arguments S {_ _}.
Module Make.
Class FArgs {Ord_t : Set} := {
Ord : OrderedType (t := Ord_t);
}.
Arguments Build_FArgs {_}.
Definition RocqOfOCaml_OCamlMap_Make_include `{_fargs : FArgs} :=
RocqOfOCaml.OCamlMap.Make Ord.
Inclusion of the module RocqOfOCaml_OCamlMap_Make_include
Definition key `{_fargs : FArgs} :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.key).
Definition t `{_fargs : FArgs} (a : Set) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.t) a.
Definition empty `{_fargs : FArgs} {a : Set} : t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.empty).
Definition add `{_fargs : FArgs} {a : Set} : key → a → t a → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.add).
Definition add_to_list `{_fargs : FArgs} {a : Set} :
key → a → t (list a) → t (list a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.add_to_list).
Definition update `{_fargs : FArgs} {a : Set} :
key → (option a → option a) → t a → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.update).
Definition singleton `{_fargs : FArgs} {a : Set} : key → a → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.singleton).
Definition remove `{_fargs : FArgs} {a : Set} : key → t a → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.remove).
Definition merge `{_fargs : FArgs} {a b c : Set} :
(key → option a → option b → option c) → t a → t b → t c :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.merge).
Definition union `{_fargs : FArgs} {a : Set} :
(key → a → a → option a) → t a → t a → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.union).
Definition cardinal `{_fargs : FArgs} {a : Set} : t a → int :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.cardinal).
Definition bindings `{_fargs : FArgs} {a : Set} : t a → list (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.bindings).
Definition min_binding `{_fargs : FArgs} {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ))
: t a → key × a :=
(RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.min_binding)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition min_binding_opt `{_fargs : FArgs} {a : Set} :
t a → option (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.min_binding_opt).
Definition max_binding `{_fargs : FArgs} {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ))
: t a → key × a :=
(RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.max_binding)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition max_binding_opt `{_fargs : FArgs} {a : Set} :
t a → option (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.max_binding_opt).
Definition choose `{_fargs : FArgs} {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ))
: t a → key × a :=
(RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.choose)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition choose_opt `{_fargs : FArgs} {a : Set} : t a → option (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.choose_opt).
Definition find `{_fargs : FArgs} {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ))
: key → t a → a :=
(RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.find)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition find_opt `{_fargs : FArgs} {a : Set} : key → t a → option a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.find_opt).
Definition find_first `{_fargs : FArgs} {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ))
: (key → bool) → t a → key × a :=
(RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.find_first)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition find_first_opt `{_fargs : FArgs} {a : Set} :
(key → bool) → t a → option (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.find_first_opt).
Definition find_last `{_fargs : FArgs} {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ))
: (key → bool) → t a → key × a :=
(RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.find_last)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition find_last_opt `{_fargs : FArgs} {a : Set} :
(key → bool) → t a → option (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.find_last_opt).
Definition iter `{_fargs : FArgs} {a : Set} :
(key → a → unit) → t a → unit :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.iter).
Definition fold `{_fargs : FArgs} {a acc : Set} :
(key → a → acc → acc) → t a → acc → acc :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.fold).
Definition map `{_fargs : FArgs} {a b : Set} : (a → b) → t a → t b :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.map).
Definition mapi `{_fargs : FArgs} {a b : Set} : (key → a → b) → t a → t b
:= RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.mapi).
Definition filter `{_fargs : FArgs} {a : Set} :
(key → a → bool) → t a → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.filter).
Definition filter_map `{_fargs : FArgs} {a b : Set} :
(key → a → option b) → t a → t b :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.filter_map).
Definition partition `{_fargs : FArgs} {a : Set} :
(key → a → bool) → t a → t a × t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.partition).
Definition split `{_fargs : FArgs} {a : Set} :
key → t a → t a × option a × t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.split).
Definition is_empty `{_fargs : FArgs} {a : Set} : t a → bool :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.is_empty).
Definition is_singleton `{_fargs : FArgs} {a : Set} : t a → bool :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.is_singleton).
Definition mem `{_fargs : FArgs} {a : Set} : key → t a → bool :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.mem).
Definition equal `{_fargs : FArgs} {a : Set} :
(a → a → bool) → t a → t a → bool :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.equal).
Definition compare `{_fargs : FArgs} {a : Set} :
(a → a → int) → t a → t a → int :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.compare).
Definition for_all `{_fargs : FArgs} {a : Set} :
(key → a → bool) → t a → bool :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.for_all).
Definition _exists `{_fargs : FArgs} {a : Set} :
(key → a → bool) → t a → bool :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S._exists).
Definition to_list `{_fargs : FArgs} {a : Set} : t a → list (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.to_list).
Definition of_list `{_fargs : FArgs} {a : Set} : list (key × a) → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.of_list).
Definition to_seq `{_fargs : FArgs} {a : Set} :
t a → RocqOfOCaml.OCamlSeq.t (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.to_seq).
Definition to_rev_seq `{_fargs : FArgs} {a : Set} :
t a → RocqOfOCaml.OCamlSeq.t (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.to_rev_seq).
Definition to_seq_from `{_fargs : FArgs} {a : Set} :
key → t a → RocqOfOCaml.OCamlSeq.t (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.to_seq_from).
Definition add_seq `{_fargs : FArgs} {a : Set} :
RocqOfOCaml.OCamlSeq.t (key × a) → t a → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.add_seq).
Definition of_seq `{_fargs : FArgs} {a : Set} :
RocqOfOCaml.OCamlSeq.t (key × a) → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.of_seq).
Definition _at `{_fargs : FArgs} {v : Set} (k_value : key)
: Lens.t (t v) (option v) :=
{| Lens.t.get := fun (m_value : t v) ⇒ find_opt k_value m_value;
Lens.t.set :=
fun (v_value : option v) ⇒
fun (m_value : t v) ⇒
update k_value
(fun (function_parameter : option v) ⇒
let '_ := function_parameter in
v_value) m_value; |}.
Definition functor `{_fargs : FArgs} :S (key := Ord.(OrderedType.t)) (t := t)
:=
{|
S.empty _rocq_argument_0 := ltac:(first [exact (empty ) | exact (empty
_) | first [unshelve refine (empty ) | unshelve refine (empty
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.add _rocq_argument_0 := ltac:(first [exact (add ) | exact (add
_) | first [unshelve refine (add ) | unshelve refine (add
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.add_to_list _rocq_argument_0 := ltac:(first [exact (add_to_list
) | exact (add_to_list _) | first [unshelve refine (add_to_list
) | unshelve refine (add_to_list
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.update _rocq_argument_0 := ltac:(first [exact (update ) | exact (update
_) | first [unshelve refine (update ) | unshelve refine (update
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.singleton _rocq_argument_0 := ltac:(first [exact (singleton
) | exact (singleton _) | first [unshelve refine (singleton
) | unshelve refine (singleton
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.remove _rocq_argument_0 := ltac:(first [exact (remove ) | exact (remove
_) | first [unshelve refine (remove ) | unshelve refine (remove
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.merge _rocq_argument_0 _rocq_argument_1 _rocq_argument_2 :=
ltac:(first [exact (merge ) | exact (merge _) | exact (merge _
_) | exact (merge _ _ _) | first [unshelve refine (merge
) | unshelve refine (merge _rocq_argument_0) | unshelve refine (merge
_rocq_argument_0 _rocq_argument_1) | unshelve refine (merge
_rocq_argument_0 _rocq_argument_1
_rocq_argument_2)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | exact _rocq_argument_1 | exact
_rocq_argument_2 | eassumption | typeclasses eauto]]);
S.union _rocq_argument_0 := ltac:(first [exact (union ) | exact (union
_) | first [unshelve refine (union ) | unshelve refine (union
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.cardinal _rocq_argument_0 := ltac:(first [exact (cardinal
) | exact (cardinal _) | first [unshelve refine (cardinal
) | unshelve refine (cardinal
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.bindings _rocq_argument_0 := ltac:(first [exact (bindings
) | exact (bindings _) | first [unshelve refine (bindings
) | unshelve refine (bindings
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.min_binding _rocq_argument_0 _rocq_witness_0 :=
ltac:(first [unshelve refine (min_binding
_rocq_witness_0) | unshelve refine (min_binding _rocq_argument_0
_rocq_witness_0) | unshelve refine (min_binding
) | unshelve refine (min_binding
_rocq_argument_0) | let value := uconstr:(min_binding) in RocqOfOCaml.Opaque.supply_witnesses value ltac:(first [exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto])]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto]);
S.min_binding_opt _rocq_argument_0 := ltac:(first [exact (min_binding_opt
) | exact (min_binding_opt _) | first [unshelve refine (min_binding_opt
) | unshelve refine (min_binding_opt
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.max_binding _rocq_argument_0 _rocq_witness_0 :=
ltac:(first [unshelve refine (max_binding
_rocq_witness_0) | unshelve refine (max_binding _rocq_argument_0
_rocq_witness_0) | unshelve refine (max_binding
) | unshelve refine (max_binding
_rocq_argument_0) | let value := uconstr:(max_binding) in RocqOfOCaml.Opaque.supply_witnesses value ltac:(first [exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto])]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto]);
S.max_binding_opt _rocq_argument_0 := ltac:(first [exact (max_binding_opt
) | exact (max_binding_opt _) | first [unshelve refine (max_binding_opt
) | unshelve refine (max_binding_opt
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.choose _rocq_argument_0 _rocq_witness_0 :=
ltac:(first [unshelve refine (choose
_rocq_witness_0) | unshelve refine (choose _rocq_argument_0
_rocq_witness_0) | unshelve refine (choose ) | unshelve refine (choose
_rocq_argument_0) | let value := uconstr:(choose) in RocqOfOCaml.Opaque.supply_witnesses value ltac:(first [exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto])]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto]);
S.choose_opt _rocq_argument_0 := ltac:(first [exact (choose_opt
) | exact (choose_opt _) | first [unshelve refine (choose_opt
) | unshelve refine (choose_opt
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.find _rocq_argument_0 _rocq_witness_0 :=
ltac:(first [unshelve refine (find
_rocq_witness_0) | unshelve refine (find _rocq_argument_0
_rocq_witness_0) | unshelve refine (find ) | unshelve refine (find
_rocq_argument_0) | let value := uconstr:(find) in RocqOfOCaml.Opaque.supply_witnesses value ltac:(first [exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto])]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto]);
S.find_opt _rocq_argument_0 := ltac:(first [exact (find_opt
) | exact (find_opt _) | first [unshelve refine (find_opt
) | unshelve refine (find_opt
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.find_first _rocq_argument_0 _rocq_witness_0 :=
ltac:(first [unshelve refine (find_first
_rocq_witness_0) | unshelve refine (find_first _rocq_argument_0
_rocq_witness_0) | unshelve refine (find_first
) | unshelve refine (find_first
_rocq_argument_0) | let value := uconstr:(find_first) in RocqOfOCaml.Opaque.supply_witnesses value ltac:(first [exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto])]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto]);
S.find_first_opt _rocq_argument_0 := ltac:(first [exact (find_first_opt
) | exact (find_first_opt _) | first [unshelve refine (find_first_opt
) | unshelve refine (find_first_opt
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.find_last _rocq_argument_0 _rocq_witness_0 :=
ltac:(first [unshelve refine (find_last
_rocq_witness_0) | unshelve refine (find_last _rocq_argument_0
_rocq_witness_0) | unshelve refine (find_last
) | unshelve refine (find_last
_rocq_argument_0) | let value := uconstr:(find_last) in RocqOfOCaml.Opaque.supply_witnesses value ltac:(first [exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto])]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto]);
S.find_last_opt _rocq_argument_0 := ltac:(first [exact (find_last_opt
) | exact (find_last_opt _) | first [unshelve refine (find_last_opt
) | unshelve refine (find_last_opt
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.iter _rocq_argument_0 := ltac:(first [exact (iter ) | exact (iter
_) | first [unshelve refine (iter ) | unshelve refine (iter
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.fold _rocq_argument_0 _rocq_argument_1 := ltac:(first [exact (fold
) | exact (fold _) | exact (fold _ _) | first [unshelve refine (fold
) | unshelve refine (fold _rocq_argument_0) | unshelve refine (fold
_rocq_argument_0
_rocq_argument_1)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | exact
_rocq_argument_1 | eassumption | typeclasses eauto]]);
S.map _rocq_argument_0 _rocq_argument_1 := ltac:(first [exact (map
) | exact (map _) | exact (map _ _) | first [unshelve refine (map
) | unshelve refine (map _rocq_argument_0) | unshelve refine (map
_rocq_argument_0
_rocq_argument_1)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | exact
_rocq_argument_1 | eassumption | typeclasses eauto]]);
S.mapi _rocq_argument_0 _rocq_argument_1 := ltac:(first [exact (mapi
) | exact (mapi _) | exact (mapi _ _) | first [unshelve refine (mapi
) | unshelve refine (mapi _rocq_argument_0) | unshelve refine (mapi
_rocq_argument_0
_rocq_argument_1)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | exact
_rocq_argument_1 | eassumption | typeclasses eauto]]);
S.filter _rocq_argument_0 := ltac:(first [exact (filter ) | exact (filter
_) | first [unshelve refine (filter ) | unshelve refine (filter
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.filter_map _rocq_argument_0 _rocq_argument_1 :=
ltac:(first [exact (filter_map ) | exact (filter_map
_) | exact (filter_map _ _) | first [unshelve refine (filter_map
) | unshelve refine (filter_map
_rocq_argument_0) | unshelve refine (filter_map _rocq_argument_0
_rocq_argument_1)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | exact
_rocq_argument_1 | eassumption | typeclasses eauto]]);
S.partition _rocq_argument_0 := ltac:(first [exact (partition
) | exact (partition _) | first [unshelve refine (partition
) | unshelve refine (partition
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.split _rocq_argument_0 := ltac:(first [exact (split ) | exact (split
_) | first [unshelve refine (split ) | unshelve refine (split
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.is_empty _rocq_argument_0 := ltac:(first [exact (is_empty
) | exact (is_empty _) | first [unshelve refine (is_empty
) | unshelve refine (is_empty
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.is_singleton _rocq_argument_0 := ltac:(first [exact (is_singleton
) | exact (is_singleton _) | first [unshelve refine (is_singleton
) | unshelve refine (is_singleton
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.mem _rocq_argument_0 := ltac:(first [exact (mem ) | exact (mem
_) | first [unshelve refine (mem ) | unshelve refine (mem
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.equal _rocq_argument_0 := ltac:(first [exact (equal ) | exact (equal
_) | first [unshelve refine (equal ) | unshelve refine (equal
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.compare _rocq_argument_0 := ltac:(first [exact (compare
) | exact (compare _) | first [unshelve refine (compare
) | unshelve refine (compare
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.for_all _rocq_argument_0 := ltac:(first [exact (for_all
) | exact (for_all _) | first [unshelve refine (for_all
) | unshelve refine (for_all
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S._exists _rocq_argument_0 := ltac:(first [exact (_exists
) | exact (_exists _) | first [unshelve refine (_exists
) | unshelve refine (_exists
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.to_list _rocq_argument_0 := ltac:(first [exact (to_list
) | exact (to_list _) | first [unshelve refine (to_list
) | unshelve refine (to_list
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.of_list _rocq_argument_0 := ltac:(first [exact (of_list
) | exact (of_list _) | first [unshelve refine (of_list
) | unshelve refine (of_list
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.to_seq _rocq_argument_0 := ltac:(first [exact (to_seq ) | exact (to_seq
_) | first [unshelve refine (to_seq ) | unshelve refine (to_seq
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.to_rev_seq _rocq_argument_0 := ltac:(first [exact (to_rev_seq
) | exact (to_rev_seq _) | first [unshelve refine (to_rev_seq
) | unshelve refine (to_rev_seq
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.to_seq_from _rocq_argument_0 := ltac:(first [exact (to_seq_from
) | exact (to_seq_from _) | first [unshelve refine (to_seq_from
) | unshelve refine (to_seq_from
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.add_seq _rocq_argument_0 := ltac:(first [exact (add_seq
) | exact (add_seq _) | first [unshelve refine (add_seq
) | unshelve refine (add_seq
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.of_seq _rocq_argument_0 := ltac:(first [exact (of_seq ) | exact (of_seq
_) | first [unshelve refine (of_seq ) | unshelve refine (of_seq
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S._at _rocq_argument_0 := ltac:(first [exact (_at ) | exact (_at
_) | first [unshelve refine (_at ) | unshelve refine (_at
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]])
|}.
End Make.
Definition Make {Ord_t : Set} (Ord : OrderedType (t := Ord_t)) :=
@Make.functor Ord_t (Make.Build_FArgs Ord).
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.key).
Definition t `{_fargs : FArgs} (a : Set) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.t) a.
Definition empty `{_fargs : FArgs} {a : Set} : t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.empty).
Definition add `{_fargs : FArgs} {a : Set} : key → a → t a → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.add).
Definition add_to_list `{_fargs : FArgs} {a : Set} :
key → a → t (list a) → t (list a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.add_to_list).
Definition update `{_fargs : FArgs} {a : Set} :
key → (option a → option a) → t a → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.update).
Definition singleton `{_fargs : FArgs} {a : Set} : key → a → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.singleton).
Definition remove `{_fargs : FArgs} {a : Set} : key → t a → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.remove).
Definition merge `{_fargs : FArgs} {a b c : Set} :
(key → option a → option b → option c) → t a → t b → t c :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.merge).
Definition union `{_fargs : FArgs} {a : Set} :
(key → a → a → option a) → t a → t a → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.union).
Definition cardinal `{_fargs : FArgs} {a : Set} : t a → int :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.cardinal).
Definition bindings `{_fargs : FArgs} {a : Set} : t a → list (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.bindings).
Definition min_binding `{_fargs : FArgs} {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ))
: t a → key × a :=
(RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.min_binding)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition min_binding_opt `{_fargs : FArgs} {a : Set} :
t a → option (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.min_binding_opt).
Definition max_binding `{_fargs : FArgs} {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ))
: t a → key × a :=
(RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.max_binding)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition max_binding_opt `{_fargs : FArgs} {a : Set} :
t a → option (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.max_binding_opt).
Definition choose `{_fargs : FArgs} {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ))
: t a → key × a :=
(RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.choose)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition choose_opt `{_fargs : FArgs} {a : Set} : t a → option (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.choose_opt).
Definition find `{_fargs : FArgs} {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ))
: key → t a → a :=
(RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.find)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition find_opt `{_fargs : FArgs} {a : Set} : key → t a → option a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.find_opt).
Definition find_first `{_fargs : FArgs} {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ))
: (key → bool) → t a → key × a :=
(RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.find_first)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition find_first_opt `{_fargs : FArgs} {a : Set} :
(key → bool) → t a → option (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.find_first_opt).
Definition find_last `{_fargs : FArgs} {a : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((key × a)%type
)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | eassumption | typeclasses eauto | RocqOfOCaml.Opaque.opaque_inhabit 64%nat])) in let typ := _rocq_witness_type typ in exact typ))
: (key → bool) → t a → key × a :=
(RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.find_last)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition find_last_opt `{_fargs : FArgs} {a : Set} :
(key → bool) → t a → option (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.find_last_opt).
Definition iter `{_fargs : FArgs} {a : Set} :
(key → a → unit) → t a → unit :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.iter).
Definition fold `{_fargs : FArgs} {a acc : Set} :
(key → a → acc → acc) → t a → acc → acc :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.fold).
Definition map `{_fargs : FArgs} {a b : Set} : (a → b) → t a → t b :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.map).
Definition mapi `{_fargs : FArgs} {a b : Set} : (key → a → b) → t a → t b
:= RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.mapi).
Definition filter `{_fargs : FArgs} {a : Set} :
(key → a → bool) → t a → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.filter).
Definition filter_map `{_fargs : FArgs} {a b : Set} :
(key → a → option b) → t a → t b :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.filter_map).
Definition partition `{_fargs : FArgs} {a : Set} :
(key → a → bool) → t a → t a × t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.partition).
Definition split `{_fargs : FArgs} {a : Set} :
key → t a → t a × option a × t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.split).
Definition is_empty `{_fargs : FArgs} {a : Set} : t a → bool :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.is_empty).
Definition is_singleton `{_fargs : FArgs} {a : Set} : t a → bool :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.is_singleton).
Definition mem `{_fargs : FArgs} {a : Set} : key → t a → bool :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.mem).
Definition equal `{_fargs : FArgs} {a : Set} :
(a → a → bool) → t a → t a → bool :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.equal).
Definition compare `{_fargs : FArgs} {a : Set} :
(a → a → int) → t a → t a → int :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.compare).
Definition for_all `{_fargs : FArgs} {a : Set} :
(key → a → bool) → t a → bool :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.for_all).
Definition _exists `{_fargs : FArgs} {a : Set} :
(key → a → bool) → t a → bool :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S._exists).
Definition to_list `{_fargs : FArgs} {a : Set} : t a → list (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.to_list).
Definition of_list `{_fargs : FArgs} {a : Set} : list (key × a) → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.of_list).
Definition to_seq `{_fargs : FArgs} {a : Set} :
t a → RocqOfOCaml.OCamlSeq.t (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.to_seq).
Definition to_rev_seq `{_fargs : FArgs} {a : Set} :
t a → RocqOfOCaml.OCamlSeq.t (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.to_rev_seq).
Definition to_seq_from `{_fargs : FArgs} {a : Set} :
key → t a → RocqOfOCaml.OCamlSeq.t (key × a) :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.to_seq_from).
Definition add_seq `{_fargs : FArgs} {a : Set} :
RocqOfOCaml.OCamlSeq.t (key × a) → t a → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.add_seq).
Definition of_seq `{_fargs : FArgs} {a : Set} :
RocqOfOCaml.OCamlSeq.t (key × a) → t a :=
RocqOfOCaml_OCamlMap_Make_include.(RocqOfOCaml.OCamlMap.S.of_seq).
Definition _at `{_fargs : FArgs} {v : Set} (k_value : key)
: Lens.t (t v) (option v) :=
{| Lens.t.get := fun (m_value : t v) ⇒ find_opt k_value m_value;
Lens.t.set :=
fun (v_value : option v) ⇒
fun (m_value : t v) ⇒
update k_value
(fun (function_parameter : option v) ⇒
let '_ := function_parameter in
v_value) m_value; |}.
Definition functor `{_fargs : FArgs} :S (key := Ord.(OrderedType.t)) (t := t)
:=
{|
S.empty _rocq_argument_0 := ltac:(first [exact (empty ) | exact (empty
_) | first [unshelve refine (empty ) | unshelve refine (empty
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.add _rocq_argument_0 := ltac:(first [exact (add ) | exact (add
_) | first [unshelve refine (add ) | unshelve refine (add
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.add_to_list _rocq_argument_0 := ltac:(first [exact (add_to_list
) | exact (add_to_list _) | first [unshelve refine (add_to_list
) | unshelve refine (add_to_list
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.update _rocq_argument_0 := ltac:(first [exact (update ) | exact (update
_) | first [unshelve refine (update ) | unshelve refine (update
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.singleton _rocq_argument_0 := ltac:(first [exact (singleton
) | exact (singleton _) | first [unshelve refine (singleton
) | unshelve refine (singleton
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.remove _rocq_argument_0 := ltac:(first [exact (remove ) | exact (remove
_) | first [unshelve refine (remove ) | unshelve refine (remove
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.merge _rocq_argument_0 _rocq_argument_1 _rocq_argument_2 :=
ltac:(first [exact (merge ) | exact (merge _) | exact (merge _
_) | exact (merge _ _ _) | first [unshelve refine (merge
) | unshelve refine (merge _rocq_argument_0) | unshelve refine (merge
_rocq_argument_0 _rocq_argument_1) | unshelve refine (merge
_rocq_argument_0 _rocq_argument_1
_rocq_argument_2)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | exact _rocq_argument_1 | exact
_rocq_argument_2 | eassumption | typeclasses eauto]]);
S.union _rocq_argument_0 := ltac:(first [exact (union ) | exact (union
_) | first [unshelve refine (union ) | unshelve refine (union
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.cardinal _rocq_argument_0 := ltac:(first [exact (cardinal
) | exact (cardinal _) | first [unshelve refine (cardinal
) | unshelve refine (cardinal
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.bindings _rocq_argument_0 := ltac:(first [exact (bindings
) | exact (bindings _) | first [unshelve refine (bindings
) | unshelve refine (bindings
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.min_binding _rocq_argument_0 _rocq_witness_0 :=
ltac:(first [unshelve refine (min_binding
_rocq_witness_0) | unshelve refine (min_binding _rocq_argument_0
_rocq_witness_0) | unshelve refine (min_binding
) | unshelve refine (min_binding
_rocq_argument_0) | let value := uconstr:(min_binding) in RocqOfOCaml.Opaque.supply_witnesses value ltac:(first [exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto])]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto]);
S.min_binding_opt _rocq_argument_0 := ltac:(first [exact (min_binding_opt
) | exact (min_binding_opt _) | first [unshelve refine (min_binding_opt
) | unshelve refine (min_binding_opt
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.max_binding _rocq_argument_0 _rocq_witness_0 :=
ltac:(first [unshelve refine (max_binding
_rocq_witness_0) | unshelve refine (max_binding _rocq_argument_0
_rocq_witness_0) | unshelve refine (max_binding
) | unshelve refine (max_binding
_rocq_argument_0) | let value := uconstr:(max_binding) in RocqOfOCaml.Opaque.supply_witnesses value ltac:(first [exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto])]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto]);
S.max_binding_opt _rocq_argument_0 := ltac:(first [exact (max_binding_opt
) | exact (max_binding_opt _) | first [unshelve refine (max_binding_opt
) | unshelve refine (max_binding_opt
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.choose _rocq_argument_0 _rocq_witness_0 :=
ltac:(first [unshelve refine (choose
_rocq_witness_0) | unshelve refine (choose _rocq_argument_0
_rocq_witness_0) | unshelve refine (choose ) | unshelve refine (choose
_rocq_argument_0) | let value := uconstr:(choose) in RocqOfOCaml.Opaque.supply_witnesses value ltac:(first [exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto])]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto]);
S.choose_opt _rocq_argument_0 := ltac:(first [exact (choose_opt
) | exact (choose_opt _) | first [unshelve refine (choose_opt
) | unshelve refine (choose_opt
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.find _rocq_argument_0 _rocq_witness_0 :=
ltac:(first [unshelve refine (find
_rocq_witness_0) | unshelve refine (find _rocq_argument_0
_rocq_witness_0) | unshelve refine (find ) | unshelve refine (find
_rocq_argument_0) | let value := uconstr:(find) in RocqOfOCaml.Opaque.supply_witnesses value ltac:(first [exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto])]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto]);
S.find_opt _rocq_argument_0 := ltac:(first [exact (find_opt
) | exact (find_opt _) | first [unshelve refine (find_opt
) | unshelve refine (find_opt
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.find_first _rocq_argument_0 _rocq_witness_0 :=
ltac:(first [unshelve refine (find_first
_rocq_witness_0) | unshelve refine (find_first _rocq_argument_0
_rocq_witness_0) | unshelve refine (find_first
) | unshelve refine (find_first
_rocq_argument_0) | let value := uconstr:(find_first) in RocqOfOCaml.Opaque.supply_witnesses value ltac:(first [exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto])]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto]);
S.find_first_opt _rocq_argument_0 := ltac:(first [exact (find_first_opt
) | exact (find_first_opt _) | first [unshelve refine (find_first_opt
) | unshelve refine (find_first_opt
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.find_last _rocq_argument_0 _rocq_witness_0 :=
ltac:(first [unshelve refine (find_last
_rocq_witness_0) | unshelve refine (find_last _rocq_argument_0
_rocq_witness_0) | unshelve refine (find_last
) | unshelve refine (find_last
_rocq_argument_0) | let value := uconstr:(find_last) in RocqOfOCaml.Opaque.supply_witnesses value ltac:(first [exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto])]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_witness_0 | exact
_rocq_argument_0 | eassumption | typeclasses eauto]);
S.find_last_opt _rocq_argument_0 := ltac:(first [exact (find_last_opt
) | exact (find_last_opt _) | first [unshelve refine (find_last_opt
) | unshelve refine (find_last_opt
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.iter _rocq_argument_0 := ltac:(first [exact (iter ) | exact (iter
_) | first [unshelve refine (iter ) | unshelve refine (iter
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.fold _rocq_argument_0 _rocq_argument_1 := ltac:(first [exact (fold
) | exact (fold _) | exact (fold _ _) | first [unshelve refine (fold
) | unshelve refine (fold _rocq_argument_0) | unshelve refine (fold
_rocq_argument_0
_rocq_argument_1)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | exact
_rocq_argument_1 | eassumption | typeclasses eauto]]);
S.map _rocq_argument_0 _rocq_argument_1 := ltac:(first [exact (map
) | exact (map _) | exact (map _ _) | first [unshelve refine (map
) | unshelve refine (map _rocq_argument_0) | unshelve refine (map
_rocq_argument_0
_rocq_argument_1)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | exact
_rocq_argument_1 | eassumption | typeclasses eauto]]);
S.mapi _rocq_argument_0 _rocq_argument_1 := ltac:(first [exact (mapi
) | exact (mapi _) | exact (mapi _ _) | first [unshelve refine (mapi
) | unshelve refine (mapi _rocq_argument_0) | unshelve refine (mapi
_rocq_argument_0
_rocq_argument_1)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | exact
_rocq_argument_1 | eassumption | typeclasses eauto]]);
S.filter _rocq_argument_0 := ltac:(first [exact (filter ) | exact (filter
_) | first [unshelve refine (filter ) | unshelve refine (filter
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.filter_map _rocq_argument_0 _rocq_argument_1 :=
ltac:(first [exact (filter_map ) | exact (filter_map
_) | exact (filter_map _ _) | first [unshelve refine (filter_map
) | unshelve refine (filter_map
_rocq_argument_0) | unshelve refine (filter_map _rocq_argument_0
_rocq_argument_1)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | exact
_rocq_argument_1 | eassumption | typeclasses eauto]]);
S.partition _rocq_argument_0 := ltac:(first [exact (partition
) | exact (partition _) | first [unshelve refine (partition
) | unshelve refine (partition
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.split _rocq_argument_0 := ltac:(first [exact (split ) | exact (split
_) | first [unshelve refine (split ) | unshelve refine (split
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.is_empty _rocq_argument_0 := ltac:(first [exact (is_empty
) | exact (is_empty _) | first [unshelve refine (is_empty
) | unshelve refine (is_empty
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.is_singleton _rocq_argument_0 := ltac:(first [exact (is_singleton
) | exact (is_singleton _) | first [unshelve refine (is_singleton
) | unshelve refine (is_singleton
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.mem _rocq_argument_0 := ltac:(first [exact (mem ) | exact (mem
_) | first [unshelve refine (mem ) | unshelve refine (mem
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.equal _rocq_argument_0 := ltac:(first [exact (equal ) | exact (equal
_) | first [unshelve refine (equal ) | unshelve refine (equal
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.compare _rocq_argument_0 := ltac:(first [exact (compare
) | exact (compare _) | first [unshelve refine (compare
) | unshelve refine (compare
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.for_all _rocq_argument_0 := ltac:(first [exact (for_all
) | exact (for_all _) | first [unshelve refine (for_all
) | unshelve refine (for_all
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S._exists _rocq_argument_0 := ltac:(first [exact (_exists
) | exact (_exists _) | first [unshelve refine (_exists
) | unshelve refine (_exists
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.to_list _rocq_argument_0 := ltac:(first [exact (to_list
) | exact (to_list _) | first [unshelve refine (to_list
) | unshelve refine (to_list
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.of_list _rocq_argument_0 := ltac:(first [exact (of_list
) | exact (of_list _) | first [unshelve refine (of_list
) | unshelve refine (of_list
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.to_seq _rocq_argument_0 := ltac:(first [exact (to_seq ) | exact (to_seq
_) | first [unshelve refine (to_seq ) | unshelve refine (to_seq
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.to_rev_seq _rocq_argument_0 := ltac:(first [exact (to_rev_seq
) | exact (to_rev_seq _) | first [unshelve refine (to_rev_seq
) | unshelve refine (to_rev_seq
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.to_seq_from _rocq_argument_0 := ltac:(first [exact (to_seq_from
) | exact (to_seq_from _) | first [unshelve refine (to_seq_from
) | unshelve refine (to_seq_from
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.add_seq _rocq_argument_0 := ltac:(first [exact (add_seq
) | exact (add_seq _) | first [unshelve refine (add_seq
) | unshelve refine (add_seq
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S.of_seq _rocq_argument_0 := ltac:(first [exact (of_seq ) | exact (of_seq
_) | first [unshelve refine (of_seq ) | unshelve refine (of_seq
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]]);
S._at _rocq_argument_0 := ltac:(first [exact (_at ) | exact (_at
_) | first [unshelve refine (_at ) | unshelve refine (_at
_rocq_argument_0)]; first [match goal with |- ?g ⇒ let sort := type of g in lazymatch sort with Set ⇒ fail | _ ⇒ shelve end end | exact
_rocq_argument_0 | eassumption | typeclasses eauto]])
|}.
End Make.
Definition Make {Ord_t : Set} (Ord : OrderedType (t := Ord_t)) :=
@Make.functor Ord_t (Make.Build_FArgs Ord).