NLA-lib Explorer

NLAlib.Schur.denseSchurWith_measureReal_not_schur_le

Library · theorem

Headline of dense-schur-small-block-oracle Standard rounding Random tape

The dense Schur theorem with any small-block Schur solver. Let the machine have the standard model at \boldsymbol{u}, 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, 0 < \varphi \le 1 and k the shift degree. Let the leaf L be a randomized small-block Schur solver on the orders at most \min(k, n + 1) and norms at most 32 with the cap T and 12 words qs: except with probability \varphi_L it stores an upper triangular \mathbf{T}_\mathbf{b} and an accumulator \mathbf{U}_\mathbf{b} with \|\mathbf{U}_\mathbf{b} - \mathbf{V}_\mathbf{b}\|_2 \le \varepsilon_L and \mathbf{T}_\mathbf{b} = \mathbf{V}_\mathbf{b}^{\mathsf{H}}(\mathbf{B} + \mathbf{F})\mathbf{V}_\mathbf{b} for an exact unitary \mathbf{V}_\mathbf{b} and \|\mathbf{F}\|_2 \le \beta_L; let 0 \le \varepsilon_L \le (1 + 24\boldsymbol{u})^{R_L} - 1, 0 \le \beta_L \le \beta_0, 0 \le \varphi_L \le \varphi_0 and \boldsymbol{u} \le \boldsymbol{u}_0. Then for every complex \mathbf{A} of order n + 1, from a memory holding \mathbf{A} and the words of denseSchurParamsWith with qs, under a random tape with the stream laws, \mathbb{P}\bigl[\mathsf{denseSchurWith}_L(\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 k is NLAlib.Schur.denseSchurDegree, \beta_0 is NLAlib.Schur.denseSchurLeafAccuracy, \varphi_0 is NLAlib.Schur.denseSchurLeafFailure, \boldsymbol{u}_0 is NLAlib.Schur.uDenseSchurWith and R is NLAlib.Schur.denseSchurRotationsWith, at R_L and the core's word count. No printed source: [BanksGarzaVargasSrivastava2022, Theorem 6.3] computes eigenvalues only, with an eigenvalue oracle.

Result: dense-schur-small-block-oracle

Notes

The leaf is a hypothesis, NLAlib.Schur.RandomSchurLeafContract: this is the dense Schur solver with a small-block Schur oracle, any solver meeting the contract. The stages compose by the generic composition theorem NLAlib.Schur.schurPipelineWith_measureReal_not_schur_le, the core by NLAlib.ShiftedQR.roundedShQRSchurWith_randomSchurCoreContract, the reducer by NLAlib.hessenbergReduceQ_hessenbergReducerContract, the regularizer by NLAlib.Schur.ginibrePerturb_randomRegularizerContract and the norm by NLAlib.Schur.frobNormStage_frobNormEstimateContract. The instance with SmallEig is NLAlib.Schur.denseSchur_measureReal_not_schur_le.

NLAlib.Schur.denseSchurWith_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) {δ φ : ℝ} (hδ : 0 < δ) (hδ1 : δ ≤ 1) (hφ : 0 < φ) (hφ1 : φ ≤ 1)
  {εL βL φL : ℝ} {T RL : ℕ} {qs : List ℝ} {L : Ops.Stmt O Q}
  (hLeaf :
    Schur.RandomSchurLeafContract law εL βL φL (min (Schur.denseSchurDegree n δ φ) (n + 1)) 32 qs T
      L I)
  (hqs : qs.length = 12) (hεL : 0 ≤ εL) (hεLR : εL ≤ (1 + 24 * u) ^ RL - 1) (hβL0 : 0 ≤ βL)
  (hβL : βL ≤ Schur.denseSchurLeafAccuracy n δ φ) (hφL0 : 0 ≤ φL)
  (hφL : φL ≤ Schur.denseSchurLeafFailure n δ φ)
  (hu : u ≤ Schur.uDenseSchurWith n δ φ (Schur.denseSchurShQRParams n δ φ ++ qs).length RL)
  {A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {a p uo f : ℕ × ℕ} {μ : Ops.Mem ℝ}
  (hin : Schur.SchurPipelineInput (Schur.denseSchurParamsWith n δ φ qs) 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.denseSchurWith sG L)
            (Ops.Env.frame (Schur.denseSchurDimsWith n δ φ qs T) [a, p, a, uo, f])
            (Schur.schurFp n a uo f)
            (Schur.SchurOutput a uo f A δ
              (58 *
                  ↑(Schur.denseSchurRotationsWith n δ φ
                      (Schur.denseSchurShQRParams n δ φ ++ qs).length RL) *
                u))
            μ} ≤
    φ

Full source on GitHub

Import NLAlib.Eigensolvers.Schur.Dense.