NLAlib.SpectralBisection.runs_upNode_kernelWeight
Library · theorem
Actual upward reconstruction terminates and returns the existing mathematical assembly with matrix-kernel weight at most twice the parent-size cost. The hypotheses are the stored outcome/children, scalar and multiplication contracts, exact bounded metadata and spatial capacity conditions. No successful-execution or numerical-quality premise is assumed. All structural instructions remain in the instrumented execution's full count.
NLAlib.SpectralBisection.runs_upNode_kernelWeight {K Su Sg : Type} [Inhabited K] {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 Ops.DenseOp (Ops.CmpTst ⊕ Ops.IdxTst) K}
(hS : Ops.IsScalar M I) (hQ : Ops.IsToNat dec I)
(hMM : Ops.IsMatrixMul (Ops.EntryCodec.pair K) (fun {l m n} ↦ mm) I) (T : ℕ → ℕ)
(W : Ops.DenseOp → List ℕ → ℕ) {τ : 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.ConditionalRunsW I.instrument (Ops.instrumentWorkspace W) τ
SpectralBisection.upNode.instrument (Ops.Env.frame [n, d, lo, k] [ua, qa, ea, kd, kp, t]) m
(Ops.stmtPeak W SpectralBisection.upNode
(Ops.Env.frame [n, d, lo, k] [ua, qa, ea, kd, kp, t]).idx)
fun c m' ↦
(Ops.Dense.kernelWeight T) (Ops.Count.original c) ≤ 2 * T k ∧
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'.storeImport NLAlib.Eigensolvers.SpectralBisection.UpWork.