NLAlib.Schur.denseSchur_terminates
Library · theorem
This statement changed in the recorded rename: 2026-11-schur-tighten.
Standard rounding
The dense Schur solver terminates, with a near-orthonormal accumulator, on every tape: on a scalar machine with the standard model at \boldsymbol{u} \le \boldsymbol{u}_0, 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 0 < \delta \le 1, any \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 on every tape, writes only \mathbf{A}, \widehat{\mathbf{U}} and the flag, and stores a matrix in the block of \mathbf{A} and \widehat{\mathbf{U}} with \|\widehat{\mathbf{U}}^{\mathsf{H}}\widehat{\mathbf{U}} - \mathbf{I}\|_2 \le 58R\boldsymbol{u}. Here \boldsymbol{u}_0 is NLAlib.Schur.uDenseSchur and R is NLAlib.Schur.denseSchurRotations. The orthogonality needs no shift to succeed: every replayed rotation and every leaf product is a near-unitary update.
NLAlib.Schur.denseSchur_terminates {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 ℝ} {u : ℝ} {n : ℕ}
(hS : Ops.IsScalar Mch I) (hM : Ops.StdModel u id Mch) (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)) ℂ} {δ φ : ℝ} (hδ : 0 < δ) (hδ1 : δ ≤ 1)
(hu : u ≤ Schur.uDenseSchur n δ φ) {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)
(Schur.SchurOrth a uo (58 * ↑(Schur.denseSchurRotations n δ φ) * u)) μImport NLAlib.Eigensolvers.Schur.Dense.