NLA-lib Explorer

NLAlib.ShiftedQR.writeAndSplit_writes

Library · theorem

Exact arithmetic

Copying back the actual unitary-conjugate block and pushing its children advances the worklist invariant. The partition itself proves capacity for both new stack entries. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.ShiftedQR.writeAndSplit_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
  [Ops.Has Ops.IdxTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar M I)
  (hE : Ops.ExactModel id M) (hL : Ops.IsIndexLit M I) (hQ : Ops.IsToNat id I) {tape : Ops.Tape ℝ}
  {μ : Ops.Mem ℝ} {n d lo j : ℕ} {i : Fin d} {a p stack out w r : ℕ × ℕ}
  {H A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {U B : Matrix (Fin (d + 1)) (Fin (d + 1)) ℂ}
  {roots : Fin (n + 1) → ℂ} {τ ε : ℝ} {rest done : List (ℕ × ℕ)}
  (hG : ShiftedQR.WorklistGeometry (n + 1) a p stack out w r μ)
  (hInv : DeflationInv H ε ((lo, d + 1) :: rest) done A roots) (hA : HoldsMatrix a A μ.store)
  (hW : HoldsMatrix w B μ.store) (hOut : ShiftedQR.FinishedHolds out done roots μ.store)
  (hSt : ShiftedQR.StackHolds stack rest.reverse μ.store) (hU : HasOrthonormalCols U)
  (hB : B = Uᴴ * subBlock A (lo, d + 1) * U) (hHess : IsUpperHessenberg B)
  (hsmall : ‖B i.succ i.castSucc‖ ≤ τ) (hε : ε = ↑(((lo, d + 1) :: rest ++ done).length - 1) * τ)
  (hj : 2 * done.length + ((lo, d + 1) :: rest).length = j + 1) :
  Ops.Writes Ops.Mode.total I tape ShiftedQR.writeAndSplit
    (Ops.Env.frame [n + 1, lo, d + 1, ↑i] [a, stack, w])
    (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))) ⊔
      Ops.Store.inBlock stack.1 stack.2 (1 + 2 * (n + 1)))
    (fun μ' ↦ μ'.pos = μ.pos ∧ ShiftedQR.WorklistInv H τ a stack out (j + 1) μ') μ

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RangeSplit.