Skip to main content

πŸƒΒ V8_modules.v

Environment

Gitlab

File generated by coq-of-ocaml
Require Import CoqOfOCaml.CoqOfOCaml.
Require Import CoqOfOCaml.Settings.

Require Import TezosOfOCaml.Environment.Variant.

Module Type Pervasives_signature.
  Parameter raise : βˆ€ {a : Set}, extensible_type β†’ a.

  Parameter raise_notrace : βˆ€ {a : Set}, extensible_type β†’ a.

  Parameter invalid_arg : βˆ€ {a : Set}, string β†’ a.

  Parameter failwith : βˆ€ {a : Set}, string β†’ a.

  Parameter not : bool β†’ bool.

  Parameter op_andand : bool β†’ bool β†’ bool.

  Parameter op_pipepipe : bool β†’ bool β†’ bool.

  Parameter __LOC__ : string.

  Parameter __FILE__ : string.

  Parameter __LINE__ : int.

  Parameter __MODULE__ : string.

  Parameter __POS__ : string Γ— int Γ— int Γ— int.

  Parameter __LOC_OF__ : βˆ€ {a : Set}, a β†’ string Γ— a.

  Parameter __LINE_OF__ : βˆ€ {a : Set}, a β†’ int Γ— a.

  Parameter __POS_OF__ : βˆ€ {a : Set}, a β†’ (string Γ— int Γ— int Γ— int) Γ— a.

  Parameter op_pipegt : βˆ€ {a b : Set}, a β†’ (a β†’ b) β†’ b.

  Parameter op_atat : βˆ€ {a b : Set}, (a β†’ b) β†’ a β†’ b.

  Parameter op_tildeminus : int β†’ int.

  Parameter op_tildeplus : int β†’ int.

  Parameter succ : int β†’ int.

  Parameter pred : int β†’ int.

  Parameter op_plus : int β†’ int β†’ int.

  Parameter op_minus : int β†’ int β†’ int.

  Parameter op_star : int β†’ int β†’ int.

  Parameter op_div : int β†’ int β†’ int.

  Parameter _mod : int β†’ int β†’ int.

  Parameter abs : int β†’ int.

  Parameter max_int : int.

  Parameter min_int : int.

  Parameter land : int β†’ int β†’ int.

  Parameter lor : int β†’ int β†’ int.

  Parameter lxor : int β†’ int β†’ int.

  Parameter lnot : int β†’ int.

  Parameter lsl : int β†’ int β†’ int.

  Parameter lsr : int β†’ int β†’ int.

  Parameter asr : int β†’ int β†’ int.

  Parameter op_caret : string β†’ string β†’ string.

  Parameter int_of_char : ascii β†’ int.

  Parameter char_of_int : int β†’ ascii.

  Parameter ignore : βˆ€ {a : Set}, a β†’ unit.

  Parameter string_of_bool : bool β†’ string.

  Parameter bool_of_string_opt : string β†’ option bool.

  Parameter string_of_int : int β†’ string.

  Parameter int_of_string_opt : string β†’ option int.

  Parameter fst : βˆ€ {a b : Set}, a Γ— b β†’ a.

  Parameter snd : βˆ€ {a b : Set}, a Γ— b β†’ b.

  Parameter op_at : βˆ€ {a : Set}, list a β†’ list a β†’ list a.

  Module ref.
    Record record {a : Set} : Set := Build {
      contents : a;
    }.
    Arguments record : clear implicits.
    Definition with_contents {t_a} contents (r : record t_a) :=
      Build t_a contents.
  End ref.
  Definition ref := ref.record.

  Parameter ref_value : βˆ€ {a : Set}, a β†’ ref a.

  Parameter op_exclamation : βˆ€ {a : Set}, ref a β†’ a.

  Parameter op_coloneq : βˆ€ {a : Set}, ref a β†’ a β†’ unit.

  Parameter incr : ref int β†’ unit.

  Parameter decr : ref int β†’ unit.

  Inductive result (a b : Set) : Set :=
  | Ok : a β†’ result a b
  | Error : b β†’ result a b.

  Arguments Ok {_ _}.
  Arguments Error {_ _}.

  Definition format6 (a b c d e f : Set) : Set :=
    CamlinternalFormatBasics.format6 a b c d e f.

  Definition format4 (a b c d : Set) : Set := format6 a b c c c d.

  Definition format (a b c : Set) : Set := format4 a b c c.

  Parameter string_of_format : βˆ€ {a b c d e f : Set},
    format6 a b c d e f β†’ string.

  Parameter format_of_string : βˆ€ {a b c d e f : Set},
    format6 a b c d e f β†’ format6 a b c d e f.

  Parameter op_caretcaret : βˆ€ {a b c d e f g h : Set},
    format6 a b c d e f β†’ format6 f b c e g h β†’ format6 a b c d g h.
End Pervasives_signature.
Require Export TezosOfOCaml.Environment.V8.Pervasives.
Module Pervasives_check : Pervasives_signature := Pervasives.

Module Type Either_signature.
  Inductive t (a b : Set) : Set :=
  | Left : a β†’ t a b
  | Right : b β†’ t a b.

  Arguments Left {_ _}.
  Arguments Right {_ _}.

  Parameter equal : βˆ€ {a b : Set},
    (a β†’ a β†’ bool) β†’ (b β†’ b β†’ bool) β†’ t a b β†’ t a b β†’ bool.

  Parameter compare : βˆ€ {a b : Set},
    (a β†’ a β†’ int) β†’ (b β†’ b β†’ int) β†’ t a b β†’ t a b β†’ int.
End Either_signature.
Require Export TezosOfOCaml.Environment.V8.Either.
Module Either_check : Either_signature := Either.

Module Type String_signature.
  Parameter length : string β†’ int.

  Parameter get : string β†’ int β†’ ascii.

  Parameter make : int β†’ ascii β†’ string.

  Parameter init_value : int β†’ (int β†’ ascii) β†’ string.

  Parameter sub : string β†’ int β†’ int β†’ string.

  Parameter blit : string β†’ int β†’ bytes β†’ int β†’ int β†’ unit.

  Parameter concat : string β†’ list string β†’ string.

  Parameter iter : (ascii β†’ unit) β†’ string β†’ unit.

  Parameter iteri : (int β†’ ascii β†’ unit) β†’ string β†’ unit.

  Parameter map : (ascii β†’ ascii) β†’ string β†’ string.

  Parameter mapi : (int β†’ ascii β†’ ascii) β†’ string β†’ string.

  Parameter trim : string β†’ string.

  Parameter escaped : string β†’ string.

  Parameter index_opt : string β†’ ascii β†’ option int.

  Parameter rindex_opt : string β†’ ascii β†’ option int.

  Parameter index_from_opt : string β†’ int β†’ ascii β†’ option int.

  Parameter rindex_from_opt : string β†’ int β†’ ascii β†’ option int.

  Parameter contains : string β†’ ascii β†’ bool.

  Parameter contains_from : string β†’ int β†’ ascii β†’ bool.

  Parameter rcontains_from : string β†’ int β†’ ascii β†’ bool.

  Parameter uppercase_ascii : string β†’ string.

  Parameter lowercase_ascii : string β†’ string.

  Parameter capitalize_ascii : string β†’ string.

  Parameter uncapitalize_ascii : string β†’ string.

  Definition t : Set := string.

  Parameter compare : t β†’ t β†’ int.

  Parameter equal : t β†’ t β†’ bool.

  Parameter split_on_char : ascii β†’ string β†’ list string.
End String_signature.
Require Export TezosOfOCaml.Environment.V8.String.
Module String_check : String_signature := String.

Module Type Char_signature.
  Parameter code : ascii β†’ int.

  Parameter chr : int β†’ ascii.

  Parameter escaped : ascii β†’ string.

  Parameter lowercase_ascii : ascii β†’ ascii.

  Parameter uppercase_ascii : ascii β†’ ascii.

  Definition t : Set := ascii.

  Parameter compare : t β†’ t β†’ int.

  Parameter equal : t β†’ t β†’ bool.
End Char_signature.
Require Export TezosOfOCaml.Environment.V8.Char.
Module Char_check : Char_signature := Char.

Module Type Bytes_signature.
  Parameter length : bytes β†’ int.

  Parameter get : bytes β†’ int β†’ ascii.

  Parameter set : bytes β†’ int β†’ ascii β†’ unit.

  Parameter make : int β†’ ascii β†’ bytes.

  Parameter init_value : int β†’ (int β†’ ascii) β†’ bytes.

  Parameter empty : bytes.

  Parameter copy : bytes β†’ bytes.

  Parameter of_string : string β†’ bytes.

  Parameter to_string : bytes β†’ string.

  Parameter sub : bytes β†’ int β†’ int β†’ bytes.

  Parameter sub_string : bytes β†’ int β†’ int β†’ string.

  Parameter extend : bytes β†’ int β†’ int β†’ bytes.

  Parameter fill : bytes β†’ int β†’ int β†’ ascii β†’ unit.

  Parameter blit : bytes β†’ int β†’ bytes β†’ int β†’ int β†’ unit.

  Parameter blit_string : string β†’ int β†’ bytes β†’ int β†’ int β†’ unit.

  Parameter concat : bytes β†’ list bytes β†’ bytes.

  Parameter cat : bytes β†’ bytes β†’ bytes.

  Parameter iter : (ascii β†’ unit) β†’ bytes β†’ unit.

  Parameter iteri : (int β†’ ascii β†’ unit) β†’ bytes β†’ unit.

  Parameter map : (ascii β†’ ascii) β†’ bytes β†’ bytes.

  Parameter mapi : (int β†’ ascii β†’ ascii) β†’ bytes β†’ bytes.

  Parameter trim : bytes β†’ bytes.

  Parameter escaped : bytes β†’ bytes.

  Parameter index_opt : bytes β†’ ascii β†’ option int.

  Parameter rindex_opt : bytes β†’ ascii β†’ option int.

  Parameter index_from_opt : bytes β†’ int β†’ ascii β†’ option int.

  Parameter rindex_from_opt : bytes β†’ int β†’ ascii β†’ option int.

  Parameter contains : bytes β†’ ascii β†’ bool.

  Parameter contains_from : bytes β†’ int β†’ ascii β†’ bool.

  Parameter rcontains_from : bytes β†’ int β†’ ascii β†’ bool.

  Parameter uppercase_ascii : bytes β†’ bytes.

  Parameter lowercase_ascii : bytes β†’ bytes.

  Parameter capitalize_ascii : bytes β†’ bytes.

  Parameter uncapitalize_ascii : bytes β†’ bytes.

  Definition t : Set := bytes.

  Parameter compare : t β†’ t β†’ int.

  Parameter equal : t β†’ t β†’ bool.

  Parameter logand : bytes β†’ bytes β†’ bytes.

  Parameter logor : bytes β†’ bytes β†’ bytes.

  Parameter logxor : bytes β†’ bytes β†’ bytes.

  Parameter lognot : bytes β†’ bytes.

  Parameter shift_left : bytes β†’ int β†’ bytes.

  Parameter shift_right : bytes β†’ int β†’ bytes.
End Bytes_signature.
Require Export TezosOfOCaml.Environment.V8.Bytes.
Module Bytes_check : Bytes_signature := Bytes.

Module Type Int32_signature.
  Parameter zero : int32.

  Parameter one : int32.

  Parameter minus_one : int32.

  Parameter neg : int32 β†’ int32.

  Parameter add : int32 β†’ int32 β†’ int32.

  Parameter sub : int32 β†’ int32 β†’ int32.

  Parameter mul : int32 β†’ int32 β†’ int32.

  Parameter div : int32 β†’ int32 β†’ int32.

  Parameter rem : int32 β†’ int32 β†’ int32.

  Parameter succ : int32 β†’ int32.

  Parameter pred : int32 β†’ int32.

  Parameter abs : int32 β†’ int32.

  Parameter max_int : int32.

  Parameter min_int : int32.

  Parameter logand : int32 β†’ int32 β†’ int32.

  Parameter logor : int32 β†’ int32 β†’ int32.

  Parameter logxor : int32 β†’ int32 β†’ int32.

  Parameter lognot : int32 β†’ int32.

  Parameter shift_left : int32 β†’ int β†’ int32.

  Parameter shift_right : int32 β†’ int β†’ int32.

  Parameter shift_right_logical : int32 β†’ int β†’ int32.

  Parameter of_int : int β†’ int32.

  Parameter to_int : int32 β†’ int.

  Parameter of_string_opt : string β†’ option int32.

  Parameter to_string : int32 β†’ string.

  Definition t : Set := int32.

  Parameter compare : t β†’ t β†’ int.

  Parameter equal : t β†’ t β†’ bool.
