val accessor_ticketContents12_master_secret : LL.accessor gaccessor_ticketContents12_master_secret
let accessor_ticketContents12_master_secret = LL.accessor_ext (LL.accessor_compose accessor_ticketContents12_ticketContents12' accessor'_ticketContents12_master_secret ()) clens_ticketContents12_master_secret ()
val accessor_ticketContents12_master_secret : LL.accessor gaccessor_ticketContents12_master_secret
let accessor_ticketContents12_master_secret =
LL.accessor_ext (LL.accessor_compose accessor_ticketContents12_ticketContents12'
      accessor'_ticketContents12_master_secret
      ())
  clens_ticketContents12_master_secret
  ()
Parsers.TicketContents12.fst.checked
prims.fst.checked Parsers.TicketContents12_master_secret.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.TicketContents12.fst
LowParse.Low.Base.accessor_ext Parsers.TicketContents12.ticketContents12_parser_kind Parsers.TicketContents12.ticketContents12 Parsers.TicketContents12.ticketContents12_parser Parsers.TicketContents12_master_secret.ticketContents12_master_secret_parser_kind Parsers.TicketContents12_master_secret.ticketContents12_master_secret Parsers.TicketContents12_master_secret.ticketContents12_master_secret_parser LowParse.Low.Base.Spec.clens_compose Parsers.TicketContents12.ticketContents12' Parsers.TicketContents12.clens_ticketContents12_ticketContents12' FStar.Pervasives.Native.tuple2 Parsers.Boolean.boolean Parsers.ProtocolVersion.protocolVersion Parsers.CipherSuite.cipherSuite LowParse.Low.Base.Spec.clens_id LowParse.Low.Combinators.clens_snd LowParse.Low.Base.Spec.gaccessor_compose LowParse.Spec.Combinators.and_then_kind Parsers.ProtocolVersion.protocolVersion_parser_kind Parsers.CipherSuite.cipherSuite_parser_kind Parsers.Boolean.boolean_parser_kind Parsers.TicketContents12.ticketContents12'_parser Parsers.TicketContents12.gaccessor_ticketContents12_ticketContents12' Parsers.TicketContents12.gaccessor'_ticketContents12_master_secret LowParse.Low.Base.accessor_compose Parsers.TicketContents12.accessor_ticketContents12_ticketContents12' Parsers.TicketContents12.accessor'_ticketContents12_master_secret Parsers.TicketContents12.clens_ticketContents12_master_secret
module Parsers.TicketContents12

(* 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 master_secret*)
open Parsers.TicketContents12_master_secret

type ticketContents12' = ((protocolVersion & cipherSuite) & (boolean & ticketContents12_master_secret))

