NLAlib.Ops.Examples.runsLaw_npow_link
Library · theorem
Random tape
The corollary for the linked noisy power iteration. Over every interpretation of the exact operations and the scalar draw, with draws that decode to a standard law (the standard Gaussian), the program obtained by linking the noisy product and then the vector draw runs, for every sample, within the pushed-forward counts and n + 1 scratch cells; the result is unbiased, 𝔼 x = A^(2k) x₀, and 𝔼 ‖x‖² ≤ (a + n σ²)^(2k) ‖x₀‖². One application of the law-level linking lemma.
NLAlib.Ops.Examples.runsLaw_npow_link {K Tst : Type} [Inhabited K] {n : ℕ} [MeasurableSpace K]
{dec : K → ℝ} {A : Matrix (Fin n) (Fin n) ℝ} {σ : ℚ} {a : ℝ} {I : Ops.Interp Ops.ROp Tst K}
(hI : Ops.IsRandBase dec A I) (hloc : ∀ (o : Ops.ROp), I.TapeLocal o (Ops.randWindow o))
{law : ℕ → Measure K} (hdec : Measurable dec)
(hstd : Ops.IsStdLaw (Measure.map dec (law Ops.Stream.gauss))) (ha : 0 ≤ a)
(hA : ∀ (v : Fin n → ℝ), Ops.sqNorm (A *ᵥ v) ≤ a * Ops.sqNorm v) {Ω : Type}
{mΩ : MeasurableSpace Ω} {P : Measure Ω} {ξ : Ω → Ops.Tape K} (h : Ops.IsTapeLaw law P ξ) {k : ℕ}
{x : ℕ × ℕ} {m : Ops.Mem K} {xs₀ : List K} (hx : m.store.readBlock x.1 x.2 n = some xs₀)
(hxl : x.2 + n ≤ m.store.len x.1) (hlx : x.1 < List.length m.store) :
Ops.ConditionalRunsLaw I (fun x x_1 ↦ 0) ξ
(Ops.Stmt.link (Ops.Examples.noisyDraws σ).table Ops.Examples.npow)
(Ops.Env.frame [k, n] [x, x]) m
(k •
2 •
(Ops.Count.one (Ops.ROp.operator Ops.OperatorOp.matvec) [n, n] +
(n • Ops.Count.one Ops.ROp.draw [] +
(Ops.Count.one Ops.ROp.nrm2 [n] +
(Ops.Count.one (Ops.ROp.mulc σ) [] + Ops.Count.one Ops.ROp.axpy [n])))))
(n + (n + 1)) (Ops.Examples.NpowPost dec n k x m) fun X ↦
(∀ (i : Fin n), ∫ (ω : Ω), X ω i ∂P = (A ^ (2 * k) *ᵥ Ops.decv dec n xs₀) i) ∧
∫ (ω : Ω), Ops.sqNorm (X ω) ∂P ≤ (a + ↑n * ↑σ ^ 2) ^ (2 * k) * Ops.sqNorm (Ops.decv dec n xs₀)Import NLAlib.Ops.Examples.NoisyLinked.