End Int32_signature.
Require Export TezosOfOCaml.Environment.V8.Int32.
Module Int32_check : Int32_signature := Int32.

Module Type Int64_signature.
  Parameter zero : int64.

  Parameter one : int64.

  Parameter minus_one : int64.

  Parameter neg : int64 β†’ int64.

  Parameter add : int64 β†’ int64 β†’ int64.

  Parameter sub : int64 β†’ int64 β†’ int64.

  Parameter mul : int64 β†’ int64 β†’ int64.

  Parameter div : int64 β†’ int64 β†’ int64.

  Parameter rem : int64 β†’ int64 β†’ int64.

  Parameter succ : int64 β†’ int64.

  Parameter pred : int64 β†’ int64.

  Parameter abs : int64 β†’ int64.

  Parameter max_int : int64.

  Parameter min_int : int64.

  Parameter logand : int64 β†’ int64 β†’ int64.

  Parameter logor : int64 β†’ int64 β†’ int64.

  Parameter logxor : int64 β†’ int64 β†’ int64.

  Parameter lognot : int64 β†’ int64.

  Parameter shift_left : int64 β†’ int β†’ int64.

  Parameter shift_right : int64 β†’ int β†’ int64.

  Parameter shift_right_logical : int64 β†’ int β†’ int64.

  Parameter of_int : int β†’ int64.

  Parameter to_int : int64 β†’ int.

  Parameter of_int32 : int32 β†’ int64.

  Parameter to_int32 : int64 β†’ int32.

  Parameter of_string_opt : string β†’ option int64.

  Parameter to_string : int64 β†’ string.

  Definition t : Set := int64.

  Parameter compare : t β†’ t β†’ int.

  Parameter equal : t β†’ t β†’ bool.
End Int64_signature.
Require Export TezosOfOCaml.Environment.V8.Int64.
Module Int64_check : Int64_signature := Int64.

Module Type Format_signature.
  Parameter formatter : Set.

  Parameter pp_open_box : formatter β†’ int β†’ unit.

  Parameter pp_close_box : formatter β†’ unit β†’ unit.

  Parameter pp_open_hbox : formatter β†’ unit β†’ unit.

  Parameter pp_open_vbox : formatter β†’ int β†’ unit.

  Parameter pp_open_hvbox : formatter β†’ int β†’ unit.

  Parameter pp_open_hovbox : formatter β†’ int β†’ unit.

  Parameter pp_print_string : formatter β†’ string β†’ unit.

  Parameter pp_print_as : formatter β†’ int β†’ string β†’ unit.

  Parameter pp_print_int : formatter β†’ int β†’ unit.

  Parameter pp_print_char : formatter β†’ ascii β†’ unit.

  Parameter pp_print_bool : formatter β†’ bool β†’ unit.

  Parameter pp_print_space : formatter β†’ unit β†’ unit.

  Parameter pp_print_cut : formatter β†’ unit β†’ unit.

  Parameter pp_print_break : formatter β†’ int β†’ int β†’ unit.

  Parameter pp_print_custom_break :
    formatter β†’ string Γ— int Γ— string β†’ string Γ— int Γ— string β†’ unit.

  Parameter pp_force_newline : formatter β†’ unit β†’ unit.

  Parameter pp_print_if_newline : formatter β†’ unit β†’ unit.

  Parameter pp_print_flush : formatter β†’ unit β†’ unit.

  Parameter pp_print_newline : formatter β†’ unit β†’ unit.

  Parameter pp_set_margin : formatter β†’ int β†’ unit.

  Parameter pp_get_margin : formatter β†’ unit β†’ int.

  Parameter pp_set_max_indent : formatter β†’ int β†’ unit.

  Parameter pp_get_max_indent : formatter β†’ unit β†’ int.

  Parameter pp_set_max_boxes : formatter β†’ int β†’ unit.

  Parameter pp_get_max_boxes : formatter β†’ unit β†’ int.

  Parameter pp_over_max_boxes : formatter β†’ unit β†’ bool.

  Parameter pp_open_tbox : formatter β†’ unit β†’ unit.

  Parameter pp_close_tbox : formatter β†’ unit β†’ unit.

  Parameter pp_set_tab : formatter β†’ unit β†’ unit.

  Parameter pp_print_tab : formatter β†’ unit β†’ unit.

  Parameter pp_print_tbreak : formatter β†’ int β†’ int β†’ unit.

  Parameter pp_set_ellipsis_text : formatter β†’ string β†’ unit.

  Parameter pp_get_ellipsis_text : formatter β†’ unit β†’ string.

  Parameter pp_print_list : βˆ€ {a : Set},
    option (formatter β†’ unit β†’ unit) β†’ (formatter β†’ a β†’ unit) β†’
    formatter β†’ list a β†’ unit.

  Parameter pp_print_text : formatter β†’ string β†’ unit.

  Parameter pp_print_option : βˆ€ {a : Set},
    option (formatter β†’ unit β†’ unit) β†’ (formatter β†’ a β†’ unit) β†’
    formatter β†’ option a β†’ unit.

  Parameter pp_print_result : βˆ€ {a e : Set},
    (formatter β†’ a β†’ unit) β†’ (formatter β†’ e β†’ unit) β†’ formatter β†’
    Pervasives.result a e β†’ unit.

  Parameter fprintf : βˆ€ {a : Set},
    formatter β†’ Pervasives.format a formatter unit β†’ a.

  Parameter sprintf : βˆ€ {a : Set}, Pervasives.format a unit string β†’ a.

  Parameter asprintf : βˆ€ {a : Set},
    Pervasives.format4 a formatter unit string β†’ a.

  Parameter dprintf : βˆ€ {a : Set},
    Pervasives.format4 a formatter unit (formatter β†’ unit) β†’ a.

  Parameter ifprintf : βˆ€ {a : Set},
    formatter β†’ Pervasives.format a formatter unit β†’ a.

  Parameter kfprintf : βˆ€ {a b : Set},
    (formatter β†’ a) β†’ formatter β†’ Pervasives.format4 b formatter unit a β†’ b.

  Parameter kdprintf : βˆ€ {a b : Set},
    ((formatter β†’ unit) β†’ a) β†’ Pervasives.format4 b formatter unit a β†’ b.

  Parameter ikfprintf : βˆ€ {a b : Set},
    (formatter β†’ a) β†’ formatter β†’ Pervasives.format4 b formatter unit a β†’ b.

  Parameter ksprintf : βˆ€ {a b : Set},
    (string β†’ a) β†’ Pervasives.format4 b unit string a β†’ b.

  Parameter kasprintf : βˆ€ {a b : Set},
    (string β†’ a) β†’ Pervasives.format4 b formatter unit a β†’ b.
End Format_signature.
Require Export TezosOfOCaml.Environment.V8.Format.
Module Format_check : Format_signature := Format.

Module Type Logging_signature.
  Inductive level : Set :=
  | Debug : level
  | Info : level
  | Notice : level
  | Warning : level
  | Error : level
  | Fatal : level.

  Parameter log : βˆ€ {a : Set},
    level β†’ Pervasives.format4 a Format.formatter unit unit β†’ a.

  Parameter log_string : level β†’ string β†’ unit.
End Logging_signature.
Require Export TezosOfOCaml.Environment.V8.Logging.
Module Logging_check : Logging_signature := Logging.

Module Type Hex_signature.
  Inductive t : Set :=
  | Hex : string β†’ t.

  Parameter of_char : ascii β†’ ascii Γ— ascii.

  Parameter to_char : ascii β†’ ascii β†’ option ascii.

  Parameter of_string : option (list ascii) β†’ string β†’ t.

  Parameter to_string : t β†’ option string.

  Parameter of_bytes : option (list ascii) β†’ bytes β†’ t.

  Parameter to_bytes : t β†’ option bytes.

  Parameter hexdump_s : option bool β†’ option bool β†’ t β†’ string.

  Parameter pp : Format.formatter β†’ t β†’ unit.

  Parameter show : t β†’ string.
End Hex_signature.
Require Export TezosOfOCaml.Environment.V8.Hex.
Module Hex_check : Hex_signature := Hex.

Module Type Z_signature.
  Parameter t : Set.

  Parameter zero : t.

  Parameter one : t.

  Parameter minus_one : t.

  Parameter of_int : int β†’ t.

  Parameter of_int32 : int32 β†’ t.

  Parameter of_int64 : int64 β†’ t.

  Parameter of_string : string β†’ t.

  Parameter of_substring : string β†’ int β†’ int β†’ t.

  Parameter of_string_base : int β†’ string β†’ t.

  Parameter of_substring_base : int β†’ string β†’ int β†’ int β†’ t.

  Parameter succ : t β†’ t.

  Parameter pred : t β†’ t.

  Parameter abs : t β†’ t.

  Parameter neg : t β†’ t.

  Parameter add : t β†’ t β†’ t.

  Parameter sub : t β†’ t β†’ t.

  Parameter mul : t β†’ t β†’ t.

  Parameter div : t β†’ t β†’ t.

  Parameter rem : t β†’ t β†’ t.

  Parameter div_rem : t β†’ t β†’ t Γ— t.

  Parameter cdiv : t β†’ t β†’ t.

  Parameter fdiv : t β†’ t β†’ t.

  Parameter ediv_rem : t β†’ t β†’ t Γ— t.

  Parameter ediv : t β†’ t β†’ t.

  Parameter erem : t β†’ t β†’ t.

  Parameter divexact : t β†’ t β†’ t.

  Parameter divisible : t β†’ t β†’ bool.

  Parameter congruent : t β†’ t β†’ t β†’ bool.

  Parameter logand : t β†’ t β†’ t.

  Parameter logor : t β†’ t β†’ t.

  Parameter logxor : t β†’ t β†’ t.

  Parameter lognot : t β†’ t.

  Parameter shift_left : t β†’ int β†’ t.

  Parameter shift_right : t β†’ int β†’ t.

  Parameter shift_right_trunc : t β†’ int β†’ t.

  Parameter numbits : t β†’ int.

  Parameter trailing_zeros : t β†’ int.

  Parameter testbit : t β†’ int β†’ bool.

  Parameter popcount : t β†’ int.

  Parameter hamdist : t β†’ t β†’ int.

  Parameter to_int : t β†’ int.

  Parameter to_int32 : t β†’ int32.

  Parameter to_int64 : t β†’ int64.

  Parameter to_string : t β†’ string.

  Parameter format : string β†’ t β†’ string.

  Parameter fits_int : t β†’ bool.

  Parameter fits_int32 : t β†’ bool.

  Parameter fits_int64 : t β†’ bool.

  Parameter pp_print : Format.formatter β†’ t β†’ unit.

  Parameter compare : t β†’ t β†’ int.

  Parameter equal : t β†’ t β†’ bool.

  Parameter leq : t β†’ t β†’ bool.

  Parameter geq : t β†’ t β†’ bool.

  Parameter lt : t β†’ t β†’ bool.

  Parameter gt : t β†’ t β†’ bool.

  Parameter sign : t β†’ int.

  Parameter min : t β†’ t β†’ t.

  Parameter max : t β†’ t β†’ t.

  Parameter is_even : t β†’ bool.

  Parameter is_odd : t β†’ bool.

  Parameter pow : t β†’ int β†’ t.

  Parameter sqrt : t β†’ t.

  Parameter sqrt_rem : t β†’ t Γ— t.

  Parameter root_value : t β†’ int β†’ t.

  Parameter rootrem : t β†’ int β†’ t Γ— t.

  Parameter perfect_power : t β†’ bool.

  Parameter perfect_square : t β†’ bool.

  Parameter log2 : t β†’ int.

  Parameter log2up : t β†’ int.

  Parameter size_value : t β†’ int.

  Parameter extract : t β†’ int β†’ int β†’ t.

  Parameter signed_extract : t β†’ int β†’ int β†’ t.

  Parameter to_bits : t β†’ string.

  Parameter of_bits : string β†’ t.
