NLAlib.Krylov.CG.HSPCG.runs_solve_polynomial
Library · theorem
Exact arithmetic Oracle: matrix–vector product
Transfer the pure PCG polynomial energy-error bound to the decoded program output. The exact contracts and nonbreaking horizon are those of the total solver theorem; solution solves the decoded input system and the polynomial is bounded on the preconditioned spectrum. [Saad2003, §9.2].
NLAlib.Krylov.CG.HSPCG.runs_solve_polynomial {K Op Tst : Type} [Inhabited K]
[Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.Blas1Op Op] [Ops.Has Ops.OperatorOp Op]
[Ops.Has (Ops.Tagged Krylov.CG.HSPCG.Preconditioner Ops.OperatorOp) Op] {M : Ops.Machine K}
{dec : K → ℝ} {n : ℕ} {A P : Matrix (Fin n) (Fin n) ℝ} {I : Ops.Interp Op Tst K}
(hS : Ops.IsScalar M I) (hM : Ops.ExactModel dec M) (hB : Ops.IsExactBlas1 dec (fun x ↦ True) I)
(hA : Ops.IsExactMatvec dec A I) (hP : Krylov.CG.HSPCG.IsExactPreconditioner dec P I)
(hPos : A.PosDef) (hPPos : P.PosDef) (W : Op → List ℕ → ℕ) {τ : Ops.Tape K} {μ : Ops.Mem K}
{k : ℕ} {b x r z p : ℕ × ℕ} {bs xs : List K} (hbx : b.1 ≠ x.1) (hbr : b.1 ≠ r.1) (hbz : b.1 ≠ z.1)
(hbp : b.1 ≠ p.1) (hxr : x.1 ≠ r.1) (hxz : x.1 ≠ z.1) (hxp : x.1 ≠ p.1) (hrz : r.1 ≠ z.1)
(hrp : r.1 ≠ p.1) (hzp : z.1 ≠ p.1) (hl : μ.Live [b, x, r, z, p])
(hbs : μ.store.readBlock b.1 b.2 n = some bs) (hxs : μ.store.readBlock x.1 x.2 n = some xs)
(hk : k ≤ krylovGrade (P * A) (P *ᵥ (Ops.decv dec n bs - A *ᵥ Ops.decv dec n xs)))
(hz : μ.Room [x, r, z, p] [n, n, n, n]) {spectral : Set ℝ}
(hspectrum : spectrum ℝ (P * A) ⊆ spectral) {solution : Fin n → ℝ}
(hsolution : A *ᵥ solution = Ops.decv dec n bs) {poly : Polynomial ℝ} (hp : poly.degree ≤ ↑k)
(hpzero : Polynomial.eval 0 poly = 1) {η : ℝ}
(hη : ∀ ξ ∈ spectral, |Polynomial.eval ξ poly| ≤ η) :
Ops.ConditionalRuns I W τ Krylov.CG.HSPCG.solve (Ops.Env.frame [n, k] [b, x, x, r, z, p]) μ
(Krylov.CG.HSPCG.solveCount n k) (Krylov.CG.HSPCG.solvePeak W n) fun μ' ↦
μ'.pos = μ.pos ∧
∃ ys,
μ'.store.readBlock x.1 x.2 n = some ys ∧
RCLike.re (quadForm A (solution - Ops.decv dec n ys)) ≤
η ^ 2 * RCLike.re (quadForm A (solution - Ops.decv dec n xs))Import NLAlib.Krylov.CG.HSPCG.Bounds.