val internal_record_validator: LL.validator internal_record_parser
val internal_record_validator: LL.validator internal_record_parser
let internal_record_validator =
  [@inline_let] let _ = synth_internal_record_injective () in
  [@inline_let] let _ = assert_norm (internal_record_parser_kind == internal_record'_parser_kind) in
  LL.validate_synth internal_record'_validator synth_internal_record ()
module Zeta.Formats.Aux.Internal_record

(* This file has been automatically generated by EverParse. *)
open FStar.Bytes
module U8 = FStar.UInt8
module U16 = FStar.UInt16
module U32 = FStar.UInt32
module U64 = FStar.UInt64
module LP = LowParse.Spec
module LT = LowParse.TacLib
module LSZ = LowParse.SLow
module LPI = LowParse.Spec.AllIntegers
module LL = LowParse.Low
module L = FStar.List.Tot
module B = LowStar.Buffer
module BY = FStar.Bytes
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST

#reset-options "--using_facts_from '* -FStar.Tactics -FStar.Reflection' --z3rlimit 16 --z3cliopt smt.arith.nl=false --max_fuel 2 --max_ifuel 2"

type internal_record' = (internal_key & mval_value)

inline_for_extraction let synth_internal_record (x: internal_record') : internal_record =
  match x with (ir_key,ir_value) -> {
    ir_key = ir_key;
    ir_value = ir_value;
  }

inline_for_extraction let synth_internal_record_recip (x: internal_record) : internal_record' = (x.ir_key,x.ir_value)

let synth_internal_record_recip_inverse () : Lemma (LP.synth_inverse synth_internal_record_recip synth_internal_record) = ()

let synth_internal_record_injective () : Lemma (LP.synth_injective synth_internal_record) =
  LP.synth_inverse_synth_injective synth_internal_record_recip synth_internal_record;
  synth_internal_record_recip_inverse ()

let synth_internal_record_inverse () : Lemma (LP.synth_inverse synth_internal_record synth_internal_record_recip) =
  assert_norm (LP.synth_inverse synth_internal_record synth_internal_record_recip)

let synth_internal_record_recip_injective () : Lemma (LP.synth_injective synth_internal_record_recip) =
  synth_internal_record_recip_inverse ();
  LP.synth_inverse_synth_injective synth_internal_record synth_internal_record_recip

noextract let internal_record'_parser : LP.parser _ internal_record' = (internal_key_parser `LP.nondep_then` mval_value_parser)

noextract let internal_record'_parser_kind = LP.get_parser_kind internal_record'_parser

let internal_record_parser =
  synth_internal_record_injective ();
  assert_norm (internal_record_parser_kind == internal_record'_parser_kind);
  internal_record'_parser `LP.parse_synth` synth_internal_record

noextract let internal_record'_serializer : LP.serializer internal_record'_parser = (internal_key_serializer `LP.serialize_nondep_then` mval_value_serializer)

let internal_record_serializer =
  [@inline_let] let _ = synth_internal_record_injective () in
  [@inline_let] let _ = synth_internal_record_inverse () in
  [@inline_let] let _ = assert_norm (internal_record_parser_kind == internal_record'_parser_kind) in
  LP.serialize_synth _ synth_internal_record internal_record'_serializer synth_internal_record_recip ()

let internal_record_bytesize (x:internal_record) : GTot nat = Seq.length (internal_record_serializer x)

let internal_record_bytesize_eq x = ()

inline_for_extraction let internal_record'_size32 : LSZ.size32 internal_record'_serializer = (internal_key_size32 `LSZ.size32_nondep_then` mval_value_size32)

let internal_record_size32 =
  [@inline_let] let _ = synth_internal_record_injective () in
  [@inline_let] let _ = synth_internal_record_inverse () in
  [@inline_let] let _ = assert_norm (internal_record_parser_kind == internal_record'_parser_kind) in
  LSZ.size32_synth _ synth_internal_record _ internal_record'_size32 synth_internal_record_recip (fun x -> synth_internal_record_recip x) ()

inline_for_extraction let internal_record'_validator : LL.validator internal_record'_parser = (internal_key_validator `LL.validate_nondep_then` mval_value_validator)
/
prims.fst.checked LowStar.Buffer.fst.checked LowParse.TacLib.fst.checked LowParse.Spec.AllIntegers.fst.checked LowParse.Spec.fst.checked LowParse.SLow.fst.checked LowParse.Low.fst.checked FStar.UInt8.fsti.checked FStar.UInt64.fsti.checked FStar.UInt32.fsti.checked FStar.UInt16.fsti.checked FStar.Seq.fst.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked FStar.List.Tot.fst.checked FStar.HyperStack.ST.fsti.checked FStar.HyperStack.fst.checked FStar.Bytes.fsti.checked
Zeta.Formats.Aux.Internal_record.fst
LowParse.Low.Base.validator Zeta.Formats.Aux.Internal_record.internal_record_parser
LowParse.Low.Combinators.validate_synth LowParse.Spec.Combinators.and_then_kind Zeta.Formats.Aux.Internal_key.internal_key_parser_kind Zeta.Formats.Aux.Mval_value.mval_value_parser_kind Zeta.Formats.Aux.Internal_record.internal_record' Zeta.Formats.Aux.Internal_record.internal_record Zeta.Formats.Aux.Internal_record.internal_record'_parser Zeta.Formats.Aux.Internal_record.internal_record'_validator Zeta.Formats.Aux.Internal_record.synth_internal_record Prims.unit FStar.Pervasives.assert_norm Prims.eq2 LowParse.Spec.Base.parser_kind Zeta.Formats.Aux.Internal_record.internal_record_parser_kind Zeta.Formats.Aux.Internal_record.internal_record'_parser_kind Zeta.Formats.Aux.Internal_record.synth_internal_record_injective
let internal_record_validator =
  
[@@ inline_let ]let _ = synth_internal_record_injective () in
[@@ inline_let ]let _ = assert_norm (internal_record_parser_kind == internal_record'_parser_kind) in
LL.validate_synth internal_record'_validator synth_internal_record ()