NLAlib.SpectralBisection.nodeScalars_writes
Library · theorem
The first five scalar words of a node retain the rounded half-radius, its negation, the machine literal of L+d, the rounded radius quotient and the sampled shift. All scalar operations remain explicit; a division requires no meta-level successful-run assumption. A fragment of NLAlib.SpectralBisection.bisectionRoutine.
NLAlib.SpectralBisection.nodeScalars_writes {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.IndexOp Op] {M : Ops.Machine K} {I : Ops.Interp Op Tst K} (hS : Ops.IsScalar M I)
(hL : Ops.IsIndexLit M I) {τ : Ops.Tape K} {μ : Ops.Mem K} {L d lo : ℕ} {lv c su t : ℕ × ℕ}
(R two U : K) (hR : μ.store.get lv.1 (lv.2 + 2 * d) = some R)
(htwo : μ.store.get c.1 (c.2 + 1) = some two) (hU : μ.store.get su.1 (su.2 + lo) = some U)
(hroom : t.2 + 5 ≤ μ.store.len t.1)
(hsep :
Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 5)
(Ops.Fp.cells [(lv.1, lv.2 + 2 * d), (su.1, su.2 + lo)])) :
Ops.Writes Ops.Mode.total I τ SpectralBisection.nodeScalars
(Ops.Env.frame [L, d, lo] [lv, c, su, t])
(Ops.Fp.blocks [t, (t.1, t.2 + 2), (t.1, t.2 + 3)] [2, 1, 2])
(fun μ' ↦
μ'.pos = μ.pos ∧
μ'.readBlocks [t, (t.1, t.2 + 2), (t.1, t.2 + 3)] [2, 1, 2] =
some
[[M.div R two, M.neg (M.div R two)], [M.lit ↑(L + d)],
[M.div R (M.lit ↑(L + d)), M.mul (M.div R (M.lit ↑(L + d))) U]])
μImport NLAlib.Eigensolvers.SpectralBisection.NodeScalars.