NLA-lib Explorer

NLAlib.ShiftedQR.regularizeDraws_pwrites

Library · theorem

Standard rounding

The k perturbations as a probabilistic block: under a measurable, tape-local interpretation with an exact polar sampler on a stream s₀ uniform on [0, 1], from k \ge 1 pairs c_j at s within \beta of targets \lambda_j and the radius word R > 0 at rd, NLAlib.ShiftedQR.regularizeDraws writes only the pairs and the scratch pair z and, except with probability at most \varphi/2, 0 \le \varphi \le 1, stores pairs within \beta + R + \delta_j of the \lambda_j and at distance at least R\sqrt{\varphi/(2k)} - \delta_j from every e_l, \delta_j = 2\boldsymbol{u}(\lvert\lambda_j\rvert + \beta + R), pro\mathbf{v}ided the distinct e_l are 4R apart ([BanksGarzaVargasSrivastava2022, Lemma 3.10], one draw at a time). Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine, on their scratch.

NLAlib.ShiftedQR.regularizeDraws_pwrites {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has ShiftedQR.DiskSampleOp O] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ}
  (hI : I.IsMeasurable) {win : O → List ℕ → ℕ} (hloc : ∀ (o : O), I.TapeLocal o (win o))
  (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)) :
  Ops.PWrites law I ShiftedQR.regularizeDraws (Ops.Env.frame [k] [rd, z, s])
    (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 0)
    (ShiftedQR.DrawsInv u β R (R * √(φ / (2 * ↑k))) Lam e rd z s k) (φ / 2)

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedRegularizeDraws.