NLA-lib Explorer

NLAlib.CGRun.exists_extend

Library · theorem

The existing run can be extended by the defects derived from one actual next step. All previous numerical data are retained by point updates; no extra run interface is used.

NLAlib.CGRun.exists_extend {N k : ℕ} (R : CGRun N k) (next : CGState ℝ (Fin N)) (sv : Fin N → ℝ)
  (ν θ μ γ eγ δ eδ : ℝ) (hνpos : 0 < R.ν k) (hμpos : 0 < μ)
  (hν : ν = ‖WithLp.toLp 2 next.r‖ ^ 2 * (1 + θ)) (hθ : |θ| ≤ R.ε)
  (hs : ‖WithLp.toLp 2 (R.A *ᵥ R.p k - sv)‖ ≤ R.ε * specNorm R.A * ‖WithLp.toLp 2 (R.p k)‖)
  (hμ : |R.p k ⬝ᵥ sv - μ| ≤ R.ε * ‖WithLp.toLp 2 (R.p k)‖ * ‖WithLp.toLp 2 sv‖)
  (hγ : γ = R.ν k / μ * (1 + eγ)) (heγ : |eγ| ≤ R.ε) (hδ : δ = ν / R.ν k * (1 + eδ))
  (heδ : |eδ| ≤ R.ε)
  (hex :
    ‖WithLp.toLp 2 (R.x k + γ • R.p k - next.x)‖ ≤
      R.ε * (‖WithLp.toLp 2 (R.x k)‖ + |γ| * ‖WithLp.toLp 2 (R.p k)‖))
  (her :
    ‖WithLp.toLp 2 (R.r k - γ • sv - next.r)‖ ≤
      R.ε * (‖WithLp.toLp 2 (R.r k)‖ + |γ| * ‖WithLp.toLp 2 sv‖))
  (hep :
    ‖WithLp.toLp 2 (next.r + δ • R.p k - next.p)‖ ≤
      R.ε * (‖WithLp.toLp 2 next.r‖ + |δ| * ‖WithLp.toLp 2 (R.p k)‖)) :
  ∃ S,
    S.A = R.A ∧
      S.b = R.b ∧
        S.ε = R.ε ∧
          S.x = Function.update R.x (k + 1) next.x ∧
            S.r = Function.update R.r (k + 1) next.r ∧
              S.p = Function.update R.p (k + 1) next.p ∧
                S.ν = Function.update R.ν (k + 1) ν ∧
                  S.θ = Function.update R.θ (k + 1) θ ∧
                    S.s = Function.update R.s k sv ∧
                      S.μ = Function.update R.μ k μ ∧
                        S.γ = Function.update R.γ k γ ∧
                          S.δ = Function.update R.δ k δ ∧
                            S.es = Function.update R.es k (-(R.A *ᵥ R.p k - sv)) ∧
                              S.eμ = Function.update R.eμ k (-(R.p k ⬝ᵥ sv - μ)) ∧
                                S.eγ = Function.update R.eγ k eγ ∧
                                  S.ex = Function.update R.ex k (-(R.x k + γ • R.p k - next.x)) ∧
                                    S.er = Function.update R.er k (-(R.r k - γ • sv - next.r)) ∧
                                      S.eδ = Function.update R.eδ k eδ ∧
                                        S.ep =
                                          Function.update R.ep k (-(next.r + δ • R.p k - next.p))

Full source on GitHub

Import NLAlib.Krylov.FinitePrecision.CGRunConstruction.