NLAlib.SmallEig.oneEigRound_pwrites
Library · theorem
Standard rounding
A round of OneEig as a probabilistic block: on a scalar machine in the standard model at 0 \le \boldsymbol{u} \le 1/5000 with inde\mathbf{x} literals, the literals 0 and 1 exact, exact comparisons and an exact polar sampler on a stream sU uniform on [0, 1], with DistSpec accurate (NLAlib.SmallEig.DistSpecAccurateOn) on the points of modulus at most 10\Sigma at distance at least \eta_1 from the d_i, \lvert d_i\rvert \le \Sigma, 0 < \eta_2 \le 0.02\,\Sigma, \beta > 0, \eta_2 + 60\boldsymbol{u}\Sigma \le 0.027\,\beta, \eta_1 + 40\boldsymbol{u}\Sigma \ge 0, distinct d_i at distance at least 2(\eta_1 + 40\boldsymbol{u}\Sigma + \eta_2) and the word \eta_2 at qw[4] of at least si\mathbf{x} words: round i from the loop invariant NLAlib.SmallEig.OneEigLoopInv with an estimate above 0.9\beta ends in the invariant before round i + 1, writing only the point, the flag and the scratch, except with probability at most 6((\eta_1 + 40\boldsymbol{u}\Sigma)/\eta_2)^2. A fragment: its tree runs only inside the tree of NLAlib.SmallEig.oneEig. A fragment of the tree NLAlib.SmallEig.oneEig.
NLAlib.SmallEig.oneEigRound_pwrites {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
[Ops.Has ShiftedQR.DiskSampleOp O] [Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ}
{I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar M I) (hM : Ops.StdModel u id M) (hu0 : 0 ≤ u)
(hu : u ≤ 1 / 5000) (hL : Ops.IsIndexLit M I) (h0 : M.lit 0 = 0) (h1 : M.lit 1 = 1)
(hCmp : Ops.IsCmp id I) {sU : ℕ} (hDisk : ShiftedQR.IsPolarDiskSampler sU I) {law : ℕ → Measure ℝ}
(hU : law sU = ℙ.restrict (Set.Icc 0 1)) {n m q L : ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
{d : Fin (n + 1) → ℂ} {S β η₁ η₂ : ℝ}
(hDS :
SmallEig.DistSpecAccurateOn I H d m q {p | ‖p‖ ≤ 10 * S ∧ ∀ (i : Fin (n + 1)), η₁ ≤ ‖d i - p‖})
(hdS : ∀ (i : Fin (n + 1)), ‖d i‖ ≤ S) (hη₂ : 0 < η₂) (hη₂S : η₂ ≤ 2e-2 * S) (hβ : 0 < β)
(hηr : η₂ + 60 * u * S ≤ 27e-3 * β) (hη₁ε : 0 ≤ η₁ + 40 * u * S)
(hsep : ∀ (i j : Fin (n + 1)), d i ≠ d j → 2 * (η₁ + 40 * u * S + η₂) ≤ ‖d i - d j‖) {qs : List ℝ}
(hqs : 6 ≤ qs.length) (hq4 : qs.getD 4 0 = η₂) {h qw lam f : ℕ × ℕ} (i : ℕ) :
Ops.PWrites law I SmallEig.oneEigRound
(Ops.Env.frame [n + 1, m, q]
[h, qw, (L + 5, 0), lam, (L, 0), f, (L + 1, 0), (L + 2, 0), (L + 3, 0), (L + 4, 0),
(L + 6, 0)])
(Ops.Store.inBlock lam.1 lam.2 2 ⊔ Ops.Store.inBlock f.1 f.2 1 ⊔ Ops.Fp.above L)
(fun μ ↦
SmallEig.OneEigLoopInv M H d qs h qw lam f L β η₁ η₂ (η₂ + 60 * u * S) i μ ∧
∃ v, μ.store.get L 0 = some v ∧ 0.9 * β < v)
(SmallEig.OneEigLoopInv M H d qs h qw lam f L β η₁ η₂ (η₂ + 60 * u * S) (i + 1))
(6 * ((η₁ + 40 * u * S) / η₂) ^ 2)Import NLAlib.Eigensolvers.SmallEig.OneEig.