val explicitPrimeECParams_jumper: LL.jumper explicitPrimeECParams_parser
val explicitPrimeECParams_jumper: LL.jumper explicitPrimeECParams_parser
let explicitPrimeECParams_jumper =
  [@inline_let] let _ = synth_explicitPrimeECParams_injective () in
  [@inline_let] let _ = assert_norm (explicitPrimeECParams_parser_kind == explicitPrimeECParams'_parser_kind) in
  LL.jump_synth explicitPrimeECParams'_jumper synth_explicitPrimeECParams ()
module MiTLS.Parsers.ExplicitPrimeECParams

(* 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 prime_p*)
open MiTLS.Parsers.ExplicitPrimeECParams_prime_p

(* Type of field order*)
open MiTLS.Parsers.ExplicitPrimeECParams_order

(* Type of field cofactor*)
open MiTLS.Parsers.ExplicitPrimeECParams_cofactor

type explicitPrimeECParams' = (((explicitPrimeECParams_prime_p & eCCurve) & (eCPoint & explicitPrimeECParams_order)) & explicitPrimeECParams_cofactor)

inline_for_extraction let synth_explicitPrimeECParams (x: explicitPrimeECParams') : explicitPrimeECParams =
  match x with (((prime_p,curve),(base,order)),cofactor) -> {
    prime_p = prime_p;
    curve = curve;
    base = base;
    order = order;
    cofactor = cofactor;
  }

inline_for_extraction let synth_explicitPrimeECParams_recip (x: explicitPrimeECParams) : explicitPrimeECParams' = (((x.prime_p,x.curve),(x.base,x.order)),x.cofactor)

let synth_explicitPrimeECParams_recip_inverse () : Lemma (LP.synth_inverse synth_explicitPrimeECParams_recip synth_explicitPrimeECParams) = ()

let synth_explicitPrimeECParams_injective () : Lemma (LP.synth_injective synth_explicitPrimeECParams) =
  LP.synth_inverse_synth_injective synth_explicitPrimeECParams_recip synth_explicitPrimeECParams;
  synth_explicitPrimeECParams_recip_inverse ()

let synth_explicitPrimeECParams_inverse () : Lemma (LP.synth_inverse synth_explicitPrimeECParams synth_explicitPrimeECParams_recip) =
  assert_norm (LP.synth_inverse synth_explicitPrimeECParams synth_explicitPrimeECParams_recip)

let synth_explicitPrimeECParams_recip_injective () : Lemma (LP.synth_injective synth_explicitPrimeECParams_recip) =
  synth_explicitPrimeECParams_recip_inverse ();
  LP.synth_inverse_synth_injective synth_explicitPrimeECParams synth_explicitPrimeECParams_recip

noextract let explicitPrimeECParams'_parser : LP.parser _ explicitPrimeECParams' = (((explicitPrimeECParams_prime_p_parser `LP.nondep_then` eCCurve_parser) `LP.nondep_then` (eCPoint_parser `LP.nondep_then` explicitPrimeECParams_order_parser)) `LP.nondep_then` explicitPrimeECParams_cofactor_parser)

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

let explicitPrimeECParams_parser =
  synth_explicitPrimeECParams_injective ();
  assert_norm (explicitPrimeECParams_parser_kind == explicitPrimeECParams'_parser_kind);
  explicitPrimeECParams'_parser `LP.parse_synth` synth_explicitPrimeECParams

noextract let explicitPrimeECParams'_serializer : LP.serializer explicitPrimeECParams'_parser = (((explicitPrimeECParams_prime_p_serializer `LP.serialize_nondep_then` eCCurve_serializer) `LP.serialize_nondep_then` (eCPoint_serializer `LP.serialize_nondep_then` explicitPrimeECParams_order_serializer)) `LP.serialize_nondep_then` explicitPrimeECParams_cofactor_serializer)

let explicitPrimeECParams_serializer =
  [@inline_let] let _ = synth_explicitPrimeECParams_injective () in
  [@inline_let] let _ = synth_explicitPrimeECParams_inverse () in
  [@inline_let] let _ = assert_norm (explicitPrimeECParams_parser_kind == explicitPrimeECParams'_parser_kind) in
  LP.serialize_synth _ synth_explicitPrimeECParams explicitPrimeECParams'_serializer synth_explicitPrimeECParams_recip ()

let explicitPrimeECParams_bytesize (x:explicitPrimeECParams) : GTot nat = Seq.length (explicitPrimeECParams_serializer x)

let explicitPrimeECParams_bytesize_eq x = ()

inline_for_extraction let explicitPrimeECParams'_parser32 : LS.parser32 explicitPrimeECParams'_parser = (((explicitPrimeECParams_prime_p_parser32 `LS.parse32_nondep_then` eCCurve_parser32) `LS.parse32_nondep_then` (eCPoint_parser32 `LS.parse32_nondep_then` explicitPrimeECParams_order_parser32)) `LS.parse32_nondep_then` explicitPrimeECParams_cofactor_parser32)

let explicitPrimeECParams_parser32 =
  [@inline_let] let _ = synth_explicitPrimeECParams_injective () in
  [@inline_let] let _ = assert_norm (explicitPrimeECParams_parser_kind == explicitPrimeECParams'_parser_kind) in
  LS.parse32_synth _ synth_explicitPrimeECParams (fun x -> synth_explicitPrimeECParams x) explicitPrimeECParams'_parser32 ()

inline_for_extraction let explicitPrimeECParams'_serializer32 : LS.serializer32 explicitPrimeECParams'_serializer = (((explicitPrimeECParams_prime_p_serializer32 `LS.serialize32_nondep_then` eCCurve_serializer32) `LS.serialize32_nondep_then` (eCPoint_serializer32 `LS.serialize32_nondep_then` explicitPrimeECParams_order_serializer32)) `LS.serialize32_nondep_then` explicitPrimeECParams_cofactor_serializer32)

let explicitPrimeECParams_serializer32 =
  [@inline_let] let _ = synth_explicitPrimeECParams_injective () in
  [@inline_let] let _ = synth_explicitPrimeECParams_inverse () in
  [@inline_let] let _ = assert_norm (explicitPrimeECParams_parser_kind == explicitPrimeECParams'_parser_kind) in
  LS.serialize32_synth _ synth_explicitPrimeECParams _ explicitPrimeECParams'_serializer32 synth_explicitPrimeECParams_recip (fun x -> synth_explicitPrimeECParams_recip x) ()

inline_for_extraction let explicitPrimeECParams'_size32 : LSZ.size32 explicitPrimeECParams'_serializer = (((explicitPrimeECParams_prime_p_size32 `LSZ.size32_nondep_then` eCCurve_size32) `LSZ.size32_nondep_then` (eCPoint_size32 `LSZ.size32_nondep_then` explicitPrimeECParams_order_size32)) `LSZ.size32_nondep_then` explicitPrimeECParams_cofactor_size32)

let explicitPrimeECParams_size32 =
  [@inline_let] let _ = synth_explicitPrimeECParams_injective () in
  [@inline_let] let _ = synth_explicitPrimeECParams_inverse () in
  [@inline_let] let _ = assert_norm (explicitPrimeECParams_parser_kind == explicitPrimeECParams'_parser_kind) in
  LSZ.size32_synth _ synth_explicitPrimeECParams _ explicitPrimeECParams'_size32 synth_explicitPrimeECParams_recip (fun x -> synth_explicitPrimeECParams_recip x) ()

inline_for_extraction let explicitPrimeECParams'_validator : LL.validator explicitPrimeECParams'_parser = (((explicitPrimeECParams_prime_p_validator `LL.validate_nondep_then` eCCurve_validator) `LL.validate_nondep_then` (eCPoint_validator `LL.validate_nondep_then` explicitPrimeECParams_order_validator)) `LL.validate_nondep_then` explicitPrimeECParams_cofactor_validator)

let explicitPrimeECParams_validator =
  [@inline_let] let _ = synth_explicitPrimeECParams_injective () in
  [@inline_let] let _ = assert_norm (explicitPrimeECParams_parser_kind == explicitPrimeECParams'_parser_kind) in
  LL.validate_synth explicitPrimeECParams'_validator synth_explicitPrimeECParams ()

inline_for_extraction let explicitPrimeECParams'_jumper : LL.jumper explicitPrimeECParams'_parser = (((explicitPrimeECParams_prime_p_jumper `LL.jump_nondep_then` eCCurve_jumper) `LL.jump_nondep_then` (eCPoint_jumper `LL.jump_nondep_then` explicitPrimeECParams_order_jumper)) `LL.jump_nondep_then` explicitPrimeECParams_cofactor_jumper)
/
prims.fst.checked MiTLS.Parsers.ExplicitPrimeECParams_prime_p.fsti.checked MiTLS.Parsers.ExplicitPrimeECParams_order.fsti.checked MiTLS.Parsers.ExplicitPrimeECParams_cofactor.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.ExplicitPrimeECParams.fst
LowParse.Low.Base.jumper MiTLS.Parsers.ExplicitPrimeECParams.explicitPrimeECParams_parser
LowParse.Low.Combinators.jump_synth LowParse.Spec.Combinators.and_then_kind MiTLS.Parsers.ExplicitPrimeECParams_prime_p.explicitPrimeECParams_prime_p_parser_kind MiTLS.Parsers.ECCurve.eCCurve_parser_kind MiTLS.Parsers.ECPoint.eCPoint_parser_kind MiTLS.Parsers.ExplicitPrimeECParams_order.explicitPrimeECParams_order_parser_kind MiTLS.Parsers.ExplicitPrimeECParams_cofactor.explicitPrimeECParams_cofactor_parser_kind MiTLS.Parsers.ExplicitPrimeECParams.explicitPrimeECParams' MiTLS.Parsers.ExplicitPrimeECParams.explicitPrimeECParams MiTLS.Parsers.ExplicitPrimeECParams.explicitPrimeECParams'_parser MiTLS.Parsers.ExplicitPrimeECParams.explicitPrimeECParams'_jumper MiTLS.Parsers.ExplicitPrimeECParams.synth_explicitPrimeECParams Prims.unit FStar.Pervasives.assert_norm Prims.eq2 LowParse.Spec.Base.parser_kind MiTLS.Parsers.ExplicitPrimeECParams.explicitPrimeECParams_parser_kind MiTLS.Parsers.ExplicitPrimeECParams.explicitPrimeECParams'_parser_kind MiTLS.Parsers.ExplicitPrimeECParams.synth_explicitPrimeECParams_injective
let explicitPrimeECParams_jumper =
  
[@@ inline_let ]let _ = synth_explicitPrimeECParams_injective () in
[@@ inline_let ]let _ =
  assert_norm (explicitPrimeECParams_parser_kind == explicitPrimeECParams'_parser_kind)
in
LL.jump_synth explicitPrimeECParams'_jumper synth_explicitPrimeECParams ()