NLAlib.SpectralBisection.upwardPass_kernelWeight_le_of_arenas
Library · theorem
With the complete solver's arena capacity and apartness, the actual reverse pass adds at most two root-size kernel charges per level. The supplied size cost is monotone and superadditive. All input/model/storage prerequisites are explicit; there is no phase execution callback or numerical-accuracy premise in this resource statement.
NLAlib.SpectralBisection.upwardPass_kernelWeight_le_of_arenas {K Su Sg : Type} [Inhabited K]
(M : Ops.Machine K) (dec : K → ℝ) (mm : MatMulMap (K × K)) (qr : QRMap (K × K))
(n base fuel L : ℕ) (R0 eps beta : K) (ell : ℕ) (A : Matrix (Fin n) (Fin n) (K × K))
(τ : Ops.Tape K) (c ma ua qa ea sz kd kp lv su sg : ℕ × ℕ) (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) {m : Ops.Mem K}
(hl : m.Live (SpectralBisection.arenaOperands c ma ua qa ea sz kd kp lv su sg))
(hRoom :
m.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))
(hLevel :
∀ d ≤ L,
SpectralBisection.StoresLevel M
(SpectralBisection.tapeMachine M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) n base τ) n fuel R0
beta { k := n, A := A, R := R0, ε := eps, ℓ := ell } d ma sz lv m)
(hRecords :
∀ d ≤ L,
SpectralBisection.StoresRecords M
(SpectralBisection.tapeMachine M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) n base τ) n fuel R0
beta { k := n, A := A, R := R0, ε := eps, ℓ := ell } d ma ua qa ea sz kd kp m)
(hBottom :
SpectralBisection.StoresLevelResults
(SpectralBisection.tapeMachine M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) n base τ) n fuel R0
beta { k := n, A := A, R := R0, ε := eps, ℓ := ell } 0 (L + 1) ua ea m.store)
(hTwo : m.store.get c.1 (c.2 + 1) = some (M.lit 2)) (hLit : Ops.IsExactNatLit dec M (max n 4))
(T : ℕ → ℕ) (hT : Monotone T) (hadd : ∀ (i j : ℕ), T i + T j ≤ T (i + j))
(W : Ops.DenseOp → List ℕ → ℕ) {a b : Ops.St Ops.DenseOp (Ops.CmpTst ⊕ Ops.IdxTst) K}
(hmem : a.mem = m)
(hrun :
Ops.evalCounted I W τ SpectralBisection.upwardPass
(Ops.Env.frame [n, L] [lv, ua, qa, ea, sz, kd, kp, c]) a =
some b) :
(Ops.Dense.kernelWeight T) b.cost ≤ (Ops.Dense.kernelWeight T) a.cost + (L + 1) * (2 * T n)Import NLAlib.Eigensolvers.SpectralBisection.UpwardArenaWork.