NLA-lib Explorer

NLAlib.SpectralBisection.downSlot_kernelWeight_le_of_exec

Library · theorem

A slot's bounded query chooses its actual stored size. Queries and inactive-slot guards have zero matrix weight, and the active body has the existing local node bound. The initial count and live scratch history are arbitrary.

NLAlib.SpectralBisection.downSlot_kernelWeight_le_of_exec {K : Type}
  {I : Ops.Interp Ops.DenseOp (Ops.CmpTst ⊕ Ops.IdxTst) K} {dec : K → ℝ} (hQ : Ops.IsToNat dec I)
  (T : ℕ → ℕ) (W : Ops.DenseOp → List ℕ → ℕ) {τ : Ops.Tape K} {n L cap d lo k : ℕ}
  {par lv su sg ma ua qa ea sz kd kp c t : ℕ × ℕ} {word : K}
  {a b : Ops.St Ops.DenseOp (Ops.CmpTst ⊕ Ops.IdxTst) K}
  (hSize : a.mem.store.get sz.1 (sz.2 + n * d + lo) = some word) (hDecode : dec word = ↑k)
  (hBound : k ≤ n - lo)
  (hr :
    Ops.evalCounted I W τ SpectralBisection.downSlotsBody
        ((Ops.Env.frame [n, L, cap, d] [par, lv, su, sg, ma, ua, qa, ea, sz, kd, kp, c, t]).pushIdx
          lo)
        a =
      some b) :
  (Ops.Dense.kernelWeight T) b.cost ≤ (Ops.Dense.kernelWeight T) a.cost + (2 * cap + 9) * T k

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.DownWork.