NLAlib.SmallEig.oneEigStart_step
Library · theorem
A good start of OneEig starts the run: on a scalar machine with index literals, the literal 0 exact and an exact polar sampler on the stream sU, with DistSpec accurate on the points of modulus at most 10\Sigma at distance at least \eta_1 from the d_i, 0 \le \eta_2 \le 0.02\,\Sigma, \varepsilon \ge 0 and the word \eta_2 at qw[4]: from the frame NLAlib.SmallEig.OneEigFrame, if the window at the current position is in the unit square and its polar sample is at distance at least \eta_1 + \varepsilon from every d_i, the start writes only the point, the flag and the scratch and ends in the loop invariant before round 0.
NLAlib.SmallEig.oneEigStart_step {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) {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 : 0 ≤ η₂) (hη₂S : η₂ ≤ 2e-2 * S) (hε : 0 ≤ ε) {qs : List ℝ} (hqs : 6 ≤ qs.length)
(hq4 : qs.getD 4 0 = η₂) {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {h qw lam f : ℕ × ℕ}
(hF : SmallEig.OneEigFrame H qs h qw lam f L μ)
(hgood :
τ.windowFn sU μ.pos 2 ∉
{x | (∃ k, x k ∉ Set.Icc 0 1) ∨ ∃ i, ‖polarDisk 0 η₂ x - d i‖ < η₁ + ε}) :
Ops.Writes Ops.Mode.total 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.OneEigLoopInv M H d qs h qw lam f L β η₁ η₂ η 0) μImport NLAlib.Eigensolvers.SmallEig.OneEig.