End Z_signature.
Require Export TezosOfOCaml.Environment.V8.Z.
Module Z_check : Z_signature := Z.

Module Type Q_signature.
  Module t.
    Record record : Set := Build {
      num : Z.t;
      den : Z.t;
    }.
    Definition with_num num (r : record) :=
      Build num r.(den).
    Definition with_den den (r : record) :=
      Build r.(num) den.
  End t.
  Definition t := t.record.

  Parameter make : Z.t β†’ Z.t β†’ t.

  Parameter zero : t.

  Parameter one : t.

  Parameter minus_one : t.

  Parameter inf : t.

  Parameter minus_inf : t.

  Parameter undef : t.

  Parameter of_bigint : Z.t β†’ t.

  Parameter of_int : int β†’ t.

  Parameter of_int32 : int32 β†’ t.

  Parameter of_int64 : int64 β†’ t.

  Parameter of_ints : int β†’ int β†’ t.

  Parameter of_string : string β†’ t.

  Parameter num : t β†’ Z.t.

  Parameter den : t β†’ Z.t.

  Inductive kind : Set :=
  | ZERO : kind
  | INF : kind
  | MINF : kind
  | UNDEF : kind
  | NZERO : kind.

  Parameter classify : t β†’ kind.

  Parameter is_real : t β†’ bool.

  Parameter sign : t β†’ int.

  Parameter compare : t β†’ t β†’ int.

  Parameter equal : t β†’ t β†’ bool.

  Parameter min : t β†’ t β†’ t.

  Parameter max : t β†’ t β†’ t.

  Parameter leq : t β†’ t β†’ bool.

  Parameter geq : t β†’ t β†’ bool.

  Parameter lt : t β†’ t β†’ bool.

  Parameter gt : t β†’ t β†’ bool.

  Parameter to_bigint : t β†’ Z.t.

  Parameter to_int : t β†’ int.

  Parameter to_int32 : t β†’ int32.

  Parameter to_int64 : t β†’ int64.

  Parameter to_string : t β†’ string.

  Parameter neg : t β†’ t.

  Parameter abs : t β†’ t.

  Parameter add : t β†’ t β†’ t.

  Parameter sub : t β†’ t β†’ t.

  Parameter mul : t β†’ t β†’ t.

  Parameter inv : t β†’ t.

  Parameter div : t β†’ t β†’ t.

  Parameter mul_2exp : t β†’ int β†’ t.

  Parameter div_2exp : t β†’ int β†’ t.

  Parameter pp_print : Format.formatter β†’ t β†’ unit.

  Parameter op_tildeminus : t β†’ t.

  Parameter op_tildeplus : t β†’ t.

  Parameter op_plus : t β†’ t β†’ t.

  Parameter op_minus : t β†’ t β†’ t.

  Parameter op_star : t β†’ t β†’ t.

  Parameter op_div : t β†’ t β†’ t.

  Parameter lsl : t β†’ int β†’ t.

  Parameter asr : t β†’ int β†’ t.

  Parameter op_tildedollar : int β†’ t.

  Parameter op_divdiv : int β†’ int β†’ t.

  Parameter op_tildedollardollar : Z.t β†’ t.

  Parameter op_divdivdiv : Z.t β†’ Z.t β†’ t.

  Parameter op_eq : t β†’ t β†’ bool.

  Parameter op_lt : t β†’ t β†’ bool.

  Parameter op_gt : t β†’ t β†’ bool.

  Parameter op_lteq : t β†’ t β†’ bool.

  Parameter op_gteq : t β†’ t β†’ bool.

  Parameter op_ltgt : t β†’ t β†’ bool.
End Q_signature.
Require Export TezosOfOCaml.Environment.V8.Q.
Module Q_check : Q_signature := Q.

Module Type Lwt_signature.
  Parameter t : βˆ€ (a : Set), Set.

  Parameter _return : βˆ€ {a : Set}, a β†’ t a.

  Parameter bind : βˆ€ {a b : Set}, t a β†’ (a β†’ t b) β†’ t b.

  Parameter map : βˆ€ {a b : Set}, (a β†’ b) β†’ t a β†’ t b.

  Parameter return_unit : t unit.

  Parameter return_none : βˆ€ {A : Set}, t (option A).

  Parameter return_nil : βˆ€ {A : Set}, t (list A).

  Parameter return_true : t bool.

  Parameter return_false : t bool.

  Parameter return_some : βˆ€ {a : Set}, a β†’ t (option a).

  Parameter return_ok : βˆ€ {B a : Set}, a β†’ t (Pervasives.result a B).

  Parameter return_error : βˆ€ {B e : Set}, e β†’ t (Pervasives.result B e).
End Lwt_signature.
(* We do not implement the Lwt module, as it is the identity monad for us since
   the protocol code is sequential and interactions with the store can be
   implemented in a purely functional way. *)


Module Type Data_encoding_signature.
  Inductive json : Set :=
  | Bool : bool β†’ json
  | Null : json
  | O : list (string Γ— json) β†’ json
  | Float : float β†’ json
  | String : string β†’ json
  | A : list json β†’ json.

  Inductive tag_size : Set :=
  | Uint16 : tag_size
  | Uint8 : tag_size.

  Parameter json_schema : Set.

  Parameter t : βˆ€ (a : Set), Set.

  Definition encoding (a : Set) : Set := t a.

  Inductive string_json_repr : Set :=
  | Hex : string_json_repr
  | Plain : string_json_repr.

  Parameter classify : βˆ€ {a : Set}, encoding a β†’ Variant.t.

  Parameter null : encoding unit.

  Parameter empty : encoding unit.

  Parameter unit_value : encoding unit.

  Parameter constant : string β†’ encoding unit.

  Parameter int8 : encoding int.

  Parameter uint8 : encoding int.

  Parameter int16 : encoding int.

  Parameter uint16 : encoding int.

  Parameter int31 : encoding int.

  Parameter int32_value : encoding int32.

  Parameter int64_value : encoding int64.

  Parameter ranged_int : int β†’ int β†’ encoding int.

  Parameter z_value : encoding Z.t.

  Parameter n_value : encoding Z.t.

  Parameter uint_like_n : option int β†’ unit β†’ encoding int.

  Parameter int_like_z : option int β†’ option int β†’ unit β†’ encoding int.

  Parameter bool_value : encoding bool.

  Parameter string' : option Variant.t β†’ string_json_repr β†’ encoding string.

  Parameter bytes' : option Variant.t β†’ string_json_repr β†’ encoding Bytes.t.

  Parameter string_value : encoding string.

  Parameter bytes_value : encoding Bytes.t.

  Parameter option_value : βˆ€ {a : Set}, encoding a β†’ encoding (option a).

  Parameter result_value : βˆ€ {a b : Set},
    encoding a β†’ encoding b β†’ encoding (Pervasives.result a b).

  Parameter list_value : βˆ€ {a : Set},
    option int β†’ encoding a β†’ encoding (list a).

  Parameter list_with_length : βˆ€ {a : Set},
    option int β†’ Variant.t β†’ encoding a β†’ encoding (list a).

  Parameter conv : βˆ€ {a b : Set},
    (a β†’ b) β†’ (b β†’ a) β†’ option json_schema β†’ encoding b β†’ encoding a.

  Parameter conv_with_guard : βˆ€ {a b : Set},
    (a β†’ b) β†’ (b β†’ Pervasives.result a string) β†’ option json_schema β†’
    encoding b β†’ encoding a.

  Parameter with_decoding_guard : βˆ€ {a : Set},
    (a β†’ Pervasives.result unit string) β†’ encoding a β†’ encoding a.

  Parameter assoc : βˆ€ {a : Set},
    encoding a β†’ encoding (list (string Γ— a)).

  Parameter field : βˆ€ (a : Set), Set.

  Parameter req : βˆ€ {t : Set},
    option string β†’ option string β†’ string β†’ encoding t β†’ field t.

  Parameter opt : βˆ€ {t : Set},
    option string β†’ option string β†’ string β†’ encoding t β†’ field (option t).

  Parameter varopt : βˆ€ {t : Set},
    option string β†’ option string β†’ string β†’ encoding t β†’ field (option t).

  Parameter dft : βˆ€ {t : Set},
    option string β†’ option string β†’ string β†’ encoding t β†’ t β†’ field t.

  Parameter obj1 : βˆ€ {f1 : Set}, field f1 β†’ encoding f1.

  Parameter obj2 : βˆ€ {f1 f2 : Set},
    field f1 β†’ field f2 β†’ encoding (f1 Γ— f2).

  Parameter obj3 : βˆ€ {f1 f2 f3 : Set},
    field f1 β†’ field f2 β†’ field f3 β†’ encoding (f1 Γ— f2 Γ— f3).

  Parameter obj4 : βˆ€ {f1 f2 f3 f4 : Set},
    field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ encoding (f1 Γ— f2 Γ— f3 Γ— f4).

  Parameter obj5 : βˆ€ {f1 f2 f3 f4 f5 : Set},
    field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’
    encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5).

  Parameter obj6 : βˆ€ {f1 f2 f3 f4 f5 f6 : Set},
    field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’ field f6 β†’
    encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6).

  Parameter obj7 : βˆ€ {f1 f2 f3 f4 f5 f6 f7 : Set},
    field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’ field f6 β†’
    field f7 β†’ encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7).

  Parameter obj8 : βˆ€ {f1 f2 f3 f4 f5 f6 f7 f8 : Set},
    field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’ field f6 β†’
    field f7 β†’ field f8 β†’ encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7 Γ— f8).

  Parameter obj9 : βˆ€ {f1 f2 f3 f4 f5 f6 f7 f8 f9 : Set},
    field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’ field f6 β†’
    field f7 β†’ field f8 β†’ field f9 β†’
    encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7 Γ— f8 Γ— f9).

  Parameter obj10 : βˆ€ {f1 f10 f2 f3 f4 f5 f6 f7 f8 f9 : Set},
    field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’ field f6 β†’
    field f7 β†’ field f8 β†’ field f9 β†’ field f10 β†’
    encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7 Γ— f8 Γ— f9 Γ— f10).

  Parameter merge_objs : βˆ€ {o1 o2 : Set},
    encoding o1 β†’ encoding o2 β†’ encoding (o1 Γ— o2).

  Module With_field_name_duplicate_checks.
    Parameter obj1 : βˆ€ {f1 : Set}, field f1 β†’ encoding f1.

    Parameter obj2 : βˆ€ {f1 f2 : Set},
      field f1 β†’ field f2 β†’ encoding (f1 Γ— f2).

    Parameter obj3 : βˆ€ {f1 f2 f3 : Set},
      field f1 β†’ field f2 β†’ field f3 β†’ encoding (f1 Γ— f2 Γ— f3).

    Parameter obj4 : βˆ€ {f1 f2 f3 f4 : Set},
      field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’
      encoding (f1 Γ— f2 Γ— f3 Γ— f4).

    Parameter obj5 : βˆ€ {f1 f2 f3 f4 f5 : Set},
      field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’
      encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5).

    Parameter obj6 : βˆ€ {f1 f2 f3 f4 f5 f6 : Set},
      field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’ field f6 β†’
      encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6).

    Parameter obj7 : βˆ€ {f1 f2 f3 f4 f5 f6 f7 : Set},
      field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’ field f6 β†’
      field f7 β†’ encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7).

    Parameter obj8 : βˆ€ {f1 f2 f3 f4 f5 f6 f7 f8 : Set},
      field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’ field f6 β†’
      field f7 β†’ field f8 β†’ encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7 Γ— f8).

    Parameter obj9 : βˆ€ {f1 f2 f3 f4 f5 f6 f7 f8 f9 : Set},
      field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’ field f6 β†’
      field f7 β†’ field f8 β†’ field f9 β†’
      encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7 Γ— f8 Γ— f9).

    Parameter obj10 : βˆ€ {f1 f10 f2 f3 f4 f5 f6 f7 f8 f9 : Set},
      field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’ field f6 β†’
      field f7 β†’ field f8 β†’ field f9 β†’ field f10 β†’
      encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7 Γ— f8 Γ— f9 Γ— f10).

    Parameter merge_objs : βˆ€ {o1 o2 : Set},
      encoding o1 β†’ encoding o2 β†’ encoding (o1 Γ— o2).
  End With_field_name_duplicate_checks.

  Parameter tup1 : βˆ€ {f1 : Set}, encoding f1 β†’ encoding f1.

  Parameter tup2 : βˆ€ {f1 f2 : Set},
    encoding f1 β†’ encoding f2 β†’ encoding (f1 Γ— f2).

  Parameter tup3 : βˆ€ {f1 f2 f3 : Set},
    encoding f1 β†’ encoding f2 β†’ encoding f3 β†’ encoding (f1 Γ— f2 Γ— f3).

  Parameter tup4 : βˆ€ {f1 f2 f3 f4 : Set},
    encoding f1 β†’ encoding f2 β†’ encoding f3 β†’ encoding f4 β†’
    encoding (f1 Γ— f2 Γ— f3 Γ— f4).

  Parameter tup5 : βˆ€ {f1 f2 f3 f4 f5 : Set},
    encoding f1 β†’ encoding f2 β†’ encoding f3 β†’ encoding f4 β†’ encoding f5 β†’
    encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5).

  Parameter tup6 : βˆ€ {f1 f2 f3 f4 f5 f6 : Set},
    encoding f1 β†’ encoding f2 β†’ encoding f3 β†’ encoding f4 β†’ encoding f5 β†’
    encoding f6 β†’ encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6).

  Parameter tup7 : βˆ€ {f1 f2 f3 f4 f5 f6 f7 : Set},
    encoding f1 β†’ encoding f2 β†’ encoding f3 β†’ encoding f4 β†’ encoding f5 β†’
    encoding f6 β†’ encoding f7 β†’ encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7).

  Parameter tup8 : βˆ€ {f1 f2 f3 f4 f5 f6 f7 f8 : Set},
    encoding f1 β†’ encoding f2 β†’ encoding f3 β†’ encoding f4 β†’ encoding f5 β†’
    encoding f6 β†’ encoding f7 β†’ encoding f8 β†’
    encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7 Γ— f8).

  Parameter tup9 : βˆ€ {f1 f2 f3 f4 f5 f6 f7 f8 f9 : Set},
    encoding f1 β†’ encoding f2 β†’ encoding f3 β†’ encoding f4 β†’ encoding f5 β†’
    encoding f6 β†’ encoding f7 β†’ encoding f8 β†’ encoding f9 β†’
    encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7 Γ— f8 Γ— f9).

  Parameter tup10 : βˆ€ {f1 f10 f2 f3 f4 f5 f6 f7 f8 f9 : Set},
    encoding f1 β†’ encoding f2 β†’ encoding f3 β†’ encoding f4 β†’ encoding f5 β†’
    encoding f6 β†’ encoding f7 β†’ encoding f8 β†’ encoding f9 β†’ encoding f10 β†’
    encoding (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7 Γ— f8 Γ— f9 Γ— f10).

  Parameter merge_tups : βˆ€ {a1 a2 : Set},
    encoding a1 β†’ encoding a2 β†’ encoding (a1 Γ— a2).

  Parameter case : βˆ€ (t : Set), Set.

  Inductive case_tag : Set :=
  | Tag : int β†’ case_tag
  | Json_only : case_tag.

  Parameter match_result : Set.

  Definition matching_function (a : Set) : Set := a β†’ match_result.

  Parameter matched : βˆ€ {a : Set},
    option Variant.t β†’ int β†’ encoding a β†’ a β†’ match_result.

  Parameter case_value : βˆ€ {a t : Set},
    string β†’ option string β†’ case_tag β†’ encoding a β†’ (t β†’ option a) β†’
    (a β†’ t) β†’ case t.

  Parameter matching : βˆ€ {t : Set},
    option Variant.t β†’ matching_function t β†’ list (case t) β†’ encoding t.

  Parameter union : βˆ€ {t : Set},
    option Variant.t β†’ list (case t) β†’ encoding t.

  Module With_JSON_discriminant.
    Inductive case_tag : Set :=
    | Tag : int Γ— string β†’ case_tag.

    Parameter case : βˆ€ (t : Set), Set.

    Parameter case_value : βˆ€ {a t : Set},
      string β†’ option string β†’ case_tag β†’ encoding a β†’ (t β†’ option a) β†’
      (a β†’ t) β†’ case t.

    Parameter matched : βˆ€ {a : Set},
      option Variant.t β†’ int Γ— string β†’ encoding a β†’ a β†’ match_result.

    Parameter matching : βˆ€ {t : Set},
      option Variant.t β†’ matching_function t β†’ list (case t) β†’ encoding t.

    Parameter union : βˆ€ {t : Set},
      option Variant.t β†’ list (case t) β†’ encoding t.
  End With_JSON_discriminant.

  Parameter string_enum : βˆ€ {a : Set}, list (string Γ— a) β†’ encoding a.

  Module Fixed.
    Parameter string_value : int β†’ encoding string.

    Parameter string' : string_json_repr β†’ int β†’ encoding string.

    Parameter bytes_value : int β†’ encoding Bytes.t.

    Parameter bytes' : string_json_repr β†’ int β†’ encoding Bytes.t.

    Parameter add_padding : βˆ€ {a : Set}, encoding a β†’ int β†’ encoding a.

    Parameter list_value : βˆ€ {a : Set},
      int β†’ encoding a β†’ encoding (list a).

    Parameter array_value : βˆ€ {a : Set},
      int β†’ encoding a β†’ encoding (array a).
  End Fixed.

  Module _Variable.
    Parameter string_value : encoding string.

    Parameter string' : string_json_repr β†’ encoding string.

    Parameter bytes_value : encoding Bytes.t.

    Parameter bytes' : string_json_repr β†’ encoding Bytes.t.

    Parameter array_value : βˆ€ {a : Set},
      option int β†’ encoding a β†’ encoding (array a).

    Parameter list_value : βˆ€ {a : Set},
      option int β†’ encoding a β†’ encoding (list a).
  End _Variable.

  Module Bounded.
    Parameter string' :
      option Variant.t β†’ string_json_repr β†’ int β†’ encoding string.

    Parameter string_value : int β†’ encoding string.

    Parameter bytes' :
      option Variant.t β†’ string_json_repr β†’ int β†’ encoding Bytes.t.

    Parameter bytes_value : int β†’ encoding Bytes.t.
  End Bounded.

  Parameter dynamic_size : βˆ€ {a : Set},
    option Variant.t β†’ encoding a β†’ encoding a.

  Parameter check_size : βˆ€ {a : Set}, int β†’ encoding a β†’ encoding a.

  Parameter splitted : βˆ€ {a : Set}, encoding a β†’ encoding a β†’ encoding a.

  Parameter mu : βˆ€ {a : Set},
    string β†’ option string β†’ option string β†’ (encoding a β†’ encoding a) β†’
    encoding a.

  Parameter def : βˆ€ {t : Set},
    string β†’ option string β†’ option string β†’ encoding t β†’ encoding t.

  Parameter lazy_t : βˆ€ (a : Set), Set.

  Parameter lazy_encoding : βˆ€ {a : Set}, encoding a β†’ encoding (lazy_t a).

  Parameter force_decode : βˆ€ {a : Set}, lazy_t a β†’ option a.

  Parameter force_bytes : βˆ€ {a : Set}, lazy_t a β†’ bytes.

  Parameter make_lazy : βˆ€ {a : Set}, encoding a β†’ a β†’ lazy_t a.

  Parameter apply_lazy : βˆ€ {a b : Set},
    (a β†’ b) β†’ (bytes β†’ b) β†’ (b β†’ b β†’ b) β†’ lazy_t a β†’ b.

  Module Compact.
    Parameter t : βˆ€ (a : Set), Set.

    Parameter make : βˆ€ {a : Set}, option Variant.t β†’ t a β†’ encoding a.

    Parameter tag_bit_count : βˆ€ {a : Set}, t a β†’ int.

    Parameter void : Set.

    Parameter void_value : t void.

    Parameter refute : βˆ€ {a : Set}, void β†’ a.

    Parameter unit_value : t unit.

    Parameter null : t unit.

    Parameter bool_value : t bool.

    Parameter payload : βˆ€ {a : Set}, encoding a β†’ t a.

    Parameter option_value : βˆ€ {a : Set}, t a β†’ t (option a).

    Parameter conv : βˆ€ {a b : Set},
      option (encoding a) β†’ (a β†’ b) β†’ (b β†’ a) β†’ t b β†’ t a.

    Parameter tup1 : βˆ€ {a : Set}, t a β†’ t a.

    Parameter tup2 : βˆ€ {a b : Set}, t a β†’ t b β†’ t (a Γ— b).

    Parameter tup3 : βˆ€ {a b c : Set}, t a β†’ t b β†’ t c β†’ t (a Γ— b Γ— c).

    Parameter tup4 : βˆ€ {a b c d : Set},
      t a β†’ t b β†’ t c β†’ t d β†’ t (a Γ— b Γ— c Γ— d).

    Parameter tup5 : βˆ€ {f1 f2 f3 f4 f5 : Set},
      t f1 β†’ t f2 β†’ t f3 β†’ t f4 β†’ t f5 β†’ t (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5).

    Parameter tup6 : βˆ€ {f1 f2 f3 f4 f5 f6 : Set},
      t f1 β†’ t f2 β†’ t f3 β†’ t f4 β†’ t f5 β†’ t f6 β†’
      t (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6).

    Parameter tup7 : βˆ€ {f1 f2 f3 f4 f5 f6 f7 : Set},
      t f1 β†’ t f2 β†’ t f3 β†’ t f4 β†’ t f5 β†’ t f6 β†’ t f7 β†’
      t (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7).

    Parameter tup8 : βˆ€ {f1 f2 f3 f4 f5 f6 f7 f8 : Set},
      t f1 β†’ t f2 β†’ t f3 β†’ t f4 β†’ t f5 β†’ t f6 β†’ t f7 β†’ t f8 β†’
      t (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7 Γ— f8).

    Parameter tup9 : βˆ€ {f1 f2 f3 f4 f5 f6 f7 f8 f9 : Set},
      t f1 β†’ t f2 β†’ t f3 β†’ t f4 β†’ t f5 β†’ t f6 β†’ t f7 β†’ t f8 β†’ t f9 β†’
      t (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7 Γ— f8 Γ— f9).

    Parameter tup10 : βˆ€ {f1 f10 f2 f3 f4 f5 f6 f7 f8 f9 : Set},
      t f1 β†’ t f2 β†’ t f3 β†’ t f4 β†’ t f5 β†’ t f6 β†’ t f7 β†’ t f8 β†’ t f9 β†’
      t f10 β†’ t (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7 Γ— f8 Γ— f9 Γ— f10).

    Parameter field : βˆ€ (a : Set), Set.

    Parameter req : βˆ€ {a : Set}, string β†’ t a β†’ field a.

    Parameter opt : βˆ€ {a : Set}, string β†’ t a β†’ field (option a).

    Parameter obj1 : βˆ€ {a : Set}, field a β†’ t a.

    Parameter obj2 : βˆ€ {a b : Set}, field a β†’ field b β†’ t (a Γ— b).

    Parameter obj3 : βˆ€ {a b c : Set},
      field a β†’ field b β†’ field c β†’ t (a Γ— b Γ— c).

    Parameter obj4 : βˆ€ {a b c d : Set},
      field a β†’ field b β†’ field c β†’ field d β†’ t (a Γ— b Γ— c Γ— d).

    Parameter obj5 : βˆ€ {f1 f2 f3 f4 f5 : Set},
      field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’
      t (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5).

    Parameter obj6 : βˆ€ {f1 f2 f3 f4 f5 f6 : Set},
      field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’ field f6 β†’
      t (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6).

    Parameter obj7 : βˆ€ {f1 f2 f3 f4 f5 f6 f7 : Set},
      field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’ field f6 β†’
      field f7 β†’ t (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7).

    Parameter obj8 : βˆ€ {f1 f2 f3 f4 f5 f6 f7 f8 : Set},
      field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’ field f6 β†’
      field f7 β†’ field f8 β†’ t (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7 Γ— f8).

    Parameter obj9 : βˆ€ {f1 f2 f3 f4 f5 f6 f7 f8 f9 : Set},
      field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’ field f6 β†’
      field f7 β†’ field f8 β†’ field f9 β†’
      t (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7 Γ— f8 Γ— f9).

    Parameter obj10 : βˆ€ {f1 f10 f2 f3 f4 f5 f6 f7 f8 f9 : Set},
      field f1 β†’ field f2 β†’ field f3 β†’ field f4 β†’ field f5 β†’ field f6 β†’
      field f7 β†’ field f8 β†’ field f9 β†’ field f10 β†’
      t (f1 Γ— f2 Γ— f3 Γ— f4 Γ— f5 Γ— f6 Γ— f7 Γ— f8 Γ— f9 Γ— f10).

    Parameter int32_value : t int32.

    Parameter int64_value : t int64.

    Parameter list_value : βˆ€ {a : Set}, int β†’ encoding a β†’ t (list a).

    Parameter case : βˆ€ (a : Set), Set.

    Parameter case_value : βˆ€ {a b : Set},
      string β†’ option string β†’ t b β†’ (a β†’ option b) β†’ (b β†’ a) β†’ case a.

    Parameter union : βˆ€ {a : Set},
      option int β†’ option int β†’ list (case a) β†’ t a.

    Parameter void_case : βˆ€ {a : Set}, string β†’ case a.

    Parameter or_int32 : βˆ€ {a : Set},
      string β†’ string β†’ option string β†’ encoding a β†’ t (Either.t int32 a).

    Module Custom.
      Definition tag : Set := int.

      Parameter join_tags : list (tag Γ— int) β†’ tag.

      Module S.
        Record signature {input layout : Set} : Set := {
          
The type of [input] this module allows to encode.
          input := input;
          
The various ways to efficiently encode [input].
          layout := layout;
          
The list of layouts available to encode [input].
          layouts : list layout;
          
The number of bits necessary to distinguish between the various layouts.
          tag_len : int;
          
[tag layout] computes the tag of {!Data_encoding.union} to be used to encode values classified as [layout].
{b Warning:} It is expected that [tag layout < 2^tag_len - 1].
          tag : layout β†’ tag;
          
[partial_encoding layout] returns the encoding to use for values classified as [layout].
This encoding can be partial in the sense that it may fail (it will raise an [Invalid_argument]) for some values of [x]. However, it is expected that [partial_encoding (classify x) x] will always succeed.
          partial_encoding : layout β†’ encoding input;
          
[classify x] returns the layout to be used to encode [x].
          classify : input β†’ layout;
          
The encoding to use when targeting a JSON output.
          json_encoding : encoding input;
        }.
      End S.
      Definition S := @S.signature.
      Arguments S {_ _}.

      Parameter make : βˆ€ {a : Set},
        {layout : Set @ S (input := a) (layout := layout)} β†’ t a.
    End Custom.
  End Compact.

  Definition compact (a : Set) : Set := Compact.t a.

  Parameter json_value : encoding json.

  Parameter json_schema_value : encoding json_schema.

  Module Json.
    Parameter schema : βˆ€ {a : Set},
      option string β†’ encoding a β†’ json_schema.

    Parameter construct : βˆ€ {t : Set},
      option Variant.t β†’ encoding t β†’ t β†’ json.

    Parameter destruct : βˆ€ {t : Set},
      option bool β†’ encoding t β†’ json β†’ t.

    Reserved Notation "'path".

    Inductive path_item : Set :=
    | Index : int β†’ path_item
    | Field : string β†’ path_item
    | Next : path_item
    | Star : path_item
    
    where "'path" := (list path_item).

    Definition path := 'path.

    Parameter print_error :
      option (Format.formatter β†’ extensible_type β†’ unit) β†’
      Format.formatter β†’ extensible_type β†’ unit.

    Parameter cannot_destruct : βˆ€ {a b : Set},
      Pervasives.format4 a Format.formatter unit b β†’ a.

    Parameter wrap_error : βˆ€ {a b : Set}, (a β†’ b) β†’ a β†’ b.

    Parameter pp : Format.formatter β†’ json β†’ unit.
  End Json.

  Module Binary.
    Parameter length : βˆ€ {a : Set}, encoding a β†’ a β†’ int.

    Parameter fixed_length : βˆ€ {a : Set}, encoding a β†’ option int.

    Parameter maximum_length : βˆ€ {a : Set}, encoding a β†’ option int.

    Parameter of_bytes_opt : βˆ€ {a : Set}, encoding a β†’ bytes β†’ option a.

    Parameter of_string_opt : βˆ€ {a : Set},
      encoding a β†’ string β†’ option a.

    Parameter to_bytes_opt : βˆ€ {a : Set},
      option int β†’ encoding a β†’ a β†’ option bytes.

    Parameter to_bytes_exn : βˆ€ {a : Set},
      option int β†’ encoding a β†’ a β†’ bytes.

    Parameter to_string_opt : βˆ€ {a : Set},
      option int β†’ encoding a β†’ a β†’ option string.

    Parameter to_string_exn : βˆ€ {a : Set},
      option int β†’ encoding a β†’ a β†’ string.
  End Binary.
