NLA-lib Explorer

NLAlib.ShiftedQR.roundedDecoupleScan_writes

Library · theorem

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

Standard rounding

The scan of the decoupling loop: from the state after an iteration, the rounded bottom scan with the loop's threshold t_L (the first parameter word) reaches the state before the next round. An entry that passed the iteration's test, (1 - \boldsymbol{u})^2\lvert h\rvert^2 \le t, passes the loop's when (1 + \boldsymbol{u})^2 t \le (1 - \boldsymbol{u})^2 t_L, so a matrix the scan finds coupled has had its potential contracted. Also in the tree of NLAlib.SmallEig.smallEigRoutine. A step in the proof of NLAlib.ShiftedQR.roundedDecoupleIteration_pwrites, NLAlib.ShiftedQR.roundedDecoupleLoop_pwrites.

NLAlib.ShiftedQR.roundedDecoupleScan_writes {n : ℕ} {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has Ops.IndexOp O] [Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ}
  (hS : Ops.IsScalar M I) (hM : Ops.StdModel u id M) (hu1 : u < 1) (hL : Ops.IsIndexLit M I)
  (hNat : Ops.IsExactNatLit id M (n + 1)) (hC : Ops.IsCmp id I) {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ}
  {k L : ℕ} (hk : k ≤ n) {w q f : ℕ × ℕ} {ps : List ℝ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
  {tL tv c E : ℝ} {i : ℕ} (hps : ps.getD 0 0 = tL) (hps0 : 0 < ps.length)
  (hthr : (1 + u) ^ 2 * tv ≤ (1 - u) ^ 2 * tL) (hctx : ShiftedQR.DecoupleLoopCtx n L w q f ps μ)
  {lg : ℕ × ℕ} {ns ws s : ℕ} (hlgL : lg.1 ≠ L)
  (hmid : ShiftedQR.DecoupleLoopMid u k H tv c E w i lg ns ws s μ) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.bottomScan (Ops.Env.frame [n + 1, k] [w, q, (L, 0)])
    (Ops.Store.inBlock L 0 5)
    (fun μ' ↦
      ShiftedQR.DecoupleLoopCtx n L w q f ps μ' ∧
        ShiftedQR.DecoupleLoopState u k H tL c E w (L, 0) i lg ns ws s μ')
    μ

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedDecouple.