Library MonadVM.String
File generated by rocq-of-ocaml
Require Import RocqOfOCaml.RocqOfOCaml.
Require Import RocqOfOCaml.Settings.
Require MonadVM.Comparable.
Require MonadVM.Map.
Require Import MonadVM.Support.Variants.
Require MonadVM.Support.CryptoBlake2.
Require Import MonadExecutionSpecs.Termination.StringFindSubstring.
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.
Definition t := RocqOfOCaml.OCamlString.t.
Definition make
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((string)%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))
:=
(RocqOfOCaml.OCamlString.make (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition init
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((string)%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))
:=
(RocqOfOCaml.OCamlString.init (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition empty := RocqOfOCaml.OCamlString.empty.
Definition length := RocqOfOCaml.OCamlString.length.
Definition get
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((ascii)%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))
:=
(RocqOfOCaml.OCamlString.get (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition of_char := RocqOfOCaml.OCamlString.of_char.
Definition of_bytes := RocqOfOCaml.OCamlString.of_bytes.
Definition to_bytes := RocqOfOCaml.OCamlString.to_bytes.
Definition blit := RocqOfOCaml.OCamlString.blit.
Definition concat := RocqOfOCaml.OCamlString.concat.
Definition cat := RocqOfOCaml.OCamlString.cat.
Definition is_empty := RocqOfOCaml.OCamlString.is_empty.
Definition starts_with := RocqOfOCaml.OCamlString.starts_with.
Definition ends_with := RocqOfOCaml.OCamlString.ends_with.
Definition includes := RocqOfOCaml.OCamlString.includes.
Definition contains_from
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((bool)%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))
:=
(RocqOfOCaml.OCamlString.contains_from (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition rcontains_from
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((bool)%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))
:=
(RocqOfOCaml.OCamlString.rcontains_from
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition contains := RocqOfOCaml.OCamlString.contains.
Definition sub
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((string)%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))
:=
(RocqOfOCaml.OCamlString.sub (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition take_first := RocqOfOCaml.OCamlString.take_first.
Definition take_last := RocqOfOCaml.OCamlString.take_last.
Definition drop_first := RocqOfOCaml.OCamlString.drop_first.
Definition drop_last := RocqOfOCaml.OCamlString.drop_last.
Definition cut_first := RocqOfOCaml.OCamlString.cut_first.
Definition cut_last := RocqOfOCaml.OCamlString.cut_last.
Definition take_first_while := RocqOfOCaml.OCamlString.take_first_while.
Definition take_last_while := RocqOfOCaml.OCamlString.take_last_while.
Definition drop_first_while := RocqOfOCaml.OCamlString.drop_first_while.
Definition drop_last_while := RocqOfOCaml.OCamlString.drop_last_while.
Definition cut_first_while := RocqOfOCaml.OCamlString.cut_first_while.
Definition cut_last_while := RocqOfOCaml.OCamlString.cut_last_while.
Definition split_first := RocqOfOCaml.OCamlString.split_first.
Definition split_last := RocqOfOCaml.OCamlString.split_last.
Definition split_all := RocqOfOCaml.OCamlString.split_all.
Definition rsplit_all := RocqOfOCaml.OCamlString.rsplit_all.
Definition split_on_char := RocqOfOCaml.OCamlString.split_on_char.
Definition map := RocqOfOCaml.OCamlString.map.
Definition mapi := RocqOfOCaml.OCamlString.mapi.
Definition fold_left {acc : Set} : (acc → ascii → acc) → acc → string → acc
:= RocqOfOCaml.OCamlString.fold_left.
Definition fold_right {acc : Set} :
(ascii → acc → acc) → string → acc → acc :=
RocqOfOCaml.OCamlString.fold_right.
Definition for_all := RocqOfOCaml.OCamlString.for_all.
Definition _exists := RocqOfOCaml.OCamlString._exists.
Definition trim := RocqOfOCaml.OCamlString.trim.
Definition escaped := RocqOfOCaml.OCamlString.escaped.
Definition uppercase_ascii := RocqOfOCaml.OCamlString.uppercase_ascii.
Definition lowercase_ascii := RocqOfOCaml.OCamlString.lowercase_ascii.
Definition capitalize_ascii := RocqOfOCaml.OCamlString.capitalize_ascii.
Definition uncapitalize_ascii := RocqOfOCaml.OCamlString.uncapitalize_ascii.
Definition iter := RocqOfOCaml.OCamlString.iter.
Definition iteri := RocqOfOCaml.OCamlString.iteri.
Definition find_first_index
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((option int)%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))
:=
(RocqOfOCaml.OCamlString.find_first_index
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition find_last_index
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((option int)%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))
:=
(RocqOfOCaml.OCamlString.find_last_index
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition index_from
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.index_from (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition index_from_opt
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((option int)%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))
:=
(RocqOfOCaml.OCamlString.index_from_opt
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition rindex_from
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.rindex_from (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition rindex_from_opt
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((option int)%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))
:=
(RocqOfOCaml.OCamlString.rindex_from_opt
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition index
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.index (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition index_opt := RocqOfOCaml.OCamlString.index_opt.
Definition rindex
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.rindex (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition rindex_opt := RocqOfOCaml.OCamlString.rindex_opt.
Definition find_first
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((option int)%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))
:=
(RocqOfOCaml.OCamlString.find_first (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition find_last
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((option int)%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))
:=
(RocqOfOCaml.OCamlString.find_last (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition find_all {acc : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((acc)%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))
: string → (int → acc → acc) → option int → string → acc → acc :=
(RocqOfOCaml.OCamlString.find_all (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition rfind_all {acc : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((acc)%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))
: string → (int → acc → acc) → option int → string → acc → acc :=
(RocqOfOCaml.OCamlString.rfind_all (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition replace_first
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((string)%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))
:=
(RocqOfOCaml.OCamlString.replace_first (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition replace_last
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((string)%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))
:=
(RocqOfOCaml.OCamlString.replace_last (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition replace_all
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((string)%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))
:=
(RocqOfOCaml.OCamlString.replace_all (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition to_seq := RocqOfOCaml.OCamlString.to_seq.
Definition to_seqi := RocqOfOCaml.OCamlString.to_seqi.
Definition of_seq := RocqOfOCaml.OCamlString.of_seq.
Definition get_utf_8_uchar := RocqOfOCaml.OCamlString.get_utf_8_uchar.
Definition is_valid_utf_8 := RocqOfOCaml.OCamlString.is_valid_utf_8.
Definition get_utf_16be_uchar := RocqOfOCaml.OCamlString.get_utf_16be_uchar.
Definition is_valid_utf_16be := RocqOfOCaml.OCamlString.is_valid_utf_16be.
Definition get_utf_16le_uchar := RocqOfOCaml.OCamlString.get_utf_16le_uchar.
Definition is_valid_utf_16le := RocqOfOCaml.OCamlString.is_valid_utf_16le.
Definition edit_distance := RocqOfOCaml.OCamlString.edit_distance.
Definition spellcheck := RocqOfOCaml.OCamlString.spellcheck.
Definition get_uint8
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_uint8 (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int8
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_int8 (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_uint16_ne
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_uint16_ne (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_uint16_be
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_uint16_be (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_uint16_le
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_uint16_le (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int16_ne
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_int16_ne (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int16_be
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_int16_be (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int16_le
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_int16_le (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int32_ne
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int32)%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))
:=
(RocqOfOCaml.OCamlString.get_int32_ne (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition hash := RocqOfOCaml.OCamlString.hash.
Definition seeded_hash := RocqOfOCaml.OCamlString.seeded_hash.
Definition get_int32_be
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int32)%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))
:=
(RocqOfOCaml.OCamlString.get_int32_be (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int32_le
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int32)%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))
:=
(RocqOfOCaml.OCamlString.get_int32_le (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int64_ne
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int64)%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))
:=
(RocqOfOCaml.OCamlString.get_int64_ne (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int64_be
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int64)%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))
:=
(RocqOfOCaml.OCamlString.get_int64_be (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int64_le
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int64)%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))
:=
(RocqOfOCaml.OCamlString.get_int64_le (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition unsafe_get
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((ascii)%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))
:=
(RocqOfOCaml.OCamlString.unsafe_get (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition unsafe_blit := RocqOfOCaml.OCamlString.unsafe_blit.
Definition MonadVM_Comparable_Make_include_fargs :=
MonadVM.Comparable.Make.Build_FArgs ltac:(refine (_ :
MonadVM.Map.OrderedType (t := RocqOfOCaml.OCamlString.t)); constructor; [refine (RocqOfOCaml.OCamlString.compare)]; shelve).
Definition MonadVM_Comparable_Make_include :
MonadVM.Comparable.Make.Make_result
(_fargs := MonadVM_Comparable_Make_include_fargs) :=
(MonadVM.Comparable.Make.functor
(_fargs := (MonadVM_Comparable_Make_include_fargs ))).
Require Import RocqOfOCaml.Settings.
Require MonadVM.Comparable.
Require MonadVM.Map.
Require Import MonadVM.Support.Variants.
Require MonadVM.Support.CryptoBlake2.
Require Import MonadExecutionSpecs.Termination.StringFindSubstring.
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.
Definition t := RocqOfOCaml.OCamlString.t.
Definition make
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((string)%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))
:=
(RocqOfOCaml.OCamlString.make (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition init
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((string)%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))
:=
(RocqOfOCaml.OCamlString.init (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition empty := RocqOfOCaml.OCamlString.empty.
Definition length := RocqOfOCaml.OCamlString.length.
Definition get
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((ascii)%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))
:=
(RocqOfOCaml.OCamlString.get (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition of_char := RocqOfOCaml.OCamlString.of_char.
Definition of_bytes := RocqOfOCaml.OCamlString.of_bytes.
Definition to_bytes := RocqOfOCaml.OCamlString.to_bytes.
Definition blit := RocqOfOCaml.OCamlString.blit.
Definition concat := RocqOfOCaml.OCamlString.concat.
Definition cat := RocqOfOCaml.OCamlString.cat.
Definition is_empty := RocqOfOCaml.OCamlString.is_empty.
Definition starts_with := RocqOfOCaml.OCamlString.starts_with.
Definition ends_with := RocqOfOCaml.OCamlString.ends_with.
Definition includes := RocqOfOCaml.OCamlString.includes.
Definition contains_from
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((bool)%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))
:=
(RocqOfOCaml.OCamlString.contains_from (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition rcontains_from
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((bool)%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))
:=
(RocqOfOCaml.OCamlString.rcontains_from
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition contains := RocqOfOCaml.OCamlString.contains.
Definition sub
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((string)%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))
:=
(RocqOfOCaml.OCamlString.sub (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition take_first := RocqOfOCaml.OCamlString.take_first.
Definition take_last := RocqOfOCaml.OCamlString.take_last.
Definition drop_first := RocqOfOCaml.OCamlString.drop_first.
Definition drop_last := RocqOfOCaml.OCamlString.drop_last.
Definition cut_first := RocqOfOCaml.OCamlString.cut_first.
Definition cut_last := RocqOfOCaml.OCamlString.cut_last.
Definition take_first_while := RocqOfOCaml.OCamlString.take_first_while.
Definition take_last_while := RocqOfOCaml.OCamlString.take_last_while.
Definition drop_first_while := RocqOfOCaml.OCamlString.drop_first_while.
Definition drop_last_while := RocqOfOCaml.OCamlString.drop_last_while.
Definition cut_first_while := RocqOfOCaml.OCamlString.cut_first_while.
Definition cut_last_while := RocqOfOCaml.OCamlString.cut_last_while.
Definition split_first := RocqOfOCaml.OCamlString.split_first.
Definition split_last := RocqOfOCaml.OCamlString.split_last.
Definition split_all := RocqOfOCaml.OCamlString.split_all.
Definition rsplit_all := RocqOfOCaml.OCamlString.rsplit_all.
Definition split_on_char := RocqOfOCaml.OCamlString.split_on_char.
Definition map := RocqOfOCaml.OCamlString.map.
Definition mapi := RocqOfOCaml.OCamlString.mapi.
Definition fold_left {acc : Set} : (acc → ascii → acc) → acc → string → acc
:= RocqOfOCaml.OCamlString.fold_left.
Definition fold_right {acc : Set} :
(ascii → acc → acc) → string → acc → acc :=
RocqOfOCaml.OCamlString.fold_right.
Definition for_all := RocqOfOCaml.OCamlString.for_all.
Definition _exists := RocqOfOCaml.OCamlString._exists.
Definition trim := RocqOfOCaml.OCamlString.trim.
Definition escaped := RocqOfOCaml.OCamlString.escaped.
Definition uppercase_ascii := RocqOfOCaml.OCamlString.uppercase_ascii.
Definition lowercase_ascii := RocqOfOCaml.OCamlString.lowercase_ascii.
Definition capitalize_ascii := RocqOfOCaml.OCamlString.capitalize_ascii.
Definition uncapitalize_ascii := RocqOfOCaml.OCamlString.uncapitalize_ascii.
Definition iter := RocqOfOCaml.OCamlString.iter.
Definition iteri := RocqOfOCaml.OCamlString.iteri.
Definition find_first_index
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((option int)%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))
:=
(RocqOfOCaml.OCamlString.find_first_index
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition find_last_index
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((option int)%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))
:=
(RocqOfOCaml.OCamlString.find_last_index
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition index_from
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.index_from (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition index_from_opt
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((option int)%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))
:=
(RocqOfOCaml.OCamlString.index_from_opt
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition rindex_from
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.rindex_from (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition rindex_from_opt
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((option int)%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))
:=
(RocqOfOCaml.OCamlString.rindex_from_opt
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition index
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.index (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition index_opt := RocqOfOCaml.OCamlString.index_opt.
Definition rindex
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.rindex (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition rindex_opt := RocqOfOCaml.OCamlString.rindex_opt.
Definition find_first
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((option int)%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))
:=
(RocqOfOCaml.OCamlString.find_first (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition find_last
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((option int)%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))
:=
(RocqOfOCaml.OCamlString.find_last (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition find_all {acc : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((acc)%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))
: string → (int → acc → acc) → option int → string → acc → acc :=
(RocqOfOCaml.OCamlString.find_all (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition rfind_all {acc : Set}
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((acc)%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))
: string → (int → acc → acc) → option int → string → acc → acc :=
(RocqOfOCaml.OCamlString.rfind_all (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition replace_first
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((string)%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))
:=
(RocqOfOCaml.OCamlString.replace_first (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition replace_last
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((string)%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))
:=
(RocqOfOCaml.OCamlString.replace_last (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition replace_all
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((string)%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))
:=
(RocqOfOCaml.OCamlString.replace_all (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition to_seq := RocqOfOCaml.OCamlString.to_seq.
Definition to_seqi := RocqOfOCaml.OCamlString.to_seqi.
Definition of_seq := RocqOfOCaml.OCamlString.of_seq.
Definition get_utf_8_uchar := RocqOfOCaml.OCamlString.get_utf_8_uchar.
Definition is_valid_utf_8 := RocqOfOCaml.OCamlString.is_valid_utf_8.
Definition get_utf_16be_uchar := RocqOfOCaml.OCamlString.get_utf_16be_uchar.
Definition is_valid_utf_16be := RocqOfOCaml.OCamlString.is_valid_utf_16be.
Definition get_utf_16le_uchar := RocqOfOCaml.OCamlString.get_utf_16le_uchar.
Definition is_valid_utf_16le := RocqOfOCaml.OCamlString.is_valid_utf_16le.
Definition edit_distance := RocqOfOCaml.OCamlString.edit_distance.
Definition spellcheck := RocqOfOCaml.OCamlString.spellcheck.
Definition get_uint8
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_uint8 (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int8
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_int8 (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_uint16_ne
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_uint16_ne (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_uint16_be
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_uint16_be (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_uint16_le
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_uint16_le (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int16_ne
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_int16_ne (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int16_be
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_int16_be (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int16_le
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int)%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))
:=
(RocqOfOCaml.OCamlString.get_int16_le (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int32_ne
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int32)%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))
:=
(RocqOfOCaml.OCamlString.get_int32_ne (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition hash := RocqOfOCaml.OCamlString.hash.
Definition seeded_hash := RocqOfOCaml.OCamlString.seeded_hash.
Definition get_int32_be
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int32)%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))
:=
(RocqOfOCaml.OCamlString.get_int32_be (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int32_le
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int32)%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))
:=
(RocqOfOCaml.OCamlString.get_int32_le (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int64_ne
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int64)%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))
:=
(RocqOfOCaml.OCamlString.get_int64_ne (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int64_be
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int64)%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))
:=
(RocqOfOCaml.OCamlString.get_int64_be (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition get_int64_le
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((int64)%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))
:=
(RocqOfOCaml.OCamlString.get_int64_le (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition unsafe_get
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((ascii)%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))
:=
(RocqOfOCaml.OCamlString.unsafe_get (H := RocqOfOCaml.Opaque.legacy_witness
_rocq_fallback_arg_0)).
Definition unsafe_blit := RocqOfOCaml.OCamlString.unsafe_blit.
Definition MonadVM_Comparable_Make_include_fargs :=
MonadVM.Comparable.Make.Build_FArgs ltac:(refine (_ :
MonadVM.Map.OrderedType (t := RocqOfOCaml.OCamlString.t)); constructor; [refine (RocqOfOCaml.OCamlString.compare)]; shelve).
Definition MonadVM_Comparable_Make_include :
MonadVM.Comparable.Make.Make_result
(_fargs := MonadVM_Comparable_Make_include_fargs) :=
(MonadVM.Comparable.Make.functor
(_fargs := (MonadVM_Comparable_Make_include_fargs ))).
Inclusion of the module MonadVM_Comparable_Make_include
Section _rocq_include_assumptions_comparison_op.
#[local] Existing Instance MonadVM_Comparable_Make_include_fargs.
Definition comparison_op :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.comparison_op).
Definition op_lt :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.op_lt).
Definition op_lteq :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.op_lteq).
Definition op_eq :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.op_eq).
Definition op_gteq :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.op_gteq).
Definition op_gt :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.op_gt).
Definition op_ltgt :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.op_ltgt).
Definition equal :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.equal).
Definition compare :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.compare).
Definition max :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.max).
Definition min :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.min).
End _rocq_include_assumptions_comparison_op.
Module _Set.
Definition elt :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.elt).
Definition t :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.t).
Definition empty :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.empty).
Definition add :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.add).
Definition singleton :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.singleton).
Definition remove :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.remove).
Definition union :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.union).
Definition inter :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.inter).
Definition disjoint :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.disjoint).
Definition diff :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.diff).
Definition cardinal :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.cardinal).
Definition elements :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.elements).
Definition min_elt
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((elt)%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))
:=
(MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.min_elt)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition min_elt_opt :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.min_elt_opt).
Definition max_elt
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((elt)%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))
:=
(MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.max_elt)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition max_elt_opt :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.max_elt_opt).
Definition choose
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((elt)%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))
:=
(MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.choose)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition choose_opt :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.choose_opt).
Definition find
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((elt)%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))
:=
(MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.find)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition find_opt :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.find_opt).
Definition find_first
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((elt)%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))
:=
(MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.find_first)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition find_first_opt :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.find_first_opt).
Definition find_last
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((elt)%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))
:=
(MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.find_last)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition find_last_opt :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.find_last_opt).
Definition iter :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.iter).
Definition fold {acc : Set} : (elt → acc → acc) → t → acc → acc :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.fold).
Definition map :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.map).
Definition filter :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.filter).
Definition filter_map :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.filter_map).
Definition partition :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.partition).
Definition split :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.split).
Definition is_empty :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.is_empty).
Definition is_singleton :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.is_singleton).
Definition mem :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.mem).
Definition equal :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.equal).
Definition compare :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.compare).
Definition subset :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.subset).
Definition for_all :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.for_all).
Definition _exists :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S._exists).
Definition to_list :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.to_list).
Definition of_list :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.of_list).
Definition to_seq_from :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.to_seq_from).
Definition to_seq :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.to_seq).
Definition to_rev_seq :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.to_rev_seq).
Definition add_seq :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.add_seq).
Definition of_seq :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.of_seq).
End _Set.
Section _rocq_include_assumptions__Set.
#[local] Existing Instance MonadVM_Comparable_Make_include_fargs.
Definition _Set :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).
End _rocq_include_assumptions__Set.
Module Map.
Definition key :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_key).
Definition t (a : Set) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_t)
a.
Definition empty {a : Set} : t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_empty).
Definition add {a : Set} : key → a → t a → t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_add).
Definition add_to_list {a : Set} : key → a → t (list a) → t (list a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_add_to_list).
Definition update {a : Set} : key → (option a → option a) → t a → t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_update).
Definition singleton {a : Set} : key → a → t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_singleton).
Definition remove {a : Set} : key → t a → t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_remove).
Definition merge {a b c : Set} :
(key → option a → option b → option c) → t a → t b → t c :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_merge).
Definition union {a : Set} : (key → a → a → option a) → t a → t a → t a
:=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_union).
Definition cardinal {a : Set} : t a → int :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_cardinal).
Definition bindings {a : Set} : t a → list (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_bindings).
Definition 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 :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_min_binding)
(_rocq_fallback_arg_0).
Definition min_binding_opt {a : Set} : t a → option (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_min_binding_opt).
Definition 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 :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_max_binding)
(_rocq_fallback_arg_0).
Definition max_binding_opt {a : Set} : t a → option (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_max_binding_opt).
Definition 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 :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_choose)
(_rocq_fallback_arg_0).
Definition choose_opt {a : Set} : t a → option (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_choose_opt).
Definition 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 :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_find)
(_rocq_fallback_arg_0).
Definition find_opt {a : Set} : key → t a → option a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_find_opt).
Definition 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 :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_find_first)
(_rocq_fallback_arg_0).
Definition find_first_opt {a : Set} : (key → bool) → t a → option (key × a)
:=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_find_first_opt).
Definition 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 :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_find_last)
(_rocq_fallback_arg_0).
Definition find_last_opt {a : Set} : (key → bool) → t a → option (key × a)
:=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_find_last_opt).
Definition iter {a : Set} : (key → a → unit) → t a → unit :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_iter).
Definition fold {a acc : Set} : (key → a → acc → acc) → t a → acc → acc
:=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_fold).
Definition map {a b : Set} : (a → b) → t a → t b :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_map).
Definition mapi {a b : Set} : (key → a → b) → t a → t b :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_mapi).
Definition filter {a : Set} : (key → a → bool) → t a → t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_filter).
Definition filter_map {a b : Set} : (key → a → option b) → t a → t b :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_filter_map).
Definition partition {a : Set} : (key → a → bool) → t a → t a × t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_partition).
Definition split {a : Set} : key → t a → t a × option a × t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_split).
Definition is_empty {a : Set} : t a → bool :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_is_empty).
Definition is_singleton {a : Set} : t a → bool :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_is_singleton).
Definition mem {a : Set} : key → t a → bool :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_mem).
Definition equal {a : Set} : (a → a → bool) → t a → t a → bool :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_equal).
Definition compare {a : Set} : (a → a → int) → t a → t a → int :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_compare).
Definition for_all {a : Set} : (key → a → bool) → t a → bool :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_for_all).
Definition _exists {a : Set} : (key → a → bool) → t a → bool :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_exists).
Definition to_list {a : Set} : t a → list (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_to_list).
Definition of_list {a : Set} : list (key × a) → t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_of_list).
Definition to_seq {a : Set} : t a → RocqOfOCaml.OCamlSeq.t (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_to_seq).
Definition to_rev_seq {a : Set} : t a → RocqOfOCaml.OCamlSeq.t (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_to_rev_seq).
Definition to_seq_from {a : Set} :
key → t a → RocqOfOCaml.OCamlSeq.t (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_to_seq_from).
Definition add_seq {a : Set} : RocqOfOCaml.OCamlSeq.t (key × a) → t a → t a
:=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_add_seq).
Definition of_seq {a : Set} : RocqOfOCaml.OCamlSeq.t (key × a) → t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_of_seq).
Definition _at {v : Set} : key → Lens.t (t v) (option v) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_at).
Definition keys {a : Set} : t a → _Set.t :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_keys).
Definition difference {a d : Set} :
(option a → option a → option d) → t a → t a → t d :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_difference).
End Map.
#[local] Existing Instance MonadVM_Comparable_Make_include_fargs.
Definition comparison_op :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.comparison_op).
Definition op_lt :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.op_lt).
Definition op_lteq :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.op_lteq).
Definition op_eq :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.op_eq).
Definition op_gteq :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.op_gteq).
Definition op_gt :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.op_gt).
Definition op_ltgt :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.op_ltgt).
Definition equal :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.equal).
Definition compare :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.compare).
Definition max :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.max).
Definition min :=
Eval cbn in
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.min).
End _rocq_include_assumptions_comparison_op.
Module _Set.
Definition elt :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.elt).
Definition t :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.t).
Definition empty :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.empty).
Definition add :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.add).
Definition singleton :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.singleton).
Definition remove :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.remove).
Definition union :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.union).
Definition inter :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.inter).
Definition disjoint :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.disjoint).
Definition diff :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.diff).
Definition cardinal :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.cardinal).
Definition elements :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.elements).
Definition min_elt
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((elt)%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))
:=
(MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.min_elt)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition min_elt_opt :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.min_elt_opt).
Definition max_elt
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((elt)%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))
:=
(MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.max_elt)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition max_elt_opt :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.max_elt_opt).
Definition choose
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((elt)%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))
:=
(MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.choose)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition choose_opt :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.choose_opt).
Definition find
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((elt)%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))
:=
(MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.find)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition find_opt :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.find_opt).
Definition find_first
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((elt)%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))
:=
(MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.find_first)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition find_first_opt :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.find_first_opt).
Definition find_last
(_rocq_fallback_arg_0 :
ltac:(let typ := constr:(ltac:(first [unshelve refine ((elt)%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))
:=
(MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.find_last)
(H := RocqOfOCaml.Opaque.legacy_witness _rocq_fallback_arg_0)).
Definition find_last_opt :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.find_last_opt).
Definition iter :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.iter).
Definition fold {acc : Set} : (elt → acc → acc) → t → acc → acc :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.fold).
Definition map :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.map).
Definition filter :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.filter).
Definition filter_map :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.filter_map).
Definition partition :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.partition).
Definition split :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.split).
Definition is_empty :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.is_empty).
Definition is_singleton :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.is_singleton).
Definition mem :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.mem).
Definition equal :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.equal).
Definition compare :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.compare).
Definition subset :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.subset).
Definition for_all :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.for_all).
Definition _exists :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S._exists).
Definition to_list :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.to_list).
Definition of_list :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.of_list).
Definition to_seq_from :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.to_seq_from).
Definition to_seq :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.to_seq).
Definition to_rev_seq :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.to_rev_seq).
Definition add_seq :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.add_seq).
Definition of_seq :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).(RocqOfOCaml.OCamlSet.S.of_seq).
End _Set.
Section _rocq_include_assumptions__Set.
#[local] Existing Instance MonadVM_Comparable_Make_include_fargs.
Definition _Set :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result._Set).
End _rocq_include_assumptions__Set.
Module Map.
Definition key :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_key).
Definition t (a : Set) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_t)
a.
Definition empty {a : Set} : t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_empty).
Definition add {a : Set} : key → a → t a → t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_add).
Definition add_to_list {a : Set} : key → a → t (list a) → t (list a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_add_to_list).
Definition update {a : Set} : key → (option a → option a) → t a → t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_update).
Definition singleton {a : Set} : key → a → t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_singleton).
Definition remove {a : Set} : key → t a → t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_remove).
Definition merge {a b c : Set} :
(key → option a → option b → option c) → t a → t b → t c :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_merge).
Definition union {a : Set} : (key → a → a → option a) → t a → t a → t a
:=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_union).
Definition cardinal {a : Set} : t a → int :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_cardinal).
Definition bindings {a : Set} : t a → list (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_bindings).
Definition 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 :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_min_binding)
(_rocq_fallback_arg_0).
Definition min_binding_opt {a : Set} : t a → option (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_min_binding_opt).
Definition 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 :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_max_binding)
(_rocq_fallback_arg_0).
Definition max_binding_opt {a : Set} : t a → option (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_max_binding_opt).
Definition 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 :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_choose)
(_rocq_fallback_arg_0).
Definition choose_opt {a : Set} : t a → option (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_choose_opt).
Definition 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 :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_find)
(_rocq_fallback_arg_0).
Definition find_opt {a : Set} : key → t a → option a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_find_opt).
Definition 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 :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_find_first)
(_rocq_fallback_arg_0).
Definition find_first_opt {a : Set} : (key → bool) → t a → option (key × a)
:=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_find_first_opt).
Definition 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 :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_find_last)
(_rocq_fallback_arg_0).
Definition find_last_opt {a : Set} : (key → bool) → t a → option (key × a)
:=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_find_last_opt).
Definition iter {a : Set} : (key → a → unit) → t a → unit :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_iter).
Definition fold {a acc : Set} : (key → a → acc → acc) → t a → acc → acc
:=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_fold).
Definition map {a b : Set} : (a → b) → t a → t b :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_map).
Definition mapi {a b : Set} : (key → a → b) → t a → t b :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_mapi).
Definition filter {a : Set} : (key → a → bool) → t a → t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_filter).
Definition filter_map {a b : Set} : (key → a → option b) → t a → t b :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_filter_map).
Definition partition {a : Set} : (key → a → bool) → t a → t a × t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_partition).
Definition split {a : Set} : key → t a → t a × option a × t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_split).
Definition is_empty {a : Set} : t a → bool :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_is_empty).
Definition is_singleton {a : Set} : t a → bool :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_is_singleton).
Definition mem {a : Set} : key → t a → bool :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_mem).
Definition equal {a : Set} : (a → a → bool) → t a → t a → bool :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_equal).
Definition compare {a : Set} : (a → a → int) → t a → t a → int :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_compare).
Definition for_all {a : Set} : (key → a → bool) → t a → bool :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_for_all).
Definition _exists {a : Set} : (key → a → bool) → t a → bool :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_exists).
Definition to_list {a : Set} : t a → list (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_to_list).
Definition of_list {a : Set} : list (key × a) → t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_of_list).
Definition to_seq {a : Set} : t a → RocqOfOCaml.OCamlSeq.t (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_to_seq).
Definition to_rev_seq {a : Set} : t a → RocqOfOCaml.OCamlSeq.t (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_to_rev_seq).
Definition to_seq_from {a : Set} :
key → t a → RocqOfOCaml.OCamlSeq.t (key × a) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_to_seq_from).
Definition add_seq {a : Set} : RocqOfOCaml.OCamlSeq.t (key × a) → t a → t a
:=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_add_seq).
Definition of_seq {a : Set} : RocqOfOCaml.OCamlSeq.t (key × a) → t a :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_of_seq).
Definition _at {v : Set} : key → Lens.t (t v) (option v) :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_at).
Definition keys {a : Set} : t a → _Set.t :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_keys).
Definition difference {a d : Set} :
(option a → option a → option d) → t a → t a → t d :=
MonadVM_Comparable_Make_include.(MonadVM.Comparable.Make.Make_result.Map_difference).
End Map.