NLAlib.SmallEig.oneEigPoint_best
Library · theorem
One candidate point (NLAlib.SmallEig.oneEigPoint) with the scratch from L, accurately: on a scalar machine with index literals, the literals 0 and 1 exact and exact comparisons, with DistSpec accurate on the candidate NLAlib.SmallEig.oneEigPointWord of the estimate \tau, the direction j, the point s and the sample w read, it writes only Pt, Tc, Bt and K[1], keeps the position and moves the best candidate (NLAlib.SmallEig.OneEigBest) from j to j + 1.
NLAlib.SmallEig.oneEigPoint_best {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
[Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar M I)
(hL : Ops.IsIndexLit M I) (h1 : M.lit 1 = 1) (hCmp : Ops.IsCmp id I) {n m q j L : ℕ} (hj : j < 6)
{H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {d : Fin (n + 1) → ℂ} {P : Set ℂ}
(hDS : SmallEig.DistSpecAccurateOn I H d m q P) {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {h lam : ℕ × ℕ}
(hh : h.1 < L) (hlam : lam.1 < L) (hlen : List.length μ.store = L + 7)
(h2 : μ.store.len (L + 2) = 2) (h3 : μ.store.len (L + 3) = 1) (h4 : μ.store.len (L + 4) = 3)
(h6 : μ.store.len (L + 6) = 2) (hH : HoldsMatrix h H μ.store) {t₀ bar θ : ℝ} {s w : ℂ}
(hT : μ.store.get L 0 = some t₀)
(hD : ∀ i < 12, μ.store.get (L + 5) i = some (SmallEig.oneEigDirWords M i))
(hs : μ.store.readBlock lam.1 lam.2 2 = some [s.re, s.im])
(hw : μ.store.readBlock (L + 1) 0 2 = some [w.re, w.im])
(hP : SmallEig.oneEigPointWord M t₀ (SmallEig.oneEigDir M j) s w ∈ P)
(hB :
SmallEig.OneEigBest d L bar θ
(fun k ↦ SmallEig.oneEigPointWord M t₀ (SmallEig.oneEigDir M k) s w) j μ.store) :
Ops.Writes Ops.Mode.total I τ SmallEig.oneEigPoint
(Ops.Env.frame [n + 1, m, q, j]
[h, (L, 0), (L + 5, 0), lam, (L + 1, 0), (L + 2, 0), (L + 3, 0), (L + 4, 0), (L + 6, 0)])
(Ops.Store.inBlock (L + 2) 0 2 ⊔ Ops.Store.inBlock (L + 3) 0 1 ⊔ Ops.Store.inBlock (L + 4) 0 3 ⊔
Ops.Store.inBlock (L + 6) 1 1)
(fun μ' ↦
μ'.pos = μ.pos ∧
SmallEig.OneEigBest d L bar θ
(fun k ↦ SmallEig.oneEigPointWord M t₀ (SmallEig.oneEigDir M k) s w) (j + 1) μ'.store)
μImport NLAlib.Eigensolvers.SmallEig.OneEigParts.