val lemma_serialize_asn1_ASN1_NULL_size
  (value: datatype_of_asn1_type ASN1_NULL)
: Lemma (
  Seq.length (serialize serialize_asn1_ASN1_NULL value) == 0)
val lemma_serialize_asn1_ASN1_NULL_size
  (value: datatype_of_asn1_type ASN1_NULL)
: Lemma (
  Seq.length (serialize serialize_asn1_ASN1_NULL value) == 0)
let lemma_serialize_asn1_ASN1_NULL_size value
= parser_kind_prop_equiv parse_asn1_ASN1_NULL_kind parse_asn1_ASN1_NULL;
  lemma_serialize_asn1_ASN1_NULL_unfold value
module ASN1.Spec.Value.NULL

open ASN1.Spec.Base

open ASN1.Base
open ASN1.Spec.Tag
open ASN1.Spec.Length

(* NOTE: Read after `ASN1.Spec.Tag`, `ASN1.Spec.Length` *)
(* NOTE: This module defines:
         1) The ASN1 `ASN1_NULL` Value Parser and Serializer
         2) The ASN1 `ASN1_NULL` TLV Parser and Serializer
*)

///////////////////////////////////////////////////////////////
////  ASN1 `ASN1_NULL` Value Parser/Serializer
///////////////////////////////////////////////////////////////

///
/// ASN1 `ASN1_NULL` value parser parses nothing and returns `()`
/// using the `parse_ret` combinator
///
let parse_asn1_ASN1_NULL
= parse_ret
  (* v *) ()

///
/// ASN1 `ASN1_NULL` value parser serialize `()` to empty bytes
/// using the `serialize_ret` combinator
///
let serialize_asn1_ASN1_NULL
= serialize_ret
  (* v *) ()
  (*prf*) (fun n -> ())

///
/// Lemmas
///

/// Reveal the computation of serialize
let lemma_serialize_asn1_ASN1_NULL_unfold value
= ()
/
prims.fst.checked FStar.UInt32.fsti.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked ASN1.Spec.Tag.fsti.checked ASN1.Spec.Length.fsti.checked ASN1.Spec.Base.fst.checked ASN1.Base.fst.checked
ASN1.Spec.Value.NULL.fst
value: ASN1.Base.datatype_of_asn1_type ASN1.Base.ASN1_NULL
  -> FStar.Pervasives.Lemma
    (ensures
      FStar.Seq.Base.length (LowParse.Spec.Base.serialize ASN1.Spec.Value.NULL.serialize_asn1_ASN1_NULL
            value) ==
      0)
ASN1.Base.datatype_of_asn1_type ASN1.Base.ASN1_NULL ASN1.Spec.Value.NULL.lemma_serialize_asn1_ASN1_NULL_unfold Prims.unit LowParse.Spec.Base.parser_kind_prop_equiv ASN1.Spec.Value.NULL.parse_asn1_ASN1_NULL_kind ASN1.Spec.Value.NULL.parse_asn1_ASN1_NULL
let lemma_serialize_asn1_ASN1_NULL_size value =
  
parser_kind_prop_equiv parse_asn1_ASN1_NULL_kind parse_asn1_ASN1_NULL;
lemma_serialize_asn1_ASN1_NULL_unfold value