End Data_encoding_signature.
Require Export TezosOfOCaml.Environment.V8.Data_encoding.
Module Data_encoding_check : Data_encoding_signature := Data_encoding.

Module Type Raw_hashes_signature.
  Parameter blake2b : bytes β†’ bytes.

  Parameter sha256 : bytes β†’ bytes.

  Parameter sha512 : bytes β†’ bytes.

  Parameter keccak256 : bytes β†’ bytes.

  Parameter sha3_256 : bytes β†’ bytes.

  Parameter sha3_512 : bytes β†’ bytes.
End Raw_hashes_signature.
Require Export TezosOfOCaml.Environment.V8.Raw_hashes.
Module Raw_hashes_check : Raw_hashes_signature := Raw_hashes.

Module Type Compare_signature.
  Module COMPARABLE.
    Record signature {t : Set} : Set := {
      t := t;
      compare : t β†’ t β†’ int;
    }.
  End COMPARABLE.
  Definition COMPARABLE := @COMPARABLE.signature.
  Arguments COMPARABLE {_}.

  Module S.
    Record signature {t : Set} : Set := {
      t := t;
      
[x = y] iff [compare x y = 0]
      op_eq : t β†’ t β†’ bool;
      
[x <> y] iff [compare x y <> 0]
      op_ltgt : t β†’ t β†’ bool;
      
[x < y] iff [compare x y < 0]
      op_lt : t β†’ t β†’ bool;
      
[x <= y] iff [compare x y <= 0]
      op_lteq : t β†’ t β†’ bool;
      
[x >= y] iff [compare x y >= 0]
      op_gteq : t β†’ t β†’ bool;
      
[x > y] iff [compare x y > 0]
      op_gt : t β†’ t β†’ bool;
      
[compare] an alias for the functor parameter's [compare] function
      compare : t β†’ t β†’ int;
      
[equal x y] iff [compare x y = 0]
      equal : t β†’ t β†’ bool;
      
[max x y] is [x] if [x >= y] otherwise it is [y]
      max : t β†’ t β†’ t;
      
[min x y] is [x] if [x <= y] otherwise it is [y]
      min : t β†’ t β†’ t;
    }.
  End S.
  Definition S := @S.signature.
  Arguments S {_}.

  Parameter Make :
    βˆ€ {P_t : Set},
    βˆ€ (P : COMPARABLE (t := P_t)), S (t := P.(COMPARABLE.t)).

  Parameter Char : S (t := ascii).

  Parameter Bool : S (t := bool).

  Module Int.
    Definition t : Set := int.

    Parameter op_eq : int β†’ int β†’ bool.

    Parameter op_ltgt : int β†’ int β†’ bool.

    Parameter op_lt : int β†’ int β†’ bool.

    Parameter op_gt : int β†’ int β†’ bool.

    Parameter op_lteq : int β†’ int β†’ bool.

    Parameter op_gteq : int β†’ int β†’ bool.

    Parameter compare : int β†’ int β†’ int.

    Parameter max : int β†’ int β†’ int.

    Parameter min : int β†’ int β†’ int.

    Parameter equal : int β†’ int β†’ bool.
  End Int.

  Parameter Int32 : S (t := int32).

  Parameter Uint32 : S (t := int32).

  Parameter Int64 : S (t := int64).

  Parameter Uint64 : S (t := int64).

  Parameter String : S (t := string).

  Parameter Bytes : S (t := bytes).

  Parameter Z : S (t := Z.t).

  Parameter Q : S (t := Q.t).

  Parameter List :
    βˆ€ {P_t : Set},
    βˆ€ (P : COMPARABLE (t := P_t)), S (t := list P.(COMPARABLE.t)).

  Parameter Option :
    βˆ€ {P_t : Set},
    βˆ€ (P : COMPARABLE (t := P_t)), S (t := option P.(COMPARABLE.t)).

  Parameter Result :
    βˆ€ {Ok_t Error_t : Set},
    βˆ€ (Ok : COMPARABLE (t := Ok_t)),
    βˆ€ (Error : COMPARABLE (t := Error_t)),
    S (t := Pervasives.result Ok.(COMPARABLE.t) Error.(COMPARABLE.t)).

  Module List_length_with.
    Parameter op_eq : βˆ€ {a : Set}, list a β†’ int β†’ bool.

    Parameter op_ltgt : βˆ€ {a : Set}, list a β†’ int β†’ bool.

    Parameter op_lt : βˆ€ {a : Set}, list a β†’ int β†’ bool.

    Parameter op_lteq : βˆ€ {a : Set}, list a β†’ int β†’ bool.

    Parameter op_gteq : βˆ€ {a : Set}, list a β†’ int β†’ bool.

    Parameter op_gt : βˆ€ {a : Set}, list a β†’ int β†’ bool.

    Parameter compare : βˆ€ {a : Set}, list a β†’ int β†’ int.

    Parameter equal : βˆ€ {a : Set}, list a β†’ int β†’ bool.
  End List_length_with.

  Module List_lengths.
    Parameter op_eq : βˆ€ {a b : Set}, list a β†’ list b β†’ bool.

    Parameter op_ltgt : βˆ€ {a b : Set}, list a β†’ list b β†’ bool.

    Parameter op_lt : βˆ€ {a b : Set}, list a β†’ list b β†’ bool.

    Parameter op_lteq : βˆ€ {a b : Set}, list a β†’ list b β†’ bool.

    Parameter op_gteq : βˆ€ {a b : Set}, list a β†’ list b β†’ bool.

    Parameter op_gt : βˆ€ {a b : Set}, list a β†’ list b β†’ bool.

    Parameter compare : βˆ€ {a b : Set}, list a β†’ list b β†’ int.

    Parameter equal : βˆ€ {a b : Set}, list a β†’ list b β†’ bool.
  End List_lengths.

  Parameter or_else : int β†’ (unit β†’ int) β†’ int.
End Compare_signature.
Require Export TezosOfOCaml.Environment.V8.Compare.
Module Compare_check : Compare_signature := Compare.

