NLAlib.ShiftedQR.excShifts_writes_word
Library · theorem
The exceptional shifts on any scalar machine with an exact polar sampler on the stream s: NLAlib.ShiftedQR.excShifts writes only its output, stores the computed shifts NLAlib.ShiftedQR.excShiftWord of the n_0 net points for the polar sample of radius \mathrm{fl}(c_w\tilde R) read at the start position, and advances the position by two. The output is disjoint from the radius word and the net. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine, on their scratch.
NLAlib.ShiftedQR.excShifts_writes_word {O Q : Type} [Ops.Has Ops.ScalarOp O]
[Ops.Has ShiftedQR.DiskSampleOp O] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ}
(hS : Ops.IsScalar M I) {s : ℕ} (hD : ShiftedQR.IsPolarDiskSampler s I) {τ : Ops.Tape ℝ}
{m : Ops.Mem ℝ} {c rt cw g ss : ℕ × ℕ} {r : ℂ} {R cv : ℝ} {gs : List ℂ}
(hcr : m.store.get c.1 c.2 = some r.re) (hci : m.store.get c.1 (c.2 + 1) = some r.im)
(hrt : m.store.get rt.1 rt.2 = some R) (hcw : m.store.get cw.1 cw.2 = some cv)
(hg : m.store.readBlock g.1 g.2 (2 * gs.length) = some (List.flatMap (fun z ↦ [z.re, z.im]) gs))
(hss : ss.2 + 2 * gs.length ≤ m.store.len ss.1) (hl : m.Live [c, rt, cw, g, ss])
(hsr : Ops.Fp.Disj (Ops.Store.inBlock ss.1 ss.2 (2 * gs.length)) (Ops.Store.inBlock rt.1 rt.2 1))
(hsg :
Ops.Fp.Disj (Ops.Store.inBlock ss.1 ss.2 (2 * gs.length))
(Ops.Store.inBlock g.1 g.2 (2 * gs.length))) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.excShifts (Ops.Env.frame [gs.length] [c, rt, cw, g, ss])
(Ops.Store.inBlock ss.1 ss.2 (2 * gs.length))
(fun m' ↦
m'.pos = m.pos + 2 ∧
m'.store.readBlock ss.1 ss.2 (2 * gs.length) =
some
(List.flatMap (fun z ↦ [z.re, z.im])
(List.map
(ShiftedQR.excShiftWord M
(ShiftedQR.excCentreWord M r (ShiftedQR.excSample τ s m.pos (M.mul cv R))) R)
gs)))
mImport NLAlib.Eigensolvers.ShiftedQR.RoundedExc.