NLA-lib Explorer

NLAlib.Krylov.CG.HSCG.Carried.Rounded.runs_solve_seq_stability

Library · theorem

Standard rounding Oracle: matrix–vector product

The full rounded scalar CG program succeeds and returns an actual computed run with backward-model, physical-energy convergence and delayed-estimation guarantees. The spectrum, unit roundoff and cap determine every continuation guard.

NLAlib.Krylov.CG.HSCG.Carried.Rounded.runs_solve_seq_stability {K Op Tst : Type} [Inhabited K]
  [Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.Blas1Op Op] [Ops.Has Ops.OperatorOp Op]
  [Ops.Has Ops.CmpTst Tst] [Ops.Apart Ops.Blas1Op Ops.ScalarOp Op]
  [Ops.Apart Ops.Blas1Op Ops.OperatorOp Op] {M : Ops.Machine K} {dec : K → ℝ} {em u e : ℝ}
  {n cap : ℕ} {A : Matrix (Fin n) (Fin n) ℝ} {I : Ops.Interp Op Tst K} (hS : Ops.IsScalar M I)
  (hM : Ops.StdModel u dec M) (hA : Ops.IsMatvec dec A (em * specNorm A) I) (hCmp : Ops.IsCmp dec I)
  (hAT : Aᵀ = A) {a a' : ℝ} (ha : 0 < a) (hspec : spectrum ℝ A ⊆ Set.Icc a a') (hu : 0 ≤ u)
  (hem : em ≤ e) (hue : u ≤ e) (hde : (Ops.Blas.seq.err u).dot n ≤ e)
  (hae : (Ops.Blas.seq.err u).axpy ≤ e) (he : e ≤ 1 / 100) (hprec : 3 * e * a' ≤ a)
  (hwindow : ↑cap ^ 2 * √↑cap * e * (a' / a) ^ 2 ≤ 1 / 10 ^ 5) {τ : Ops.Tape K} {μ : Ops.Mem K}
  {b x r p v : ℕ × ℕ} {bs xs : List K} (hbx : b.1 ≠ x.1) (hbr : b.1 ≠ r.1) (hbp : b.1 ≠ p.1)
  (hbv : b.1 ≠ v.1) (hxr : x.1 ≠ r.1) (hxp : x.1 ≠ p.1) (hxv : x.1 ≠ v.1) (hrp : r.1 ≠ p.1)
  (hrv : r.1 ≠ v.1) (hpv : p.1 ≠ v.1) (hl : μ.Live [b, x, r, p, v])
  (hbs : μ.store.readBlock b.1 b.2 n = some bs) (hxs : μ.store.readBlock x.1 x.2 n = some xs)
  (hx0 : Ops.decv dec n xs = 0) (hz : μ.Room [x, r, p, v] [n, n, n, 1]) :
  Ops.ConditionalRuns I (Ops.Blas.ws 0) τ
    (Ops.Stmt.link Ops.Blas.seq.table Krylov.CG.HSCG.Carried.Rounded.solve)
    (Ops.Env.frame [n, cap] [b, x, x, r, p, v]) μ
    (Krylov.CG.HSCG.Carried.Rounded.seqSolveCount n cap) (2 * n + 4) fun μ' ↦
    μ'.pos = μ.pos ∧
      Krylov.CG.HSCG.Carried.Rounded.StableOutput dec A (Ops.decv dec n bs) e a a' cap x r p v μ'

Full source on GitHub

Import NLAlib.Krylov.CG.HSCG.Carried.Rounded.Stability.