NLA-lib Explorer

NLAlib.Schur.residualWords_writes

Library · theorem

Standard rounding

The stored residual, on every tape: from stored square \mathbf{A}_0, \mathbf{U}, \mathbf{T} and an output block apart from them, NLAlib.Schur.residualWords writes only the output and stores the entrywise machine difference of \mathbf{A}_0 and the stored product \mathrm{fl}(\mathrm{fl}(\mathbf{U}\mathbf{T})\mathbf{U}^{\mathsf{H}}) (standard model: negation exact). A step in the proof of NLAlib.Schur.schurResidualCheck_meets.

NLAlib.Schur.residualWords_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] {M : Ops.Machine ℝ}
  {I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar M I) (hM : Ops.StdModel u id M) {τ : Ops.Tape ℝ}
  {μ : Ops.Mem ℝ} {N : ℕ} {a0 uo t d : ℕ × ℕ} {A₀ U T : Matrix (Fin N) (Fin N) ℂ}
  (hA : HoldsMatrix a0 A₀ μ.store) (hU : HoldsMatrix uo U μ.store) (hT : HoldsMatrix t T μ.store)
  (hl : μ.Live [a0, uo, t, d]) (hd : d.2 + 2 * (N * N) ≤ μ.store.len d.1)
  (hda :
    Ops.Fp.Disj (Ops.Store.inBlock d.1 d.2 (2 * (N * N)))
      (Ops.Store.inBlock a0.1 a0.2 (2 * (N * N))))
  (hdu :
    Ops.Fp.Disj (Ops.Store.inBlock uo.1 uo.2 (2 * (N * N)))
      (Ops.Store.inBlock d.1 d.2 (2 * (N * N))))
  (hdt :
    Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 (2 * (N * N)))
      (Ops.Store.inBlock d.1 d.2 (2 * (N * N)))) :
  Ops.Writes Ops.Mode.total I τ Schur.residualWords (Ops.Env.frame [N] [a0, uo, t, d])
    (Ops.Store.inBlock d.1 d.2 (2 * (N * N)))
    (fun μ' ↦
      μ'.pos = μ.pos ∧
        HoldsMatrix d (Schur.subWord M A₀ (matMulWord M (matMulWord M U T) Uᴴ)) μ'.store)
    μ

Full source on GitHub

Import NLAlib.Eigensolvers.Schur.ResidualCheck.