Theorem (Forward error of the stored output). Let \mathbf{A} be positive definite of order n, \kappa=\kappa_2(\mathbf{A}), (n+1)u_r<1, and
\theta=48(n+1)^2\kappa u_f\le1,\qquad\eta=(1+u)(n+1)\gamma_{n+1}(u_r),\qquad\gamma_m=(1-u_r)^{-m}-1,
\varphi=(1+u)\bigl(\theta+(1+\theta)\kappa(u+\eta)\bigr)<1,\qquad\xi=(1+u)(1+\theta)\,2\kappa\eta+u.
At an admitted size, for every \mathbf{b} and \mathbf{x}_0, every interpretation satisfying the model and every tape, the run of the fixed program succeeds within the instruction bound above, and buffer 2 then holds \hat{\mathbf{x}} with, for \mathbf{A}\mathbf{x}_\star=\mathbf{b},
\|\mathbf{x}_\star-\hat{\mathbf{x}}\|\le\varphi^k\|\mathbf{x}_\star-\mathbf{x}_0\|+\frac{\xi}{1-\varphi}\|\mathbf{x}_\star\|.
Lean statement and details
NLAlib.LinearSystems.Refinement.Rounded.Certification.algorithm_checked {Mf Mw Mr : Ops.Machine ℝ}
{cWF cFW cWR cRW : ℝ → ℝ} {uf u ur : ℝ}
(hS :
LinearSystems.Refinement.Rounded.Certification.IsArithmetic Mf Mw Mr cWF cFW cWR cRW uf u ur)
(hur1 : ur < 1) (d : Fin 2 → ℕ)
(hd : LinearSystems.Refinement.Rounded.Certification.valid uf u ur d)
(A : Matrix (Fin (d 0)) (Fin (d 0)) ℝ) (rhs x₀ : Fin (d 0) → ℝ) (hA : A.PosDef)
(hsmall : 24 * (↑(d 0) + 1) ^ 2 * (uf + uf) * pseudoConditionNumber A ≤ 1)
(hφ :
refinementContractionFactor (pseudoConditionNumber A)
(24 * (↑(d 0) + 1) ^ 2 * (uf + uf) * pseudoConditionNumber A)
((1 + u) * ((↑(d 0) + 1) * Computation.roundingFactor (d 0 + 1) ur)) u u <
1)
(I : Ops.Interp LinearSystems.Refinement.Rounded.Signature Ops.CmpTst ℝ)
(hI :
(LinearSystems.Refinement.Rounded.Certification.model Mf Mw Mr cWF cFW cWR cRW uf u ur
hur1).contracts
d
((LinearSystems.Refinement.Rounded.Certification.inputs uf u ur hur1).input d (A, rhs, x₀) ⋯)
I)
(τ : Ops.Tape ℝ) :
∃ st,
Ops.Reference.Execution LinearSystems.Refinement.Rounded.Certification.program I
(LinearSystems.Refinement.Rounded.Certification.model Mf Mw Mr cWF cFW cWR cRW uf u ur
hur1).resources
(LinearSystems.Refinement.Rounded.Certification.inputs uf u ur hur1).formats τ d
((LinearSystems.Refinement.Rounded.Certification.inputs uf u ur hur1).memory d (A, rhs, x₀))
st ∧
(LinearSystems.Refinement.Rounded.Certification.model Mf Mw Mr cWF cFW cWR cRW uf u ur
hur1).resources.work
st.cost ≤
52 * d 0 ^ 3 + 104 * d 0 ^ 2 * d 1 + 97 * d 0 ^ 2 + 125 * d 0 * d 1 + 38 * d 0 +
113 * d 1 +
119 ∧
(LinearSystems.Refinement.Rounded.Certification.inputs uf u ur hur1).bytes d + st.peak ≤
(LinearSystems.Refinement.Rounded.Certification.inputs uf u ur hur1).bytes d +
Ops.staticPeak
(LinearSystems.Refinement.Rounded.Certification.model Mf Mw Mr cWF cFW cWR cRW uf u
ur hur1).resources
LinearSystems.Refinement.Rounded.Certification.program d ∧
∃ x,
st.mem.Holds (Ops.Codec.vector (d 0)) 2 x ∧
∀ (xstar : Fin (d 0) → ℝ),
A *ᵥ xstar = rhs →
‖WithLp.toLp 2 (xstar - x)‖ ≤
refinementContractionFactor (pseudoConditionNumber A)
(24 * (↑(d 0) + 1) ^ 2 * (uf + uf) * pseudoConditionNumber A)
((1 + u) * ((↑(d 0) + 1) * Computation.roundingFactor (d 0 + 1) ur)) u
u ^
d 1 *
‖WithLp.toLp 2 (xstar - x₀)‖ +
refinementAccuracyBound (pseudoConditionNumber A)
(24 * (↑(d 0) + 1) ^ 2 * (uf + uf) * pseudoConditionNumber A)
((1 + u) * ((↑(d 0) + 1) * Computation.roundingFactor (d 0 + 1) ur)) u /
(1 -
refinementContractionFactor (pseudoConditionNumber A)
(24 * (↑(d 0) + 1) ^ 2 * (uf + uf) * pseudoConditionNumber A)
((1 + u) * ((↑(d 0) + 1) * Computation.roundingFactor (d 0 + 1) ur)) u
u) *
‖WithLp.toLp 2 xstar‖