val offeredPsks_identities_bytesize_eqn (x: offeredPsks_identities) : Lemma (offeredPsks_identities_bytesize x == 2 + offeredPsks_identities_list_bytesize x) [SMTPat (offeredPsks_identities_bytesize x)]
val offeredPsks_identities_bytesize_eqn (x: offeredPsks_identities) : Lemma (offeredPsks_identities_bytesize x == 2 + offeredPsks_identities_list_bytesize x) [SMTPat (offeredPsks_identities_bytesize x)]
let offeredPsks_identities_bytesize_eqn x = LP.serialize_synth_eq offeredPsks_identities'_parser synth_offeredPsks_identities offeredPsks_identities'_serializer synth_offeredPsks_identities_recip () x
module MiTLS.Parsers.OfferedPsks_identities

(* 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"

let offeredPsks_identities_list_bytesize x = Seq.length (LP.serialize (LP.serialize_list _ pskIdentity_serializer) x)

let offeredPsks_identities_list_bytesize_nil = LP.serialize_list_nil pskIdentity_parser pskIdentity_serializer

let offeredPsks_identities_list_bytesize_cons x y = LP.serialize_list_cons pskIdentity_parser pskIdentity_serializer x y; (pskIdentity_bytesize_eq (x))

let offeredPsks_identities_list_bytesize_eq l = LL.serialized_list_length_eq_length_serialize_list pskIdentity_serializer l

let check_offeredPsks_identities_list_bytesize l =
  let x = LSZ.size32_list pskIdentity_size32 () l in
  7ul `U32.lte` x && x `U32.lte` 65535ul

type offeredPsks_identities' = LP.parse_bounded_vldata_strong_t 7 65535 (LP.serialize_list _ pskIdentity_serializer)

inline_for_extraction let synth_offeredPsks_identities (x: offeredPsks_identities') : Tot offeredPsks_identities = x

inline_for_extraction let synth_offeredPsks_identities_recip (x: offeredPsks_identities) : Tot offeredPsks_identities' = x

noextract let offeredPsks_identities'_parser : LP.parser _ offeredPsks_identities' =
  LP.parse_bounded_vldata_strong 7 65535 (LP.serialize_list _ pskIdentity_serializer)

let offeredPsks_identities_parser = offeredPsks_identities'_parser `LP.parse_synth` synth_offeredPsks_identities 

noextract let offeredPsks_identities'_serializer : LP.serializer offeredPsks_identities'_parser =
  LP.serialize_bounded_vldata_strong 7 65535 (LP.serialize_list _ pskIdentity_serializer)

let offeredPsks_identities_serializer = LP.serialize_synth _ synth_offeredPsks_identities offeredPsks_identities'_serializer synth_offeredPsks_identities_recip ()

let offeredPsks_identities_bytesize (x:offeredPsks_identities) : GTot nat = Seq.length (offeredPsks_identities_serializer x)

let offeredPsks_identities_bytesize_eq x = ()

inline_for_extraction noextract let offeredPsks_identities'_parser32 : LS.parser32 offeredPsks_identities'_parser =
  LS.parse32_bounded_vldata_strong 7 7ul 65535 65535ul (LP.serialize_list _ pskIdentity_serializer) (LS.parse32_list pskIdentity_parser32)

let offeredPsks_identities_parser32 = LS.parse32_synth' _ synth_offeredPsks_identities offeredPsks_identities'_parser32 ()

inline_for_extraction noextract let offeredPsks_identities'_serializer32 : LS.serializer32 offeredPsks_identities'_serializer =
  LS.serialize32_bounded_vldata_strong 7 65535 (LS.partial_serialize32_list _ pskIdentity_serializer pskIdentity_serializer32 ())

let offeredPsks_identities_serializer32 = LS.serialize32_synth' _ synth_offeredPsks_identities _ offeredPsks_identities'_serializer32 synth_offeredPsks_identities_recip ()

inline_for_extraction noextract let offeredPsks_identities'_size32 : LSZ.size32 offeredPsks_identities'_serializer =
  LSZ.size32_bounded_vldata_strong 7 65535 (LSZ.size32_list pskIdentity_size32 ()) 2ul

let offeredPsks_identities_size32 = LSZ.size32_synth' _ synth_offeredPsks_identities _ offeredPsks_identities'_size32 synth_offeredPsks_identities_recip ()

inline_for_extraction let offeredPsks_identities'_validator : LL.validator offeredPsks_identities'_parser =
  LL.validate_bounded_vldata_strong 7 65535 (LP.serialize_list _ pskIdentity_serializer) (LL.validate_list pskIdentity_validator ()) ()

let offeredPsks_identities_validator = LL.validate_synth offeredPsks_identities'_validator synth_offeredPsks_identities ()

inline_for_extraction let offeredPsks_identities'_jumper : LL.jumper offeredPsks_identities'_parser =
  LL.jump_bounded_vldata_strong 7 65535 (LP.serialize_list _ pskIdentity_serializer) ()

let offeredPsks_identities_jumper = LL.jump_synth offeredPsks_identities'_jumper synth_offeredPsks_identities ()

let finalize_offeredPsks_identities #_ #_ sl pos pos' =
  LL.finalize_bounded_vldata_strong_list 7 65535 pskIdentity_serializer sl pos pos';
  let h = HST.get () in
  LL.valid_synth h offeredPsks_identities'_parser synth_offeredPsks_identities sl pos

let offeredPsks_identities_elim h #_ #_ input pos =
  LL.valid_synth h offeredPsks_identities'_parser synth_offeredPsks_identities input pos;
  LL.valid_bounded_vldata_strong_list_valid_list 7 65535 pskIdentity_parser pskIdentity_serializer input pos h
/
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.fsti.checked FStar.List.Tot.fst.checked FStar.HyperStack.ST.fsti.checked FStar.HyperStack.fst.checked FStar.Bytes.fsti.checked
MiTLS.Parsers.OfferedPsks_identities.fst
x: MiTLS.Parsers.OfferedPsks_identities.offeredPsks_identities
  -> FStar.Pervasives.Lemma
      (ensures
        MiTLS.Parsers.OfferedPsks_identities.offeredPsks_identities_bytesize x ==
        2 + MiTLS.Parsers.OfferedPsks_identities.offeredPsks_identities_list_bytesize x)
      [SMTPat (MiTLS.Parsers.OfferedPsks_identities.offeredPsks_identities_bytesize x)]
MiTLS.Parsers.OfferedPsks_identities.offeredPsks_identities LowParse.Spec.Combinators.serialize_synth_eq LowParse.Spec.VLData.parse_bounded_vldata_strong_kind LowParse.Spec.BoundedInt.log256' LowParse.Spec.List.parse_list_kind MiTLS.Parsers.OfferedPsks_identities.offeredPsks_identities' MiTLS.Parsers.OfferedPsks_identities.offeredPsks_identities'_parser MiTLS.Parsers.OfferedPsks_identities.synth_offeredPsks_identities MiTLS.Parsers.OfferedPsks_identities.offeredPsks_identities'_serializer MiTLS.Parsers.OfferedPsks_identities.synth_offeredPsks_identities_recip Prims.unit
let offeredPsks_identities_bytesize_eqn x =
  
LP.serialize_synth_eq offeredPsks_identities'_parser
  synth_offeredPsks_identities
  offeredPsks_identities'_serializer
  synth_offeredPsks_identities_recip
  ()
  x