NLA-lib Explorer

NLAlib.ShiftedQR.roundedDecoupleCall_pwrites

Library · theorem

The decoupling call of a round on the good tapes: from the copied state of round j < 2(n + 1) on the range (lo, d + 1), k \le d, with the scoped log at Lc, the copied block is in the decoupler's class (norm at most N_0, condition at most 2B, separation g/2, by NLAlib.DeflationInv.exists_pseudoConditionNumber_subBlock_le_and_le_norm_sub), so a decoupler meeting NLAlib.ShiftedQR.RandomDecouplingRoutineContract returns, except with probability at most \varphi_D, the flag 0, a closed log and an upper Hessenberg perturbed unitary similarity of the block by the log's unitary with error \varepsilon(N_0) and a bottom-k subdiagonal entry of modulus at most \omega. A step in the proof of NLAlib.ShiftedQR.SchurReachedCore.of_below, NLAlib.ShiftedQR.roundedLarge_pwrites.

NLAlib.ShiftedQR.roundedDecoupleCall_pwrites {O Q : Type} {I : Ops.Interp O Q ℝ}
  (hI : I.IsMeasurable) {win : O → List ℕ → ℕ} (hloc : ∀ (o : O), I.TapeLocal o (win o))
  {law : ℕ → Measure ℝ} {B g φD N₀ u εL e ω : ℝ} {n k F T ns w m : ℕ} {ps : List ℝ} {ε : ℝ → ℝ}
  (D : Ops.Stmt O Q)
  (hD : ShiftedQR.RandomDecouplingRoutineContract law (2 * B) (g / 2) φD k F T n N₀ ps ns w ω ε D I)
  {H U V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {dd : Fin (n + 1) → ℂ} (hV : IsUnit V)
  (hHV : H * V = V * diagonal dd) (hκ : pseudoConditionNumber V ≤ B) (hg : 0 < g)
  (hgap : ∀ (i j : Fin (n + 1)), i ≠ j → g ≤ ‖dd i - dd j‖) (he0 : 0 ≤ e)
  (hN₀ : specNorm H + 2 * (↑n + 1) * e ≤ N₀) (hsmall : 2 * (↑n + 1) * e ≤ g / (16 * (↑n + 1) * B))
  {thr : ℝ} {a t p uo f st wk ub r : ℕ × ℕ} {j lo d Lc : ℕ} (hj : j < 2 * (n + 1)) (hk : k ≤ d)
  (hdn : d ≤ n) :
  Ops.PWrites law I (ShiftedQR.roundedDecoupleCall D)
    {
      idx :=
        (Ops.Env.frame [n + 1, k, ps.length, F, T, ns, w, lo, d + 1]
            [a, t, p, st, uo, wk, r, f]).idx,
      buf :=
        (Ops.Env.frame [n + 1, k, ps.length, F, T, ns, w, lo, d + 1]
              [a, t, p, st, uo, wk, r, f]).buf ++
          [Lc] }
    (Ops.Store.inBlock wk.1 wk.2 (2 * ((d + 1) * (d + 1))) ⊔ Ops.Store.inBlock f.1 f.2 1 ⊔
      Ops.Store.inBlock Lc 0 (ns * (1 + 5 * w)))
    (ShiftedQR.SchurPoppedLog n H U u εL e m thr ps a t p uo f st wk ub r j lo (d + 1) ns w Lc)
    (fun μ₁ ↦
      ∃ μ,
        ShiftedQR.SchurPoppedLog n H U u εL e m thr ps a t p uo f st wk ub r j lo (d + 1) ns w Lc
            μ ∧
          (μ, μ₁) ∈
            {x |
              Ops.Store.EqOff
                  (Ops.Store.inBlock wk.1 wk.2 (2 * ((d + 1) * (d + 1))) ⊔
                      Ops.Store.inBlock f.1 f.2 1 ⊔
                    Ops.Store.inBlock Lc 0 (ns * (1 + 5 * w)))
                  x.1.store x.2.store ∧
                x.2.store.get f.1 f.2 = some 0 ∧
                  (∀ j < 2 * ((d + 1) * (d + 1)), (x.2.store.get wk.1 (wk.2 + j)).isSome = true) ∧
                    IsPerturbedUnitarySimilarBy
                        (givensLog (d + 1) (slotEntries w (slottedLogRead (Lc, 0) ns w x.2.store)))
                        (storedMatrix wk (d + 1) (d + 1) x.1.store)
                        (storedMatrix wk (d + 1) (d + 1) x.2.store) (ε N₀) ∧
                      IsUpperHessenberg (storedMatrix wk (d + 1) (d + 1) x.2.store) ∧
                        (∃ i,
                            d ≤ ↑i + k ∧
                              ‖storedMatrix wk (d + 1) (d + 1) x.2.store i.succ i.castSucc‖ ≤ ω) ∧
                          ∃ Ls,
                            Ls.length = ns ∧
                              (∀ e ∈ slotEntries w Ls, e.1 + 1 < d + 1) ∧
                                HoldsSlottedLog (Lc, 0) ns w ([] ++ Ls) [] x.2.store})
    φD

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedWorklistSchur.