NLAlib.Schur.checkDecide_writes
Library · theorem
The decision of the check, on every tape: from the norms \hat r, \hat a, \hat w, \hat t in the four cells of S and the words \theta, \kappa in P (another buffer), the run writes only S and the flag (another buffer), and stores the literal 0 in the flag if \mathrm{fl}(\hat r + \hat g) \le \mathrm{fl}(\hat a\theta), the literal 1 otherwise. A step in the proof of NLAlib.Schur.schurResidualCheck_meets.
NLAlib.Schur.checkDecide_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.CmpTst Q]
[Ops.Has Ops.IndexOp O] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar M I)
(hL : Ops.IsIndexLit M I) (hC : Ops.IsCmp id I) {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {s p f : ℕ × ℕ}
{r a w x θ κ : ℝ} (hr : μ.store.get s.1 s.2 = some r) (ha : μ.store.get s.1 (s.2 + 1) = some a)
(hw : μ.store.get s.1 (s.2 + 2) = some w) (hx : μ.store.get s.1 (s.2 + 3) = some x)
(hθ : μ.store.get p.1 p.2 = some θ) (hκ : μ.store.get p.1 (p.2 + 1) = some κ)
(hs : s.2 + 4 ≤ μ.store.len s.1) (hf : f.2 < μ.store.len f.1) (hsp : s.1 ≠ p.1) (hsf : s.1 ≠ f.1)
(hl : μ.Live [s, p, f]) :
Ops.Writes Ops.Mode.total I τ Schur.checkDecide (Ops.Env.frame [] [s, p, s, f])
(Ops.Store.inBlock s.1 s.2 4 ⊔ Ops.Store.inBlock f.1 f.2 1)
(fun μ' ↦
μ'.store.get f.1 f.2 =
some (if M.add r (Schur.checkGuard M w x κ) ≤ M.mul a θ then M.lit 0 else M.lit 1))
μImport NLAlib.Eigensolvers.Schur.ResidualCheck.