NLA-lib Explorer

NLAlib.Schur.verifiedSchurWith_writes

Library · theorem

Standard rounding

The verified Schur solver on every tape: on a scalar machine with the standard model at \boldsymbol{u}, index literals and exact comparisons, with 64(n + 2)^3\boldsymbol{u} \le 1, \kappa \ge 32(n + 2)^2\boldsymbol{u}, \theta \ge 0 and 2\theta\sqrt{n + 1} \le \delta, let Solve be a Schur solver that terminates on every tape at the order n + 1, the dimensions (n + 1, n_r, n_q, k, F, T) and the words qs, with the accumulator within e_U of orthonormal (NLAlib.Schur.TerminatingSchurSolver). Then from a memory holding a complex \mathbf{A} of order n + 1 and the words \theta, \kappa, qs (NLAlib.Schur.SchurPipelineInput), on every tape, NLAlib.Schur.verifiedSchurWith terminates, writes only \mathbf{A}, \widehat{\mathbf{U}} and the flag, stores the flag 0 or 1, and if the flag is 0: \widehat{\mathbf{T}} is upper triangular, \|\mathbf{A} - \widehat{\mathbf{U}}\widehat{\mathbf{T}}\widehat{\mathbf{U}}^{\mathsf H}\|_2 \le \delta\|\mathbf{A}\|_2 and \|\widehat{\mathbf{U}}^{\mathsf H}\widehat{\mathbf{U}} - \mathbf{I}\|_2 \le e_U. No pro\mathbf{b}a\mathbf{b}ility and no hypothesis on \mathbf{A}. No printed source. A statement of the tree NLAlib.Schur.verifiedSchurWith for any stage Solve, given by its stage contract; the routine at the dense solver is NLAlib.Schur.verifiedSchurRoutine.

NLAlib.Schur.verifiedSchurWith_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
  [Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar M I)
  (hM : Ops.StdModel u id M) (hL : Ops.IsIndexLit M I) (hC : Ops.IsCmp id I) {n nr nq k F T : ℕ}
  {qs : List ℝ} {Solve : Ops.Stmt O Q} {eU δ θ κ : ℝ}
  (hSolve : Schur.TerminatingSchurSolver eU n [n + 1, nr, nq, k, F, T] qs Solve I)
  (hu : 64 * (↑n + 2) ^ 3 * u ≤ 1) (hκ : 32 * (↑n + 2) ^ 2 * u ≤ κ) (hθ0 : 0 ≤ θ)
  (hθ : 2 * θ * √(↑n + 1) ≤ δ) {A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {a p uo f : ℕ × ℕ}
  {μ : Ops.Mem ℝ} (hq : qs.length = nr + nq)
  (hin : Schur.SchurPipelineInput (qs ++ [θ, κ]) a p uo f A μ) (τ : Ops.Tape ℝ) :
  Ops.Writes Ops.Mode.total I τ (Schur.verifiedSchurWith Solve)
    (Ops.Env.frame [n + 1, nr, nq, k, F, T] [a, p, a, uo, f]) (Schur.schurFp n a uo f)
    (Schur.VerifiedSchurOutput M a uo f A δ eU) μ

Full source on GitHub

Import NLAlib.Eigensolvers.Schur.Verified.