NLA-lib Explorer

NLAlib.ShiftedQR.radius_writes

Library · theorem

Exact arithmetic

The scoped exceptional-radius routine computes its exact real value and releases its single scratch word. The product input may alias the output because it is read first. A fragment of the exact decoupler NLAlib.ShiftedQR.scalarDecouple, which exact shifted QR (NLAlib.ShiftedQR.deflationRoutine) takes as its decoupler.

NLAlib.ShiftedQR.radius_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 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) (hr : r.2 < m.store.len r.1)
  (hsep :
    Ops.Fp.Disj (Ops.Store.inBlock r.1 r.2 1)
      (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.radius (Ops.Env.frame [k] [p, b, theta, alpha, r])
    (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) * θ * α)) m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.Radius.