NLA-lib Explorer

NLAlib.Krylov.Lanczos.Reorth.Rounded.runs_solve_standard

Library · theorem

Standard rounding Oracle: matrix–vector product

Any named standard BLAS profile implements the full solver, with rounded matvec and an actual rounded two-pass history tied to its packed outputs. Pairwise applicability is explicit.

NLAlib.Krylov.Lanczos.Reorth.Rounded.runs_solve_standard {K : Type} [Inhabited K]
  (scheme : Ops.Standard.Scheme) {M : Ops.Machine K} {dec : K → ℝ} {n cap : ℕ} {em u E : ℝ}
  {A : Matrix (Fin n) (Fin n) ℝ} {I : Ops.Interp Ops.Standard.Operation Ops.CmpTst K}
  (hS : Ops.IsScalar M I) (hM : Ops.StdModel (scheme.roundoff u) dec M) (hu : 0 ≤ u)
  (hok : scheme.admits n) (hA : Ops.IsMatvec dec A (em * specNorm A) I) (hCmp : Ops.IsCmp dec I)
  (hprec : Krylov.Lanczos.Rounded.Precision em (scheme.roundoff u) E (scheme.errors u) n)
  {τ : Ops.Tape K} {μ : Ops.Mem K} {B V C : ℕ × ℕ} {bs : List K} (hBV : B.1 ≠ V.1) (hBC : B.1 ≠ C.1)
  (hVC : V.1 ≠ C.1) (hl : μ.Live [B, V, C]) (hb : μ.store.readBlock B.1 B.2 n = some bs)
  (hz : μ.Room [V, C] [(cap + 1) * n, 3 * cap + 2]) :
  Ops.ConditionalRuns I scheme.profile.wsLo τ
    (Ops.Stmt.link scheme.profile.table Krylov.Lanczos.Reorth.solve)
    (Ops.Env.frame [n, cap] [B, V, C]) μ
    ((Ops.Count.push scheme.profile.cost) (Krylov.Lanczos.Reorth.solveCount n cap))
    (Krylov.Lanczos.Reorth.solvePeak scheme.profile.ws n cap) fun μ' ↦
    μ'.pos = μ.pos ∧
      ∃ vs cs,
        μ'.store.readBlock V.1 V.2 ((cap + 1) * n) = some vs ∧
          μ'.store.readBlock C.1 C.2 (3 * cap + 2) = some cs ∧
            Krylov.Lanczos.Reorth.Rounded.Output dec A (Ops.decv dec n bs) em (scheme.roundoff u) E
              (scheme.errors u) cap vs cs

Full source on GitHub

Import NLAlib.Krylov.Lanczos.Reorth.Rounded.Models.