inline_for_extraction let synth_ticketContents12 (x: ticketContents12') : ticketContents12 =
  match x with ((pv,cs),(ems,master_secret)) -> {
    pv = pv;
    cs = cs;
    ems = ems;
    master_secret = master_secret;
  }

inline_for_extraction let synth_ticketContents12_recip (x: ticketContents12) : ticketContents12' = ((x.pv,x.cs),(x.ems,x.master_secret))

let synth_ticketContents12_recip_inverse () : Lemma (LP.synth_inverse synth_ticketContents12_recip synth_ticketContents12) = ()

let synth_ticketContents12_injective () : Lemma (LP.synth_injective synth_ticketContents12) =
  LP.synth_inverse_synth_injective synth_ticketContents12_recip synth_ticketContents12;
  synth_ticketContents12_recip_inverse ()

let synth_ticketContents12_inverse () : Lemma (LP.synth_inverse synth_ticketContents12 synth_ticketContents12_recip) =
  assert_norm (LP.synth_inverse synth_ticketContents12 synth_ticketContents12_recip)

let synth_ticketContents12_recip_injective () : Lemma (LP.synth_injective synth_ticketContents12_recip) =
  synth_ticketContents12_recip_inverse ();
  LP.synth_inverse_synth_injective synth_ticketContents12 synth_ticketContents12_recip

noextract let ticketContents12'_parser : LP.parser _ ticketContents12' = ((protocolVersion_parser `LP.nondep_then` cipherSuite_parser) `LP.nondep_then` (boolean_parser `LP.nondep_then` ticketContents12_master_secret_parser))

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

let ticketContents12_parser =
  synth_ticketContents12_injective ();
  assert_norm (ticketContents12_parser_kind == ticketContents12'_parser_kind);
  ticketContents12'_parser `LP.parse_synth` synth_ticketContents12

noextract let ticketContents12'_serializer : LP.serializer ticketContents12'_parser = ((protocolVersion_serializer `LP.serialize_nondep_then` cipherSuite_serializer) `LP.serialize_nondep_then` (boolean_serializer `LP.serialize_nondep_then` ticketContents12_master_secret_serializer))

let ticketContents12_serializer =
  [@inline_let] let _ = synth_ticketContents12_injective () in
  [@inline_let] let _ = synth_ticketContents12_inverse () in
  [@inline_let] let _ = assert_norm (ticketContents12_parser_kind == ticketContents12'_parser_kind) in
  LP.serialize_synth _ synth_ticketContents12 ticketContents12'_serializer synth_ticketContents12_recip ()

let ticketContents12_bytesize (x:ticketContents12) : GTot nat = Seq.length (ticketContents12_serializer x)

let ticketContents12_bytesize_eq x = ()

inline_for_extraction let ticketContents12'_parser32 : LS.parser32 ticketContents12'_parser = ((protocolVersion_parser32 `LS.parse32_nondep_then` cipherSuite_parser32) `LS.parse32_nondep_then` (boolean_parser32 `LS.parse32_nondep_then` ticketContents12_master_secret_parser32))

let ticketContents12_parser32 =
  [@inline_let] let _ = synth_ticketContents12_injective () in
  [@inline_let] let _ = assert_norm (ticketContents12_parser_kind == ticketContents12'_parser_kind) in
  LS.parse32_synth _ synth_ticketContents12 (fun x -> synth_ticketContents12 x) ticketContents12'_parser32 ()

inline_for_extraction let ticketContents12'_serializer32 : LS.serializer32 ticketContents12'_serializer = ((protocolVersion_serializer32 `LS.serialize32_nondep_then` cipherSuite_serializer32) `LS.serialize32_nondep_then` (boolean_serializer32 `LS.serialize32_nondep_then` ticketContents12_master_secret_serializer32))

let ticketContents12_serializer32 =
  [@inline_let] let _ = synth_ticketContents12_injective () in
  [@inline_let] let _ = synth_ticketContents12_inverse () in
  [@inline_let] let _ = assert_norm (ticketContents12_parser_kind == ticketContents12'_parser_kind) in
  LS.serialize32_synth _ synth_ticketContents12 _ ticketContents12'_serializer32 synth_ticketContents12_recip (fun x -> synth_ticketContents12_recip x) ()

inline_for_extraction let ticketContents12'_size32 : LSZ.size32 ticketContents12'_serializer = ((protocolVersion_size32 `LSZ.size32_nondep_then` cipherSuite_size32) `LSZ.size32_nondep_then` (boolean_size32 `LSZ.size32_nondep_then` ticketContents12_master_secret_size32))

let ticketContents12_size32 =
  [@inline_let] let _ = synth_ticketContents12_injective () in
  [@inline_let] let _ = synth_ticketContents12_inverse () in
  [@inline_let] let _ = assert_norm (ticketContents12_parser_kind == ticketContents12'_parser_kind) in
  LSZ.size32_synth _ synth_ticketContents12 _ ticketContents12'_size32 synth_ticketContents12_recip (fun x -> synth_ticketContents12_recip x) ()

inline_for_extraction let ticketContents12'_validator : LL.validator ticketContents12'_parser = ((protocolVersion_validator `LL.validate_nondep_then` cipherSuite_validator) `LL.validate_nondep_then` (boolean_validator `LL.validate_nondep_then` ticketContents12_master_secret_validator))

let ticketContents12_validator =
  [@inline_let] let _ = synth_ticketContents12_injective () in
  [@inline_let] let _ = assert_norm (ticketContents12_parser_kind == ticketContents12'_parser_kind) in
  LL.validate_synth ticketContents12'_validator synth_ticketContents12 ()

let ticketContents12_bytesize_eqn x =
  [@inline_let] let _ = synth_ticketContents12_injective () in
  [@inline_let] let _ = synth_ticketContents12_inverse () in
  [@inline_let] let _ = assert_norm (ticketContents12_parser_kind == ticketContents12'_parser_kind) in
  LP.serialize_synth_eq _ synth_ticketContents12 ticketContents12'_serializer synth_ticketContents12_recip () x;
LP.length_serialize_nondep_then protocolVersion_serializer cipherSuite_serializer x.pv x.cs;
LP.length_serialize_nondep_then boolean_serializer ticketContents12_master_secret_serializer x.ems x.master_secret;
LP.length_serialize_nondep_then (protocolVersion_serializer `LP.serialize_nondep_then` cipherSuite_serializer) (boolean_serializer `LP.serialize_nondep_then` ticketContents12_master_secret_serializer) (x.pv, x.cs) (x.ems, x.master_secret);
  (protocolVersion_bytesize_eq (x.pv));
  (cipherSuite_bytesize_eq (x.cs));
  (boolean_bytesize_eq (x.ems));
  (ticketContents12_master_secret_bytesize_eq (x.master_secret));
  assert(ticketContents12_bytesize x == Seq.length (LP.serialize protocolVersion_serializer x.pv) + Seq.length (LP.serialize cipherSuite_serializer x.cs) + Seq.length (LP.serialize boolean_serializer x.ems) + Seq.length (LP.serialize ticketContents12_master_secret_serializer x.master_secret))

let gaccessor'_ticketContents12_pv : LL.gaccessor ticketContents12'_parser protocolVersion_parser _ = (LL.gaccessor_then_fst (LL.gaccessor_then_fst (LL.gaccessor_id ticketContents12'_parser)))

let gaccessor'_ticketContents12_cs : LL.gaccessor ticketContents12'_parser cipherSuite_parser _ = (LL.gaccessor_then_snd (LL.gaccessor_then_fst (LL.gaccessor_id ticketContents12'_parser)))

let gaccessor'_ticketContents12_ems : LL.gaccessor ticketContents12'_parser boolean_parser _ = (LL.gaccessor_then_fst (LL.gaccessor_then_snd (LL.gaccessor_id ticketContents12'_parser)))

let gaccessor'_ticketContents12_master_secret : LL.gaccessor ticketContents12'_parser ticketContents12_master_secret_parser _ = (LL.gaccessor_then_snd (LL.gaccessor_then_snd (LL.gaccessor_id ticketContents12'_parser)))

inline_for_extraction noextract let accessor'_ticketContents12_pv : LL.accessor gaccessor'_ticketContents12_pv = (LL.accessor_then_fst (LL.accessor_then_fst (LL.accessor_id ticketContents12'_parser)))

inline_for_extraction noextract let accessor'_ticketContents12_cs : LL.accessor gaccessor'_ticketContents12_cs = (LL.accessor_then_snd (LL.accessor_then_fst (LL.accessor_id ticketContents12'_parser)) protocolVersion_jumper)

inline_for_extraction noextract let accessor'_ticketContents12_ems : LL.accessor gaccessor'_ticketContents12_ems = (LL.accessor_then_fst (LL.accessor_then_snd (LL.accessor_id ticketContents12'_parser) (protocolVersion_jumper `LL.jump_nondep_then` cipherSuite_jumper)))

inline_for_extraction noextract let accessor'_ticketContents12_master_secret : LL.accessor gaccessor'_ticketContents12_master_secret = (LL.accessor_then_snd (LL.accessor_then_snd (LL.accessor_id ticketContents12'_parser) (protocolVersion_jumper `LL.jump_nondep_then` cipherSuite_jumper)) boolean_jumper)

noextract let clens_ticketContents12_ticketContents12' : LL.clens ticketContents12 ticketContents12' = synth_ticketContents12_recip_inverse (); synth_ticketContents12_recip_injective (); LL.clens_synth synth_ticketContents12_recip synth_ticketContents12

let gaccessor_ticketContents12_ticketContents12' : LL.gaccessor ticketContents12_parser ticketContents12'_parser clens_ticketContents12_ticketContents12' = synth_ticketContents12_inverse (); synth_ticketContents12_injective (); synth_ticketContents12_recip_inverse (); LL.gaccessor_synth ticketContents12'_parser synth_ticketContents12 synth_ticketContents12_recip ()

inline_for_extraction noextract let accessor_ticketContents12_ticketContents12' : LL.accessor gaccessor_ticketContents12_ticketContents12' = synth_ticketContents12_inverse (); synth_ticketContents12_injective (); synth_ticketContents12_recip_inverse (); LL.accessor_synth ticketContents12'_parser synth_ticketContents12 synth_ticketContents12_recip ()

let gaccessor_ticketContents12_pv = LL.gaccessor_ext (gaccessor_ticketContents12_ticketContents12' `LL.gaccessor_compose` gaccessor'_ticketContents12_pv) clens_ticketContents12_pv ()

let accessor_ticketContents12_pv = LL.accessor_ext (LL.accessor_compose accessor_ticketContents12_ticketContents12' accessor'_ticketContents12_pv ()) clens_ticketContents12_pv ()

let gaccessor_ticketContents12_cs = LL.gaccessor_ext (gaccessor_ticketContents12_ticketContents12' `LL.gaccessor_compose` gaccessor'_ticketContents12_cs) clens_ticketContents12_cs ()

let accessor_ticketContents12_cs = LL.accessor_ext (LL.accessor_compose accessor_ticketContents12_ticketContents12' accessor'_ticketContents12_cs ()) clens_ticketContents12_cs ()

let gaccessor_ticketContents12_ems = LL.gaccessor_ext (gaccessor_ticketContents12_ticketContents12' `LL.gaccessor_compose` gaccessor'_ticketContents12_ems) clens_ticketContents12_ems ()

let accessor_ticketContents12_ems = LL.accessor_ext (LL.accessor_compose accessor_ticketContents12_ticketContents12' accessor'_ticketContents12_ems ()) clens_ticketContents12_ems ()

let gaccessor_ticketContents12_master_secret = LL.gaccessor_ext (gaccessor_ticketContents12_ticketContents12' `LL.gaccessor_compose` gaccessor'_ticketContents12_master_secret) clens_ticketContents12_master_secret ()
val accessor_ticketContents12_master_secret : LL.accessor gaccessor_ticketContents12_master_secret
LowParse.Low.Base.accessor Parsers.TicketContents12.gaccessor_ticketContents12_master_secret