NLA-lib Explorer

End-to-end dense Schur: backward error and orthogonality

Library · Result group

Theorem (Schur.denseSchur_measureReal_not_schur_le). The dense Schur theorem. Let the machine have the standard model at \boldsymbol{u} \le \boldsymbol{u}_0, index literals, exact natural literals up to n + 1, exact toNat and comparisons, a measurable interpretation reading the tape only in its windows whose draws store the tape entry, a stream s_U uniform on [0, 1] with an exact polar disk sampler on it and a stream s_G with the standard real Gaussian law. Let 0 < \delta \le 1 and 0 < \varphi \le 1. Then for every complex \mathbf{A} of order n + 1, from a memory holding \mathbf{A} and the words of denseSchurParams, under a random tape with the stream laws, \mathbb{P}\bigl[\mathsf{denseSchur}(\mathbf{A}) \text{ fails, or writes outside } \mathbf{A}, \widehat{\mathbf{U}} \text{ and the flag, or stores no flag } 0 \text{ and } \widehat{\mathbf{U}}, \widehat{\mathbf{T}} \text{ with } \widehat{\mathbf{T}} \text{ upper triangular},\ \|\mathbf{A} - \widehat{\mathbf{U}}\widehat{\mathbf{T}} \widehat{\mathbf{U}}^{\mathsf{H}}\|_2 \le \delta\|\mathbf{A}\|_2,\ \|\widehat{\mathbf{U}}^{\mathsf{H}}\widehat{\mathbf{U}} - \mathbf{I}\|_2 \le 58R\boldsymbol{u} \bigr] \le \varphi\,. Here \boldsymbol{u}_0 is NLAlib.Schur.uDenseSchur and R is NLAlib.Schur.denseSchurRotations; 58R\boldsymbol{u} \le \delta (NLAlib.Schur.mul_denseSchurRotations_le). [BanksGarzaVargasSrivastava2022, Theorem 1.4] with [BanksGarzaVargasSrivastava2025, Theorem 1.1]; there only the eigenvalues are computed. No hypothesis on \mathbf{A}.

Headline Standard rounding Random tape

Notes

General form, any small-block Schur solver: NLAlib.Schur.denseSchurWith_measureReal_not_schur_le, with the leaf contract of NLAlib.SmallEig.smallEigProg_randomSchurLeafContract. The run terminates on every tape, with the orthogonality bound whatever the tape (NLAlib.Schur.denseSchur_terminates). For \mathbf{A} = 0 the norm estimate is 0 and the run stores \widehat{\mathbf{U}} = \mathbf{I}.

Lean statement and details
NLAlib.Schur.denseSchur_measureReal_not_schur_le {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)
  (hI : I.IsMeasurable) {win : O → List ℕ → ℕ} (hloc : ∀ (o : O), I.TapeLocal o (win o))
  (hSmp : Ops.IsSample I) {law : ℕ → Measure ℝ} {sU sG : ℕ}
  (hDisk : ShiftedQR.IsPolarDiskSampler sU I) (hU : law sU = ℙ.restrict (Set.Icc 0 1))
  (hG : law sG = gaussianReal 0 1) {A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {δ φ : ℝ} (hδ : 0 < δ)
  (hδ1 : δ ≤ 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 μ)
  {Ω : Type} [MeasurableSpace Ω] {P : Measure Ω} {ξ : Ω → Ops.Tape ℝ} (hξ : Ops.IsTapeLaw law P ξ) :
  P.real
      {ω |
        ¬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.SchurOutput a uo f A δ (58 * ↑(Schur.denseSchurRotations n δ φ) * u)) μ} ≤
    φ

Full source on GitHub

Copy link