val certificateStatusRequest_clens_tag:LL.clens certificateStatusRequest certificateStatusType
val certificateStatusRequest_clens_tag:LL.clens certificateStatusRequest certificateStatusType
let certificateStatusRequest_clens_tag : LL.clens certificateStatusRequest certificateStatusType = {
  LL.clens_cond = (fun _ -> True);
  LL.clens_get = (fun (x: certificateStatusRequest) -> tag_of_certificateStatusRequest x);
}
module MiTLS.Parsers.CertificateStatusRequest

(* 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 LS = LowParse.SLow.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 MiTLS.Parsers.CertificateStatusType
open MiTLS.Parsers.OCSPStatusRequest

type certificateStatusRequest =
  | Csr_ocsp of oCSPStatusRequest
  | Csr_Unknown_certificateStatusType: v:certificateStatusType_repr{not (known_certificateStatusType_repr v)} -> x:(squash False) -> certificateStatusRequest

inline_for_extraction let tag_of_certificateStatusRequest (x:certificateStatusRequest) : certificateStatusType = match x with
  | Csr_ocsp _ -> Ocsp
  | Csr_Unknown_certificateStatusType v _ -> Unknown_certificateStatusType v

inline_for_extraction noextract let certificateStatusRequest_parser_kind = LP.strong_parser_kind 5 131075 None

noextract val certificateStatusRequest_parser: LP.parser certificateStatusRequest_parser_kind certificateStatusRequest

noextract val certificateStatusRequest_serializer: LP.serializer certificateStatusRequest_parser

noextract val certificateStatusRequest_bytesize (x:certificateStatusRequest) : GTot nat

noextract val certificateStatusRequest_bytesize_eq (x:certificateStatusRequest) : Lemma (certificateStatusRequest_bytesize x == Seq.length (LP.serialize certificateStatusRequest_serializer x))

val certificateStatusRequest_parser32: LS.parser32 certificateStatusRequest_parser

val certificateStatusRequest_serializer32: LS.serializer32 certificateStatusRequest_serializer

val certificateStatusRequest_size32: LSZ.size32 certificateStatusRequest_serializer

val certificateStatusRequest_validator: LL.validator certificateStatusRequest_parser

val certificateStatusRequest_jumper: LL.jumper certificateStatusRequest_parser

val lemma_valid_certificateStatusRequest_valid_certificateStatusType: #rrel: _ -> #rel: _ -> s:LL.slice rrel rel -> pos:U32.t -> h:HyperStack.mem -> Lemma
  (requires LL.valid certificateStatusRequest_parser h s pos)
  (ensures (LL.valid certificateStatusType_parser h s pos /\ LL.contents certificateStatusType_parser h s pos == tag_of_certificateStatusRequest (LL.contents certificateStatusRequest_parser h s pos)))
  [SMTPat (LL.valid certificateStatusRequest_parser h s pos)]
/
prims.fst.checked MiTLS.Parsers.OCSPStatusRequest.fsti.checked MiTLS.Parsers.CertificateStatusType.fsti.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
MiTLS.Parsers.CertificateStatusRequest.fsti
LowParse.Low.Base.Spec.clens MiTLS.Parsers.CertificateStatusRequest.certificateStatusRequest
  MiTLS.Parsers.CertificateStatusType.certificateStatusType
LowParse.Low.Base.Spec.Mkclens MiTLS.Parsers.CertificateStatusRequest.certificateStatusRequest MiTLS.Parsers.CertificateStatusType.certificateStatusType Prims.l_True MiTLS.Parsers.CertificateStatusRequest.tag_of_certificateStatusRequest
let certificateStatusRequest_clens_tag:LL.clens certificateStatusRequest certificateStatusType =
  
{
  LL.clens_cond = (fun _ -> True);
  LL.clens_get = (fun (x: certificateStatusRequest) -> tag_of_certificateStatusRequest x)
}