NLA-lib Explorer

NLAlib.SpectralBisection.reconstructResult_kernelWeight_le_of_arenas

Library · theorem

The allocated solver's complete reconstruction adds two root-size kernel charges per upward level. Scalar bottom initialization and output copies have zero matrix weight. All storage/model prerequisites are explicit; no phase execution callback is assumed. The actual execution premise is auxiliary to the existing total word-level solver proof.

NLAlib.SpectralBisection.reconstructResult_kernelWeight_le_of_arenas {K : Type} [Inhabited K]
  (M : Ops.Machine K) (dec : K → ℝ) (mm : MatMulMap (K × K)) (qr : QRMap (K × K))
  {n L fuel base : ℕ} {τ : Ops.Tape K} {μ : Ops.Mem K} (R0 eps beta : K)
  (A : Matrix (Fin n) (Fin n) (K × K)) {c ma ua qa ea sz kd kp lv su sg u dv : ℕ × ℕ}
  {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)
  (hLit : Ops.IsExactNatLit dec M (max n 4))
  (hl : μ.Live (SpectralBisection.arenaOperands c ma ua qa ea sz kd kp lv su sg))
  (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))
  (hLevels :
    ∀ d ≤ L + 1,
      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, ℓ := L } d ma sz lv μ)
  (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, ℓ := L } d ma ua qa ea sz kd kp μ)
  (hTwo : μ.store.get c.1 (c.2 + 1) = some (M.lit 2)) (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 = μ)
  (hrun :
    Ops.evalCounted I W τ SpectralBisection.reconstructResult
        (Ops.Env.frame [n, L] [c, ua, qa, ea, sz, kd, kp, lv, u, dv]) a =
      some b) :
  (Ops.Dense.kernelWeight T) b.cost ≤ (Ops.Dense.kernelWeight T) a.cost + (L + 1) * (2 * T n)

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.ReconstructWork.