NLAlib.Krylov.CG.HSCG.Carried.Rounded.runs_solve_of_model
Library · theorem
Standard rounding Oracle: matrix–vector product
Declared standard-model contracts and input spectral precision imply successful rounded CG and stability of the actual stored output. The model's declared workspace is retained.
NLAlib.Krylov.CG.HSCG.Carried.Rounded.runs_solve_of_model {K : Type} [Inhabited K] {r b : ℕ}
{P : Ops.Problem K r b} {sizes : (Fin r → ℕ) → ℕ} (model : Ops.Standard.Model P sizes)
{d : Fin r → ℕ} {input : P.Input d} {I : Ops.Interp Ops.Standard.Operation Ops.CmpTst K}
(hmodel : model.access.contracts d input I) {cap : ℕ} {em E a a' : ℝ}
(hok : model.scheme.admits (sizes d))
(hbudget :
model.scheme.roundoff (model.matvecAllowance d input) ≤ em * specNorm (model.matrix d input))
(hAT : (model.matrix d input)ᵀ = model.matrix d input) (ha : 0 < a)
(hspec : spectrum ℝ (model.matrix d input) ⊆ Set.Icc a a')
(haccuracy :
Ops.Standard.Accuracy em (model.scheme.roundoff model.unit) E (model.scheme.errors model.unit)
(sizes d))
(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 S V : ℕ × ℕ} {bs xs : List K} (hBX : B.1 ≠ X.1)
(hBR : B.1 ≠ R.1) (hBS : B.1 ≠ S.1) (hBV : B.1 ≠ V.1) (hXR : X.1 ≠ R.1) (hXS : X.1 ≠ S.1)
(hXV : X.1 ≠ V.1) (hRS : R.1 ≠ S.1) (hRV : R.1 ≠ V.1) (hSV : S.1 ≠ V.1)
(hl : μ.Live [B, X, R, S, V]) (hb : μ.store.readBlock B.1 B.2 (sizes d) = some bs)
(hx : μ.store.readBlock X.1 X.2 (sizes d) = some xs)
(hx0 : Ops.decv model.decode (sizes d) xs = 0)
(hz : μ.Room [X, R, S, V] [sizes d, sizes d, sizes d, 1]) :
Ops.ConditionalRuns I model.access.workspace τ Krylov.CG.HSCG.Carried.Rounded.solve
(Ops.Env.frame [sizes d, cap] [B, X, X, R, S, V]) μ
(Krylov.CG.HSCG.Carried.Rounded.solveCount (sizes d) cap)
(Krylov.CG.HSCG.Carried.Rounded.solvePeak model.access.workspace (sizes d)) fun μ' ↦
μ'.pos = μ.pos ∧
Krylov.CG.HSCG.Carried.Rounded.StableOutput model.decode (model.matrix d input)
(Ops.decv model.decode (sizes d) bs) E a a' cap X R S V μ'Import NLAlib.Krylov.CG.HSCG.Carried.Rounded.Standard.