val explicitChar2ECParams_serializer: LP.serializer explicitChar2ECParams_parser
val explicitChar2ECParams_serializer: LP.serializer explicitChar2ECParams_parser
let explicitChar2ECParams_serializer =
  [@inline_let] let _ = synth_explicitChar2ECParams_injective () in
  [@inline_let] let _ = synth_explicitChar2ECParams_inverse () in
  [@inline_let] let _ = assert_norm (explicitChar2ECParams_parser_kind == explicitChar2ECParams'_parser_kind) in
  LP.serialize_synth _ synth_explicitChar2ECParams explicitChar2ECParams'_serializer synth_explicitChar2ECParams_recip ()
module MiTLS.Parsers.ExplicitChar2ECParams

(* 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 order*)
open MiTLS.Parsers.ExplicitChar2ECParams_order

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

type explicitChar2ECParams' = (((U16.t & char2Representation) & (eCCurve & eCPoint)) & (explicitChar2ECParams_order & explicitChar2ECParams_cofactor))

inline_for_extraction let synth_explicitChar2ECParams (x: explicitChar2ECParams') : explicitChar2ECParams =
  match x with (((m,repr),(curve,base)),(order,cofactor)) -> {
    m = m;
    repr = repr;
    curve = curve;
    base = base;
    order = order;
    cofactor = cofactor;
  }

inline_for_extraction let synth_explicitChar2ECParams_recip (x: explicitChar2ECParams) : explicitChar2ECParams' = (((x.m,x.repr),(x.curve,x.base)),(x.order,x.cofactor))

let synth_explicitChar2ECParams_recip_inverse () : Lemma (LP.synth_inverse synth_explicitChar2ECParams_recip synth_explicitChar2ECParams) = ()

let synth_explicitChar2ECParams_injective () : Lemma (LP.synth_injective synth_explicitChar2ECParams) =
  LP.synth_inverse_synth_injective synth_explicitChar2ECParams_recip synth_explicitChar2ECParams;
  synth_explicitChar2ECParams_recip_inverse ()

let synth_explicitChar2ECParams_inverse () : Lemma (LP.synth_inverse synth_explicitChar2ECParams synth_explicitChar2ECParams_recip) =
  assert_norm (LP.synth_inverse synth_explicitChar2ECParams synth_explicitChar2ECParams_recip)

let synth_explicitChar2ECParams_recip_injective () : Lemma (LP.synth_injective synth_explicitChar2ECParams_recip) =
  synth_explicitChar2ECParams_recip_inverse ();
  LP.synth_inverse_synth_injective synth_explicitChar2ECParams synth_explicitChar2ECParams_recip

noextract let explicitChar2ECParams'_parser : LP.parser _ explicitChar2ECParams' = (((LPI.parse_u16 `LP.nondep_then` char2Representation_parser) `LP.nondep_then` (eCCurve_parser `LP.nondep_then` eCPoint_parser)) `LP.nondep_then` (explicitChar2ECParams_order_parser `LP.nondep_then` explicitChar2ECParams_cofactor_parser))

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

let explicitChar2ECParams_parser =
  synth_explicitChar2ECParams_injective ();
  assert_norm (explicitChar2ECParams_parser_kind == explicitChar2ECParams'_parser_kind);
  explicitChar2ECParams'_parser `LP.parse_synth` synth_explicitChar2ECParams

noextract let explicitChar2ECParams'_serializer : LP.serializer explicitChar2ECParams'_parser = (((LPI.serialize_u16 `LP.serialize_nondep_then` char2Representation_serializer) `LP.serialize_nondep_then` (eCCurve_serializer `LP.serialize_nondep_then` eCPoint_serializer)) `LP.serialize_nondep_then` (explicitChar2ECParams_order_serializer `LP.serialize_nondep_then` explicitChar2ECParams_cofactor_serializer))
/
prims.fst.checked MiTLS.Parsers.ExplicitChar2ECParams_order.fsti.checked MiTLS.Parsers.ExplicitChar2ECParams_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.ExplicitChar2ECParams.fst
LowParse.Spec.Base.serializer MiTLS.Parsers.ExplicitChar2ECParams.explicitChar2ECParams_parser
LowParse.Spec.Combinators.serialize_synth LowParse.Spec.Combinators.and_then_kind LowParse.Spec.Int.parse_u16_kind MiTLS.Parsers.Char2Representation.char2Representation_parser_kind MiTLS.Parsers.ECCurve.eCCurve_parser_kind MiTLS.Parsers.ECPoint.eCPoint_parser_kind MiTLS.Parsers.ExplicitChar2ECParams_order.explicitChar2ECParams_order_parser_kind MiTLS.Parsers.ExplicitChar2ECParams_cofactor.explicitChar2ECParams_cofactor_parser_kind MiTLS.Parsers.ExplicitChar2ECParams.explicitChar2ECParams' MiTLS.Parsers.ExplicitChar2ECParams.explicitChar2ECParams MiTLS.Parsers.ExplicitChar2ECParams.explicitChar2ECParams'_parser MiTLS.Parsers.ExplicitChar2ECParams.synth_explicitChar2ECParams MiTLS.Parsers.ExplicitChar2ECParams.explicitChar2ECParams'_serializer MiTLS.Parsers.ExplicitChar2ECParams.synth_explicitChar2ECParams_recip Prims.unit FStar.Pervasives.assert_norm Prims.eq2 LowParse.Spec.Base.parser_kind MiTLS.Parsers.ExplicitChar2ECParams.explicitChar2ECParams_parser_kind MiTLS.Parsers.ExplicitChar2ECParams.explicitChar2ECParams'_parser_kind MiTLS.Parsers.ExplicitChar2ECParams.synth_explicitChar2ECParams_inverse MiTLS.Parsers.ExplicitChar2ECParams.synth_explicitChar2ECParams_injective
let explicitChar2ECParams_serializer =
  
[@@ inline_let ]let _ = synth_explicitChar2ECParams_injective () in
[@@ inline_let ]let _ = synth_explicitChar2ECParams_inverse () in
[@@ inline_let ]let _ =
  assert_norm (explicitChar2ECParams_parser_kind == explicitChar2ECParams'_parser_kind)
in
LP.serialize_synth _
  synth_explicitChar2ECParams
  explicitChar2ECParams'_serializer
  synth_explicitChar2ECParams_recip
  ()