NLA-lib Explorer

NLAlib.ShiftedQR.shExcShifts_pwrites

Library · theorem

Standard rounding

The exceptional shifts of Sh as a probabilistic block: under a measurable, tape-local interpretation on a scalar machine with the standard model at 10^5k\boldsymbol{u} \le 1 and an exact polar sampler on a stream s₀ uniform on [0, 1], let \mathbf{H}\mathbf{V} = \mathbf{V}\operatorname{diag}(\mathbf{e}) with \kappa(\mathbf{V}) \le B, \|\mathbf{H}\|_2 \le \Sigma, 2 \le k \le n, the k shifts ss \theta-optimal (\theta \ge 1), none an eigenvalue, in \mathbb{D}(0, 1.1\|\mathbf{H}\|_2), \psi_k(\mathbf{H}) > 0, 0 < \gamma < 1, \alpha \ge 1, \varepsilon = (0.998(1 - \gamma)^2/((13B^4)^{1/k}\alpha^2\theta^2))^{k/(k-1)} \le 1/2, 0 < \varphi \le 1/5, 0 < d \le \varepsilon R_{\mathrm{lo}}\sqrt{q}/4 with q = \varphi/(11(n + 1)) and the window [R_{\mathrm{lo}}, R_{\mathrm{hi}}] = [1.998^{1/k}, 2.002^{1/k}]\,\theta\alpha B^{1/k}\psi_k(\mathbf{H}) of the radius, 1.1 + 2.1 \cdot 2.002^{1/k}\theta\alpha B^{1/k} \le C, the words c_r = 2^{1/k}\theta\alpha B^{1/k} and c_w = \varepsilon/2, and the rounding budget 6\boldsymbol{u}(1.1\Sigma + 3R_{\mathrm{hi}}) \le \min(0.005, \sqrt{q}/8)\,\varepsilon R_{\mathrm{lo}}. From the state NLAlib.ShiftedQR.ShExcMid1 the shifts NLAlib.ShiftedQR.excShifts reach the state NLAlib.ShiftedQR.ShExcMid2 except with probability at most \varphi. The random shifts form one probabilistic block per centre and radius; their outcome is the measurable set NLAlib.ShiftedQR.measurableSet_excOutcome. A step in the proof of NLAlib.ShiftedQR.shExc_pwrites.

NLAlib.ShiftedQR.shExcShifts_pwrites {n : ℕ} {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has ShiftedQR.DiskSampleOp O] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ}
  (hI : I.IsMeasurable) {win : O → List ℕ → ℕ} (hloc : ∀ (o : O), I.TapeLocal o (win o))
  (hS : Ops.IsScalar M I) (hM : Ops.StdModel u id M) {law : ℕ → Measure ℝ} {s₀ : ℕ}
  (hD : ShiftedQR.IsPolarDiskSampler s₀ I) (hU : law s₀ = ℙ.restrict (Set.Icc 0 1)) {L k : ℕ}
  (hk : 2 ≤ k) (hkn : k ≤ n) {ε : ℝ} {a s wg wr ww wp g thr f : ℕ × ℕ}
  (hv : ShiftedQR.ShViews L n k ε a s wg wr ww wp g thr f) {B S θ α γ φ d C cg cr cw cp tv : ℝ}
  {H V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {e : Fin (n + 1) → ℂ} {ss : List ℂ}
  (hlen : ss.length = k) (hV : IsUnit V) (hHV : H * V = V * diagonal e)
  (hκ : pseudoConditionNumber V ≤ B) (hSH : specNorm H ≤ S) (hopt : IsOptimalRitzValues θ H ss)
  (hd0 : ∀ (i : Fin (n + 1)), ∀ s ∈ ss, e i ≠ s) (hsH : ∀ s ∈ ss, ‖s‖ ≤ 1.1 * specNorm H)
  (hψ : 0 < hessenbergPotential k H) (hγ : 0 < γ) (hγ1 : γ < 1) (hθ : 1 ≤ θ) (hα : 1 ≤ α)
  (hε : ε = (0.998 * (1 - γ) * (1 - γ) / ((13 * B ^ 4) ^ (↑k)⁻¹ * α ^ 2 * θ ^ 2)) ^ (↑k / (↑k - 1)))
  (hε2 : ε ≤ 1 / 2) (hφ : 0 < φ) (hφ1 : φ ≤ 1 / 5)
  (hd :
    d ≤
      ε * (1.998 ^ (↑k)⁻¹ * θ * α * B ^ (↑k)⁻¹ * hessenbergPotential k H) * √(φ / (11 * ↑(n + 1))) /
        4)
  (hd' : 0 < d) (hC : 1.1 + 2.1 * (2.002 ^ (↑k)⁻¹ * θ * α * B ^ (↑k)⁻¹) ≤ C)
  (hku : 100000 * ↑k * u ≤ 1)
  (hexc1 :
    6 * u * (1.1 * S + 3 * (2.002 ^ (↑k)⁻¹ * θ * α * B ^ (↑k)⁻¹ * hessenbergPotential k H)) ≤
      5e-3 * ε * (1.998 ^ (↑k)⁻¹ * θ * α * B ^ (↑k)⁻¹ * hessenbergPotential k H))
  (hexc2 :
    6 * u * (1.1 * S + 3 * (2.002 ^ (↑k)⁻¹ * θ * α * B ^ (↑k)⁻¹ * hessenbergPotential k H)) ≤
      ε * (1.998 ^ (↑k)⁻¹ * θ * α * B ^ (↑k)⁻¹ * hessenbergPotential k H) * √(φ / (11 * ↑(n + 1))) /
        8)
  (hcr : cr = 2 ^ (↑k)⁻¹ * (θ * α * B ^ (↑k)⁻¹)) (hcw : cw = ε / 2) :
  Ops.PWrites law I ShiftedQR.excShifts
    (Ops.Env.frame [(ShiftedQR.excNet ε).length] [(L, 0), (L + 1, 0), ww, g, (L + 10, 0)])
    (Ops.Store.inBlock (L + 10) 0 (2 * (ShiftedQR.excNet ε).length))
    (ShiftedQR.ShExcMid1 M u L k ε H V e ss α γ cg cr cw cp tv a s wg wr ww wp g thr f)
    (ShiftedQR.ShExcMid2 M u L k ε H e ss γ cg cr cw cp tv d C a s wg wr ww wp g thr f) φ

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedShExc.