val accessor_ticketContents13_age_add : LL.accessor gaccessor_ticketContents13_age_add
let accessor_ticketContents13_age_add = LL.accessor_ext (LL.accessor_compose accessor_ticketContents13_ticketContents13' accessor'_ticketContents13_age_add ()) clens_ticketContents13_age_add ()
val accessor_ticketContents13_age_add : LL.accessor gaccessor_ticketContents13_age_add
let accessor_ticketContents13_age_add =
LL.accessor_ext (LL.accessor_compose accessor_ticketContents13_ticketContents13'
      accessor'_ticketContents13_age_add
      ())
  clens_ticketContents13_age_add
  ()
Parsers.TicketContents13.fst.checked
prims.fst.checked Parsers.TicketContents13_rms.fsti.checked Parsers.TicketContents13_nonce.fsti.checked Parsers.TicketContents13_custom_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
Parsers.TicketContents13.fst
LowParse.Low.Base.accessor_ext Parsers.TicketContents13.ticketContents13_parser_kind Parsers.TicketContents13.ticketContents13 Parsers.TicketContents13.ticketContents13_parser LowParse.Spec.Int.parse_u32_kind FStar.UInt32.t LowParse.Spec.Int.parse_u32 LowParse.Low.Base.Spec.clens_compose Parsers.TicketContents13.ticketContents13' Parsers.TicketContents13.clens_ticketContents13_ticketContents13' FStar.Pervasives.Native.tuple2 Parsers.TicketContents13_custom_data.ticketContents13_custom_data Parsers.CipherSuite.cipherSuite Parsers.TicketContents13_rms.ticketContents13_rms Parsers.TicketContents13_nonce.ticketContents13_nonce LowParse.Low.Base.Spec.clens_id LowParse.Low.Combinators.clens_snd LowParse.Low.Combinators.clens_fst LowParse.Low.Base.Spec.gaccessor_compose LowParse.Spec.Combinators.and_then_kind Parsers.CipherSuite.cipherSuite_parser_kind Parsers.TicketContents13_rms.ticketContents13_rms_parser_kind Parsers.TicketContents13_nonce.ticketContents13_nonce_parser_kind Parsers.TicketContents13_custom_data.ticketContents13_custom_data_parser_kind Parsers.TicketContents13.ticketContents13'_parser Parsers.TicketContents13.gaccessor_ticketContents13_ticketContents13' Parsers.TicketContents13.gaccessor'_ticketContents13_age_add LowParse.Low.Base.accessor_compose Parsers.TicketContents13.accessor_ticketContents13_ticketContents13' Parsers.TicketContents13.accessor'_ticketContents13_age_add Parsers.TicketContents13.clens_ticketContents13_age_add
module Parsers.TicketContents13

(* 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 rms*)
open Parsers.TicketContents13_rms

(* Type of field nonce*)
open Parsers.TicketContents13_nonce

(* Type of field custom_data*)
open Parsers.TicketContents13_custom_data

type ticketContents13' = (((cipherSuite & ticketContents13_rms) & (ticketContents13_nonce & U32.t)) & (U32.t & ticketContents13_custom_data))

inline_for_extraction let synth_ticketContents13 (x: ticketContents13') : ticketContents13 =
  match x with (((cs,rms),(nonce,creation_time)),(age_add,custom_data)) -> {
    cs = cs;
    rms = rms;
    nonce = nonce;
    creation_time = creation_time;
    age_add = age_add;
    custom_data = custom_data;
  }

inline_for_extraction let synth_ticketContents13_recip (x: ticketContents13) : ticketContents13' = (((x.cs,x.rms),(x.nonce,x.creation_time)),(x.age_add,x.custom_data))

let synth_ticketContents13_recip_inverse () : Lemma (LP.synth_inverse synth_ticketContents13_recip synth_ticketContents13) = ()

let synth_ticketContents13_injective () : Lemma (LP.synth_injective synth_ticketContents13) =
  LP.synth_inverse_synth_injective synth_ticketContents13_recip synth_ticketContents13;
  synth_ticketContents13_recip_inverse ()

let synth_ticketContents13_inverse () : Lemma (LP.synth_inverse synth_ticketContents13 synth_ticketContents13_recip) =
  assert_norm (LP.synth_inverse synth_ticketContents13 synth_ticketContents13_recip)

let synth_ticketContents13_recip_injective () : Lemma (LP.synth_injective synth_ticketContents13_recip) =
  synth_ticketContents13_recip_inverse ();
  LP.synth_inverse_synth_injective synth_ticketContents13 synth_ticketContents13_recip

noextract let ticketContents13'_parser : LP.parser _ ticketContents13' = (((cipherSuite_parser `LP.nondep_then` ticketContents13_rms_parser) `LP.nondep_then` (ticketContents13_nonce_parser `LP.nondep_then` LPI.parse_u32)) `LP.nondep_then` (LPI.parse_u32 `LP.nondep_then` ticketContents13_custom_data_parser))

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

let ticketContents13_parser =
  synth_ticketContents13_injective ();
  assert_norm (ticketContents13_parser_kind == ticketContents13'_parser_kind);
  ticketContents13'_parser `LP.parse_synth` synth_ticketContents13

noextract let ticketContents13'_serializer : LP.serializer ticketContents13'_parser = (((cipherSuite_serializer `LP.serialize_nondep_then` ticketContents13_rms_serializer) `LP.serialize_nondep_then` (ticketContents13_nonce_serializer `LP.serialize_nondep_then` LPI.serialize_u32)) `LP.serialize_nondep_then` (LPI.serialize_u32 `LP.serialize_nondep_then` ticketContents13_custom_data_serializer))

let ticketContents13_serializer =
  [@inline_let] let _ = synth_ticketContents13_injective () in
  [@inline_let] let _ = synth_ticketContents13_inverse () in
  [@inline_let] let _ = assert_norm (ticketContents13_parser_kind == ticketContents13'_parser_kind) in
  LP.serialize_synth _ synth_ticketContents13 ticketContents13'_serializer synth_ticketContents13_recip ()

let ticketContents13_bytesize (x:ticketContents13) : GTot nat = Seq.length (ticketContents13_serializer x)

let ticketContents13_bytesize_eq x = ()

inline_for_extraction let ticketContents13'_parser32 : LS.parser32 ticketContents13'_parser = (((cipherSuite_parser32 `LS.parse32_nondep_then` ticketContents13_rms_parser32) `LS.parse32_nondep_then` (ticketContents13_nonce_parser32 `LS.parse32_nondep_then` LS.parse32_u32)) `LS.parse32_nondep_then` (LS.parse32_u32 `LS.parse32_nondep_then` ticketContents13_custom_data_parser32))

let ticketContents13_parser32 =
  [@inline_let] let _ = synth_ticketContents13_injective () in
  [@inline_let] let _ = assert_norm (ticketContents13_parser_kind == ticketContents13'_parser_kind) in
  LS.parse32_synth _ synth_ticketContents13 (fun x -> synth_ticketContents13 x) ticketContents13'_parser32 ()

inline_for_extraction let ticketContents13'_serializer32 : LS.serializer32 ticketContents13'_serializer = (((cipherSuite_serializer32 `LS.serialize32_nondep_then` ticketContents13_rms_serializer32) `LS.serialize32_nondep_then` (ticketContents13_nonce_serializer32 `LS.serialize32_nondep_then` LS.serialize32_u32)) `LS.serialize32_nondep_then` (LS.serialize32_u32 `LS.serialize32_nondep_then` ticketContents13_custom_data_serializer32))

let ticketContents13_serializer32 =
  [@inline_let] let _ = synth_ticketContents13_injective () in
  [@inline_let] let _ = synth_ticketContents13_inverse () in
  [@inline_let] let _ = assert_norm (ticketContents13_parser_kind == ticketContents13'_parser_kind) in
  LS.serialize32_synth _ synth_ticketContents13 _ ticketContents13'_serializer32 synth_ticketContents13_recip (fun x -> synth_ticketContents13_recip x) ()

inline_for_extraction let ticketContents13'_size32 : LSZ.size32 ticketContents13'_serializer = (((cipherSuite_size32 `LSZ.size32_nondep_then` ticketContents13_rms_size32) `LSZ.size32_nondep_then` (ticketContents13_nonce_size32 `LSZ.size32_nondep_then` LSZ.size32_u32)) `LSZ.size32_nondep_then` (LSZ.size32_u32 `LSZ.size32_nondep_then` ticketContents13_custom_data_size32))

let ticketContents13_size32 =
  [@inline_let] let _ = synth_ticketContents13_injective () in
  [@inline_let] let _ = synth_ticketContents13_inverse () in
  [@inline_let] let _ = assert_norm (ticketContents13_parser_kind == ticketContents13'_parser_kind) in
  LSZ.size32_synth _ synth_ticketContents13 _ ticketContents13'_size32 synth_ticketContents13_recip (fun x -> synth_ticketContents13_recip x) ()

inline_for_extraction let ticketContents13'_validator : LL.validator ticketContents13'_parser = (((cipherSuite_validator `LL.validate_nondep_then` ticketContents13_rms_validator) `LL.validate_nondep_then` (ticketContents13_nonce_validator `LL.validate_nondep_then` (LL.validate_u32 ()))) `LL.validate_nondep_then` ((LL.validate_u32 ()) `LL.validate_nondep_then` ticketContents13_custom_data_validator))

let ticketContents13_validator =
  [@inline_let] let _ = synth_ticketContents13_injective () in
  [@inline_let] let _ = assert_norm (ticketContents13_parser_kind == ticketContents13'_parser_kind) in
  LL.validate_synth ticketContents13'_validator synth_ticketContents13 ()

inline_for_extraction let ticketContents13'_jumper : LL.jumper ticketContents13'_parser = (((cipherSuite_jumper `LL.jump_nondep_then` ticketContents13_rms_jumper) `LL.jump_nondep_then` (ticketContents13_nonce_jumper `LL.jump_nondep_then` LL.jump_u32)) `LL.jump_nondep_then` (LL.jump_u32 `LL.jump_nondep_then` ticketContents13_custom_data_jumper))

let ticketContents13_jumper =
  [@inline_let] let _ = synth_ticketContents13_injective () in
  [@inline_let] let _ = assert_norm (ticketContents13_parser_kind == ticketContents13'_parser_kind) in
  LL.jump_synth ticketContents13'_jumper synth_ticketContents13 ()

let ticketContents13_bytesize_eqn x =
  [@inline_let] let _ = synth_ticketContents13_injective () in
  [@inline_let] let _ = synth_ticketContents13_inverse () in
  [@inline_let] let _ = assert_norm (ticketContents13_parser_kind == ticketContents13'_parser_kind) in
  LP.serialize_synth_eq _ synth_ticketContents13 ticketContents13'_serializer synth_ticketContents13_recip () x;
LP.length_serialize_nondep_then cipherSuite_serializer ticketContents13_rms_serializer x.cs x.rms;
LP.length_serialize_nondep_then ticketContents13_nonce_serializer LPI.serialize_u32 x.nonce x.creation_time;
LP.length_serialize_nondep_then (cipherSuite_serializer `LP.serialize_nondep_then` ticketContents13_rms_serializer) (ticketContents13_nonce_serializer `LP.serialize_nondep_then` LPI.serialize_u32) (x.cs, x.rms) (x.nonce, x.creation_time);
LP.length_serialize_nondep_then LPI.serialize_u32 ticketContents13_custom_data_serializer x.age_add x.custom_data;
LP.length_serialize_nondep_then ((cipherSuite_serializer `LP.serialize_nondep_then` ticketContents13_rms_serializer) `LP.serialize_nondep_then` (ticketContents13_nonce_serializer `LP.serialize_nondep_then` LPI.serialize_u32)) (LPI.serialize_u32 `LP.serialize_nondep_then` ticketContents13_custom_data_serializer) ((x.cs, x.rms), (x.nonce, x.creation_time)) (x.age_add, x.custom_data);
  (cipherSuite_bytesize_eq (x.cs));
  (ticketContents13_rms_bytesize_eq (x.rms));
  (ticketContents13_nonce_bytesize_eq (x.nonce));
  (assert (FStar.Seq.length (LP.serialize LP.serialize_u32 (x.creation_time)) == 4));
  (assert (FStar.Seq.length (LP.serialize LP.serialize_u32 (x.age_add)) == 4));
  (ticketContents13_custom_data_bytesize_eq (x.custom_data));
  assert(ticketContents13_bytesize x == Seq.length (LP.serialize cipherSuite_serializer x.cs) + Seq.length (LP.serialize ticketContents13_rms_serializer x.rms) + Seq.length (LP.serialize ticketContents13_nonce_serializer x.nonce) + Seq.length (LP.serialize LPI.serialize_u32 x.creation_time) + Seq.length (LP.serialize LPI.serialize_u32 x.age_add) + Seq.length (LP.serialize ticketContents13_custom_data_serializer x.custom_data))

let gaccessor'_ticketContents13_cs : LL.gaccessor ticketContents13'_parser cipherSuite_parser _ = (LL.gaccessor_then_fst (LL.gaccessor_then_fst (LL.gaccessor_then_fst (LL.gaccessor_id ticketContents13'_parser))))

let gaccessor'_ticketContents13_rms : LL.gaccessor ticketContents13'_parser ticketContents13_rms_parser _ = (LL.gaccessor_then_snd (LL.gaccessor_then_fst (LL.gaccessor_then_fst (LL.gaccessor_id ticketContents13'_parser))))

let gaccessor'_ticketContents13_nonce : LL.gaccessor ticketContents13'_parser ticketContents13_nonce_parser _ = (LL.gaccessor_then_fst (LL.gaccessor_then_snd (LL.gaccessor_then_fst (LL.gaccessor_id ticketContents13'_parser))))

let gaccessor'_ticketContents13_creation_time : LL.gaccessor ticketContents13'_parser LPI.parse_u32 _ = (LL.gaccessor_then_snd (LL.gaccessor_then_snd (LL.gaccessor_then_fst (LL.gaccessor_id ticketContents13'_parser))))

let gaccessor'_ticketContents13_age_add : LL.gaccessor ticketContents13'_parser LPI.parse_u32 _ = (LL.gaccessor_then_fst (LL.gaccessor_then_snd (LL.gaccessor_id ticketContents13'_parser)))

let gaccessor'_ticketContents13_custom_data : LL.gaccessor ticketContents13'_parser ticketContents13_custom_data_parser _ = (LL.gaccessor_then_snd (LL.gaccessor_then_snd (LL.gaccessor_id ticketContents13'_parser)))

inline_for_extraction noextract let accessor'_ticketContents13_cs : LL.accessor gaccessor'_ticketContents13_cs = (LL.accessor_then_fst (LL.accessor_then_fst (LL.accessor_then_fst (LL.accessor_id ticketContents13'_parser))))

inline_for_extraction noextract let accessor'_ticketContents13_rms : LL.accessor gaccessor'_ticketContents13_rms = (LL.accessor_then_snd (LL.accessor_then_fst (LL.accessor_then_fst (LL.accessor_id ticketContents13'_parser))) cipherSuite_jumper)

inline_for_extraction noextract let accessor'_ticketContents13_nonce : LL.accessor gaccessor'_ticketContents13_nonce = (LL.accessor_then_fst (LL.accessor_then_snd (LL.accessor_then_fst (LL.accessor_id ticketContents13'_parser)) (cipherSuite_jumper `LL.jump_nondep_then` ticketContents13_rms_jumper)))

inline_for_extraction noextract let accessor'_ticketContents13_creation_time : LL.accessor gaccessor'_ticketContents13_creation_time = (LL.accessor_then_snd (LL.accessor_then_snd (LL.accessor_then_fst (LL.accessor_id ticketContents13'_parser)) (cipherSuite_jumper `LL.jump_nondep_then` ticketContents13_rms_jumper)) ticketContents13_nonce_jumper)

inline_for_extraction noextract let accessor'_ticketContents13_age_add : LL.accessor gaccessor'_ticketContents13_age_add = (LL.accessor_then_fst (LL.accessor_then_snd (LL.accessor_id ticketContents13'_parser) ((cipherSuite_jumper `LL.jump_nondep_then` ticketContents13_rms_jumper) `LL.jump_nondep_then` (ticketContents13_nonce_jumper `LL.jump_nondep_then` LL.jump_u32))))

inline_for_extraction noextract let accessor'_ticketContents13_custom_data : LL.accessor gaccessor'_ticketContents13_custom_data = (LL.accessor_then_snd (LL.accessor_then_snd (LL.accessor_id ticketContents13'_parser) ((cipherSuite_jumper `LL.jump_nondep_then` ticketContents13_rms_jumper) `LL.jump_nondep_then` (ticketContents13_nonce_jumper `LL.jump_nondep_then` LL.jump_u32))) LL.jump_u32)

noextract let clens_ticketContents13_ticketContents13' : LL.clens ticketContents13 ticketContents13' = synth_ticketContents13_recip_inverse (); synth_ticketContents13_recip_injective (); LL.clens_synth synth_ticketContents13_recip synth_ticketContents13

let gaccessor_ticketContents13_ticketContents13' : LL.gaccessor ticketContents13_parser ticketContents13'_parser clens_ticketContents13_ticketContents13' = synth_ticketContents13_inverse (); synth_ticketContents13_injective (); synth_ticketContents13_recip_inverse (); LL.gaccessor_synth ticketContents13'_parser synth_ticketContents13 synth_ticketContents13_recip ()

inline_for_extraction noextract let accessor_ticketContents13_ticketContents13' : LL.accessor gaccessor_ticketContents13_ticketContents13' = synth_ticketContents13_inverse (); synth_ticketContents13_injective (); synth_ticketContents13_recip_inverse (); LL.accessor_synth ticketContents13'_parser synth_ticketContents13 synth_ticketContents13_recip ()

let gaccessor_ticketContents13_cs = LL.gaccessor_ext (gaccessor_ticketContents13_ticketContents13' `LL.gaccessor_compose` gaccessor'_ticketContents13_cs) clens_ticketContents13_cs ()

let accessor_ticketContents13_cs = LL.accessor_ext (LL.accessor_compose accessor_ticketContents13_ticketContents13' accessor'_ticketContents13_cs ()) clens_ticketContents13_cs ()

let gaccessor_ticketContents13_rms = LL.gaccessor_ext (gaccessor_ticketContents13_ticketContents13' `LL.gaccessor_compose` gaccessor'_ticketContents13_rms) clens_ticketContents13_rms ()

let accessor_ticketContents13_rms = LL.accessor_ext (LL.accessor_compose accessor_ticketContents13_ticketContents13' accessor'_ticketContents13_rms ()) clens_ticketContents13_rms ()

let gaccessor_ticketContents13_nonce = LL.gaccessor_ext (gaccessor_ticketContents13_ticketContents13' `LL.gaccessor_compose` gaccessor'_ticketContents13_nonce) clens_ticketContents13_nonce ()

let accessor_ticketContents13_nonce = LL.accessor_ext (LL.accessor_compose accessor_ticketContents13_ticketContents13' accessor'_ticketContents13_nonce ()) clens_ticketContents13_nonce ()

let gaccessor_ticketContents13_creation_time = LL.gaccessor_ext (gaccessor_ticketContents13_ticketContents13' `LL.gaccessor_compose` gaccessor'_ticketContents13_creation_time) clens_ticketContents13_creation_time ()

let accessor_ticketContents13_creation_time = LL.accessor_ext (LL.accessor_compose accessor_ticketContents13_ticketContents13' accessor'_ticketContents13_creation_time ()) clens_ticketContents13_creation_time ()

let gaccessor_ticketContents13_age_add = LL.gaccessor_ext (gaccessor_ticketContents13_ticketContents13' `LL.gaccessor_compose` gaccessor'_ticketContents13_age_add) clens_ticketContents13_age_add ()
val accessor_ticketContents13_age_add : LL.accessor gaccessor_ticketContents13_age_add
LowParse.Low.Base.accessor Parsers.TicketContents13.gaccessor_ticketContents13_age_add