val lemma_serialize_x509_version_payload_size : x: X509.BasicFields.Version.x509_version_payload_t -> Prims.unit
let lemma_serialize_x509_version_payload_size
  (x: x509_version_payload_t)
= lemma_serialize_asn1_integer_TLV_size x
module X509.BasicFields.Version

open LowParse.Low.Base

open ASN1.Spec
open ASN1.Low

open X509.Base

open FStar.Integers

#set-options "--z3rlimit 32 --fuel 0 --ifuel 0"

let filter_x509_version
  (x: datatype_of_asn1_type INTEGER)
: GTot bool
= 0l <= x && x <= 2l

let x509_version_payload_t: Type
= parse_filter_refine filter_x509_version

inline_for_extraction noextract
let parse_x509_version_payload_kind
: parser_kind
= parse_filter_kind (parse_asn1_TLV_kind_of_type INTEGER)

val parse_x509_version_payload
: parser parse_x509_version_payload_kind x509_version_payload_t

val serialize_x509_version_payload
: serializer parse_x509_version_payload

let lemma_serialize_x509_version_payload_unfold
  (x: x509_version_payload_t)
= lemma_serialize_asn1_integer_TLV_unfold x
/
X509.Base.fst.checked prims.fst.checked LowParse.Low.Base.fst.checked FStar.UInt8.fsti.checked FStar.UInt32.fsti.checked FStar.Pervasives.fsti.checked FStar.Integers.fst.checked FStar.Int32.fsti.checked FStar.Classical.fsti.checked ASN1.Spec.fst.checked ASN1.Low.fst.checked
X509.BasicFields.Version.fsti
x: X509.BasicFields.Version.x509_version_payload_t -> Prims.unit
X509.BasicFields.Version.x509_version_payload_t ASN1.Spec.Value.INTEGER.lemma_serialize_asn1_integer_TLV_size Prims.unit
let lemma_serialize_x509_version_payload_size (x: x509_version_payload_t) =
  
lemma_serialize_asn1_integer_TLV_size x