val u256'_serializer:LP.serializer u256'_parser
val u256'_serializer:LP.serializer u256'_parser
let u256'_serializer : LP.serializer u256'_parser = ((LPI.serialize_u64 `LP.serialize_nondep_then` LPI.serialize_u64) `LP.serialize_nondep_then` (LPI.serialize_u64 `LP.serialize_nondep_then` LPI.serialize_u64))
module Zeta.Formats.Aux.U256

(* 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 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 u256' = ((U64.t & U64.t) & (U64.t & U64.t))

inline_for_extraction let synth_u256 (x: u256') : u256 =
  match x with ((v3,v2),(v1,v0)) -> {
    v3 = v3;
    v2 = v2;
    v1 = v1;
    v0 = v0;
  }

inline_for_extraction let synth_u256_recip (x: u256) : u256' = ((x.v3,x.v2),(x.v1,x.v0))

let synth_u256_recip_inverse () : Lemma (LP.synth_inverse synth_u256_recip synth_u256) = ()

let synth_u256_injective () : Lemma (LP.synth_injective synth_u256) =
  LP.synth_inverse_synth_injective synth_u256_recip synth_u256;
  synth_u256_recip_inverse ()

let synth_u256_inverse () : Lemma (LP.synth_inverse synth_u256 synth_u256_recip) =
  assert_norm (LP.synth_inverse synth_u256 synth_u256_recip)

let synth_u256_recip_injective () : Lemma (LP.synth_injective synth_u256_recip) =
  synth_u256_recip_inverse ();
  LP.synth_inverse_synth_injective synth_u256 synth_u256_recip

noextract let u256'_parser : LP.parser _ u256' = ((LPI.parse_u64 `LP.nondep_then` LPI.parse_u64) `LP.nondep_then` (LPI.parse_u64 `LP.nondep_then` LPI.parse_u64))

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

let u256_parser =
  synth_u256_injective ();
  assert_norm (u256_parser_kind == u256'_parser_kind);
  u256'_parser `LP.parse_synth` synth_u256
/
prims.fst.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
Zeta.Formats.Aux.U256.fst
LowParse.Spec.Base.serializer Zeta.Formats.Aux.U256.u256'_parser
LowParse.Spec.Combinators.serialize_nondep_then LowParse.Spec.Combinators.and_then_kind LowParse.Spec.Int.parse_u64_kind FStar.Pervasives.Native.tuple2 FStar.UInt64.t LowParse.Spec.Combinators.nondep_then LowParse.Spec.Int.parse_u64 LowParse.Spec.Int.serialize_u64
let u256'_serializer:LP.serializer u256'_parser =
  
((LPI.serialize_u64 `LP.serialize_nondep_then` LPI.serialize_u64)
  `LP.serialize_nondep_then`
  (LPI.serialize_u64 `LP.serialize_nondep_then` LPI.serialize_u64))