NLAlib.SpectralBisection.solve_kernelWeight_le_of_exec
Library · theorem
The complete allocated solver adds at most (L + 1) * (2 * fuel + 11) * T n to matrix-kernel weight. Arbitrary incoming counts and live scratch history are supported. Primitive meanings, bounded literal exactness and actual source reads are explicit.
NLAlib.SpectralBisection.solve_kernelWeight_le_of_exec {K : Type} [Inhabited K] (M : Ops.Machine K)
(dec : K → ℝ) (mm : MatMulMap (K × K)) (qr : QRMap (K × K)) (R0 eps beta : K) {n : ℕ}
(A : Matrix (Fin n) (Fin n) (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)
(hSample : Ops.IsSample I) {τ : Ops.Tape K} {μ : Ops.Mem K} {L fuel : ℕ} {input par u dv : ℕ × ℕ}
(hLit : Ops.IsExactNatLit dec M (max n 4)) (hl : μ.Live [input, par, u, dv])
(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]) (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.solve SpectralBisection.node)
(Ops.Env.frame [n, L, fuel] [input, par, u, dv]) 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.ProgramWork.