val oCSPStatusRequest_bytesize_eqn (x: oCSPStatusRequest) : Lemma (oCSPStatusRequest_bytesize x == (oCSPStatusRequest_responder_id_list_bytesize (x.responder_id_list)) + (oCSPExtensions_bytesize (x.request_extensions))) [SMTPat (oCSPStatusRequest_bytesize x)]
val oCSPStatusRequest_bytesize_eqn (x: oCSPStatusRequest) : Lemma (oCSPStatusRequest_bytesize x == (oCSPStatusRequest_responder_id_list_bytesize (x.responder_id_list)) + (oCSPExtensions_bytesize (x.request_extensions))) [SMTPat (oCSPStatusRequest_bytesize x)]
let oCSPStatusRequest_bytesize_eqn x =
  [@inline_let] let _ = synth_oCSPStatusRequest_injective () in
  [@inline_let] let _ = synth_oCSPStatusRequest_inverse () in
  [@inline_let] let _ = assert_norm (oCSPStatusRequest_parser_kind == oCSPStatusRequest'_parser_kind) in
  LP.serialize_synth_eq _ synth_oCSPStatusRequest oCSPStatusRequest'_serializer synth_oCSPStatusRequest_recip () x;
LP.length_serialize_nondep_then oCSPStatusRequest_responder_id_list_serializer oCSPExtensions_serializer x.responder_id_list x.request_extensions;
  (oCSPStatusRequest_responder_id_list_bytesize_eq (x.responder_id_list));
  (oCSPExtensions_bytesize_eq (x.request_extensions));
  assert(oCSPStatusRequest_bytesize x == Seq.length (LP.serialize oCSPStatusRequest_responder_id_list_serializer x.responder_id_list) + Seq.length (LP.serialize oCSPExtensions_serializer x.request_extensions))
module MiTLS.Parsers.OCSPStatusRequest

(* 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 responder_id_list*)
open MiTLS.Parsers.OCSPStatusRequest_responder_id_list

type oCSPStatusRequest' = (oCSPStatusRequest_responder_id_list & oCSPExtensions)

inline_for_extraction let synth_oCSPStatusRequest (x: oCSPStatusRequest') : oCSPStatusRequest =
  match x with (responder_id_list,request_extensions) -> {
    responder_id_list = responder_id_list;
    request_extensions = request_extensions;
  }

inline_for_extraction let synth_oCSPStatusRequest_recip (x: oCSPStatusRequest) : oCSPStatusRequest' = (x.responder_id_list,x.request_extensions)

let synth_oCSPStatusRequest_recip_inverse () : Lemma (LP.synth_inverse synth_oCSPStatusRequest_recip synth_oCSPStatusRequest) = ()

let synth_oCSPStatusRequest_injective () : Lemma (LP.synth_injective synth_oCSPStatusRequest) =
  LP.synth_inverse_synth_injective synth_oCSPStatusRequest_recip synth_oCSPStatusRequest;
  synth_oCSPStatusRequest_recip_inverse ()

let synth_oCSPStatusRequest_inverse () : Lemma (LP.synth_inverse synth_oCSPStatusRequest synth_oCSPStatusRequest_recip) =
  assert_norm (LP.synth_inverse synth_oCSPStatusRequest synth_oCSPStatusRequest_recip)

let synth_oCSPStatusRequest_recip_injective () : Lemma (LP.synth_injective synth_oCSPStatusRequest_recip) =
  synth_oCSPStatusRequest_recip_inverse ();
  LP.synth_inverse_synth_injective synth_oCSPStatusRequest synth_oCSPStatusRequest_recip

noextract let oCSPStatusRequest'_parser : LP.parser _ oCSPStatusRequest' = (oCSPStatusRequest_responder_id_list_parser `LP.nondep_then` oCSPExtensions_parser)

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

let oCSPStatusRequest_parser =
  synth_oCSPStatusRequest_injective ();
  assert_norm (oCSPStatusRequest_parser_kind == oCSPStatusRequest'_parser_kind);
  oCSPStatusRequest'_parser `LP.parse_synth` synth_oCSPStatusRequest

noextract let oCSPStatusRequest'_serializer : LP.serializer oCSPStatusRequest'_parser = (oCSPStatusRequest_responder_id_list_serializer `LP.serialize_nondep_then` oCSPExtensions_serializer)

let oCSPStatusRequest_serializer =
  [@inline_let] let _ = synth_oCSPStatusRequest_injective () in
  [@inline_let] let _ = synth_oCSPStatusRequest_inverse () in
  [@inline_let] let _ = assert_norm (oCSPStatusRequest_parser_kind == oCSPStatusRequest'_parser_kind) in
  LP.serialize_synth _ synth_oCSPStatusRequest oCSPStatusRequest'_serializer synth_oCSPStatusRequest_recip ()

let oCSPStatusRequest_bytesize (x:oCSPStatusRequest) : GTot nat = Seq.length (oCSPStatusRequest_serializer x)

let oCSPStatusRequest_bytesize_eq x = ()

inline_for_extraction let oCSPStatusRequest'_parser32 : LS.parser32 oCSPStatusRequest'_parser = (oCSPStatusRequest_responder_id_list_parser32 `LS.parse32_nondep_then` oCSPExtensions_parser32)

let oCSPStatusRequest_parser32 =
  [@inline_let] let _ = synth_oCSPStatusRequest_injective () in
  [@inline_let] let _ = assert_norm (oCSPStatusRequest_parser_kind == oCSPStatusRequest'_parser_kind) in
  LS.parse32_synth _ synth_oCSPStatusRequest (fun x -> synth_oCSPStatusRequest x) oCSPStatusRequest'_parser32 ()

inline_for_extraction let oCSPStatusRequest'_serializer32 : LS.serializer32 oCSPStatusRequest'_serializer = (oCSPStatusRequest_responder_id_list_serializer32 `LS.serialize32_nondep_then` oCSPExtensions_serializer32)

let oCSPStatusRequest_serializer32 =
  [@inline_let] let _ = synth_oCSPStatusRequest_injective () in
  [@inline_let] let _ = synth_oCSPStatusRequest_inverse () in
  [@inline_let] let _ = assert_norm (oCSPStatusRequest_parser_kind == oCSPStatusRequest'_parser_kind) in
  LS.serialize32_synth _ synth_oCSPStatusRequest _ oCSPStatusRequest'_serializer32 synth_oCSPStatusRequest_recip (fun x -> synth_oCSPStatusRequest_recip x) ()

inline_for_extraction let oCSPStatusRequest'_size32 : LSZ.size32 oCSPStatusRequest'_serializer = (oCSPStatusRequest_responder_id_list_size32 `LSZ.size32_nondep_then` oCSPExtensions_size32)

let oCSPStatusRequest_size32 =
  [@inline_let] let _ = synth_oCSPStatusRequest_injective () in
  [@inline_let] let _ = synth_oCSPStatusRequest_inverse () in
  [@inline_let] let _ = assert_norm (oCSPStatusRequest_parser_kind == oCSPStatusRequest'_parser_kind) in
  LSZ.size32_synth _ synth_oCSPStatusRequest _ oCSPStatusRequest'_size32 synth_oCSPStatusRequest_recip (fun x -> synth_oCSPStatusRequest_recip x) ()

inline_for_extraction let oCSPStatusRequest'_validator : LL.validator oCSPStatusRequest'_parser = (oCSPStatusRequest_responder_id_list_validator `LL.validate_nondep_then` oCSPExtensions_validator)

let oCSPStatusRequest_validator =
  [@inline_let] let _ = synth_oCSPStatusRequest_injective () in
  [@inline_let] let _ = assert_norm (oCSPStatusRequest_parser_kind == oCSPStatusRequest'_parser_kind) in
  LL.validate_synth oCSPStatusRequest'_validator synth_oCSPStatusRequest ()

inline_for_extraction let oCSPStatusRequest'_jumper : LL.jumper oCSPStatusRequest'_parser = (oCSPStatusRequest_responder_id_list_jumper `LL.jump_nondep_then` oCSPExtensions_jumper)

let oCSPStatusRequest_jumper =
  [@inline_let] let _ = synth_oCSPStatusRequest_injective () in
  [@inline_let] let _ = assert_norm (oCSPStatusRequest_parser_kind == oCSPStatusRequest'_parser_kind) in
  LL.jump_synth oCSPStatusRequest'_jumper synth_oCSPStatusRequest ()
/
prims.fst.checked MiTLS.Parsers.OCSPStatusRequest_responder_id_list.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.OCSPStatusRequest.fst
x: MiTLS.Parsers.OCSPStatusRequest.oCSPStatusRequest
  -> FStar.Pervasives.Lemma
      (ensures
        MiTLS.Parsers.OCSPStatusRequest.oCSPStatusRequest_bytesize x ==
        MiTLS.Parsers.OCSPStatusRequest_responder_id_list.oCSPStatusRequest_responder_id_list_bytesize
          (MkoCSPStatusRequest?.responder_id_list x) +
        MiTLS.Parsers.OCSPExtensions.oCSPExtensions_bytesize (MkoCSPStatusRequest?.request_extensions
              x)) [SMTPat (MiTLS.Parsers.OCSPStatusRequest.oCSPStatusRequest_bytesize x)]
MiTLS.Parsers.OCSPStatusRequest.oCSPStatusRequest Prims._assert Prims.eq2 Prims.int MiTLS.Parsers.OCSPStatusRequest.oCSPStatusRequest_bytesize Prims.op_Addition FStar.Seq.Base.length LowParse.Bytes.byte LowParse.Spec.Base.serialize MiTLS.Parsers.OCSPStatusRequest_responder_id_list.oCSPStatusRequest_responder_id_list_parser_kind MiTLS.Parsers.OCSPStatusRequest_responder_id_list.oCSPStatusRequest_responder_id_list MiTLS.Parsers.OCSPStatusRequest_responder_id_list.oCSPStatusRequest_responder_id_list_parser MiTLS.Parsers.OCSPStatusRequest_responder_id_list.oCSPStatusRequest_responder_id_list_serializer MiTLS.Parsers.OCSPStatusRequest.__proj__MkoCSPStatusRequest__item__responder_id_list MiTLS.Parsers.OCSPExtensions.oCSPExtensions_parser_kind MiTLS.Parsers.OCSPExtensions.oCSPExtensions MiTLS.Parsers.OCSPExtensions.oCSPExtensions_parser MiTLS.Parsers.OCSPExtensions.oCSPExtensions_serializer MiTLS.Parsers.OCSPStatusRequest.__proj__MkoCSPStatusRequest__item__request_extensions Prims.unit MiTLS.Parsers.OCSPExtensions.oCSPExtensions_bytesize_eq MiTLS.Parsers.OCSPStatusRequest_responder_id_list.oCSPStatusRequest_responder_id_list_bytesize_eq LowParse.Spec.Combinators.length_serialize_nondep_then LowParse.Spec.Combinators.serialize_synth_eq LowParse.Spec.Combinators.and_then_kind MiTLS.Parsers.OCSPStatusRequest.oCSPStatusRequest' MiTLS.Parsers.OCSPStatusRequest.oCSPStatusRequest'_parser MiTLS.Parsers.OCSPStatusRequest.synth_oCSPStatusRequest MiTLS.Parsers.OCSPStatusRequest.oCSPStatusRequest'_serializer MiTLS.Parsers.OCSPStatusRequest.synth_oCSPStatusRequest_recip FStar.Pervasives.assert_norm LowParse.Spec.Base.parser_kind MiTLS.Parsers.OCSPStatusRequest.oCSPStatusRequest_parser_kind MiTLS.Parsers.OCSPStatusRequest.oCSPStatusRequest'_parser_kind MiTLS.Parsers.OCSPStatusRequest.synth_oCSPStatusRequest_inverse MiTLS.Parsers.OCSPStatusRequest.synth_oCSPStatusRequest_injective
let oCSPStatusRequest_bytesize_eqn x =
  
[@@ inline_let ]let _ = synth_oCSPStatusRequest_injective () in
[@@ inline_let ]let _ = synth_oCSPStatusRequest_inverse () in
[@@ inline_let ]let _ =
  assert_norm (oCSPStatusRequest_parser_kind == oCSPStatusRequest'_parser_kind)
in
LP.serialize_synth_eq _
  synth_oCSPStatusRequest
  oCSPStatusRequest'_serializer
  synth_oCSPStatusRequest_recip
  ()
  x;
LP.length_serialize_nondep_then oCSPStatusRequest_responder_id_list_serializer
  oCSPExtensions_serializer
  x.responder_id_list
  x.request_extensions;
(oCSPStatusRequest_responder_id_list_bytesize_eq (x.responder_id_list));
(oCSPExtensions_bytesize_eq (x.request_extensions));
assert (oCSPStatusRequest_bytesize x ==
    Seq.length (LP.serialize oCSPStatusRequest_responder_id_list_serializer x.responder_id_list) +
    Seq.length (LP.serialize oCSPExtensions_serializer x.request_extensions))