NLAlib.SpectralBisection.downNodes_kernelWeight_sum_le_of_exec
Library · theorem
The actual scan charges its selected stored sizes, with arbitrary prior counts. Its ordinary per-slot word rule preserves exactly the pending inputs used by later size queries.
NLAlib.SpectralBisection.downNodes_kernelWeight_sum_le_of_exec {K : Type} [Inhabited K]
(M : Ops.Machine K) (dec : K → ℝ) (mm : MatMulMap (K × K)) (qr : QRMap (K × K))
{I : Ops.Interp Ops.DenseOp (Ops.CmpTst ⊕ Ops.IdxTst) K} (hS : Ops.IsScalar M I)
(hL : Ops.IsIndexLit M I) (hC : Ops.IsCmp dec I)
(hMM : Ops.IsMatrixMul (Ops.EntryCodec.pair K) (fun {l m n} ↦ mm) I)
(hQR : Ops.IsMatrixQR (Ops.EntryCodec.pair K) (fun {m n} ↦ qr) I) (hQ : Ops.IsToNat dec I)
{τ : Ops.Tape K} {μ : Ops.Mem K} {n L fuel d : ℕ} {par lv su sg ma ua qa ea sz kd kp c t : ℕ × ℕ}
(ks : ℕ → ℕ) (A : (lo : ℕ) → Matrix (Fin (ks lo)) (Fin (ks lo)) (K × K)) (R0 beta R eps : K)
(U : ℕ → K) (S : ℕ → ℕ → K × K) (hslot : ∀ lo < n, lo + ks lo ≤ n)
(hexact : Ops.IsExactNatLit dec M (max n 4))
(hsizes : ∀ lo < n, μ.store.get sz.1 (sz.2 + n * d + lo) = some (M.lit ↑(ks lo)))
(hread :
∀ lo < n,
0 < ks lo →
μ.readBlocks (SpectralBisection.nodeInputs n d lo par lv su sg ma c)
(SpectralBisection.nodeInputLengths n (ks lo)) =
some (SpectralBisection.nodeInputWords M n R0 beta R eps (U lo) S (A lo)))
(hG : SpectralBisection.DownLevelGeometry n d ks par lv su sg ma ua qa ea sz kd kp c t μ.store)
(T : ℕ → ℕ) (W : Ops.DenseOp → List ℕ → ℕ) {a b : Ops.St Ops.DenseOp (Ops.CmpTst ⊕ Ops.IdxTst) K}
(hmem : a.mem = μ)
(hr :
Ops.evalCounted I W τ (SpectralBisection.downNodes SpectralBisection.node)
(Ops.Env.frame [n, L, fuel, d] [par, lv, su, sg, ma, ua, qa, ea, sz, kd, kp, c, t]) a =
some b) :
(Ops.Dense.kernelWeight T) b.cost ≤
(Ops.Dense.kernelWeight T) a.cost + ∑ lo ∈ Finset.range n, (2 * fuel + 9) * T (ks lo)Import NLAlib.Eigensolvers.SpectralBisection.DownWork.