val newSessionTicket13_parser: LP.parser newSessionTicket13_parser_kind newSessionTicket13
val newSessionTicket13_parser: LP.parser newSessionTicket13_parser_kind newSessionTicket13
let newSessionTicket13_parser =
  synth_newSessionTicket13_injective ();
  assert_norm (newSessionTicket13_parser_kind == newSessionTicket13'_parser_kind);
  newSessionTicket13'_parser `LP.parse_synth` synth_newSessionTicket13
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
/
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.Spec.Base.parser MiTLS.Parsers.NewSessionTicket13.newSessionTicket13_parser_kind
  MiTLS.Parsers.NewSessionTicket13.newSessionTicket13
LowParse.Spec.Combinators.parse_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 Prims.unit FStar.Pervasives.assert_norm Prims.eq2 LowParse.Spec.Base.parser_kind MiTLS.Parsers.NewSessionTicket13.newSessionTicket13_parser_kind MiTLS.Parsers.NewSessionTicket13.newSessionTicket13'_parser_kind MiTLS.Parsers.NewSessionTicket13.synth_newSessionTicket13_injective
let newSessionTicket13_parser =
  
synth_newSessionTicket13_injective ();
assert_norm (newSessionTicket13_parser_kind == newSessionTicket13'_parser_kind);
newSessionTicket13'_parser `LP.parse_synth` synth_newSessionTicket13