NLA-lib Explorer

NLAlib.ShiftedQR.roundedDecoupleWith_randomDecouplingRoutineContract

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 ([BanksGarzaVargasSrivastava2022, Lemma 6.4] in floating point, corrected; the routine of [BanksGarzaVargasSrivastava2025, Corollary 1.3]): 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 and an exact polar disk sampler on a stream s₀ uniform on [0, 1], let the routine SE meet NLAlib.ShiftedQR.RandomSmallEigContract on orders at most k and norms at most S (the iterate norm) with forward error \beta \ge 0, failure probability \varphi_{\mathrm{se}} \ge 0, cap T and 12 words qs. Under the conditions of one iteration at the order n_{\max} + 1, the class constant B_i \ge 4B and the iterate norm S, and those of the loop (the scan thresholds, the cap, N_{\max} + FE \le S and FE \le (g/2)/(16(n_{\max} + 1) \cdot 2B) for E = (1 + C)S((1 + 300(n_{\max} + 1)^2\boldsymbol{u})^k - 1)), all in the signature, NLAlib.ShiftedQR.roundedDecoupleWith with the words NLAlib.ShiftedQR.roundedDecoupleParams followed by qs meets NLAlib.ShiftedQR.RandomDecouplingRoutineContract on the class (2B, g/2) with failure probability F(\varphi_{\mathrm{se}} + \varphi_R/2 + \varphi), the level \omega_D and the backward error FE.

NLAlib.ShiftedQR.roundedDecoupleWith_randomDecouplingRoutineContract {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.RandomSmallEigContract law β φse k T S qs SE I) (hqs : qs.length = 12)
  {ns ws : ℕ} (hns : F * (k + 1 + (ShiftedQR.excNet ε).length) ≤ ns) (hws : k * nmax ≤ ws) :
  ShiftedQR.RandomDecouplingRoutineContract law (2 * B) (g / 2) (↑F * (φse + φR / 2 + φ)) k F T nmax
    Nmax (ShiftedQR.roundedDecoupleParams tL R tv γ Bi α ε k q ++ qs) 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.RoundedDecoupleRoutine.