val encode_asn1_boolean (x: bool) : Tot (b: byte{b == synth_asn1_boolean_inverse x})
val encode_asn1_boolean (x: bool) : Tot (b: byte{b == synth_asn1_boolean_inverse x})
let encode_asn1_boolean
  (x: bool)
: Tot (b: byte{b == synth_asn1_boolean_inverse x})
= match x with
  | true  -> 0xFFuy
  | false -> 0x00uy
module ASN1.Low.Value.BOOLEAN
///
/// ASN.1 Low
///
open LowParse.Low.Base
open LowParse.Low.Combinators
open LowParse.Low.Int

open ASN1.Base
open ASN1.Spec.Value.BOOLEAN
open ASN1.Low.Base

module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
open FStar.Integers

(* NOTE: Read after `ASN1.Spec.Tag`, `ASN1.Spec.Length` *)

friend ASN1.Spec.Value.BOOLEAN

///
/// Encoding a tag into bytes at low-level, implementation of `synth_..._inverse`

///
/
prims.fst.checked LowStar.Buffer.fst.checked LowParse.Low.Int.fsti.checked LowParse.Low.Combinators.fsti.checked LowParse.Low.Base.fst.checked FStar.UInt8.fsti.checked FStar.UInt32.fsti.checked FStar.Seq.fst.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked FStar.Integers.fst.checked FStar.HyperStack.ST.fsti.checked FStar.HyperStack.fst.checked ASN1.Spec.Value.BOOLEAN.fst.checked ASN1.Spec.Value.BOOLEAN.fst.checked ASN1.Spec.Tag.fsti.checked ASN1.Spec.Length.fsti.checked ASN1.Low.Tag.fsti.checked ASN1.Low.Length.fsti.checked ASN1.Low.Base.fst.checked ASN1.Base.fst.checked
ASN1.Low.Value.BOOLEAN.fst
x: Prims.bool -> b: ASN1.Low.Base.byte{b == ASN1.Spec.Value.BOOLEAN.synth_asn1_boolean_inverse x}
Prims.bool FStar.UInt8.__uint_to_t ASN1.Low.Base.byte Prims.eq2 ASN1.Spec.Value.BOOLEAN.synth_asn1_boolean_inverse
let encode_asn1_boolean (x: bool) : Tot (b: byte{b == synth_asn1_boolean_inverse x}) =
  
match x with
| true -> 0xFFuy
| false -> 0x00uy