val hkdfLabel'_serializer:LP.serializer hkdfLabel'_parser
val hkdfLabel'_serializer:LP.serializer hkdfLabel'_parser
let hkdfLabel'_serializer : LP.serializer hkdfLabel'_parser = ((LPI.serialize_u16 `LP.serialize_nondep_then` hkdfLabel_label_serializer) `LP.serialize_nondep_then` hkdfLabel_context_serializer)
module MiTLS.Parsers.HKDF.HkdfLabel

(* 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 LS = LowParse.SLow
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 of field label*)
open MiTLS.Parsers.HKDF.HkdfLabel_label

(* Type of field context*)
open MiTLS.Parsers.HKDF.HkdfLabel_context

type hkdfLabel' = ((U16.t & hkdfLabel_label) & hkdfLabel_context)

inline_for_extraction let synth_hkdfLabel (x: hkdfLabel') : hkdfLabel =
  match x with ((length,label),context) -> {
    length = length;
    label = label;
    context = context;
  }

inline_for_extraction let synth_hkdfLabel_recip (x: hkdfLabel) : hkdfLabel' = ((x.length,x.label),x.context)

let synth_hkdfLabel_recip_inverse () : Lemma (LP.synth_inverse synth_hkdfLabel_recip synth_hkdfLabel) = ()

let synth_hkdfLabel_injective () : Lemma (LP.synth_injective synth_hkdfLabel) =
  LP.synth_inverse_synth_injective synth_hkdfLabel_recip synth_hkdfLabel;
  synth_hkdfLabel_recip_inverse ()

let synth_hkdfLabel_inverse () : Lemma (LP.synth_inverse synth_hkdfLabel synth_hkdfLabel_recip) =
  assert_norm (LP.synth_inverse synth_hkdfLabel synth_hkdfLabel_recip)

let synth_hkdfLabel_recip_injective () : Lemma (LP.synth_injective synth_hkdfLabel_recip) =
  synth_hkdfLabel_recip_inverse ();
  LP.synth_inverse_synth_injective synth_hkdfLabel synth_hkdfLabel_recip

noextract let hkdfLabel'_parser : LP.parser _ hkdfLabel' = ((LPI.parse_u16 `LP.nondep_then` hkdfLabel_label_parser) `LP.nondep_then` hkdfLabel_context_parser)

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

let hkdfLabel_parser =
  synth_hkdfLabel_injective ();
  assert_norm (hkdfLabel_parser_kind == hkdfLabel'_parser_kind);
  hkdfLabel'_parser `LP.parse_synth` synth_hkdfLabel
/
prims.fst.checked MiTLS.Parsers.HKDF.HkdfLabel_label.fsti.checked MiTLS.Parsers.HKDF.HkdfLabel_context.fsti.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
MiTLS.Parsers.HKDF.HkdfLabel.fst
LowParse.Spec.Base.serializer MiTLS.Parsers.HKDF.HkdfLabel.hkdfLabel'_parser
LowParse.Spec.Combinators.serialize_nondep_then LowParse.Spec.Combinators.and_then_kind LowParse.Spec.Int.parse_u16_kind MiTLS.Parsers.HKDF.HkdfLabel_label.hkdfLabel_label_parser_kind FStar.Pervasives.Native.tuple2 FStar.UInt16.t MiTLS.Parsers.HKDF.HkdfLabel_label.hkdfLabel_label LowParse.Spec.Combinators.nondep_then LowParse.Spec.Int.parse_u16 MiTLS.Parsers.HKDF.HkdfLabel_label.hkdfLabel_label_parser LowParse.Spec.Int.serialize_u16 MiTLS.Parsers.HKDF.HkdfLabel_label.hkdfLabel_label_serializer MiTLS.Parsers.HKDF.HkdfLabel_context.hkdfLabel_context_parser_kind MiTLS.Parsers.HKDF.HkdfLabel_context.hkdfLabel_context MiTLS.Parsers.HKDF.HkdfLabel_context.hkdfLabel_context_parser MiTLS.Parsers.HKDF.HkdfLabel_context.hkdfLabel_context_serializer
let hkdfLabel'_serializer:LP.serializer hkdfLabel'_parser =
  
((LPI.serialize_u16 `LP.serialize_nondep_then` hkdfLabel_label_serializer)
  `LP.serialize_nondep_then`
  hkdfLabel_context_serializer)