NLA-lib Explorer

NLAlib.Schur.denseSchur_writes_orth

Library · theorem

This statement changed in the recorded rename: 2026-11-schur-tighten.

Standard rounding

The dense Schur solver terminates on every tape, at any \delta and \varphi, on a scalar machine with the standard model at \boldsymbol{u}, 400(n + 1)^2\boldsymbol{u} \le 1, 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: the run of denseSchur from a memory holding \mathbf{A} and the words of denseSchurParams 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 2\varepsilon + \varepsilon^2, \varepsilon = (1 + 27(n + 1)^2\boldsymbol{u})(1 + 24\boldsymbol{u})^{R_c} - 1, R_c the rotation count of the core. A step in the proof of NLAlib.Schur.denseSchur_terminates.

NLAlib.Schur.denseSchur_writes_orth {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)) ℂ} {δ φ : ℝ} (hu : 400 * (↑n + 1) ^ 2 * u ≤ 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)
    (Schur.SchurOrth a uo
      (2 *
          ((1 + 27 * (↑n + 1) ^ 2 * u) *
              (1 + 24 * u) ^
                ShiftedQR.shqrSchurRotations n (Schur.denseSchurDegree n δ φ)
                  (Schur.denseSchurShQRParams n δ φ ++ Schur.denseSchurLeafParams n δ φ).length
                  (Schur.denseSchurCap n δ φ)
                  (SmallEig.smallEigLeafRotations (Schur.denseSchurDegree n δ φ)
                    (Schur.denseSchurLeafCap n δ φ)) -
            1) +
        ((1 + 27 * (↑n + 1) ^ 2 * u) *
              (1 + 24 * u) ^
                ShiftedQR.shqrSchurRotations n (Schur.denseSchurDegree n δ φ)
                  (Schur.denseSchurShQRParams n δ φ ++ Schur.denseSchurLeafParams n δ φ).length
                  (Schur.denseSchurCap n δ φ)
                  (SmallEig.smallEigLeafRotations (Schur.denseSchurDegree n δ φ)
                    (Schur.denseSchurLeafCap n δ φ)) -
            1) ^
          2))
    μ

Full source on GitHub

Import NLAlib.Eigensolvers.Schur.Dense.