val certificateEntry13_extensions_elim (h: HS.mem) (#rrel: _) (#rel: _) (input: LL.slice rrel rel) (pos: U32.t) : Lemma
  (requires (LL.valid certificateEntry13_extensions_parser h input pos))
  (ensures (
    let pos' = LL.get_valid_pos certificateEntry13_extensions_parser h input pos in
    U32.v pos + 2 <= U32.v pos' /\ (
    let pos1 = pos `U32.add` 2ul in
    LL.valid_list certificateExtension_parser h input pos1 pos' /\
    LL.contents_list certificateExtension_parser h input pos1 pos' == LL.contents certificateEntry13_extensions_parser h input pos
  )))
val certificateEntry13_extensions_elim (h: HS.mem) (#rrel: _) (#rel: _) (input: LL.slice rrel rel) (pos: U32.t) : Lemma
  (requires (LL.valid certificateEntry13_extensions_parser h input pos))
  (ensures (
    let pos' = LL.get_valid_pos certificateEntry13_extensions_parser h input pos in
    U32.v pos + 2 <= U32.v pos' /\ (
    let pos1 = pos `U32.add` 2ul in
    LL.valid_list certificateExtension_parser h input pos1 pos' /\
    LL.contents_list certificateExtension_parser h input pos1 pos' == LL.contents certificateEntry13_extensions_parser h input pos
  )))
let certificateEntry13_extensions_elim h #_ #_ input pos =
  LL.valid_synth h certificateEntry13_extensions'_parser synth_certificateEntry13_extensions input pos;
  LL.valid_bounded_vldata_strong_list_valid_list 0 65535 certificateExtension_parser certificateExtension_serializer input pos h
module MiTLS.Parsers.CertificateEntry13_extensions

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

let certificateEntry13_extensions_list_bytesize_nil = LP.serialize_list_nil certificateExtension_parser certificateExtension_serializer

let certificateEntry13_extensions_list_bytesize_cons x y = LP.serialize_list_cons certificateExtension_parser certificateExtension_serializer x y; (certificateExtension_bytesize_eq (x))

let certificateEntry13_extensions_list_bytesize_eq l = LL.serialized_list_length_eq_length_serialize_list certificateExtension_serializer l

let check_certificateEntry13_extensions_list_bytesize l =
  let x = LSZ.size32_list certificateExtension_size32 () l in
  0ul `U32.lte` x && x `U32.lte` 65535ul

type certificateEntry13_extensions' = LP.parse_bounded_vldata_strong_t 0 65535 (LP.serialize_list _ certificateExtension_serializer)

