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))
:
Choose a random bit-vector by converting a random number in number between 0
and 2 ^ n