Module Type Time_signature.
  Parameter t : Set.

  Parameter Included_S : Compare.S (t := t).

  Definition op_eq : t β†’ t β†’ bool := Included_S.(Compare.S.op_eq).

  Definition op_ltgt : t β†’ t β†’ bool := Included_S.(Compare.S.op_ltgt).

  Definition op_lt : t β†’ t β†’ bool := Included_S.(Compare.S.op_lt).

  Definition op_lteq : t β†’ t β†’ bool := Included_S.(Compare.S.op_lteq).

  Definition op_gteq : t β†’ t β†’ bool := Included_S.(Compare.S.op_gteq).

  Definition op_gt : t β†’ t β†’ bool := Included_S.(Compare.S.op_gt).

  Definition compare : t β†’ t β†’ int := Included_S.(Compare.S.compare).

  Definition equal : t β†’ t β†’ bool := Included_S.(Compare.S.equal).

  Definition max : t β†’ t β†’ t := Included_S.(Compare.S.max).

  Definition min : t β†’ t β†’ t := Included_S.(Compare.S.min).

  Parameter add : t β†’ int64 β†’ t.

  Parameter diff_value : t β†’ t β†’ int64.

  Parameter of_seconds : int64 β†’ t.

  Parameter to_seconds : t β†’ int64.

  Parameter of_notation : string β†’ option t.

  Parameter of_notation_exn : string β†’ t.

  Parameter to_notation : t β†’ string.

  Parameter encoding : Data_encoding.t t.

  Parameter rfc_encoding : Data_encoding.t t.

  Parameter pp_hum : Format.formatter β†’ t β†’ unit.
End Time_signature.
Require Export TezosOfOCaml.Environment.V8.Time.
Module Time_check : Time_signature := Time.

Module Type TzEndian_signature.
  Parameter get_int32 : bytes β†’ int β†’ int32.

  Parameter get_int32_string : string β†’ int β†’ int32.

  Parameter set_int32 : bytes β†’ int β†’ int32 β†’ unit.

  Parameter set_int8 : bytes β†’ int β†’ int β†’ unit.

  Parameter get_int8 : bytes β†’ int β†’ int.

  Parameter get_int8_string : string β†’ int β†’ int.

  Parameter set_int16 : bytes β†’ int β†’ int β†’ unit.

  Parameter get_int16 : bytes β†’ int β†’ int.

  Parameter get_int16_string : string β†’ int β†’ int.

  Parameter set_int64 : bytes β†’ int β†’ int64 β†’ unit.

  Parameter get_int64 : bytes β†’ int β†’ int64.

  Parameter get_int64_string : string β†’ int β†’ int64.

  Parameter get_uint8 : bytes β†’ int β†’ int.

  Parameter get_uint8_string : string β†’ int β†’ int.

  Parameter set_uint8 : bytes β†’ int β†’ int β†’ unit.

  Parameter get_uint16 : bytes β†’ int β†’ int.

  Parameter get_uint16_string : string β†’ int β†’ int.

  Parameter set_uint16 : bytes β†’ int β†’ int β†’ unit.
End TzEndian_signature.
Require Export TezosOfOCaml.Environment.V8.TzEndian.
Module TzEndian_check : TzEndian_signature := TzEndian.

Module Type Bits_signature.
  Parameter numbits : int β†’ int.
End Bits_signature.
Require Export TezosOfOCaml.Environment.V8.Bits.
Module Bits_check : Bits_signature := Bits.

Module Type Equality_witness_signature.
  Inductive eq : Set :=
  | Refl : eq.

  Parameter t : βˆ€ (a : Set), Set.

  Parameter make : βˆ€ {a : Set}, unit β†’ t a.

  Parameter eq_value : βˆ€ {a b : Set}, t a β†’ t b β†’ option eq.

  Parameter hash_value : βˆ€ {a : Set}, t a β†’ int.
End Equality_witness_signature.
Require Export TezosOfOCaml.Environment.V8.Equality_witness.
Module Equality_witness_check : Equality_witness_signature := Equality_witness.

Module Type FallbackArray_signature.
  Parameter t : βˆ€ (a : Set), Set.

  Parameter make : βˆ€ {a : Set}, int β†’ a β†’ t a.

  Parameter of_list : βˆ€ {a b : Set}, b β†’ (a β†’ b) β†’ list a β†’ t b.

  Parameter fallback : βˆ€ {a : Set}, t a β†’ a.

  Parameter length : βˆ€ {a : Set}, t a β†’ int.

  Parameter get : βˆ€ {a : Set}, t a β†’ int β†’ a.

  Parameter set : βˆ€ {a : Set}, t a β†’ int β†’ a β†’ unit.

  Parameter iter : βˆ€ {a : Set}, (a β†’ unit) β†’ t a β†’ unit.

  Parameter map : βˆ€ {a b : Set}, (a β†’ b) β†’ t a β†’ t b.

  Parameter fold : βˆ€ {a b : Set}, (b β†’ a β†’ b) β†’ t a β†’ b β†’ b.

  Parameter fold_map : βˆ€ {a b c : Set},
    (b β†’ a β†’ b Γ— c) β†’ t a β†’ b β†’ c β†’ b Γ— t c.
End FallbackArray_signature.
Require Export TezosOfOCaml.Environment.V8.FallbackArray.
Module FallbackArray_check : FallbackArray_signature := FallbackArray.

