NLA-lib Explorer

NLAlib.ShiftedQR.SchurGeometry.allocated

Library · theorem

The geometry of five separated operand views, extended by the four scratch buffers of the worklist allocated on top of them.

NLAlib.ShiftedQR.SchurGeometry.allocated {n np : ℕ} {a t p uo f : ℕ × ℕ} {μ : Ops.Mem ℝ}
  {s : Ops.Store ℝ} (hl : μ.Live [a, t, p, uo, f])
  (hr : μ.Room [a, t, p, uo, f] [2 * ((n + 1) * (n + 1)), 1, np, 2 * ((n + 1) * (n + 1)), 1])
  (ha : ShiftedQR.ShQRViewsApart (n + 1) np a t p uo f)
  (hs :
    List.length s =
      List.length μ.store +
        [1 + 2 * (n + 1), 2 * ((n + 1) * (n + 1)), 2 * ((n + 1) * (n + 1)), 5].length)
  (hlens :
    ∀ (i : ℕ)
      (hi : i < [1 + 2 * (n + 1), 2 * ((n + 1) * (n + 1)), 2 * ((n + 1) * (n + 1)), 5].length),
      s.len (List.length μ.store + i) =
        [1 + 2 * (n + 1), 2 * ((n + 1) * (n + 1)), 2 * ((n + 1) * (n + 1)), 5][i])
  (hBelow : Ops.Store.Below (List.length μ.store) μ.store s) :
  ShiftedQR.SchurGeometry (n + 1) np a t p uo f (List.length μ.store, 0)
    (List.length μ.store + 1, 0) (List.length μ.store + 2, 0) (List.length μ.store + 3, 0)
    { store := s, pos := μ.pos }

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedWorklistTermination.