NLA-lib Explorer

Verified dense Schur: failure probability of the flag

Library · Result group

Theorem (Schur.verifiedSchur_measureReal_not_schur_le). The verified dense Schur solver (Las Vegas, the probability half): on the machine and streams of NLAlib.Schur.denseSchur_measureReal_not_schur_le (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), for 0 < \delta \le 1, 0 < \varphi \le 1 and every complex \mathbf{A} of order n + 1, from a memory holding \mathbf{A} and the words of verifiedSchurParams, under a random tape with the stream laws, \mathbb{P}\bigl[\mathsf{verifiedSchur}(\mathbf{A}) \text{ fails, writes outside } \mathbf{A}, \widehat{\mathbf{U}} \text{ and the flag, or stores no flag } 0 \text{ with } \widehat{\mathbf{U}}, \widehat{\mathbf{T}},\ \widehat{\mathbf{T}} \text{ upper triangular},\ \|\mathbf{A} - \widehat{\mathbf{U}}\widehat{\mathbf{T}}\widehat{\mathbf{U}}^{\mathsf{H}}\|_2 \le \delta_{\mathrm{int}}\|\mathbf{A}\|_2,\ \|\widehat{\mathbf{U}}^{\mathsf{H}}\widehat{\mathbf{U}} - \mathbf{I}\|_2 \le 58R\boldsymbol{u} \bigr] \le \varphi\,, \delta_{\mathrm{int}} = \delta/(16(n + 1)). With NLAlib.Schur.verifiedSchur_writes the flag is a certificate on every tape. Here \boldsymbol{u}_0 is NLAlib.Schur.uVerifiedSchur and R is NLAlib.Schur.denseSchurRotations at \delta_{\mathrm{int}}. [BanksGarzaVargasSrivastava2022, Theorem 1.4] with [BanksGarzaVargasSrivastava2025, Theorem 1.1] for the solver; the a posteriori check has no printed source.

Headline Standard rounding Random tape

Lean statement and details
NLAlib.Schur.verifiedSchur_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.uVerifiedSchur n δ φ) {a p uo f : ℕ × ℕ}
  {μ : Ops.Mem ℝ} (hin : Schur.SchurPipelineInput (Schur.verifiedSchurParams u 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.verifiedSchur sG)
            (Ops.Env.frame (Schur.denseSchurDims n (Schur.verifiedSchurDelta n δ) φ)
              [a, p, a, uo, f])
            (Schur.schurFp n a uo f)
            (Schur.SchurOutput a uo f A (Schur.verifiedSchurDelta n δ)
              (58 * ↑(Schur.denseSchurRotations n (Schur.verifiedSchurDelta n δ) φ) * u))
            μ} ≤
    φ

Full source on GitHub

Copy link