val newSessionTicket13_serializer32: LS.serializer32 newSessionTicket13_serializer
val newSessionTicket13_serializer32: LS.serializer32 newSessionTicket13_serializer
let newSessionTicket13_serializer32 =
  [@inline_let] let _ = synth_newSessionTicket13_injective () in
  [@inline_let] let _ = synth_newSessionTicket13_inverse () in
  [@inline_let] let _ = assert_norm (newSessionTicket13_parser_kind == newSessionTicket13'_parser_kind) in
  LS.serialize32_synth _ synth_newSessionTicket13 _ newSessionTicket13'_serializer32 synth_newSessionTicket13_recip (fun x -> synth_newSessionTicket13_recip x) ()
module MiTLS.Parsers.NewSessionTicket13

(* 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 ticket_nonce*)
open MiTLS.Parsers.NewSessionTicket13_ticket_nonce

(* Type of field ticket*)
open MiTLS.Parsers.NewSessionTicket13_ticket

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

type newSessionTicket13' = (((U32.t & U32.t) & (newSessionTicket13_ticket_nonce & newSessionTicket13_ticket)) & newSessionTicket13_extensions)

inline_for_extraction let synth_newSessionTicket13 (x: newSessionTicket13') : newSessionTicket13 =
  match x with (((ticket_lifetime,ticket_age_add),(ticket_nonce,ticket)),extensions) -> {
    ticket_lifetime = ticket_lifetime;
    ticket_age_add = ticket_age_add;
    ticket_nonce = ticket_nonce;
    ticket = ticket;
    extensions = extensions;
  }

inline_for_extraction let synth_newSessionTicket13_recip (x: newSessionTicket13) : newSessionTicket13' = (((x.ticket_lifetime,x.ticket_age_add),(x.ticket_nonce,x.ticket)),x.extensions)

let synth_newSessionTicket13_recip_inverse () : Lemma (LP.synth_inverse synth_newSessionTicket13_recip synth_newSessionTicket13) = ()

let synth_newSessionTicket13_injective () : Lemma (LP.synth_injective synth_newSessionTicket13) =
  LP.synth_inverse_synth_injective synth_newSessionTicket13_recip synth_newSessionTicket13;
  synth_newSessionTicket13_recip_inverse ()

let synth_newSessionTicket13_inverse () : Lemma (LP.synth_inverse synth_newSessionTicket13 synth_newSessionTicket13_recip) =
  assert_norm (LP.synth_inverse synth_newSessionTicket13 synth_newSessionTicket13_recip)

let synth_newSessionTicket13_recip_injective () : Lemma (LP.synth_injective synth_newSessionTicket13_recip) =
  synth_newSessionTicket13_recip_inverse ();
  LP.synth_inverse_synth_injective synth_newSessionTicket13 synth_newSessionTicket13_recip

noextract let newSessionTicket13'_parser : LP.parser _ newSessionTicket13' = (((LPI.parse_u32 `LP.nondep_then` LPI.parse_u32) `LP.nondep_then` (newSessionTicket13_ticket_nonce_parser `LP.nondep_then` newSessionTicket13_ticket_parser)) `LP.nondep_then` newSessionTicket13_extensions_parser)

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

let newSessionTicket13_parser =
  synth_newSessionTicket13_injective ();
  assert_norm (newSessionTicket13_parser_kind == newSessionTicket13'_parser_kind);
  newSessionTicket13'_parser `LP.parse_synth` synth_newSessionTicket13

noextract let newSessionTicket13'_serializer : LP.serializer newSessionTicket13'_parser = (((LPI.serialize_u32 `LP.serialize_nondep_then` LPI.serialize_u32) `LP.serialize_nondep_then` (newSessionTicket13_ticket_nonce_serializer `LP.serialize_nondep_then` newSessionTicket13_ticket_serializer)) `LP.serialize_nondep_then` newSessionTicket13_extensions_serializer)

let newSessionTicket13_serializer =
  [@inline_let] let _ = synth_newSessionTicket13_injective () in
  [@inline_let] let _ = synth_newSessionTicket13_inverse () in
  [@inline_let] let _ = assert_norm (newSessionTicket13_parser_kind == newSessionTicket13'_parser_kind) in
  LP.serialize_synth _ synth_newSessionTicket13 newSessionTicket13'_serializer synth_newSessionTicket13_recip ()

let newSessionTicket13_bytesize (x:newSessionTicket13) : GTot nat = Seq.length (newSessionTicket13_serializer x)

let newSessionTicket13_bytesize_eq x = ()

inline_for_extraction let newSessionTicket13'_parser32 : LS.parser32 newSessionTicket13'_parser = (((LS.parse32_u32 `LS.parse32_nondep_then` LS.parse32_u32) `LS.parse32_nondep_then` (newSessionTicket13_ticket_nonce_parser32 `LS.parse32_nondep_then` newSessionTicket13_ticket_parser32)) `LS.parse32_nondep_then` newSessionTicket13_extensions_parser32)

let newSessionTicket13_parser32 =
  [@inline_let] let _ = synth_newSessionTicket13_injective () in
  [@inline_let] let _ = assert_norm (newSessionTicket13_parser_kind == newSessionTicket13'_parser_kind) in
  LS.parse32_synth _ synth_newSessionTicket13 (fun x -> synth_newSessionTicket13 x) newSessionTicket13'_parser32 ()

inline_for_extraction let newSessionTicket13'_serializer32 : LS.serializer32 newSessionTicket13'_serializer = (((LS.serialize32_u32 `LS.serialize32_nondep_then` LS.serialize32_u32) `LS.serialize32_nondep_then` (newSessionTicket13_ticket_nonce_serializer32 `LS.serialize32_nondep_then` newSessionTicket13_ticket_serializer32)) `LS.serialize32_nondep_then` newSessionTicket13_extensions_serializer32)
/
prims.fst.checked MiTLS.Parsers.NewSessionTicket13_ticket_nonce.fsti.checked MiTLS.Parsers.NewSessionTicket13_ticket.fsti.checked MiTLS.Parsers.NewSessionTicket13_extensions.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.NewSessionTicket13.fst
LowParse.SLow.Base.serializer32 MiTLS.Parsers.NewSessionTicket13.newSessionTicket13_serializer
LowParse.SLow.Combinators.serialize32_synth LowParse.Spec.Combinators.and_then_kind LowParse.Spec.Int.parse_u32_kind MiTLS.Parsers.NewSessionTicket13_ticket_nonce.newSessionTicket13_ticket_nonce_parser_kind MiTLS.Parsers.NewSessionTicket13_ticket.newSessionTicket13_ticket_parser_kind MiTLS.Parsers.NewSessionTicket13_extensions.newSessionTicket13_extensions_parser_kind MiTLS.Parsers.NewSessionTicket13.newSessionTicket13' MiTLS.Parsers.NewSessionTicket13.newSessionTicket13 MiTLS.Parsers.NewSessionTicket13.newSessionTicket13'_parser MiTLS.Parsers.NewSessionTicket13.synth_newSessionTicket13 MiTLS.Parsers.NewSessionTicket13.newSessionTicket13'_serializer MiTLS.Parsers.NewSessionTicket13.newSessionTicket13'_serializer32 MiTLS.Parsers.NewSessionTicket13.synth_newSessionTicket13_recip Prims.eq2 Prims.unit FStar.Pervasives.assert_norm LowParse.Spec.Base.parser_kind MiTLS.Parsers.NewSessionTicket13.newSessionTicket13_parser_kind MiTLS.Parsers.NewSessionTicket13.newSessionTicket13'_parser_kind MiTLS.Parsers.NewSessionTicket13.synth_newSessionTicket13_inverse MiTLS.Parsers.NewSessionTicket13.synth_newSessionTicket13_injective
let newSessionTicket13_serializer32 =
  
[@@ inline_let ]let _ = synth_newSessionTicket13_injective () in
[@@ inline_let ]let _ = synth_newSessionTicket13_inverse () in
[@@ inline_let ]let _ =
  assert_norm (newSessionTicket13_parser_kind == newSessionTicket13'_parser_kind)
in
LS.serialize32_synth _
  synth_newSessionTicket13
  _
  newSessionTicket13'_serializer32
  synth_newSessionTicket13_recip
  (fun x -> synth_newSessionTicket13_recip x)
  ()