NLAlib.SpectralBisection.upNode_writes
Library · theorem
Any stored node outcome reconstructs its mathematical result from the occupied child results. Explicit metadata exactness, capacities, arena separation and actual scalar/matrix operation contracts suffice for total execution; no successful-run or numerical-quality premise is assumed. A fragment of NLAlib.SpectralBisection.bisectionRoutine.
NLAlib.SpectralBisection.upNode_writes {K Su Sg 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 → ℝ} (mm : MatMulMap (K × K)) (qr : QRMap (K × K)) (unif : K → Su → K)
(normal : Sg → K × K) {I : Ops.Interp Op Tst K} (hS : Ops.IsScalar M I) (hQ : Ops.IsToNat dec I)
(hMM : Ops.IsMatrixMul (Ops.EntryCodec.pair K) (fun {l m n} ↦ mm) I) {τ : Ops.Tape K}
{m : Ops.Mem K} {n d lo k : ℕ} {R : K} {ma ua qa ea sz kd kp t : ℕ × ℕ} (step : EighStep K k)
(children :
(b : Bool) →
Matrix (Fin (step.childSize b)) (Fin (step.childSize b)) (K × K) ×
(Fin (step.childSize b) → K))
(hStep : SpectralBisection.StoresStep M R n d lo ma ua qa ea sz kd kp step m)
(hChildren :
∀ (b : Bool),
step.HasChild b →
SpectralBisection.StoresResult n (d + 1) (step.childSlot lo b) ua ea (children b) 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
(EighStep.assemble (M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) unif normal)
step children)
m'.store)
mImport NLAlib.Eigensolvers.SpectralBisection.UpNodeTotal.