val accessor_certificateEntry13_extensions : LL.accessor gaccessor_certificateEntry13_extensions
val accessor_certificateEntry13_extensions : LL.accessor gaccessor_certificateEntry13_extensions
let accessor_certificateEntry13_extensions = LL.accessor_ext (LL.accessor_compose accessor_certificateEntry13_certificateEntry13' accessor'_certificateEntry13_extensions ()) clens_certificateEntry13_extensions ()
module MiTLS.Parsers.CertificateEntry13

(* 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 cert_data*)
open MiTLS.Parsers.CertificateEntry13_cert_data

(* Type of field extensions*)
open MiTLS.Parsers.CertificateEntry13_extensions

type certificateEntry13' = (certificateEntry13_cert_data & certificateEntry13_extensions)

inline_for_extraction let synth_certificateEntry13 (x: certificateEntry13') : certificateEntry13 =
  match x with (cert_data,extensions) -> {
    cert_data = cert_data;
    extensions = extensions;
  }

inline_for_extraction let synth_certificateEntry13_recip (x: certificateEntry13) : certificateEntry13' = (x.cert_data,x.extensions)

let synth_certificateEntry13_recip_inverse () : Lemma (LP.synth_inverse synth_certificateEntry13_recip synth_certificateEntry13) = ()

let synth_certificateEntry13_injective () : Lemma (LP.synth_injective synth_certificateEntry13) =
  LP.synth_inverse_synth_injective synth_certificateEntry13_recip synth_certificateEntry13;
  synth_certificateEntry13_recip_inverse ()

let synth_certificateEntry13_inverse () : Lemma (LP.synth_inverse synth_certificateEntry13 synth_certificateEntry13_recip) =
  assert_norm (LP.synth_inverse synth_certificateEntry13 synth_certificateEntry13_recip)

let synth_certificateEntry13_recip_injective () : Lemma (LP.synth_injective synth_certificateEntry13_recip) =
  synth_certificateEntry13_recip_inverse ();
  LP.synth_inverse_synth_injective synth_certificateEntry13 synth_certificateEntry13_recip

noextract let certificateEntry13'_parser : LP.parser _ certificateEntry13' = (certificateEntry13_cert_data_parser `LP.nondep_then` certificateEntry13_extensions_parser)

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

let certificateEntry13_parser =
  synth_certificateEntry13_injective ();
  assert_norm (certificateEntry13_parser_kind == certificateEntry13'_parser_kind);
  certificateEntry13'_parser `LP.parse_synth` synth_certificateEntry13

noextract let certificateEntry13'_serializer : LP.serializer certificateEntry13'_parser = (certificateEntry13_cert_data_serializer `LP.serialize_nondep_then` certificateEntry13_extensions_serializer)

let certificateEntry13_serializer =
  [@inline_let] let _ = synth_certificateEntry13_injective () in
  [@inline_let] let _ = synth_certificateEntry13_inverse () in
  [@inline_let] let _ = assert_norm (certificateEntry13_parser_kind == certificateEntry13'_parser_kind) in
  LP.serialize_synth _ synth_certificateEntry13 certificateEntry13'_serializer synth_certificateEntry13_recip ()

let certificateEntry13_bytesize (x:certificateEntry13) : GTot nat = Seq.length (certificateEntry13_serializer x)

let certificateEntry13_bytesize_eq x = ()

inline_for_extraction let certificateEntry13'_parser32 : LS.parser32 certificateEntry13'_parser = (certificateEntry13_cert_data_parser32 `LS.parse32_nondep_then` certificateEntry13_extensions_parser32)

let certificateEntry13_parser32 =
  [@inline_let] let _ = synth_certificateEntry13_injective () in
  [@inline_let] let _ = assert_norm (certificateEntry13_parser_kind == certificateEntry13'_parser_kind) in
  LS.parse32_synth _ synth_certificateEntry13 (fun x -> synth_certificateEntry13 x) certificateEntry13'_parser32 ()

inline_for_extraction let certificateEntry13'_serializer32 : LS.serializer32 certificateEntry13'_serializer = (certificateEntry13_cert_data_serializer32 `LS.serialize32_nondep_then` certificateEntry13_extensions_serializer32)

let certificateEntry13_serializer32 =
  [@inline_let] let _ = synth_certificateEntry13_injective () in
  [@inline_let] let _ = synth_certificateEntry13_inverse () in
  [@inline_let] let _ = assert_norm (certificateEntry13_parser_kind == certificateEntry13'_parser_kind) in
  LS.serialize32_synth _ synth_certificateEntry13 _ certificateEntry13'_serializer32 synth_certificateEntry13_recip (fun x -> synth_certificateEntry13_recip x) ()

inline_for_extraction let certificateEntry13'_size32 : LSZ.size32 certificateEntry13'_serializer = (certificateEntry13_cert_data_size32 `LSZ.size32_nondep_then` certificateEntry13_extensions_size32)

let certificateEntry13_size32 =
  [@inline_let] let _ = synth_certificateEntry13_injective () in
  [@inline_let] let _ = synth_certificateEntry13_inverse () in
  [@inline_let] let _ = assert_norm (certificateEntry13_parser_kind == certificateEntry13'_parser_kind) in
  LSZ.size32_synth _ synth_certificateEntry13 _ certificateEntry13'_size32 synth_certificateEntry13_recip (fun x -> synth_certificateEntry13_recip x) ()

inline_for_extraction let certificateEntry13'_validator : LL.validator certificateEntry13'_parser = (certificateEntry13_cert_data_validator `LL.validate_nondep_then` certificateEntry13_extensions_validator)

let certificateEntry13_validator =
  [@inline_let] let _ = synth_certificateEntry13_injective () in
  [@inline_let] let _ = assert_norm (certificateEntry13_parser_kind == certificateEntry13'_parser_kind) in
  LL.validate_synth certificateEntry13'_validator synth_certificateEntry13 ()

inline_for_extraction let certificateEntry13'_jumper : LL.jumper certificateEntry13'_parser = (certificateEntry13_cert_data_jumper `LL.jump_nondep_then` certificateEntry13_extensions_jumper)

let certificateEntry13_jumper =
  [@inline_let] let _ = synth_certificateEntry13_injective () in
  [@inline_let] let _ = assert_norm (certificateEntry13_parser_kind == certificateEntry13'_parser_kind) in
  LL.jump_synth certificateEntry13'_jumper synth_certificateEntry13 ()

let certificateEntry13_bytesize_eqn x =
  [@inline_let] let _ = synth_certificateEntry13_injective () in
  [@inline_let] let _ = synth_certificateEntry13_inverse () in
  [@inline_let] let _ = assert_norm (certificateEntry13_parser_kind == certificateEntry13'_parser_kind) in
  LP.serialize_synth_eq _ synth_certificateEntry13 certificateEntry13'_serializer synth_certificateEntry13_recip () x;
LP.length_serialize_nondep_then certificateEntry13_cert_data_serializer certificateEntry13_extensions_serializer x.cert_data x.extensions;
  (certificateEntry13_cert_data_bytesize_eq (x.cert_data));
  (certificateEntry13_extensions_bytesize_eq (x.extensions));
  assert(certificateEntry13_bytesize x == Seq.length (LP.serialize certificateEntry13_cert_data_serializer x.cert_data) + Seq.length (LP.serialize certificateEntry13_extensions_serializer x.extensions))

let gaccessor'_certificateEntry13_cert_data : LL.gaccessor certificateEntry13'_parser certificateEntry13_cert_data_parser _ = (LL.gaccessor_then_fst (LL.gaccessor_id certificateEntry13'_parser))

let gaccessor'_certificateEntry13_extensions : LL.gaccessor certificateEntry13'_parser certificateEntry13_extensions_parser _ = (LL.gaccessor_then_snd (LL.gaccessor_id certificateEntry13'_parser))

inline_for_extraction noextract let accessor'_certificateEntry13_cert_data : LL.accessor gaccessor'_certificateEntry13_cert_data = (LL.accessor_then_fst (LL.accessor_id certificateEntry13'_parser))

inline_for_extraction noextract let accessor'_certificateEntry13_extensions : LL.accessor gaccessor'_certificateEntry13_extensions = (LL.accessor_then_snd (LL.accessor_id certificateEntry13'_parser) certificateEntry13_cert_data_jumper)

noextract let clens_certificateEntry13_certificateEntry13' : LL.clens certificateEntry13 certificateEntry13' = synth_certificateEntry13_recip_inverse (); synth_certificateEntry13_recip_injective (); LL.clens_synth synth_certificateEntry13_recip synth_certificateEntry13

let gaccessor_certificateEntry13_certificateEntry13' : LL.gaccessor certificateEntry13_parser certificateEntry13'_parser clens_certificateEntry13_certificateEntry13' = synth_certificateEntry13_inverse (); synth_certificateEntry13_injective (); synth_certificateEntry13_recip_inverse (); LL.gaccessor_synth certificateEntry13'_parser synth_certificateEntry13 synth_certificateEntry13_recip ()

inline_for_extraction noextract let accessor_certificateEntry13_certificateEntry13' : LL.accessor gaccessor_certificateEntry13_certificateEntry13' = synth_certificateEntry13_inverse (); synth_certificateEntry13_injective (); synth_certificateEntry13_recip_inverse (); LL.accessor_synth certificateEntry13'_parser synth_certificateEntry13 synth_certificateEntry13_recip ()

let gaccessor_certificateEntry13_cert_data = LL.gaccessor_ext (gaccessor_certificateEntry13_certificateEntry13' `LL.gaccessor_compose` gaccessor'_certificateEntry13_cert_data) clens_certificateEntry13_cert_data ()

let accessor_certificateEntry13_cert_data = LL.accessor_ext (LL.accessor_compose accessor_certificateEntry13_certificateEntry13' accessor'_certificateEntry13_cert_data ()) clens_certificateEntry13_cert_data ()

let gaccessor_certificateEntry13_extensions = LL.gaccessor_ext (gaccessor_certificateEntry13_certificateEntry13' `LL.gaccessor_compose` gaccessor'_certificateEntry13_extensions) clens_certificateEntry13_extensions ()
/
prims.fst.checked MiTLS.Parsers.CertificateEntry13_extensions.fsti.checked MiTLS.Parsers.CertificateEntry13_cert_data.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.CertificateEntry13.fst
LowParse.Low.Base.accessor MiTLS.Parsers.CertificateEntry13.gaccessor_certificateEntry13_extensions
LowParse.Low.Base.accessor_ext MiTLS.Parsers.CertificateEntry13.certificateEntry13_parser_kind MiTLS.Parsers.CertificateEntry13.certificateEntry13 MiTLS.Parsers.CertificateEntry13.certificateEntry13_parser MiTLS.Parsers.CertificateEntry13_extensions.certificateEntry13_extensions_parser_kind MiTLS.Parsers.CertificateEntry13_extensions.certificateEntry13_extensions MiTLS.Parsers.CertificateEntry13_extensions.certificateEntry13_extensions_parser LowParse.Low.Base.Spec.clens_compose MiTLS.Parsers.CertificateEntry13.certificateEntry13' MiTLS.Parsers.CertificateEntry13.clens_certificateEntry13_certificateEntry13' FStar.Pervasives.Native.tuple2 MiTLS.Parsers.CertificateEntry13_cert_data.certificateEntry13_cert_data LowParse.Low.Base.Spec.clens_id LowParse.Low.Combinators.clens_snd LowParse.Low.Base.Spec.gaccessor_compose LowParse.Spec.Combinators.and_then_kind MiTLS.Parsers.CertificateEntry13_cert_data.certificateEntry13_cert_data_parser_kind MiTLS.Parsers.CertificateEntry13.certificateEntry13'_parser MiTLS.Parsers.CertificateEntry13.gaccessor_certificateEntry13_certificateEntry13' MiTLS.Parsers.CertificateEntry13.gaccessor'_certificateEntry13_extensions LowParse.Low.Base.accessor_compose MiTLS.Parsers.CertificateEntry13.accessor_certificateEntry13_certificateEntry13' MiTLS.Parsers.CertificateEntry13.accessor'_certificateEntry13_extensions MiTLS.Parsers.CertificateEntry13.clens_certificateEntry13_extensions
let accessor_certificateEntry13_extensions =
  
LL.accessor_ext (LL.accessor_compose accessor_certificateEntry13_certificateEntry13'
      accessor'_certificateEntry13_extensions
      ())
  clens_certificateEntry13_extensions
  ()