NLA-lib Explorer

NLAlib.PCGRun.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.PCGRun.exists_extend {N k : ℕ} (R : PCGRun N k) (next : PCGState ℝ (Fin N)) (sv : Fin N → ℝ)
  (ν μ γ eγ δ eδ : ℝ) (hνpos : 0 < R.ν k) (hμpos : 0 < μ)
  (hz : next.z = R.preconditioner.mulVec next.r)
  (hν : |ν - next.r ⬝ᵥ next.z| ≤ R.ε * ‖WithLp.toLp 2 next.r‖ * ‖WithLp.toLp 2 next.z‖)
  (hlast : 0 ≤ ν)
  (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.z + δ • R.p k - next.p)‖ ≤
      R.ε * (‖WithLp.toLp 2 next.z‖ + |δ| * ‖WithLp.toLp 2 (R.p k)‖)) :
  ∃ S,
    S.A = R.A ∧
      S.M = R.M ∧
        S.preconditioner ≍ R.preconditioner ∧
          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.z = Function.update R.z (k + 1) next.z ∧
                    S.p = Function.update R.p (k + 1) next.p ∧
                      S.ν = Function.update R.ν (k + 1) ν ∧
                        S.eν = Function.update R.eν (k + 1) (ν - next.r ⬝ᵥ next.z) ∧
                          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.z + δ • R.p k - next.p))

Full source on GitHub

Import NLAlib.Krylov.FinitePrecision.PCGRunPrefix.