inline_for_extraction let synth_certificateEntry13_extensions (x: certificateEntry13_extensions') : Tot certificateEntry13_extensions = x

inline_for_extraction let synth_certificateEntry13_extensions_recip (x: certificateEntry13_extensions) : Tot certificateEntry13_extensions' = x

noextract let certificateEntry13_extensions'_parser : LP.parser _ certificateEntry13_extensions' =
  LP.parse_bounded_vldata_strong 0 65535 (LP.serialize_list _ certificateExtension_serializer)

let certificateEntry13_extensions_parser = certificateEntry13_extensions'_parser `LP.parse_synth` synth_certificateEntry13_extensions 

noextract let certificateEntry13_extensions'_serializer : LP.serializer certificateEntry13_extensions'_parser =
  LP.serialize_bounded_vldata_strong 0 65535 (LP.serialize_list _ certificateExtension_serializer)

let certificateEntry13_extensions_serializer = LP.serialize_synth _ synth_certificateEntry13_extensions certificateEntry13_extensions'_serializer synth_certificateEntry13_extensions_recip ()

let certificateEntry13_extensions_bytesize (x:certificateEntry13_extensions) : GTot nat = Seq.length (certificateEntry13_extensions_serializer x)

let certificateEntry13_extensions_bytesize_eq x = ()

inline_for_extraction noextract let certificateEntry13_extensions'_parser32 : LS.parser32 certificateEntry13_extensions'_parser =
  LS.parse32_bounded_vldata_strong 0 0ul 65535 65535ul (LP.serialize_list _ certificateExtension_serializer) (LS.parse32_list certificateExtension_parser32)

let certificateEntry13_extensions_parser32 = LS.parse32_synth' _ synth_certificateEntry13_extensions certificateEntry13_extensions'_parser32 ()

inline_for_extraction noextract let certificateEntry13_extensions'_serializer32 : LS.serializer32 certificateEntry13_extensions'_serializer =
  LS.serialize32_bounded_vldata_strong 0 65535 (LS.partial_serialize32_list _ certificateExtension_serializer certificateExtension_serializer32 ())

let certificateEntry13_extensions_serializer32 = LS.serialize32_synth' _ synth_certificateEntry13_extensions _ certificateEntry13_extensions'_serializer32 synth_certificateEntry13_extensions_recip ()

inline_for_extraction noextract let certificateEntry13_extensions'_size32 : LSZ.size32 certificateEntry13_extensions'_serializer =
  LSZ.size32_bounded_vldata_strong 0 65535 (LSZ.size32_list certificateExtension_size32 ()) 2ul

let certificateEntry13_extensions_size32 = LSZ.size32_synth' _ synth_certificateEntry13_extensions _ certificateEntry13_extensions'_size32 synth_certificateEntry13_extensions_recip ()

inline_for_extraction let certificateEntry13_extensions'_validator : LL.validator certificateEntry13_extensions'_parser =
  LL.validate_bounded_vldata_strong 0 65535 (LP.serialize_list _ certificateExtension_serializer) (LL.validate_list certificateExtension_validator ()) ()

let certificateEntry13_extensions_validator = LL.validate_synth certificateEntry13_extensions'_validator synth_certificateEntry13_extensions ()

inline_for_extraction let certificateEntry13_extensions'_jumper : LL.jumper certificateEntry13_extensions'_parser =
  LL.jump_bounded_vldata_strong 0 65535 (LP.serialize_list _ certificateExtension_serializer) ()

let certificateEntry13_extensions_jumper = LL.jump_synth certificateEntry13_extensions'_jumper synth_certificateEntry13_extensions ()

let finalize_certificateEntry13_extensions #_ #_ sl pos pos' =
  LL.finalize_bounded_vldata_strong_list 0 65535 certificateExtension_serializer sl pos pos';
  let h = HST.get () in
  LL.valid_synth h certificateEntry13_extensions'_parser synth_certificateEntry13_extensions sl pos
/
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.CertificateEntry13_extensions.fst
h: FStar.Monotonic.HyperStack.mem -> input: LowParse.Slice.slice rrel rel -> pos: FStar.UInt32.t
  -> FStar.Pervasives.Lemma
      (requires
        LowParse.Low.Base.Spec.valid MiTLS.Parsers.CertificateEntry13_extensions.certificateEntry13_extensions_parser
          h
          input
          pos)
      (ensures
        (let pos' =
            LowParse.Low.Base.Spec.get_valid_pos MiTLS.Parsers.CertificateEntry13_extensions.certificateEntry13_extensions_parser
              h
              input
              pos
          in
          FStar.UInt32.v pos + 2 <= FStar.UInt32.v pos' /\
          (let pos1 = FStar.UInt32.add pos 2ul in
            LowParse.Low.Base.Spec.valid_list MiTLS.Parsers.CertificateExtension.certificateExtension_parser
              h
              input
              pos1
              pos' /\
            LowParse.Low.Base.Spec.contents_list MiTLS.Parsers.CertificateExtension.certificateExtension_parser
              h
              input
              pos1
              pos' ==
            LowParse.Low.Base.Spec.contents MiTLS.Parsers.CertificateEntry13_extensions.certificateEntry13_extensions_parser
              h
              input
              pos)))
FStar.Monotonic.HyperStack.mem LowParse.Slice.srel LowParse.Bytes.byte LowParse.Slice.slice FStar.UInt32.t LowParse.Low.Array.valid_bounded_vldata_strong_list_valid_list MiTLS.Parsers.CertificateExtension.certificateExtension_parser_kind MiTLS.Parsers.CertificateExtension.certificateExtension MiTLS.Parsers.CertificateExtension.certificateExtension_parser MiTLS.Parsers.CertificateExtension.certificateExtension_serializer Prims.unit LowParse.Low.Combinators.valid_synth LowParse.Spec.VLData.parse_bounded_vldata_strong_kind LowParse.Spec.BoundedInt.log256' LowParse.Spec.List.parse_list_kind MiTLS.Parsers.CertificateEntry13_extensions.certificateEntry13_extensions' MiTLS.Parsers.CertificateEntry13_extensions.certificateEntry13_extensions MiTLS.Parsers.CertificateEntry13_extensions.certificateEntry13_extensions'_parser MiTLS.Parsers.CertificateEntry13_extensions.synth_certificateEntry13_extensions
let certificateEntry13_extensions_elim h #_ #_ input pos =
  
LL.valid_synth h certificateEntry13_extensions'_parser synth_certificateEntry13_extensions input pos;
LL.valid_bounded_vldata_strong_list_valid_list 0
  65535
  certificateExtension_parser
  certificateExtension_serializer
  input
  pos
  h