NLAlib.ShiftedQR.radiusWithScratch_writes
Library · theorem
Exact arithmetic
Actual scalar radius calculation with one scratch word. The squared-product input and conditioning bound are nonnegative; all other operations are exact products. The scratch and result views are separated from each other and from the three still-needed input parameters. A fragment of the exact decoupler NLAlib.ShiftedQR.scalarDecouple, which exact shifted QR (NLAlib.ShiftedQR.deflationRoutine) takes as its decoupler.
NLAlib.ShiftedQR.radiusWithScratch_writes {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
{M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I) (hE : Ops.ExactModel id M)
{τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {k : ℕ} {p b theta alpha t r : ℕ × ℕ} {P B θ α : ℝ}
(hP : m.store.get p.1 p.2 = some P) (hB : m.store.get b.1 b.2 = some B)
(hθ : m.store.get theta.1 theta.2 = some θ) (hα : m.store.get alpha.1 alpha.2 = some α)
(hP0 : 0 ≤ P) (hB0 : 0 ≤ B) (ht : t.2 < m.store.len t.1) (hr : r.2 < m.store.len r.1)
(htr : Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 1) (Ops.Store.inBlock r.1 r.2 1))
(hsep :
(Ops.Store.inBlock t.1 t.2 1 ⊔ Ops.Store.inBlock r.1 r.2 1).Disj
(Ops.Store.inBlock b.1 b.2 1 ⊔ Ops.Store.inBlock theta.1 theta.2 1 ⊔
Ops.Store.inBlock alpha.1 alpha.2 1)) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.radiusWithScratch
(Ops.Env.frame [k] [p, b, theta, alpha, t, r])
(Ops.Store.inBlock t.1 t.2 1 ⊔ Ops.Store.inBlock r.1 r.2 1)
(fun m' ↦ m'.pos = m.pos ∧ m'.store.get r.1 r.2 = some (Real.sqrt^[k] (2 * B * √P) * θ * α)) mImport NLAlib.Eigensolvers.ShiftedQR.Radius.