NLAlib.SpectralBisection.solveBody_kernelWeight_le_of_arenas
Library · theorem
The caller-owned solver adds at most (L + 1) * (2 * fuel + 11) * T n to actual matrix-kernel weight. Its local model, stored input and arena hypotheses are explicit. Scalar and structural instructions remain in the full count with their separate charges.
NLAlib.SpectralBisection.solveBody_kernelWeight_le_of_arenas {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} {τ : Ops.Tape K} {μ : Ops.Mem K}
{n L fuel base : ℕ} {input par u dv c ma ua qa ea sz kd kp lv su sg : ℕ × ℕ} (R0 eps beta : K)
(A : Matrix (Fin n) (Fin n) (K × 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)
(hSample : Ops.IsSample I) (hLit : Ops.IsExactNatLit dec M (max n 4)) (hPos : μ.pos = base)
(hl :
μ.Live ([input, par, u, dv] ++ SpectralBisection.arenaOperands c ma ua qa ea sz kd kp lv su sg))
(hA :
μ.store.readBlock input.1 input.2 (2 * (n * n)) =
some ((Ops.EntryCodec.pair K).packFinMatrix A))
(hPar : μ.store.readBlock par.1 par.2 3 = some [R0, eps, beta])
(hRoom :
μ.Room (SpectralBisection.arenaOperands c ma ua qa ea sz kd kp lv su sg)
(SpectralBisection.arenaLengths n L))
(hAP :
Ops.Fp.Apart (SpectralBisection.arenaOperands c ma ua qa ea sz kd kp lv su sg)
(SpectralBisection.arenaLengths n L))
(hProtect :
(Ops.Fp.blocks (SpectralBisection.arenaOperands c ma ua qa ea sz kd kp lv su sg)
(SpectralBisection.arenaLengths n L)).Disj
(Ops.Fp.blocks [input, par] [2 * (n * n), 3]))
(T : ℕ → ℕ) (hT : Monotone T) (hadd : ∀ (i j : ℕ), T i + T j ≤ T (i + j))
(W : Ops.DenseOp → List ℕ → ℕ) {start finish : Ops.St Ops.DenseOp (Ops.CmpTst ⊕ Ops.IdxTst) K}
(hmem : start.mem = μ)
(hr :
Ops.evalCounted I W τ (SpectralBisection.solveBody SpectralBisection.node)
(Ops.Env.frame [n, L, fuel] [input, par, u, dv, c, ma, ua, qa, ea, sz, kd, kp, lv, su, sg])
start =
some finish) :
(Ops.Dense.kernelWeight T) finish.cost ≤
(Ops.Dense.kernelWeight T) start.cost + (L + 1) * (2 * fuel + 11) * T nImport NLAlib.Eigensolvers.SpectralBisection.BodyWork.