NLA-lib Explorer

NLAlib.CGS2.colOut_rounded

Library · theorem

Standard rounding

One rounded round, decoded. Under the standard model at u \ge 0, 4u \le c, 0 \le \eta_0 \le 1/100, c \le 1/100, 0 \le E \le 1/100, a rational threshold \theta > 0, dot, update and square-root errors e_d, e_a, e_s \ge 0, scaling error at most E, the pass budget of the j stored columns at most c and e_d + e_s(1 + e_d) \le E, the words of a round NLAlib.CGS2.ColOut decode to: computed norms \nu, \beta of the input and of the reduced column accurate to E; the single-vector guarantee on the support with parameters (\eta_0, 2c, 3c, 2(\eta_0 + c)^2) for the coefficients of the first j rows; a zero reduced column for a zero input column; zero coefficients after row j; and either \beta \le \tfrac32\theta\nu with a zero new column and a zero diagonal coefficient, or \tfrac12\theta\nu < \beta with the diagonal coefficient \beta and the new column \mathbf{q} with \lVert\beta\mathbf{q} - \mathbf{w}'\rVert \le E\lVert\mathbf{w}'\rVert.

NLAlib.CGS2.colOut_rounded {K : Type} [Inhabited K] {M : Ops.Machine K} {dec : K → ℝ}
  {u η₀ c E ed ea es ec : ℝ} {θ : ℚ} {n j r : ℕ} {vs wc w₂ cc qc : List K}
  (hM : Ops.StdModel u dec M) (hu : 0 ≤ u) (hu₁ : 4 * u ≤ c) (hη₀ : 0 ≤ η₀) (hη : η₀ ≤ 1 / 100)
  (hc : c ≤ 1 / 100) (hE : 0 ≤ E) (hE' : E ≤ 1 / 100) (hθ : 0 < θ) (hd : 0 ≤ ed) (ha : 0 ≤ ea)
  (hs : 0 ≤ es) (hscal : ec ≤ E)
  (hbudget :
    (↑j + 1) * ed * (1 + η₀) ^ 2 + ((1 + ea) ^ j - 1) * (1 + ↑j * (1 + ed) * (1 + η₀) ^ 2) ≤ c)
  (hnorm : ed + es * (1 + ed) ≤ E)
  (h :
    CGS2.ColOut M dec ed ea (Ops.IsNrm2Err dec ed es n) (Ops.IsScalErr dec ec n) θ n j r vs wc w₂ cc
      qc) :
  ∃ ν β,
    IsOrthErrOnSupport η₀ (2 * c) (3 * c) (2 * (η₀ + c) ^ 2) (Ops.decodeMatrix dec n j vs)
        (Ops.decv dec n wc) (fun i ↦ dec (Ops.vec cc ↑i)) (Ops.decv dec n w₂) ∧
      (Ops.decv dec n wc = 0 → Ops.decv dec n w₂ = 0) ∧
        |ν - ‖WithLp.toLp 2 (Ops.decv dec n wc)‖| ≤ E * ‖WithLp.toLp 2 (Ops.decv dec n wc)‖ ∧
          |β - ‖WithLp.toLp 2 (Ops.decv dec n w₂)‖| ≤ E * ‖WithLp.toLp 2 (Ops.decv dec n w₂)‖ ∧
            (∀ (i : ℕ), j < i → i < r → dec (Ops.vec cc i) = 0) ∧
              (β ≤ 3 / 2 * ↑θ * ν ∧ Ops.decv dec n qc = 0 ∧ dec (Ops.vec cc j) = 0 ∨
                ↑θ / 2 * ν < β ∧
                  dec (Ops.vec cc j) = β ∧
                    ‖WithLp.toLp 2 (β • Ops.decv dec n qc - Ops.decv dec n w₂)‖ ≤
                      E * ‖WithLp.toLp 2 (Ops.decv dec n w₂)‖)

Full source on GitHub

Import NLAlib.Krylov.Orthogonalization.CGS2.ExtendRounded.