val certificateEntry13_size32: LSZ.size32 certificateEntry13_serializer
val certificateEntry13_size32: LSZ.size32 certificateEntry13_serializer
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) ()
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)
/
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.SLow.Base.size32 MiTLS.Parsers.CertificateEntry13.certificateEntry13_serializer
LowParse.SLow.Combinators.size32_synth LowParse.Spec.Combinators.and_then_kind MiTLS.Parsers.CertificateEntry13_cert_data.certificateEntry13_cert_data_parser_kind MiTLS.Parsers.CertificateEntry13_extensions.certificateEntry13_extensions_parser_kind MiTLS.Parsers.CertificateEntry13.certificateEntry13' MiTLS.Parsers.CertificateEntry13.certificateEntry13 MiTLS.Parsers.CertificateEntry13.certificateEntry13'_parser MiTLS.Parsers.CertificateEntry13.synth_certificateEntry13 MiTLS.Parsers.CertificateEntry13.certificateEntry13'_serializer MiTLS.Parsers.CertificateEntry13.certificateEntry13'_size32 MiTLS.Parsers.CertificateEntry13.synth_certificateEntry13_recip Prims.eq2 Prims.unit FStar.Pervasives.assert_norm LowParse.Spec.Base.parser_kind MiTLS.Parsers.CertificateEntry13.certificateEntry13_parser_kind MiTLS.Parsers.CertificateEntry13.certificateEntry13'_parser_kind MiTLS.Parsers.CertificateEntry13.synth_certificateEntry13_inverse MiTLS.Parsers.CertificateEntry13.synth_certificateEntry13_injective
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)
  ()