NLA-lib Explorer

NLAlib.ShiftedQR.DecoupleLoopCtx.iteration_words

Library · theorem

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

The words of an iteration read from the parameter words of the loop (NLAlib.ShiftedQR.roundedDecoupleParams): the operands are live, the first ten words and the net are stored, and the flag has room.

NLAlib.ShiftedQR.DecoupleLoopCtx.iteration_words {n L : ℕ} {w p f : ℕ × ℕ} {ps qs : List ℝ}
  {tL R tv γ Bi α ε : ℝ} {k q : ℕ} {μ : Ops.Mem ℝ} (hctx : ShiftedQR.DecoupleLoopCtx n L w p f ps μ)
  (hps : ps = ShiftedQR.roundedDecoupleParams tL R tv γ Bi α ε k q ++ qs) :
  μ.Live
      [w, (p.1, p.2 + 1), (p.1, p.2 + 2), (p.1, p.2 + 3), (p.1, p.2 + 4), (p.1, p.2 + 5),
        (p.1, p.2 + 6), (p.1, p.2 + 7), (p.1, p.2 + 10), f] ∧
    (∀ j < 10,
        μ.store.get p.1 (p.2 + j) =
          some ((ShiftedQR.roundedDecoupleParams tL R tv γ Bi α ε k q).getD j 0)) ∧
      μ.store.readBlock p.1 (p.2 + 10) (2 * (ShiftedQR.excNet ε).length) =
          some (List.flatMap (fun z ↦ [z.re, z.im]) (ShiftedQR.excNet ε)) ∧
        f.2 < μ.store.len f.1

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedDecouple.