NLA-lib Explorer

NLAlib.Schur.denseSchur_completes

Library · theorem

The dense Schur solver runs to completion on every tape and on any scalar machine: with index literals, exact natural literals up to n + 1, exact toNat and comparisons, draws that store the tape entry and an exact polar disk sampler, for any \delta, \varphi and every complex \mathbf{A} of order n + 1, the run of denseSchur from a memory holding \mathbf{A} and the words of denseSchurParams succeeds and writes only \mathbf{A}, \widehat{\mathbf{U}} and the flag. No rounding model is needed (NLAlib.Schur.schurPipelineWith_completes); the orthogonality under the standard model is NLAlib.Schur.denseSchur_terminates.

NLAlib.Schur.denseSchur_completes {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
  [Ops.Has Ops.SampleOp O] [Ops.Has ShiftedQR.DiskSampleOp O] [Ops.Has Ops.CmpTst Q]
  [Ops.Has Ops.IdxTst Q] {Mch : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {n : ℕ}
  (hS : Ops.IsScalar Mch I) (hL : Ops.IsIndexLit Mch I) (hNat : Ops.IsExactNatLit id Mch (n + 1))
  (hQ : Ops.IsToNat id I) (hC : Ops.IsCmp id I) (hSmp : Ops.IsSample I) {sU sG : ℕ}
  (hDisk : ShiftedQR.IsPolarDiskSampler sU I) {A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {δ φ : ℝ}
  {a p uo f : ℕ × ℕ} {μ : Ops.Mem ℝ}
  (hin : Schur.SchurPipelineInput (Schur.denseSchurParams n δ φ) a p uo f A μ) (τ : Ops.Tape ℝ) :
  Ops.Writes Ops.Mode.total I τ (Schur.denseSchur sG)
    (Ops.Env.frame (Schur.denseSchurDims n δ φ) [a, p, a, uo, f]) (Schur.schurFp n a uo f)
    (fun x ↦ True) μ

Full source on GitHub

Import NLAlib.Eigensolvers.Schur.Completion.