NLAlib.ShiftedQR.regularizeDraw_pwrites
Library · theorem
Standard rounding
One perturbation as a probabilistic block: under an exact polar sampler on a stream s₀ uniform on [0, 1], the perturbation of pair i keeps NLAlib.ShiftedQR.DrawsInv from i to i + 1, except with probability at most \varphi/(2k) (regularize_bad_window_le), for \eta = R\sqrt{\varphi/(2k)} and \lambda's whose distinct values are 4R apart. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine, on their scratch.
NLAlib.ShiftedQR.regularizeDraw_pwrites {O Q : Type} [Ops.Has Ops.ScalarOp O]
[Ops.Has ShiftedQR.DiskSampleOp O] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ}
(hS : Ops.IsScalar M I) (hM : Ops.StdModel u id M) {law : ℕ → Measure ℝ} {s₀ : ℕ}
(hD : ShiftedQR.IsPolarDiskSampler s₀ I) (hU : law s₀ = ℙ.restrict (Set.Icc 0 1)) {k N : ℕ}
(hk : 0 < k) (Lam : (Fin k → ℂ) → Prop) (e : Fin N → ℂ) {β R φ : ℝ} (hR : 0 < R) (hφ : 0 ≤ φ)
(hφ1 : φ ≤ 1) (hsep : ∀ (i j : Fin N), e i ≠ e j → 4 * R ≤ ‖e i - e j‖) {rd z s : ℕ × ℕ}
(hzs : Ops.Fp.Disj (Ops.Store.inBlock z.1 z.2 2) (Ops.Store.inBlock s.1 s.2 (2 * k)))
(hzr : Ops.Fp.Disj (Ops.Store.inBlock z.1 z.2 2) (Ops.Store.inBlock rd.1 rd.2 1))
(hsr : Ops.Fp.Disj (Ops.Store.inBlock s.1 s.2 (2 * k)) (Ops.Store.inBlock rd.1 rd.2 1))
(i : Fin k) :
Ops.PWrites law I ShiftedQR.regularizeDraw
(Ops.Env.frame [] [rd, (s.1, s.2 + 2 * ↑i), z, (s.1, s.2 + 2 * ↑i)])
(Ops.Store.inBlock s.1 s.2 (2 * k) ⊔ Ops.Store.inBlock z.1 z.2 2)
(ShiftedQR.DrawsInv u β R (R * √(φ / (2 * ↑k))) Lam e rd z s ↑i)
(ShiftedQR.DrawsInv u β R (R * √(φ / (2 * ↑k))) Lam e rd z s (↑i + 1)) (φ / (2 * ↑k))Import NLAlib.Eigensolvers.ShiftedQR.RoundedRegularizeDraws.