NLAlib.SpectralBisection.uniformSample_idealTape
Library · theorem
The ideal uniform sampler is exactly multiplication of the actual stored sample word. The rounding is fixed across positions, and the slot lies in the level's uniform batch.
NLAlib.SpectralBisection.uniformSample_idealTape {K : Type} (M : Ops.Machine K) (roundUnif : ℝ → K)
(ideal : Ops.Tape ℝ) (stored : Ops.Tape K)
(hround : ∀ (p : ℕ), stored p Ops.Stream.unif = roundUnif (ideal p Ops.Stream.unif))
(base n d lo : ℕ) (hlo : lo < n) (scale : K) :
M.uniformSample roundUnif scale
(SpectralBisection.idealTape n (ideal.shift base) Computation.Dist.uniform (n * d + lo)) =
M.mul scale (stored (base + (d * SpectralBisection.levelSampleSize n + lo)) Ops.Stream.unif)Import NLAlib.Eigensolvers.SpectralBisection.StoredSamples.