Module Type Error_monad_signature.
  Inductive error_category : Set :=
  | Outdated : error_category
  | Permanent : error_category
  | Temporary : error_category
  | Branch : error_category.

  Definition _error := extensible_type.

  Parameter error_encoding : Data_encoding.t _error.

  Parameter pp : Format.formatter β†’ _error β†’ unit.

  Parameter register_error_kind : βˆ€ {err : Set},
    error_category β†’ string β†’ string β†’ string β†’
    option (Format.formatter β†’ err β†’ unit) β†’ Data_encoding.t err β†’
    (_error β†’ option err) β†’ (err β†’ _error) β†’ unit.

  Parameter json_of_error : _error β†’ Data_encoding.json.

  Parameter error_of_json : Data_encoding.json β†’ _error.

  Module error_info.
    Record record : Set := Build {
      category : error_category;
      id : string;
      title : string;
      description : string;
      schema : Data_encoding.json_schema;
    }.
    Definition with_category category (r : record) :=
      Build category r.(id) r.(title) r.(description) r.(schema).
    Definition with_id id (r : record) :=
      Build r.(category) id r.(title) r.(description) r.(schema).
    Definition with_title title (r : record) :=
      Build r.(category) r.(id) title r.(description) r.(schema).
    Definition with_description description (r : record) :=
      Build r.(category) r.(id) r.(title) description r.(schema).
    Definition with_schema schema (r : record) :=
      Build r.(category) r.(id) r.(title) r.(description) schema.
  End error_info.
  Definition error_info := error_info.record.

  Parameter pp_info : Format.formatter β†’ error_info β†’ unit.

  Parameter get_registered_errors : unit β†’ list error_info.

  Parameter trace : βˆ€ (err : Set), Set.

  Definition tzresult (a : Set) : Set := Pervasives.result a (trace _error).

  Parameter make_trace_encoding : βˆ€ {_error : Set},
    Data_encoding.t _error β†’ Data_encoding.t (trace _error).

  Parameter trace_encoding : Data_encoding.t (trace _error).

  Parameter pp_trace : Format.formatter β†’ trace _error β†’ unit.

  Parameter result_encoding : βˆ€ {a : Set},
    Data_encoding.t a β†’ Data_encoding.t (tzresult a).

  Parameter ok : βˆ€ {a trace : Set}, a β†’ Pervasives.result a trace.

  Parameter _return : βˆ€ {a trace : Set}, a β†’ Pervasives.result a trace.

  Parameter return_unit : βˆ€ {trace : Set}, Pervasives.result unit trace.

  Parameter return_none : βˆ€ {a trace : Set},
    Pervasives.result (option a) trace.

  Parameter return_some : βˆ€ {a trace : Set},
    a β†’ Pervasives.result (option a) trace.

  Parameter return_nil : βˆ€ {a trace : Set},
    Pervasives.result (list a) trace.

  Parameter return_true : βˆ€ {trace : Set}, Pervasives.result bool trace.

  Parameter return_false : βˆ€ {trace : Set}, Pervasives.result bool trace.

  Parameter error_value : βˆ€ {a err : Set},
    err β†’ Pervasives.result a (trace err).

  Parameter trace_of_error : βˆ€ {err : Set}, err β†’ trace err.

  Parameter tzfail : βˆ€ {a err : Set},
    err β†’ Pervasives.result a (trace err).

  Parameter op_gtgteq : βˆ€ {a b : Set}, a β†’ (a β†’ b) β†’ b.

  Parameter op_gtpipeeq : βˆ€ {a b : Set}, a β†’ (a β†’ b) β†’ b.

  Parameter op_gtgtquestion : βˆ€ {a b trace : Set},
    Pervasives.result a trace β†’ (a β†’ Pervasives.result b trace) β†’
    Pervasives.result b trace.

  Parameter op_gtpipequestion : βˆ€ {a b trace : Set},
    Pervasives.result a trace β†’ (a β†’ b) β†’ Pervasives.result b trace.

  Parameter op_gtgteqquestion : βˆ€ {a b trace : Set},
    Pervasives.result a trace β†’ (a β†’ Pervasives.result b trace) β†’
    Pervasives.result b trace.

  Parameter op_gtpipeeqquestion : βˆ€ {a b trace : Set},
    Pervasives.result a trace β†’ (a β†’ b) β†’ Pervasives.result b trace.

  Parameter op_gtgtquestioneq : βˆ€ {a b trace : Set},
    Pervasives.result a trace β†’ (a β†’ Pervasives.result b trace) β†’
    Pervasives.result b trace.

  Parameter op_gtpipequestioneq : βˆ€ {a b trace : Set},
    Pervasives.result a trace β†’ (a β†’ b) β†’ Pervasives.result b trace.

  Parameter record_trace : βˆ€ {a err : Set},
    err β†’ Pervasives.result a (trace err) β†’ Pervasives.result a (trace err).

  Parameter trace_value : βˆ€ {b err : Set},
    err β†’ Pervasives.result b (trace err) β†’ Pervasives.result b (trace err).

  Parameter record_trace_eval : βˆ€ {a err : Set},
    (unit β†’ err) β†’ Pervasives.result a (trace err) β†’
    Pervasives.result a (trace err).

  Parameter trace_eval : βˆ€ {b err : Set},
    (unit β†’ err) β†’ Pervasives.result b (trace err) β†’
    Pervasives.result b (trace err).

  Parameter error_unless : βˆ€ {err : Set},
    bool β†’ err β†’ Pervasives.result unit (trace err).

  Parameter error_when : βˆ€ {err : Set},
    bool β†’ err β†’ Pervasives.result unit (trace err).

  Parameter fail_unless : βˆ€ {err : Set},
    bool β†’ err β†’ Pervasives.result unit (trace err).

  Parameter fail_when : βˆ€ {err : Set},
    bool β†’ err β†’ Pervasives.result unit (trace err).

  Parameter unless : βˆ€ {trace : Set},
    bool β†’ (unit β†’ Pervasives.result unit trace) β†’
    Pervasives.result unit trace.

  Parameter when_ : βˆ€ {trace : Set},
    bool β†’ (unit β†’ Pervasives.result unit trace) β†’
    Pervasives.result unit trace.

  Parameter dont_wait : βˆ€ {trace : Set},
    (extensible_type β†’ unit) β†’ (trace β†’ unit) β†’
    (unit β†’ Pervasives.result unit trace) β†’ unit.

  Parameter catch : βˆ€ {a : Set},
    option (extensible_type β†’ bool) β†’ (unit β†’ a) β†’ tzresult a.

  Parameter catch_f : βˆ€ {a : Set},
    option (extensible_type β†’ bool) β†’ (unit β†’ a) β†’
    (extensible_type β†’ _error) β†’ tzresult a.

  Parameter catch_s : βˆ€ {a : Set},
    option (extensible_type β†’ bool) β†’ (unit β†’ a) β†’ tzresult a.

  Parameter join_e : βˆ€ {err : Set},
    list (Pervasives.result unit (trace err)) β†’
    Pervasives.result unit (trace err).

  Parameter all_e : βˆ€ {a err : Set},
    list (Pervasives.result a (trace err)) β†’
    Pervasives.result (list a) (trace err).

  Parameter both_e : βˆ€ {a b err : Set},
    Pervasives.result a (trace err) β†’ Pervasives.result b (trace err) β†’
    Pervasives.result (a Γ— b) (trace err).

  Parameter shell_tztrace : Set.

  Definition shell_tzresult (a : Set) : Set :=
    Pervasives.result a shell_tztrace.

  Module Lwt_syntax.
    Parameter _return : βˆ€ {a : Set}, a β†’ a.

    Parameter return_none : βˆ€ {A : Set}, option A.

    Parameter return_nil : βˆ€ {A : Set}, list A.

    Parameter return_true : bool.

    Parameter return_false : bool.

    Parameter return_some : βˆ€ {a : Set}, a β†’ option a.

    Parameter return_ok : βˆ€ {B a : Set}, a β†’ Pervasives.result a B.

    Parameter return_error : βˆ€ {B e : Set}, e β†’ Pervasives.result B e.

    Parameter return_ok_unit : βˆ€ {e : Set}, Pervasives.result unit e.

    Parameter return_ok_true : βˆ€ {e : Set}, Pervasives.result bool e.

    Parameter return_ok_false : βˆ€ {e : Set}, Pervasives.result bool e.

    Parameter return_ok_none : βˆ€ {a e : Set},
      Pervasives.result (option a) e.

    Parameter return_ok_nil : βˆ€ {a e : Set}, Pervasives.result (list a) e.

    Parameter op_letstar : βˆ€ {a b : Set}, a β†’ (a β†’ b) β†’ b.

    Parameter op_andstar : βˆ€ {a b : Set}, a β†’ b β†’ a Γ— b.

    Parameter op_letplus : βˆ€ {a b : Set}, a β†’ (a β†’ b) β†’ b.

    Parameter op_andplus : βˆ€ {a b : Set}, a β†’ b β†’ a Γ— b.

    Parameter join : list unit β†’ unit.

    Parameter all : βˆ€ {a : Set}, list a β†’ list a.

    Parameter both : βˆ€ {a b : Set}, a β†’ b β†’ a Γ— b.
  End Lwt_syntax.

  Module Option_syntax.
    Parameter _return : βˆ€ {a : Set}, a β†’ option a.

    Parameter fail : βˆ€ {a : Set}, option a.

    Parameter return_unit : option unit.

    Parameter return_nil : βˆ€ {a : Set}, option (list a).

    Parameter return_true : option bool.

    Parameter return_false : option bool.

    Parameter op_letstar : βˆ€ {a b : Set},
      option a β†’ (a β†’ option b) β†’ option b.

    Parameter op_andstar : βˆ€ {a b : Set},
      option a β†’ option b β†’ option (a Γ— b).

    Parameter op_letplus : βˆ€ {a b : Set}, option a β†’ (a β†’ b) β†’ option b.

    Parameter op_andplus : βˆ€ {a b : Set},
      option a β†’ option b β†’ option (a Γ— b).

    Parameter both : βˆ€ {a b : Set}, option a β†’ option b β†’ option (a Γ— b).
  End Option_syntax.

  Module Result_syntax.
    Parameter _return : βˆ€ {a e : Set}, a β†’ Pervasives.result a e.

    Parameter return_unit : βˆ€ {e : Set}, Pervasives.result unit e.

    Parameter return_none : βˆ€ {a e : Set}, Pervasives.result (option a) e.

    Parameter return_some : βˆ€ {a e : Set},
      a β†’ Pervasives.result (option a) e.

    Parameter return_nil : βˆ€ {a e : Set}, Pervasives.result (list a) e.

    Parameter return_true : βˆ€ {e : Set}, Pervasives.result bool e.

    Parameter return_false : βˆ€ {e : Set}, Pervasives.result bool e.

    Parameter fail : βˆ€ {a e : Set}, e β†’ Pervasives.result a e.

    Parameter op_letstar : βˆ€ {a b e : Set},
      Pervasives.result a e β†’ (a β†’ Pervasives.result b e) β†’
      Pervasives.result b e.

    Parameter op_letplus : βˆ€ {a b e : Set},
      Pervasives.result a e β†’ (a β†’ b) β†’ Pervasives.result b e.

    Parameter join : βˆ€ {e : Set},
      list (Pervasives.result unit e) β†’ Pervasives.result unit (list e).

    Parameter all : βˆ€ {a e : Set},
      list (Pervasives.result a e) β†’ Pervasives.result (list a) (list e).

    Parameter both : βˆ€ {a b e : Set},
      Pervasives.result a e β†’ Pervasives.result b e β†’
      Pervasives.result (a Γ— b) (list e).

    Parameter tzfail : βˆ€ {_error a : Set},
      _error β†’ Pervasives.result a (trace _error).

    Parameter op_andstar : βˆ€ {a b e : Set},
      Pervasives.result a (trace e) β†’ Pervasives.result b (trace e) β†’
      Pervasives.result (a Γ— b) (trace e).

    Parameter op_andplus : βˆ€ {a b e : Set},
      Pervasives.result a (trace e) β†’ Pervasives.result b (trace e) β†’
      Pervasives.result (a Γ— b) (trace e).

    Parameter tzjoin : βˆ€ {_error : Set},
      list (Pervasives.result unit (trace _error)) β†’
      Pervasives.result unit (trace _error).

    Parameter tzall : βˆ€ {_error a : Set},
      list (Pervasives.result a (trace _error)) β†’
      Pervasives.result (list a) (trace _error).

    Parameter tzboth : βˆ€ {_error a b : Set},
      Pervasives.result a (trace _error) β†’
      Pervasives.result b (trace _error) β†’
      Pervasives.result (a Γ— b) (trace _error).
  End Result_syntax.

  Module Lwt_result_syntax.
    Parameter _return : βˆ€ {a e : Set}, a β†’ Pervasives.result a e.

    Parameter return_unit : βˆ€ {e : Set}, Pervasives.result unit e.

    Parameter return_none : βˆ€ {a e : Set}, Pervasives.result (option a) e.

    Parameter return_some : βˆ€ {a e : Set},
      a β†’ Pervasives.result (option a) e.

    Parameter return_nil : βˆ€ {a e : Set}, Pervasives.result (list a) e.

    Parameter return_true : βˆ€ {e : Set}, Pervasives.result bool e.

    Parameter return_false : βˆ€ {e : Set}, Pervasives.result bool e.

    Parameter fail : βˆ€ {a e : Set}, e β†’ Pervasives.result a e.

    Parameter op_letstar : βˆ€ {a b e : Set},
      Pervasives.result a e β†’ (a β†’ Pervasives.result b e) β†’
      Pervasives.result b e.

    Parameter op_letplus : βˆ€ {a b e : Set},
      Pervasives.result a e β†’ (a β†’ b) β†’ Pervasives.result b e.

    Parameter lwt_map_error : βˆ€ {a e f : Set},
      (e β†’ f) β†’ Pervasives.result a e β†’ Pervasives.result a f.

    Parameter op_letstarexclamation : βˆ€ {a b : Set}, a β†’ (a β†’ b) β†’ b.

    Parameter op_letstarquestion : βˆ€ {a b e : Set},
      Pervasives.result a e β†’ (a β†’ Pervasives.result b e) β†’
      Pervasives.result b e.

    Parameter join : βˆ€ {e : Set},
      list (Pervasives.result unit e) β†’ Pervasives.result unit (list e).

    Parameter all : βˆ€ {a e : Set},
      list (Pervasives.result a e) β†’ Pervasives.result (list a) (list e).

    Parameter both : βˆ€ {a b e : Set},
      Pervasives.result a e β†’ Pervasives.result b e β†’
      Pervasives.result (a Γ— b) (list e).

    Parameter tzfail : βˆ€ {_error a : Set},
      _error β†’ Pervasives.result a (trace _error).

    Parameter op_andstar : βˆ€ {a b e : Set},
      Pervasives.result a (trace e) β†’ Pervasives.result b (trace e) β†’
      Pervasives.result (a Γ— b) (trace e).

    Parameter op_andplus : βˆ€ {a b e : Set},
      Pervasives.result a (trace e) β†’ Pervasives.result b (trace e) β†’
      Pervasives.result (a Γ— b) (trace e).

    Parameter tzjoin : βˆ€ {_error : Set},
      list (Pervasives.result unit (trace _error)) β†’
      Pervasives.result unit (trace _error).

    Parameter tzall : βˆ€ {_error a : Set},
      list (Pervasives.result a (trace _error)) β†’
      Pervasives.result (list a) (trace _error).

    Parameter tzboth : βˆ€ {_error a b : Set},
      Pervasives.result a (trace _error) β†’
      Pervasives.result b (trace _error) β†’
      Pervasives.result (a Γ— b) (trace _error).
  End Lwt_result_syntax.

  Module Lwt_option_syntax.
    Parameter _return : βˆ€ {a : Set}, a β†’ option a.

    Parameter return_unit : option unit.

    Parameter return_nil : βˆ€ {a : Set}, option (list a).

    Parameter return_true : option bool.

    Parameter return_false : option bool.

    Parameter fail : βˆ€ {a : Set}, option a.

    Parameter op_letstar : βˆ€ {a b : Set},
      option a β†’ (a β†’ option b) β†’ option b.

    Parameter op_andstar : βˆ€ {a b : Set},
      option a β†’ option b β†’ option (a Γ— b).

    Parameter op_letplus : βˆ€ {a b : Set}, option a β†’ (a β†’ b) β†’ option b.

    Parameter op_andplus : βˆ€ {a b : Set},
      option a β†’ option b β†’ option (a Γ— b).

    Parameter op_letstarexclamation : βˆ€ {a b : Set}, a β†’ (a β†’ b) β†’ b.

    Parameter op_letstarquestion : βˆ€ {a b : Set},
      option a β†’ (a β†’ option b) β†’ option b.

    Parameter both : βˆ€ {a b : Set}, option a β†’ option b β†’ option (a Γ— b).
  End Lwt_option_syntax.
End Error_monad_signature.
Require Export TezosOfOCaml.Environment.V8.Error_monad.
Module Error_monad_check : Error_monad_signature := Error_monad.

Export Error_monad.Notations.

Module Type Seq_signature.
  Reserved Notation "'t".

  Inductive node (a : Set) : Set :=
  | Nil : node a
  | Cons : a β†’ 't a β†’ node a
  
  where "'t" := (fun (t_a : Set) β‡’ unit β†’ node t_a).

  Definition t := 't.

  Arguments Nil {_}.
  Arguments Cons {_}.

  Parameter empty : βˆ€ {a : Set}, t a.

  Parameter _return : βˆ€ {a : Set}, a β†’ t a.

  Parameter cons_value : βˆ€ {a : Set}, a β†’ t a β†’ t a.

  Parameter append : βˆ€ {a : Set}, t a β†’ t a β†’ t a.

  Parameter map : βˆ€ {a b : Set}, (a β†’ b) β†’ t a β†’ t b.

  Parameter filter : βˆ€ {a : Set}, (a β†’ bool) β†’ t a β†’ t a.

  Parameter filter_map : βˆ€ {a b : Set}, (a β†’ option b) β†’ t a β†’ t b.

  Parameter flat_map : βˆ€ {a b : Set}, (a β†’ t b) β†’ t a β†’ t b.

  Parameter fold_left : βˆ€ {a b : Set}, (a β†’ b β†’ a) β†’ a β†’ t b β†’ a.

  Parameter iter : βˆ€ {a : Set}, (a β†’ unit) β†’ t a β†’ unit.

  Parameter unfold : βˆ€ {a b : Set}, (b β†’ option (a Γ— b)) β†’ b β†’ t a.

  Parameter first : βˆ€ {a : Set}, t a β†’ option a.

  Parameter fold_left_e : βˆ€ {a b trace : Set},
    (a β†’ b β†’ Pervasives.result a trace) β†’ a β†’ t b β†’
    Pervasives.result a trace.

  Parameter fold_left_s : βˆ€ {a b : Set}, (a β†’ b β†’ a) β†’ a β†’ t b β†’ a.

  Parameter fold_left_es : βˆ€ {a b trace : Set},
    (a β†’ b β†’ Pervasives.result a trace) β†’ a β†’ t b β†’
    Pervasives.result a trace.

  Parameter iter_e : βˆ€ {a trace : Set},
    (a β†’ Pervasives.result unit trace) β†’ t a β†’ Pervasives.result unit trace.

  Parameter iter_s : βˆ€ {a : Set}, (a β†’ unit) β†’ t a β†’ unit.

  Parameter iter_es : βˆ€ {a trace : Set},
    (a β†’ Pervasives.result unit trace) β†’ t a β†’ Pervasives.result unit trace.

  Parameter iter_ep : βˆ€ {a : Set}, (a β†’ M? unit) β†’ t a β†’ M? unit.

  Parameter iter_p : βˆ€ {a : Set}, (a β†’ unit) β†’ t a β†’ unit.
