NLAlib.Ops.StdModel.isUnifSampler_uniformSample
Library · theorem
Standard rounding
A uniform seed rounded with relative error c*u, kept in the unit interval, and multiplied by a scalar machine obeying the standard model gives sampler error (c+1)*u. The extra radius-preservation assumption concerns multiplication itself, for every word of modulus at most one; it does not assert an algorithm output or a successful execution.
NLAlib.Ops.StdModel.isUnifSampler_uniformSample {K : Type} {M : Ops.Machine K} {dec : K → ℝ}
{u c : ℝ} (h : Ops.StdModel u dec M) (hu : 0 ≤ u) (hc : 0 ≤ c) (roundUnif : ℝ → K)
(hround : ∀ (v : ℝ), |v| ≤ 1 → |dec (roundUnif v) - v| ≤ c * u * |v|)
(hrange : ∀ v ∈ Set.Icc (-1) 1, dec (roundUnif v) ∈ Set.Icc (-1) 1)
(hmul : ∀ (x y : K), |dec y| ≤ 1 → |dec (M.mul x y)| ≤ |dec x|) :
IsUnifSampler dec ((c + 1) * u) 0 (M.uniformSample roundUnif)Import NLAlib.Matrix.FinitePrecision.OpsSampling.