NLAlib.CGRun.ofAbsRelErr
Library · def
Construct the existing CG run from mixed local certificates and explicit scale margins. The base relative allowance is u\ge0 and the resulting allowance satisfies u\le\varepsilon\le1/100. Each absolute allowance must fit (\varepsilon-u) times its local scale. For norm caches the scale is the squared residual norm; for scalar divisions it is the exact quotient magnitude. Vector and curvature scales are displayed in the hypotheses.
Cache and curvature positivity on every step taken are separate hypotheses. In particular, this constructor does not certify a zero-cache underflow endpoint or a quotient that rounded to zero. Every supplied data array, including the computed scalars, is preserved definitionally; only the relative scalar witnesses are chosen.
NLAlib.CGRun.ofAbsRelErr {n k : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) (b : Fin n → ℝ)
(x r p s es ex er ep : ℕ → Fin n → ℝ) (ν μ γ δ : ℕ → ℝ) (u ε : ℝ)
(ην ηs ημ ηγ ηx ηr ηδ ηp : ℕ → ℝ) (hA : Aᵀ = A) (hk : 0 < k) (hu : 0 ≤ u) (huε : u ≤ ε)
(hε : ε ≤ 1 / 100) (hx0 : x 0 = 0) (hr0 : r 0 = b) (hp0 : p 0 = b)
(hν : ∀ j ≤ k, Computation.AbsRelErr u (ην j) (‖WithLp.toLp 2 (r j)‖ ^ 2) (ν j))
(hνmargin : ∀ j ≤ k, ην j ≤ (ε - u) * ‖WithLp.toLp 2 (r j)‖ ^ 2) (hνpos : ∀ j < k, 0 < ν j)
(hs : ∀ j < k, s j = A *ᵥ p j + es j)
(hes : ∀ j < k, ‖WithLp.toLp 2 (es j)‖ ≤ u * (specNorm A * ‖WithLp.toLp 2 (p j)‖) + ηs j)
(hsMargin : ∀ j < k, ηs j ≤ (ε - u) * (specNorm A * ‖WithLp.toLp 2 (p j)‖))
(hμ : ∀ j < k, |p j ⬝ᵥ s j - μ j| ≤ u * (‖WithLp.toLp 2 (p j)‖ * ‖WithLp.toLp 2 (s j)‖) + ημ j)
(hμmargin : ∀ j < k, ημ j ≤ (ε - u) * (‖WithLp.toLp 2 (p j)‖ * ‖WithLp.toLp 2 (s j)‖))
(hμpos : ∀ j < k, 0 < μ j) (hγ : ∀ j < k, Computation.AbsRelErr u (ηγ j) (ν j / μ j) (γ j))
(hγmargin : ∀ j < k, ηγ j ≤ (ε - u) * |ν j / μ j|)
(hx : ∀ j < k, x (j + 1) = x j + γ j • p j + ex j)
(hex :
∀ j < k,
‖WithLp.toLp 2 (ex j)‖ ≤ u * (‖WithLp.toLp 2 (x j)‖ + |γ j| * ‖WithLp.toLp 2 (p j)‖) + ηx j)
(hxMargin : ∀ j < k, ηx j ≤ (ε - u) * (‖WithLp.toLp 2 (x j)‖ + |γ j| * ‖WithLp.toLp 2 (p j)‖))
(hr : ∀ j < k, r (j + 1) = r j - γ j • s j + er j)
(her :
∀ j < k,
‖WithLp.toLp 2 (er j)‖ ≤ u * (‖WithLp.toLp 2 (r j)‖ + |γ j| * ‖WithLp.toLp 2 (s j)‖) + ηr j)
(hrMargin : ∀ j < k, ηr j ≤ (ε - u) * (‖WithLp.toLp 2 (r j)‖ + |γ j| * ‖WithLp.toLp 2 (s j)‖))
(hδ : ∀ j < k, Computation.AbsRelErr u (ηδ j) (ν (j + 1) / ν j) (δ j))
(hδmargin : ∀ j < k, ηδ j ≤ (ε - u) * |ν (j + 1) / ν j|)
(hp : ∀ j < k, p (j + 1) = r (j + 1) + δ j • p j + ep j)
(hep :
∀ j < k,
‖WithLp.toLp 2 (ep j)‖ ≤
u * (‖WithLp.toLp 2 (r (j + 1))‖ + |δ j| * ‖WithLp.toLp 2 (p j)‖) + ηp j)
(hpMargin :
∀ j < k, ηp j ≤ (ε - u) * (‖WithLp.toLp 2 (r (j + 1))‖ + |δ j| * ‖WithLp.toLp 2 (p j)‖)) :
CGRun n kImport NLAlib.Krylov.FinitePrecision.CGRunMixed.