Documentation

VCVio.OracleComp.DistSemantics.BitVec

Distribution Semantics for Computations with Bit Vectors #

This file contains lemmas for probEvent and probOutput of computations involving BitVec.

@[simp]
theorem OracleComp.probOutput_bitVec_ofFin_map {ι : Type} {spec : OracleSpec ι} [spec.FiniteRange] {n : } (oa : OracleComp spec (Fin (2 ^ n))) (x : BitVec n) :
@[simp]
theorem OracleComp.probOutput_bitVec_toFin_map {ι : Type} {spec : OracleSpec ι} [spec.FiniteRange] {n : } (oa : OracleComp spec (BitVec n)) (x : Fin (2 ^ n)) :
[=x|BitVec.toFin <$> oa] = [={ toFin := x }|oa]

Choose a random bit-vector by converting a random number in number between 0 and 2 ^ n

Equations