NLAlib.LinearSystems.Refinement.Rounded.round_bounds
Library · theorem
The three local bounds of one round, from the values its calls compute, for a positive definite \mathbf{A} with (n + 1) u_r < 1 and 24(n + 1)^2(u_f + u_f)\kappa(\mathbf{A}) \le 1: the residual as stored at the working precision, the correction, and the update.
NLAlib.LinearSystems.Refinement.Rounded.round_bounds {Op Tst : Type}
[Ops.Has (Ops.Tagged LinearSystems.Refinement.Rounded.FTag Ops.ScalarOp) Op]
[Ops.Has (Ops.Tagged LinearSystems.Refinement.Rounded.WTag Ops.ScalarOp) Op]
[Ops.Has (Ops.Tagged LinearSystems.Refinement.Rounded.RTag Ops.ScalarOp) Op]
[Ops.Has (Ops.CastOp LinearSystems.Refinement.Rounded.WTag LinearSystems.Refinement.Rounded.FTag)
Op]
[Ops.Has (Ops.CastOp LinearSystems.Refinement.Rounded.FTag LinearSystems.Refinement.Rounded.WTag)
Op]
[Ops.Has (Ops.CastOp LinearSystems.Refinement.Rounded.WTag LinearSystems.Refinement.Rounded.RTag)
Op]
[Ops.Has (Ops.CastOp LinearSystems.Refinement.Rounded.RTag LinearSystems.Refinement.Rounded.WTag)
Op]
{Mf Mw Mr : Ops.Machine ℝ} {cWF cFW cWR cRW : ℝ → ℝ} {uf u ur : ℝ} {I : Ops.Interp Op Tst ℝ}
(h : LinearSystems.Refinement.Rounded.IsThreePrecision Mf Mw Mr cWF cFW cWR cRW uf u ur I) {n : ℕ}
{A : Matrix (Fin n) (Fin n) ℝ} {b : Fin n → ℝ}
{Ls ARs bRs xs xRs rRs rWs dFs ys ds dWs xs' : List ℝ} {τ₁ τ₂ τ₃ τ₄ τ₅ τ₆ τ₇ τ₈ : Ops.Tape ℝ}
(hA : A.PosDef) (hn : (↑n + 1) * ur < 1)
(hsmall : 24 * (↑n + 1) ^ 2 * (uf + uf) * pseudoConditionNumber A ≤ 1)
(hF : LinearSystems.Refinement.Rounded.IsFactored A b uf Ls ARs bRs)
(h₁ : (LinearSystems.Refinement.castLoopSpec cWR).post [n] τ₁ [xs] [xRs])
(h₂ : (LinearSystems.Refinement.residualRowsSpec ur id).post [n] τ₂ [ARs, bRs, xRs] [rRs])
(h₃ : (LinearSystems.Refinement.castLoopSpec cRW).post [n] τ₃ [rRs] [rWs])
(h₄ : (LinearSystems.Refinement.castLoopSpec cWF).post [n] τ₄ [rWs] [dFs])
(h₅ : (TriangularSolve.forwardSpec uf id).post [n] τ₅ [Ls, dFs] [ys])
(h₆ : (TriangularSolve.backwardSpec uf id).post [n] τ₆ [Ls, ys] [ds])
(h₇ : (LinearSystems.Refinement.castLoopSpec cFW).post [n] τ₇ [ds] [dWs])
(h₈ : (LinearSystems.Refinement.addInPlaceSpec u id).post [n] τ₈ [dWs, xs] [xs']) :
∃ r d,
‖WithLp.toLp 2 (b - A *ᵥ Ops.decv id n xs - r)‖ ≤
u * ‖WithLp.toLp 2 (b - A *ᵥ Ops.decv id n xs)‖ +
(1 + u) * ((↑n + 1) * Computation.roundingFactor (n + 1) ur) *
(‖WithLp.toLp 2 b‖ + specNorm A * ‖WithLp.toLp 2 (Ops.decv id n xs)‖) ∧
‖WithLp.toLp 2 (A⁻¹ *ᵥ r - d)‖ ≤
24 * (↑n + 1) ^ 2 * (uf + uf) * pseudoConditionNumber A * ‖WithLp.toLp 2 (A⁻¹ *ᵥ r)‖ ∧
‖WithLp.toLp 2 (Ops.decv id n xs + d - Ops.decv id n xs')‖ ≤
u * ‖WithLp.toLp 2 (Ops.decv id n xs + d)‖Import NLAlib.LinearSystems.Refinement.Rounded.Solve.