NLA-lib Explorer

NLAlib.ShiftedQR.roundedDecoupleWith_randomDecouplingRoutineContract_at

Library · theorem

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

Standard rounding

The rounded decoupling loop with a small-eigenvalue routine meets the randomized decoupling contract, with the parameter words NLAlib.ShiftedQR.roundedDecoupleParams followed by the routine's words qs (none, or 12) and the routine meeting NLAlib.ShiftedQR.RandomSmallEigContractAt with the word count 12. The rounded decoupling loop meets the randomized decoupling contract ([BanksGarzaVargasSrivastava2022, Lemma 6.4] in floating point, corrected): on a machine with the standard model at \boldsymbol{u} < 1, exact natural literals up to n_{\max} + 1, a measurable interpretation reading the tape only in its windows, a SmallEig kernel and an exact polar disk sampler, NLAlib.ShiftedQR.roundedDecoupleWith with the parameter words NLAlib.ShiftedQR.roundedDecoupleParams meets NLAlib.ShiftedQR.RandomDecouplingRoutineContract on the class (condition 2B, separation g/2) for orders up to n_c + 1 and norms up to N_{\max}, for any n_c \le n_{\max} and a log width w \ge kn_c, with failure pro\mathbf{b}a\mathbf{b}ility F(\varphi_{\mathrm{se}} + \varphi_R/2 + \varphi), the level \omega_D and the backward error FE, E = (1 + C)S((1 + 300(n_{\max}+1)^2\boldsymbol{u})^k - 1). The hypotheses are those of NLAlib.ShiftedQR.shIteration_pwrites at the order n_{\max} + 1, the class constant B_i \ge 4B and the iterate norm S, and the loop's: the scan thresholds (1 + \boldsymbol{u})^2 t \le (1 - \boldsymbol{u})^2 t_L \le (1 - \boldsymbol{u})^4\omega_D^2, the cap (1 + \boldsymbol{u})^2((1.002(1 - \gamma))^F N_{\max})^2 \le t_L, the iterate norms N_{\max} + FE \le S and the class preser\mathbf{v}ation FE \le (g/2)/(16(n_{\max} + 1) \cdot 2B). Each round is one iteration (NLAlib.ShiftedQR.shIteration_pwrites) and a scan; the iterates stay in the class (condition 4B, separation g/4, NLAlib.IsPerturbedUnitarySimilar.exists_pseudoConditionNumber_le_and_le_norm_sub); a coupled matrix had its potential contracted, so after F rounds the scan passes (NLAlib.exists_norm_subdiag_le_hessenbergPotential), and the failures of the rounds add (NLAlib.Ops.PWrites.whileFuel).

