NLAlib.SmallEig.oneEigStart_pwrites
Library · theorem
The start of OneEig as a probabilistic block: on a scalar machine with index literals, the literal 0 exact 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, 0 < \eta_2 \le 0.02\,\Sigma, \varepsilon \ge 0, \eta_1 + \varepsilon \ge 0, distinct d_i at distance at least 2(\eta_1 + \varepsilon + \eta_2) and the word \eta_2 at qw[4] of at least six words: from the frame NLAlib.SmallEig.OneEigFrame, except with probability at most ((\eta_1 + \varepsilon)/\eta_2)^2, the start writes only the point, the flag and the scratch and ends in the loop invariant NLAlib.SmallEig.OneEigLoopInv before round 0. A fragment: its tree runs only inside the tree of NLAlib.SmallEig.oneEig. A fragment of the tree NLAlib.SmallEig.oneEig.
NLAlib.SmallEig.oneEigStart_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 ℝ} (hS : Ops.IsScalar M I) (hL : Ops.IsIndexLit M I) (h0 : M.lit 0 = 0)
{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‖})
(hη₂ : 0 < η₂) (hη₂S : η₂ ≤ 2e-2 * S) (hε : 0 ≤ ε) (hη₁ε : 0 ≤ η₁ + ε)
(hsep : ∀ (i j : Fin (n + 1)), d i ≠ d j → 2 * (η₁ + ε + η₂) ≤ ‖d i - d j‖) {qs : List ℝ}
(hqs : 6 ≤ qs.length) (hq4 : qs.getD 4 0 = η₂) {h qw lam f : ℕ × ℕ} :
Ops.PWrites law I SmallEig.oneEigStart
(Ops.Env.frame [n + 1, m, q] [h, qw, lam, (L, 0), f, (L + 5, 0), (L + 6, 0)])
(Ops.Store.inBlock lam.1 lam.2 2 ⊔ Ops.Store.inBlock f.1 f.2 1 ⊔ Ops.Fp.above L)
(SmallEig.OneEigFrame H qs h qw lam f L)
(SmallEig.OneEigLoopInv M H d qs h qw lam f L β η₁ η₂ η 0) (((η₁ + ε) / η₂) ^ 2)Import NLAlib.Eigensolvers.SmallEig.OneEig.