NLA-lib Explorer

NLAlib.ShiftedQR.shThreshold_writes

Library · theorem

The threshold of the comptau test on any scalar machine stores NLAlib.ShiftedQR.optimalThresholdWord and writes only its output word, which is apart from the matrix and the word C. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine, on their scratch.

NLAlib.ShiftedQR.shThreshold_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] {M : Ops.Machine ℝ}
  {I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar M I) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {n k : ℕ}
  {a c p : ℕ × ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {cv : ℝ} (hk : k ≤ n)
  (hH : HoldsMatrix a H m.store) (hc : m.store.get c.1 c.2 = some cv) (hp : p.2 < m.store.len p.1)
  (hap :
    Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1)))) (Ops.Store.inBlock p.1 p.2 1))
  (hcp : Ops.Fp.Disj (Ops.Store.inBlock c.1 c.2 1) (Ops.Store.inBlock p.1 p.2 1)) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.shThreshold (Ops.Env.frame [n + 1, k] [a, c, p])
    (Ops.Store.inBlock p.1 p.2 1)
    (fun m' ↦
      m'.pos = m.pos ∧ m'.store.get p.1 p.2 = some (ShiftedQR.optimalThresholdWord M H k cv))
    m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedSh.