val application_record_v_payload_clens_tag:LL.clens application_record_v_payload dvalue_kind
val application_record_v_payload_clens_tag:LL.clens application_record_v_payload dvalue_kind
let application_record_v_payload_clens_tag : LL.clens application_record_v_payload dvalue_kind = {
  LL.clens_cond = (fun _ -> True);
  LL.clens_get = (fun (x: application_record_v_payload) -> tag_of_application_record_v_payload x);
}
module Zeta.Formats.Aux.Application_record_v_payload

(* 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.Base
module LSZ = LowParse.SLow.Base
module LPI = LowParse.Spec.AllIntegers
module LL = LowParse.Low.Base
module L = FStar.List.Tot
module B = LowStar.Buffer
module BY = FStar.Bytes
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST

open Zeta.Formats.Aux.Dvalue_kind
open Zeta.Formats.Aux.Application_value

type application_record_v_payload =
  | V_payload_DValueNone of unit
  | V_payload_DValueSome of application_value

inline_for_extraction let tag_of_application_record_v_payload (x:application_record_v_payload) : dvalue_kind = match x with
  | V_payload_DValueNone _ -> DValueNone
  | V_payload_DValueSome _ -> DValueSome

inline_for_extraction noextract let application_record_v_payload_parser_kind = LP.strong_parser_kind 1 2041 None

noextract val application_record_v_payload_parser: LP.parser application_record_v_payload_parser_kind application_record_v_payload

noextract val application_record_v_payload_serializer: LP.serializer application_record_v_payload_parser

noextract val application_record_v_payload_bytesize (x:application_record_v_payload) : GTot nat

noextract val application_record_v_payload_bytesize_eq (x:application_record_v_payload) : Lemma (application_record_v_payload_bytesize x == Seq.length (LP.serialize application_record_v_payload_serializer x))

val application_record_v_payload_size32: LSZ.size32 application_record_v_payload_serializer

val application_record_v_payload_validator: LL.validator application_record_v_payload_parser

val application_record_v_payload_jumper: LL.jumper application_record_v_payload_parser

val application_record_v_payload_reader : LL.leaf_reader application_record_v_payload_parser

val application_record_v_payload_lserializer: LL.serializer32 application_record_v_payload_serializer

val lemma_valid_application_record_v_payload_valid_dvalue_kind: #rrel: _ -> #rel: _ -> s:LL.slice rrel rel -> pos:U32.t -> h:HyperStack.mem -> Lemma
  (requires LL.valid application_record_v_payload_parser h s pos)
  (ensures (LL.valid dvalue_kind_parser h s pos /\ LL.contents dvalue_kind_parser h s pos == tag_of_application_record_v_payload (LL.contents application_record_v_payload_parser h s pos)))
  [SMTPat (LL.valid application_record_v_payload_parser h s pos)]
/
Zeta.Formats.Aux.Dvalue_kind.fsti.checked Zeta.Formats.Aux.Application_value.fsti.checked prims.fst.checked LowStar.Buffer.fst.checked LowParse.Spec.Base.fsti.checked LowParse.Spec.AllIntegers.fst.checked LowParse.SLow.Base.fst.checked LowParse.Low.Base.fst.checked FStar.UInt8.fsti.checked FStar.UInt64.fsti.checked FStar.UInt32.fsti.checked FStar.UInt16.fsti.checked FStar.Seq.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.Application_record_v_payload.fsti
LowParse.Low.Base.Spec.clens Zeta.Formats.Aux.Application_record_v_payload.application_record_v_payload
  Zeta.Formats.Aux.Dvalue_kind.dvalue_kind
LowParse.Low.Base.Spec.Mkclens Zeta.Formats.Aux.Application_record_v_payload.application_record_v_payload Zeta.Formats.Aux.Dvalue_kind.dvalue_kind Prims.l_True Zeta.Formats.Aux.Application_record_v_payload.tag_of_application_record_v_payload
let application_record_v_payload_clens_tag:LL.clens application_record_v_payload dvalue_kind =
  
{
  LL.clens_cond = (fun _ -> True);
  LL.clens_get = (fun (x: application_record_v_payload) -> tag_of_application_record_v_payload x)
}