NLAlib.ShiftedQR.roundedDecoupleWith_randomDecouplingRoutineContract_at {O Q : Type}
  [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O] [Ops.Has ShiftedQR.DiskSampleOp O]
  [Ops.Has Ops.CmpTst Q] [Ops.Has Ops.IdxTst Q] {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) (hu1 : u < 1) (hL : Ops.IsIndexLit M I)
  {nmax : ℕ} (hNat : Ops.IsExactNatLit id M (nmax + 1)) (hC : Ops.IsCmp id I)
  (hQ : Ops.IsToNat id I) {law : ℕ → Measure ℝ} {s₀ : ℕ} {β φse : ℝ} (hβ0 : 0 ≤ β) (hφse : 0 ≤ φse)
  (hDisk : ShiftedQR.IsPolarDiskSampler s₀ I) (hU : law s₀ = ℙ.restrict (Set.Icc 0 1)) {k q F : ℕ}
  (hkq : k = 2 ^ q) (hk : 2 ≤ k) {B g Bi Nmax S ω ωD tL tv R φR α γ φ C ε : ℝ} (hg : 0 < g)
  (hBi : 4 * B ≤ Bi) (hS0 : 0 ≤ S) (hBk : Bi ^ (2 / ↑k) ≤ 2) (hω : 0 < ω)
  (hgapS : 2 * ω ^ 2 / S ≤ g / 4) (hR : 0 < R) (hφR : 0 < φR) (hφR1 : φR ≤ 1)
  (hβ : β + R + 2 * u * (S + β + R) ≤ ω ^ 2 / (20 * 101 * S))
  (hdη : 4 * u * (S + β + R) ≤ R * √(φR / (2 * ↑k))) (hnu : (↑nmax + 1) * u ≤ 1 / 2500)
  (huo :
    30000 * ↑k * (↑(nmax + 1) * √↑(nmax + 1) * u) * ((2 + 2 * 1.1) * S) ^ k ≤
      (1.01 * 0.998 ^ (-(↑k)⁻¹) * (2 * Bi ^ 4) ^ (2 * ↑k)⁻¹ * ω) ^ k)
  (huo1 : 100000 * ↑(nmax + 1 + k) ^ 2 * u ≤ 1)
  (hxuR :
    300 * (↑nmax + 1) ^ 2 * u ≤ (16 * Bi)⁻¹ * (R * √(φR / (2 * ↑k)) / 2 / ((2 + 2 * 1.1) * S)) ^ k)
  (hboundR :
    (66 + 2 * 1.1) * Bi * S * ((2 + 2 * 1.1) * S / (R * √(φR / (2 * ↑k)) / 2)) ^ k * √(↑nmax + 1) *
        (300 * (↑nmax + 1) ^ 2 * u) ≤
      ω / 2)
  (hα : α = (1.01 * Bi) ^ (4 * ↑q / 2 ^ q)) (hγ : 0 < γ) (hγ1 : γ < 1)
  (hε :
    ε =
      (0.998 * (1 - γ) * (1 - γ) /
          ((13 * Bi ^ 4) ^ (↑k)⁻¹ * α ^ 2 *
            (1.01 * 0.998 ^ (-(↑k)⁻¹) * (2 * Bi ^ 4) ^ (2 * ↑k)⁻¹) ^ 2)) ^
        (↑k / (↑k - 1)))
  (hε2 : ε ≤ 1 / 2) (hφ : 0 < φ) (hφ1 : φ ≤ 1 / 5)
  (hd :
    R * √(φR / (2 * ↑k)) / 2 ≤
      ε *
            (1.998 ^ (↑k)⁻¹ * (1.01 * 0.998 ^ (-(↑k)⁻¹) * (2 * Bi ^ 4) ^ (2 * ↑k)⁻¹) * α *
                Bi ^ (↑k)⁻¹ *
              ω) *
          √(φ / (11 * ↑(nmax + 1))) /
        4)
  (hC1 :
    1.1 +
        2.1 *
          (2.002 ^ (↑k)⁻¹ * (1.01 * 0.998 ^ (-(↑k)⁻¹) * (2 * Bi ^ 4) ^ (2 * ↑k)⁻¹) * α *
            Bi ^ (↑k)⁻¹) ≤
      C)
  (hxu :
    300 * (↑nmax + 1) ^ 2 * u ≤ (8004 * Bi)⁻¹ * (R * √(φR / (2 * ↑k)) / 2 / ((2 + 2 * C) * S)) ^ k)
  (hbound :
    (66 + 2 * C) * Bi * S * ((2 + 2 * C) * S / (R * √(φR / (2 * ↑k)) / 2)) ^ k * √(↑nmax + 1) *
        (300 * (↑nmax + 1) ^ 2 * u) ≤
      1e-3 * ω)
  (hexc1 :
    6 * u *
        (1.1 * S +
          3 *
            (2.002 ^ (↑k)⁻¹ * (1.01 * 0.998 ^ (-(↑k)⁻¹) * (2 * Bi ^ 4) ^ (2 * ↑k)⁻¹) * α *
                Bi ^ (↑k)⁻¹ *
              S)) ≤
      5e-3 * ε *
        (1.998 ^ (↑k)⁻¹ * (1.01 * 0.998 ^ (-(↑k)⁻¹) * (2 * Bi ^ 4) ^ (2 * ↑k)⁻¹) * α * Bi ^ (↑k)⁻¹ *
          ω))
  (hexc2 :
    6 * u *
        (1.1 * S +
          3 *
            (2.002 ^ (↑k)⁻¹ * (1.01 * 0.998 ^ (-(↑k)⁻¹) * (2 * Bi ^ 4) ^ (2 * ↑k)⁻¹) * α *
                Bi ^ (↑k)⁻¹ *
              S)) ≤
      ε *
            (1.998 ^ (↑k)⁻¹ * (1.01 * 0.998 ^ (-(↑k)⁻¹) * (2 * Bi ^ 4) ^ (2 * ↑k)⁻¹) * α *
                Bi ^ (↑k)⁻¹ *
              ω) *
          √(φ / (11 * ↑(nmax + 1))) /
        8)
  (hthrω : (1 + u) ^ 2 * ω ^ 2 ≤ tv) (hthr : (1 + u) ^ 2 * tv ≤ (1 - u) ^ 2 * tL)
  (hcut : tL ≤ (1 - u) ^ 2 * ωD ^ 2) (hωD : 0 ≤ ωD)
  (hfuel : (1 + u) ^ 2 * ((1.002 * (1 - γ)) ^ F * Nmax) ^ 2 ≤ tL)
  (hSN : Nmax + ↑F * ((1 + C) * S * ((1 + 300 * (↑nmax + 1) ^ 2 * u) ^ k - 1)) ≤ S)
  (hsmall :
    ↑F * ((1 + C) * S * ((1 + 300 * (↑nmax + 1) ^ 2 * u) ^ k - 1)) ≤
      g / 2 / (16 * (↑nmax + 1) * (2 * B)))
  {T : ℕ} {qs : List ℝ} {SE : Ops.Stmt O Q}
  (hSE : ShiftedQR.RandomSmallEigContractAt law β φse k 12 T S qs SE I)
  (hq12 : qs = [] ∨ qs.length = 12) {ps : List ℝ}
  (hps : ps = ShiftedQR.roundedDecoupleParams tL R tv γ Bi α ε k q ++ qs) {ns ws : ℕ}
  (hns : F * (k + 1 + (ShiftedQR.excNet ε).length) ≤ ns) {nc : ℕ} (hnc : nc ≤ nmax)
  (hws : k * nc ≤ ws) :
  ShiftedQR.RandomDecouplingRoutineContract law (2 * B) (g / 2) (↑F * (φse + φR / 2 + φ)) k F T nc
    Nmax ps ns ws ωD (fun x ↦ ↑F * ((1 + C) * S * ((1 + 300 * (↑nmax + 1) ^ 2 * u) ^ k - 1)))
    (ShiftedQR.roundedDecoupleWith SE) I

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedDecoupleContract.