NLA-lib Explorer

NLAlib.givensReplayRows_specNorm_sub_le

Library · theorem

Standard rounding

The row replay on a column range on every tape: the columns outside [j_0, j_0 + n_c) are kept and, on the range, the stored matrix is within ((1 + 24\boldsymbol{u})^{ns\,w} - 1)\|\mathbf{X}\|_2 of \widetilde{\mathbf{V}}^{\mathsf H} \mathbf{X}.

NLAlib.givensReplayRows_specNorm_sub_le {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.CmpTst Q]
  [Ops.Has Ops.IdxTst Q] {Mch : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ}
  (hS : Ops.IsScalar Mch I) (hM : Ops.StdModel u id Mch) (hu0 : 0 ≤ u) (hu : u ≤ 1 / 100)
  (hQ : Ops.IsToNat id I) (hC : Ops.IsCmp id I) {N lo d j0 nc ns w : ℕ} (hN : lo + d ≤ N)
  (hj : j0 + nc ≤ N) {L : List (Option (List GivensEntry))} {P : List GivensEntry}
  (hpl : ∀ e ∈ slotEntries w L, e.1 + 1 < d ∨ e = (0, 0, 0))
  (hlo : slotEntries w L = [] ∨ lo + 1 < N) {lg x : ℕ × ℕ} {X : Matrix (Fin N) (Fin N) ℂ}
  {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} (hlog : HoldsSlottedLog lg ns w L P μ.store)
  (hlen : L.length = ns) (hX : HoldsMatrix x X μ.store) (hl : μ.Live [lg, x])
  (hd :
    Ops.Fp.Disj (Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
      (Ops.Store.inBlock x.1 x.2 (2 * (N * N)))) :
  Ops.Writes Ops.Mode.total I τ givensReplayRows (Ops.Env.frame [N, lo, j0, nc, ns, w] [lg, x, x])
    (Ops.Store.inBlock x.1 x.2 (2 * (N * N)))
    (fun μ' ↦
      ∃ X',
        HoldsMatrix x X' μ'.store ∧
          (∀ (i j : Fin N), ¬(j0 ≤ ↑j ∧ ↑j < j0 + nc) → X' i j = X i j) ∧
            specNorm
                (of fun i j ↦
                  if j0 ≤ ↑j ∧ ↑j < j0 + nc then
                    (X' - (embedBlock lo (givensLog d (slotEntries w L)))ᴴ * X) i j
                  else 0) ≤
              ((1 + 24 * u) ^ (ns * w) - 1) * specNorm X)
    μ

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.GivensReplay.