End Seq_signature.
Require Export TezosOfOCaml.Environment.V8.Seq.
Module Seq_check : Seq_signature := Seq.

Module Type List_signature.
  Definition t (a : Set) : Set := list a.

  Parameter nil : βˆ€ {a : Set}, list a.

  Parameter nil_e : βˆ€ {a trace : Set}, Pervasives.result (list a) trace.

  Parameter nil_s : βˆ€ {a : Set}, list a.

  Parameter nil_es : βˆ€ {a trace : Set}, Pervasives.result (list a) trace.

  Parameter cons_value : βˆ€ {a : Set}, a β†’ list a β†’ list a.

  Parameter is_empty : βˆ€ {a : Set}, list a β†’ bool.

  Parameter hd : βˆ€ {a : Set}, list a β†’ option a.

  Parameter tl : βˆ€ {a : Set}, list a β†’ option (list a).

  Parameter nth : βˆ€ {a : Set}, list a β†’ int β†’ option a.

  Parameter nth_opt : βˆ€ {a : Set}, list a β†’ int β†’ option a.

  Parameter last : βˆ€ {a : Set}, a β†’ list a β†’ a.

  Parameter last_opt : βˆ€ {a : Set}, list a β†’ option a.

  Parameter find : βˆ€ {a : Set}, (a β†’ bool) β†’ list a β†’ option a.

  Parameter find_opt : βˆ€ {a : Set}, (a β†’ bool) β†’ list a β†’ option a.

  Parameter find_map : βˆ€ {a b : Set},
    (a β†’ option b) β†’ list a β†’ option b.

  Parameter mem : βˆ€ {a : Set}, (a β†’ a β†’ bool) β†’ a β†’ list a β†’ bool.

  Parameter assoc : βˆ€ {a b : Set},
    (a β†’ a β†’ bool) β†’ a β†’ list (a Γ— b) β†’ option b.

  Parameter assoc_opt : βˆ€ {a b : Set},
    (a β†’ a β†’ bool) β†’ a β†’ list (a Γ— b) β†’ option b.

  Parameter assq : βˆ€ {a b : Set}, a β†’ list (a Γ— b) β†’ option b.

  Parameter assq_opt : βˆ€ {a b : Set}, a β†’ list (a Γ— b) β†’ option b.

  Parameter mem_assoc : βˆ€ {a b : Set},
    (a β†’ a β†’ bool) β†’ a β†’ list (a Γ— b) β†’ bool.

  Parameter mem_assq : βˆ€ {a b : Set}, a β†’ list (a Γ— b) β†’ bool.

  Parameter remove_assoc : βˆ€ {a b : Set},
    (a β†’ a β†’ bool) β†’ a β†’ list (a Γ— b) β†’ list (a Γ— b).

  Parameter remove_assq : βˆ€ {a b : Set}, a β†’ list (a Γ— b) β†’ list (a Γ— b).

  Parameter init_value : βˆ€ {a trace : Set},
    trace β†’ int β†’ (int β†’ a) β†’ Pervasives.result (list a) trace.

  Parameter length : βˆ€ {a : Set}, list a β†’ int.

  Parameter rev : βˆ€ {a : Set}, list a β†’ list a.

  Parameter concat : βˆ€ {a : Set}, list (list a) β†’ list a.

  Parameter append : βˆ€ {a : Set}, list a β†’ list a β†’ list a.

  Parameter rev_append : βˆ€ {a : Set}, list a β†’ list a β†’ list a.

  Parameter flatten : βˆ€ {a : Set}, list (list a) β†’ list a.

  Parameter combine : βˆ€ {a b trace : Set},
    trace β†’ list a β†’ list b β†’ Pervasives.result (list (a Γ— b)) trace.

  Parameter rev_combine : βˆ€ {a b trace : Set},
    trace β†’ list a β†’ list b β†’ Pervasives.result (list (a Γ— b)) trace.

  Parameter split : βˆ€ {a b : Set}, list (a Γ— b) β†’ list a Γ— list b.

  Parameter iter2 : βˆ€ {a b trace : Set},
    trace β†’ (a β†’ b β†’ unit) β†’ list a β†’ list b β†’
    Pervasives.result unit trace.

  Parameter map2 : βˆ€ {a b c trace : Set},
    trace β†’ (a β†’ b β†’ c) β†’ list a β†’ list b β†’
    Pervasives.result (list c) trace.

  Parameter rev_map2 : βˆ€ {a b c trace : Set},
    trace β†’ (a β†’ b β†’ c) β†’ list a β†’ list b β†’
    Pervasives.result (list c) trace.

  Parameter fold_left2 : βˆ€ {a b c trace : Set},
    trace β†’ (a β†’ b β†’ c β†’ a) β†’ a β†’ list b β†’ list c β†’
    Pervasives.result a trace.

  Parameter fold_right2 : βˆ€ {a b c trace : Set},
    trace β†’ (a β†’ b β†’ c β†’ c) β†’ list a β†’ list b β†’ c β†’
    Pervasives.result c trace.

  Parameter for_all2 : βˆ€ {a b trace : Set},
    trace β†’ (a β†’ b β†’ bool) β†’ list a β†’ list b β†’
    Pervasives.result bool trace.

  Parameter _exists2 : βˆ€ {a b trace : Set},
    trace β†’ (a β†’ b β†’ bool) β†’ list a β†’ list b β†’
    Pervasives.result bool trace.

  Parameter init_e : βˆ€ {a trace : Set},
    trace β†’ int β†’ (int β†’ Pervasives.result a trace) β†’
    Pervasives.result (list a) trace.

  Parameter init_s : βˆ€ {a trace : Set},
    trace β†’ int β†’ (int β†’ a) β†’ Pervasives.result (list a) trace.

  Parameter init_es : βˆ€ {a trace : Set},
    trace β†’ int β†’ (int β†’ Pervasives.result a trace) β†’
    Pervasives.result (list a) trace.

  Parameter init_p : βˆ€ {a trace : Set},
    trace β†’ int β†’ (int β†’ a) β†’ Pervasives.result (list a) trace.

  Parameter find_e : βˆ€ {a trace : Set},
    (a β†’ Pervasives.result bool trace) β†’ list a β†’
    Pervasives.result (option a) trace.

  Parameter find_s : βˆ€ {a : Set}, (a β†’ bool) β†’ list a β†’ option a.

  Parameter find_es : βˆ€ {a trace : Set},
    (a β†’ Pervasives.result bool trace) β†’ list a β†’
    Pervasives.result (option a) trace.

  Parameter find_map_e : βˆ€ {a b trace : Set},
    (a β†’ Pervasives.result (option b) trace) β†’ list a β†’
    Pervasives.result (option b) trace.

  Parameter find_map_s : βˆ€ {a b : Set},
    (a β†’ option b) β†’ list a β†’ option b.

  Parameter find_map_es : βˆ€ {a b trace : Set},
    (a β†’ Pervasives.result (option b) trace) β†’ list a β†’
    Pervasives.result (option b) trace.

  Parameter filter : βˆ€ {a : Set}, (a β†’ bool) β†’ list a β†’ list a.

  Parameter filteri : βˆ€ {a : Set}, (int β†’ a β†’ bool) β†’ list a β†’ list a.

  Parameter find_all : βˆ€ {a : Set}, (a β†’ bool) β†’ list a β†’ list a.

  Parameter rev_filter : βˆ€ {a : Set}, (a β†’ bool) β†’ list a β†’ list a.

  Parameter rev_filteri : βˆ€ {a : Set},
    (int β†’ a β†’ bool) β†’ list a β†’ list a.

  Parameter rev_filter_some : βˆ€ {a : Set}, list (option a) β†’ list a.

  Parameter filter_some : βˆ€ {a : Set}, list (option a) β†’ list a.

  Parameter rev_filter_ok : βˆ€ {a b : Set},
    list (Pervasives.result a b) β†’ list a.

  Parameter filter_ok : βˆ€ {a b : Set},
    list (Pervasives.result a b) β†’ list a.

  Parameter rev_filter_error : βˆ€ {a b : Set},
    list (Pervasives.result a b) β†’ list b.

  Parameter filter_error : βˆ€ {a b : Set},
    list (Pervasives.result a b) β†’ list b.

  Parameter rev_filter_left : βˆ€ {a b : Set}, list (Either.t a b) β†’ list a.

  Parameter filter_left : βˆ€ {a b : Set}, list (Either.t a b) β†’ list a.

  Parameter rev_filter_right : βˆ€ {a b : Set},
    list (Either.t a b) β†’ list b.

  Parameter filter_right : βˆ€ {a b : Set}, list (Either.t a b) β†’ list b.

  Parameter rev_filter_e : βˆ€ {a trace : Set},
    (a β†’ Pervasives.result bool trace) β†’ list a β†’
    Pervasives.result (list a) trace.

  Parameter filter_e : βˆ€ {a trace : Set},
    (a β†’ Pervasives.result bool trace) β†’ list a β†’
    Pervasives.result (list a) trace.

  Parameter rev_filter_s : βˆ€ {a : Set}, (a β†’ bool) β†’ list a β†’ list a.

  Parameter filter_s : βˆ€ {a : Set}, (a β†’ bool) β†’ list a β†’ list a.

  Parameter rev_filter_es : βˆ€ {a trace : Set},
    (a β†’ Pervasives.result bool trace) β†’ list a β†’
    Pervasives.result (list a) trace.

  Parameter filter_es : βˆ€ {a trace : Set},
    (a β†’ Pervasives.result bool trace) β†’ list a β†’
    Pervasives.result (list a) trace.

  Parameter rev_filteri_e : βˆ€ {a trace : Set},
    (int β†’ a β†’ Pervasives.result bool trace) β†’ list a β†’
    Pervasives.result (list a) trace.

  Parameter filteri_e : βˆ€ {a trace : Set},
    (int β†’ a β†’ Pervasives.result bool trace) β†’ list a β†’
    Pervasives.result (list a) trace.

  Parameter rev_filteri_s : βˆ€ {a : Set},
    (int β†’ a β†’ bool) β†’ list a β†’ list a.

  Parameter filteri_s : βˆ€ {a : Set},
    (int β†’ a β†’ bool) β†’ list a β†’ list a.

  Parameter rev_filteri_es : βˆ€ {a trace : Set},
    (int β†’ a β†’ Pervasives.result bool trace) β†’ list a β†’
    Pervasives.result (list a) trace.

  Parameter filteri_es : βˆ€ {a trace : Set},
    (int β†’ a β†’ Pervasives.result bool trace) β†’ list a β†’
    Pervasives.result (list a) trace.

  Parameter rev_partition : βˆ€ {a : Set},
    (a β†’ bool) β†’ list a β†’ list a Γ— list a.

  Parameter partition : βˆ€ {a : Set},
    (a β†’ bool) β†’ list a β†’ list a Γ— list a.

  Parameter