val clens_char2Pentanomial_char2Pentanomial':LL.clens char2Pentanomial char2Pentanomial'
val clens_char2Pentanomial_char2Pentanomial':LL.clens char2Pentanomial char2Pentanomial'
let clens_char2Pentanomial_char2Pentanomial' : LL.clens char2Pentanomial char2Pentanomial' = synth_char2Pentanomial_recip_inverse (); synth_char2Pentanomial_recip_injective (); LL.clens_synth synth_char2Pentanomial_recip synth_char2Pentanomial
module MiTLS.Parsers.Char2Pentanomial

(* 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 k1*)
open MiTLS.Parsers.Char2Pentanomial_k1

(* Type of field k2*)
open MiTLS.Parsers.Char2Pentanomial_k2

(* Type of field k3*)
open MiTLS.Parsers.Char2Pentanomial_k3

type char2Pentanomial' = ((char2Pentanomial_k1 & char2Pentanomial_k2) & char2Pentanomial_k3)

inline_for_extraction let synth_char2Pentanomial (x: char2Pentanomial') : char2Pentanomial =
  match x with ((k1,k2),k3) -> {
    k1 = k1;
    k2 = k2;
    k3 = k3;
  }

inline_for_extraction let synth_char2Pentanomial_recip (x: char2Pentanomial) : char2Pentanomial' = ((x.k1,x.k2),x.k3)

let synth_char2Pentanomial_recip_inverse () : Lemma (LP.synth_inverse synth_char2Pentanomial_recip synth_char2Pentanomial) = ()

let synth_char2Pentanomial_injective () : Lemma (LP.synth_injective synth_char2Pentanomial) =
  LP.synth_inverse_synth_injective synth_char2Pentanomial_recip synth_char2Pentanomial;
  synth_char2Pentanomial_recip_inverse ()

let synth_char2Pentanomial_inverse () : Lemma (LP.synth_inverse synth_char2Pentanomial synth_char2Pentanomial_recip) =
  assert_norm (LP.synth_inverse synth_char2Pentanomial synth_char2Pentanomial_recip)

let synth_char2Pentanomial_recip_injective () : Lemma (LP.synth_injective synth_char2Pentanomial_recip) =
  synth_char2Pentanomial_recip_inverse ();
  LP.synth_inverse_synth_injective synth_char2Pentanomial synth_char2Pentanomial_recip

noextract let char2Pentanomial'_parser : LP.parser _ char2Pentanomial' = ((char2Pentanomial_k1_parser `LP.nondep_then` char2Pentanomial_k2_parser) `LP.nondep_then` char2Pentanomial_k3_parser)

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

let char2Pentanomial_parser =
  synth_char2Pentanomial_injective ();
  assert_norm (char2Pentanomial_parser_kind == char2Pentanomial'_parser_kind);
  char2Pentanomial'_parser `LP.parse_synth` synth_char2Pentanomial

noextract let char2Pentanomial'_serializer : LP.serializer char2Pentanomial'_parser = ((char2Pentanomial_k1_serializer `LP.serialize_nondep_then` char2Pentanomial_k2_serializer) `LP.serialize_nondep_then` char2Pentanomial_k3_serializer)

let char2Pentanomial_serializer =
  [@inline_let] let _ = synth_char2Pentanomial_injective () in
  [@inline_let] let _ = synth_char2Pentanomial_inverse () in
  [@inline_let] let _ = assert_norm (char2Pentanomial_parser_kind == char2Pentanomial'_parser_kind) in
  LP.serialize_synth _ synth_char2Pentanomial char2Pentanomial'_serializer synth_char2Pentanomial_recip ()

let char2Pentanomial_bytesize (x:char2Pentanomial) : GTot nat = Seq.length (char2Pentanomial_serializer x)

let char2Pentanomial_bytesize_eq x = ()

inline_for_extraction let char2Pentanomial'_parser32 : LS.parser32 char2Pentanomial'_parser = ((char2Pentanomial_k1_parser32 `LS.parse32_nondep_then` char2Pentanomial_k2_parser32) `LS.parse32_nondep_then` char2Pentanomial_k3_parser32)

let char2Pentanomial_parser32 =
  [@inline_let] let _ = synth_char2Pentanomial_injective () in
  [@inline_let] let _ = assert_norm (char2Pentanomial_parser_kind == char2Pentanomial'_parser_kind) in
  LS.parse32_synth _ synth_char2Pentanomial (fun x -> synth_char2Pentanomial x) char2Pentanomial'_parser32 ()

inline_for_extraction let char2Pentanomial'_serializer32 : LS.serializer32 char2Pentanomial'_serializer = ((char2Pentanomial_k1_serializer32 `LS.serialize32_nondep_then` char2Pentanomial_k2_serializer32) `LS.serialize32_nondep_then` char2Pentanomial_k3_serializer32)

let char2Pentanomial_serializer32 =
  [@inline_let] let _ = synth_char2Pentanomial_injective () in
  [@inline_let] let _ = synth_char2Pentanomial_inverse () in
  [@inline_let] let _ = assert_norm (char2Pentanomial_parser_kind == char2Pentanomial'_parser_kind) in
  LS.serialize32_synth _ synth_char2Pentanomial _ char2Pentanomial'_serializer32 synth_char2Pentanomial_recip (fun x -> synth_char2Pentanomial_recip x) ()

inline_for_extraction let char2Pentanomial'_size32 : LSZ.size32 char2Pentanomial'_serializer = ((char2Pentanomial_k1_size32 `LSZ.size32_nondep_then` char2Pentanomial_k2_size32) `LSZ.size32_nondep_then` char2Pentanomial_k3_size32)

let char2Pentanomial_size32 =
  [@inline_let] let _ = synth_char2Pentanomial_injective () in
  [@inline_let] let _ = synth_char2Pentanomial_inverse () in
  [@inline_let] let _ = assert_norm (char2Pentanomial_parser_kind == char2Pentanomial'_parser_kind) in
  LSZ.size32_synth _ synth_char2Pentanomial _ char2Pentanomial'_size32 synth_char2Pentanomial_recip (fun x -> synth_char2Pentanomial_recip x) ()

inline_for_extraction let char2Pentanomial'_validator : LL.validator char2Pentanomial'_parser = ((char2Pentanomial_k1_validator `LL.validate_nondep_then` char2Pentanomial_k2_validator) `LL.validate_nondep_then` char2Pentanomial_k3_validator)

let char2Pentanomial_validator =
  [@inline_let] let _ = synth_char2Pentanomial_injective () in
  [@inline_let] let _ = assert_norm (char2Pentanomial_parser_kind == char2Pentanomial'_parser_kind) in
  LL.validate_synth char2Pentanomial'_validator synth_char2Pentanomial ()

inline_for_extraction let char2Pentanomial'_jumper : LL.jumper char2Pentanomial'_parser = ((char2Pentanomial_k1_jumper `LL.jump_nondep_then` char2Pentanomial_k2_jumper) `LL.jump_nondep_then` char2Pentanomial_k3_jumper)

let char2Pentanomial_jumper =
  [@inline_let] let _ = synth_char2Pentanomial_injective () in
  [@inline_let] let _ = assert_norm (char2Pentanomial_parser_kind == char2Pentanomial'_parser_kind) in
  LL.jump_synth char2Pentanomial'_jumper synth_char2Pentanomial ()

let char2Pentanomial_bytesize_eqn x =
  [@inline_let] let _ = synth_char2Pentanomial_injective () in
  [@inline_let] let _ = synth_char2Pentanomial_inverse () in
  [@inline_let] let _ = assert_norm (char2Pentanomial_parser_kind == char2Pentanomial'_parser_kind) in
  LP.serialize_synth_eq _ synth_char2Pentanomial char2Pentanomial'_serializer synth_char2Pentanomial_recip () x;
LP.length_serialize_nondep_then char2Pentanomial_k1_serializer char2Pentanomial_k2_serializer x.k1 x.k2;
LP.length_serialize_nondep_then (char2Pentanomial_k1_serializer `LP.serialize_nondep_then` char2Pentanomial_k2_serializer) char2Pentanomial_k3_serializer (x.k1, x.k2) x.k3;
  (char2Pentanomial_k1_bytesize_eq (x.k1));
  (char2Pentanomial_k2_bytesize_eq (x.k2));
  (char2Pentanomial_k3_bytesize_eq (x.k3));
  assert(char2Pentanomial_bytesize x == Seq.length (LP.serialize char2Pentanomial_k1_serializer x.k1) + Seq.length (LP.serialize char2Pentanomial_k2_serializer x.k2) + Seq.length (LP.serialize char2Pentanomial_k3_serializer x.k3))

let gaccessor'_char2Pentanomial_k1 : LL.gaccessor char2Pentanomial'_parser char2Pentanomial_k1_parser _ = (LL.gaccessor_then_fst (LL.gaccessor_then_fst (LL.gaccessor_id char2Pentanomial'_parser)))

let gaccessor'_char2Pentanomial_k2 : LL.gaccessor char2Pentanomial'_parser char2Pentanomial_k2_parser _ = (LL.gaccessor_then_snd (LL.gaccessor_then_fst (LL.gaccessor_id char2Pentanomial'_parser)))

let gaccessor'_char2Pentanomial_k3 : LL.gaccessor char2Pentanomial'_parser char2Pentanomial_k3_parser _ = (LL.gaccessor_then_snd (LL.gaccessor_id char2Pentanomial'_parser))

inline_for_extraction noextract let accessor'_char2Pentanomial_k1 : LL.accessor gaccessor'_char2Pentanomial_k1 = (LL.accessor_then_fst (LL.accessor_then_fst (LL.accessor_id char2Pentanomial'_parser)))

inline_for_extraction noextract let accessor'_char2Pentanomial_k2 : LL.accessor gaccessor'_char2Pentanomial_k2 = (LL.accessor_then_snd (LL.accessor_then_fst (LL.accessor_id char2Pentanomial'_parser)) char2Pentanomial_k1_jumper)

inline_for_extraction noextract let accessor'_char2Pentanomial_k3 : LL.accessor gaccessor'_char2Pentanomial_k3 = (LL.accessor_then_snd (LL.accessor_id char2Pentanomial'_parser) (char2Pentanomial_k1_jumper `LL.jump_nondep_then` char2Pentanomial_k2_jumper))
/
prims.fst.checked MiTLS.Parsers.Char2Pentanomial_k3.fsti.checked MiTLS.Parsers.Char2Pentanomial_k2.fsti.checked MiTLS.Parsers.Char2Pentanomial_k1.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.Char2Pentanomial.fst
LowParse.Low.Base.Spec.clens MiTLS.Parsers.Char2Pentanomial.char2Pentanomial
  MiTLS.Parsers.Char2Pentanomial.char2Pentanomial'
LowParse.Low.Combinators.clens_synth MiTLS.Parsers.Char2Pentanomial.char2Pentanomial MiTLS.Parsers.Char2Pentanomial.char2Pentanomial' MiTLS.Parsers.Char2Pentanomial.synth_char2Pentanomial_recip MiTLS.Parsers.Char2Pentanomial.synth_char2Pentanomial Prims.unit MiTLS.Parsers.Char2Pentanomial.synth_char2Pentanomial_recip_injective MiTLS.Parsers.Char2Pentanomial.synth_char2Pentanomial_recip_inverse
let clens_char2Pentanomial_char2Pentanomial':LL.clens char2Pentanomial char2Pentanomial' =
  
synth_char2Pentanomial_recip_inverse ();
synth_char2Pentanomial_recip_injective ();
LL.clens_synth synth_char2Pentanomial_recip synth_char2Pentanomial