val accessor_certificate13_certificate13':LL.accessor gaccessor_certificate13_certificate13'
val accessor_certificate13_certificate13':LL.accessor gaccessor_certificate13_certificate13'
let accessor_certificate13_certificate13' : LL.accessor gaccessor_certificate13_certificate13' = synth_certificate13_inverse (); synth_certificate13_injective (); synth_certificate13_recip_inverse (); LL.accessor_synth certificate13'_parser synth_certificate13 synth_certificate13_recip ()
module MiTLS.Parsers.Certificate13

(* 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 certificate_request_context*)
open MiTLS.Parsers.Certificate13_certificate_request_context

(* Type of field certificate_list*)
open MiTLS.Parsers.Certificate13_certificate_list

type certificate13' = (certificate13_certificate_request_context & certificate13_certificate_list)

inline_for_extraction let synth_certificate13 (x: certificate13') : certificate13 =
  match x with (certificate_request_context,certificate_list) -> {
    certificate_request_context = certificate_request_context;
    certificate_list = certificate_list;
  }

inline_for_extraction let synth_certificate13_recip (x: certificate13) : certificate13' = (x.certificate_request_context,x.certificate_list)

let synth_certificate13_recip_inverse () : Lemma (LP.synth_inverse synth_certificate13_recip synth_certificate13) = ()

let synth_certificate13_injective () : Lemma (LP.synth_injective synth_certificate13) =
  LP.synth_inverse_synth_injective synth_certificate13_recip synth_certificate13;
  synth_certificate13_recip_inverse ()

let synth_certificate13_inverse () : Lemma (LP.synth_inverse synth_certificate13 synth_certificate13_recip) =
  assert_norm (LP.synth_inverse synth_certificate13 synth_certificate13_recip)

let synth_certificate13_recip_injective () : Lemma (LP.synth_injective synth_certificate13_recip) =
  synth_certificate13_recip_inverse ();
  LP.synth_inverse_synth_injective synth_certificate13 synth_certificate13_recip

noextract let certificate13'_parser : LP.parser _ certificate13' = (certificate13_certificate_request_context_parser `LP.nondep_then` certificate13_certificate_list_parser)

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

let certificate13_parser =
  synth_certificate13_injective ();
  assert_norm (certificate13_parser_kind == certificate13'_parser_kind);
  certificate13'_parser `LP.parse_synth` synth_certificate13

noextract let certificate13'_serializer : LP.serializer certificate13'_parser = (certificate13_certificate_request_context_serializer `LP.serialize_nondep_then` certificate13_certificate_list_serializer)

let certificate13_serializer =
  [@inline_let] let _ = synth_certificate13_injective () in
  [@inline_let] let _ = synth_certificate13_inverse () in
  [@inline_let] let _ = assert_norm (certificate13_parser_kind == certificate13'_parser_kind) in
  LP.serialize_synth _ synth_certificate13 certificate13'_serializer synth_certificate13_recip ()

let certificate13_bytesize (x:certificate13) : GTot nat = Seq.length (certificate13_serializer x)

let certificate13_bytesize_eq x = ()

inline_for_extraction let certificate13'_parser32 : LS.parser32 certificate13'_parser = (certificate13_certificate_request_context_parser32 `LS.parse32_nondep_then` certificate13_certificate_list_parser32)

let certificate13_parser32 =
  [@inline_let] let _ = synth_certificate13_injective () in
  [@inline_let] let _ = assert_norm (certificate13_parser_kind == certificate13'_parser_kind) in
  LS.parse32_synth _ synth_certificate13 (fun x -> synth_certificate13 x) certificate13'_parser32 ()

inline_for_extraction let certificate13'_serializer32 : LS.serializer32 certificate13'_serializer = (certificate13_certificate_request_context_serializer32 `LS.serialize32_nondep_then` certificate13_certificate_list_serializer32)

let certificate13_serializer32 =
  [@inline_let] let _ = synth_certificate13_injective () in
  [@inline_let] let _ = synth_certificate13_inverse () in
  [@inline_let] let _ = assert_norm (certificate13_parser_kind == certificate13'_parser_kind) in
  LS.serialize32_synth _ synth_certificate13 _ certificate13'_serializer32 synth_certificate13_recip (fun x -> synth_certificate13_recip x) ()

inline_for_extraction let certificate13'_size32 : LSZ.size32 certificate13'_serializer = (certificate13_certificate_request_context_size32 `LSZ.size32_nondep_then` certificate13_certificate_list_size32)

let certificate13_size32 =
  [@inline_let] let _ = synth_certificate13_injective () in
  [@inline_let] let _ = synth_certificate13_inverse () in
  [@inline_let] let _ = assert_norm (certificate13_parser_kind == certificate13'_parser_kind) in
  LSZ.size32_synth _ synth_certificate13 _ certificate13'_size32 synth_certificate13_recip (fun x -> synth_certificate13_recip x) ()

inline_for_extraction let certificate13'_validator : LL.validator certificate13'_parser = (certificate13_certificate_request_context_validator `LL.validate_nondep_then` certificate13_certificate_list_validator)

let certificate13_validator =
  [@inline_let] let _ = synth_certificate13_injective () in
  [@inline_let] let _ = assert_norm (certificate13_parser_kind == certificate13'_parser_kind) in
  LL.validate_synth certificate13'_validator synth_certificate13 ()

inline_for_extraction let certificate13'_jumper : LL.jumper certificate13'_parser = (certificate13_certificate_request_context_jumper `LL.jump_nondep_then` certificate13_certificate_list_jumper)

let certificate13_jumper =
  [@inline_let] let _ = synth_certificate13_injective () in
  [@inline_let] let _ = assert_norm (certificate13_parser_kind == certificate13'_parser_kind) in
  LL.jump_synth certificate13'_jumper synth_certificate13 ()

let certificate13_bytesize_eqn x =
  [@inline_let] let _ = synth_certificate13_injective () in
  [@inline_let] let _ = synth_certificate13_inverse () in
  [@inline_let] let _ = assert_norm (certificate13_parser_kind == certificate13'_parser_kind) in
  LP.serialize_synth_eq _ synth_certificate13 certificate13'_serializer synth_certificate13_recip () x;
LP.length_serialize_nondep_then certificate13_certificate_request_context_serializer certificate13_certificate_list_serializer x.certificate_request_context x.certificate_list;
  (certificate13_certificate_request_context_bytesize_eq (x.certificate_request_context));
  (certificate13_certificate_list_bytesize_eq (x.certificate_list));
  assert(certificate13_bytesize x == Seq.length (LP.serialize certificate13_certificate_request_context_serializer x.certificate_request_context) + Seq.length (LP.serialize certificate13_certificate_list_serializer x.certificate_list))

let gaccessor'_certificate13_certificate_request_context : LL.gaccessor certificate13'_parser certificate13_certificate_request_context_parser _ = (LL.gaccessor_then_fst (LL.gaccessor_id certificate13'_parser))

let gaccessor'_certificate13_certificate_list : LL.gaccessor certificate13'_parser certificate13_certificate_list_parser _ = (LL.gaccessor_then_snd (LL.gaccessor_id certificate13'_parser))

inline_for_extraction noextract let accessor'_certificate13_certificate_request_context : LL.accessor gaccessor'_certificate13_certificate_request_context = (LL.accessor_then_fst (LL.accessor_id certificate13'_parser))

inline_for_extraction noextract let accessor'_certificate13_certificate_list : LL.accessor gaccessor'_certificate13_certificate_list = (LL.accessor_then_snd (LL.accessor_id certificate13'_parser) certificate13_certificate_request_context_jumper)

noextract let clens_certificate13_certificate13' : LL.clens certificate13 certificate13' = synth_certificate13_recip_inverse (); synth_certificate13_recip_injective (); LL.clens_synth synth_certificate13_recip synth_certificate13

let gaccessor_certificate13_certificate13' : LL.gaccessor certificate13_parser certificate13'_parser clens_certificate13_certificate13' = synth_certificate13_inverse (); synth_certificate13_injective (); synth_certificate13_recip_inverse (); LL.gaccessor_synth certificate13'_parser synth_certificate13 synth_certificate13_recip ()
/
prims.fst.checked MiTLS.Parsers.Certificate13_certificate_request_context.fsti.checked MiTLS.Parsers.Certificate13_certificate_list.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.Certificate13.fst
LowParse.Low.Base.accessor MiTLS.Parsers.Certificate13.gaccessor_certificate13_certificate13'
LowParse.Low.Combinators.accessor_synth LowParse.Spec.Combinators.and_then_kind MiTLS.Parsers.Certificate13_certificate_request_context.certificate13_certificate_request_context_parser_kind MiTLS.Parsers.Certificate13_certificate_list.certificate13_certificate_list_parser_kind MiTLS.Parsers.Certificate13.certificate13' MiTLS.Parsers.Certificate13.certificate13 MiTLS.Parsers.Certificate13.certificate13'_parser MiTLS.Parsers.Certificate13.synth_certificate13 MiTLS.Parsers.Certificate13.synth_certificate13_recip Prims.unit MiTLS.Parsers.Certificate13.synth_certificate13_recip_inverse MiTLS.Parsers.Certificate13.synth_certificate13_injective MiTLS.Parsers.Certificate13.synth_certificate13_inverse
let accessor_certificate13_certificate13':LL.accessor gaccessor_certificate13_certificate13' =
  
synth_certificate13_inverse ();
synth_certificate13_injective ();
synth_certificate13_recip_inverse ();
LL.accessor_synth certificate13'_parser synth_certificate13 synth_certificate13_recip ()