NLAlib.SpectralBisection.upNode_writes_shiftResult
Library · theorem
A one-child outcome is reconstructed into its child basis and shifted eigenvalues. The scalar shift words are the actual upward half-radius computation, and constructor literals decode exactly within their explicitly declared integer range. A fragment of NLAlib.SpectralBisection.bisectionRoutine.
NLAlib.SpectralBisection.upNode_writes_shiftResult {K Op Tst : Type} [Inhabited K]
[Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.MatrixOp Op] [Ops.Has Ops.IdxTst Tst] {M : Ops.Machine K}
{dec : K → ℝ} {I : Ops.Interp Op Tst K} (hS : Ops.IsScalar M I) (hQ : Ops.IsToNat dec I)
{τ : Ops.Tape K} {m : Ops.Mem K} {n d lo k : ℕ} {R sigma : K} {side : Bool}
{ma ua qa ea sz kd kp t : ℕ × ℕ} {A : Matrix (Fin k) (Fin k) (K × K)}
(child : Matrix (Fin k) (Fin k) (K × K) × (Fin k → K))
(hStep :
SpectralBisection.StoresStep M R n d lo ma ua qa ea sz kd kp (EighStep.shift side A sigma) m)
(hChild : SpectralBisection.StoresResult n (d + 1) lo ua ea child m.store)
(hLit : Ops.IsExactNatLit dec M (max n 4)) (hk : k ≤ n) (hl : m.Live [ua, qa, ea, kd, kp, t])
(ht :
m.store.get t.1 t.2 = some (M.div R (M.lit 2)) ∧
m.store.get t.1 (t.2 + 1) = some (M.neg (M.div R (M.lit 2))))
(hroom :
m.Room (SpectralBisection.resultOperands n d lo ua ea) (SpectralBisection.resultLengths k))
(hap :
Ops.Fp.Apart (SpectralBisection.upNodeRegions n d lo ua qa ea kd kp t)
(SpectralBisection.upNodeRegionLengths n k)) :
Ops.Writes Ops.Mode.total I τ SpectralBisection.upNode
(Ops.Env.frame [n, d, lo, k] [ua, qa, ea, kd, kp, t])
(Ops.Fp.blocks (SpectralBisection.resultOperands n d lo ua ea)
(SpectralBisection.resultLengths k))
(fun m' ↦
m'.pos = m.pos ∧
SpectralBisection.StoresResult n d lo ua ea (child.1, fun i ↦ M.add (child.2 i) sigma)
m'.store)
mImport NLAlib.Eigensolvers.SpectralBisection.UpNode.