val certificate13_certificate_list_size32: LSZ.size32 certificate13_certificate_list_serializer
val certificate13_certificate_list_size32: LSZ.size32 certificate13_certificate_list_serializer
let certificate13_certificate_list_size32 = LSZ.size32_synth' _ synth_certificate13_certificate_list _ certificate13_certificate_list'_size32 synth_certificate13_certificate_list_recip ()
module MiTLS.Parsers.Certificate13_certificate_list

(* 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 certificate13_certificate_list_list_bytesize x = Seq.length (LP.serialize (LP.serialize_list _ certificateEntry13_serializer) x)

let certificate13_certificate_list_list_bytesize_nil = LP.serialize_list_nil certificateEntry13_parser certificateEntry13_serializer

let certificate13_certificate_list_list_bytesize_cons x y = LP.serialize_list_cons certificateEntry13_parser certificateEntry13_serializer x y; (certificateEntry13_bytesize_eq (x))

let certificate13_certificate_list_list_bytesize_eq l = LL.serialized_list_length_eq_length_serialize_list certificateEntry13_serializer l

let check_certificate13_certificate_list_list_bytesize l =
  let x = LSZ.size32_list certificateEntry13_size32 () l in
  0ul `U32.lte` x && x `U32.lte` 16777215ul

type certificate13_certificate_list' = LP.parse_bounded_vldata_strong_t 0 16777215 (LP.serialize_list _ certificateEntry13_serializer)

inline_for_extraction let synth_certificate13_certificate_list (x: certificate13_certificate_list') : Tot certificate13_certificate_list = x

inline_for_extraction let synth_certificate13_certificate_list_recip (x: certificate13_certificate_list) : Tot certificate13_certificate_list' = x

noextract let certificate13_certificate_list'_parser : LP.parser _ certificate13_certificate_list' =
  LP.parse_bounded_vldata_strong 0 16777215 (LP.serialize_list _ certificateEntry13_serializer)

let certificate13_certificate_list_parser = certificate13_certificate_list'_parser `LP.parse_synth` synth_certificate13_certificate_list 

noextract let certificate13_certificate_list'_serializer : LP.serializer certificate13_certificate_list'_parser =
  LP.serialize_bounded_vldata_strong 0 16777215 (LP.serialize_list _ certificateEntry13_serializer)

let certificate13_certificate_list_serializer = LP.serialize_synth _ synth_certificate13_certificate_list certificate13_certificate_list'_serializer synth_certificate13_certificate_list_recip ()

let certificate13_certificate_list_bytesize (x:certificate13_certificate_list) : GTot nat = Seq.length (certificate13_certificate_list_serializer x)

let certificate13_certificate_list_bytesize_eq x = ()

inline_for_extraction noextract let certificate13_certificate_list'_parser32 : LS.parser32 certificate13_certificate_list'_parser =
  LS.parse32_bounded_vldata_strong 0 0ul 16777215 16777215ul (LP.serialize_list _ certificateEntry13_serializer) (LS.parse32_list certificateEntry13_parser32)

let certificate13_certificate_list_parser32 = LS.parse32_synth' _ synth_certificate13_certificate_list certificate13_certificate_list'_parser32 ()

inline_for_extraction noextract let certificate13_certificate_list'_serializer32 : LS.serializer32 certificate13_certificate_list'_serializer =
  LS.serialize32_bounded_vldata_strong 0 16777215 (LS.partial_serialize32_list _ certificateEntry13_serializer certificateEntry13_serializer32 ())

let certificate13_certificate_list_serializer32 = LS.serialize32_synth' _ synth_certificate13_certificate_list _ certificate13_certificate_list'_serializer32 synth_certificate13_certificate_list_recip ()

inline_for_extraction noextract let certificate13_certificate_list'_size32 : LSZ.size32 certificate13_certificate_list'_serializer =
  LSZ.size32_bounded_vldata_strong 0 16777215 (LSZ.size32_list certificateEntry13_size32 ()) 3ul
/
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.Certificate13_certificate_list.fst
LowParse.SLow.Base.size32 MiTLS.Parsers.Certificate13_certificate_list.certificate13_certificate_list_serializer

LowParse.SLow.Combinators.size32_synth' LowParse.Spec.VLData.parse_bounded_vldata_strong_kind LowParse.Spec.BoundedInt.log256' LowParse.Spec.List.parse_list_kind MiTLS.Parsers.Certificate13_certificate_list.certificate13_certificate_list' MiTLS.Parsers.Certificate13_certificate_list.certificate13_certificate_list MiTLS.Parsers.Certificate13_certificate_list.certificate13_certificate_list'_parser MiTLS.Parsers.Certificate13_certificate_list.synth_certificate13_certificate_list MiTLS.Parsers.Certificate13_certificate_list.certificate13_certificate_list'_serializer MiTLS.Parsers.Certificate13_certificate_list.certificate13_certificate_list'_size32 MiTLS.Parsers.Certificate13_certificate_list.synth_certificate13_certificate_list_recip
let certificate13_certificate_list_size32 =
  
LSZ.size32_synth' _
  synth_certificate13_certificate_list
  _
  certificate13_certificate_list'_size32
  synth_certificate13_certificate_list_recip
  ()