val synth_key_kind_inv (x: key_kind) : Tot (LP.enum_key key_kind_enum)
val synth_key_kind_inv (x: key_kind) : Tot (LP.enum_key key_kind_enum)
let synth_key_kind_inv (x: key_kind) : Tot (LP.enum_key key_kind_enum) =
  [@inline_let] let _ : squash (LP.list_mem x (LP.list_map fst key_kind_enum)) =
    _ by (LP.synth_maybe_enum_key_inv_unknown_tac x)
  in
  x
module Zeta.Formats.Aux.Key_kind

(* 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"

[@LT.Norm] inline_for_extraction let key_kind_enum : LP.enum key_kind U8.t =
  [@inline_let] let e = [
    Key_internal, 0z;
    Key_application, 1z;
  ] in
  [@inline_let] let _ =
    assert_norm (L.noRepeats (LP.list_map fst e))
  in
  [@inline_let] let _ = 
    assert_norm (L.noRepeats (LP.list_map snd e))
  in e

noextract let key_kind_repr_parser = LPI.parse_u8

noextract let key_kind_repr_serializer = LPI.serialize_u8

inline_for_extraction noextract let key_kind_repr_size32 = LSZ.size32_u8

inline_for_extraction noextract let key_kind_repr_validator = (LL.validate_u8 ())

inline_for_extraction noextract let key_kind_repr_jumper = LL.jump_u8

inline_for_extraction noextract let key_kind_repr_reader = LL.read_u8

inline_for_extraction noextract let key_kind_repr_writer = LL.write_u8

inline_for_extraction let synth_key_kind (x: LP.enum_key key_kind_enum) : Tot key_kind = x
/
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.Tactics.Effect.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.Key_kind.fst
x: Zeta.Formats.Aux.Key_kind.key_kind
  -> LowParse.Spec.Enum.enum_key Zeta.Formats.Aux.Key_kind.key_kind_enum
Zeta.Formats.Aux.Key_kind.key_kind Prims.squash Prims.b2t LowParse.Spec.Enum.list_mem LowParse.Spec.Enum.list_map FStar.Pervasives.Native.tuple2 FStar.UInt8.t FStar.Pervasives.Native.fst Zeta.Formats.Aux.Key_kind.key_kind_enum LowParse.Spec.Enum.enum_key
let synth_key_kind_inv (x: key_kind) : Tot (LP.enum_key key_kind_enum) =
  
[@@ inline_let ]let _:squash (LP.list_mem x (LP.list_map fst key_kind_enum)) =
  FStar.Tactics.Effect.synth_by_tactic (fun _ -> (LP.synth_maybe_enum_key_inv_unknown_tac x))
in
x