NLA-lib Explorer

NLAlib.Sign.LoopState.flag_ne_one

Library · theorem

The stored flag's decoding differs from one exactly when the matrix stopping test passes. Only distinct decodings of the machine's zero and one are required.

NLAlib.Sign.LoopState.flag_ne_one {K Su Sg : Type} {M : FloatMachine K Su Sg} {n : ℕ}
  {x w t : ℕ × ℕ} {η : K} {A : Matrix (Fin n) (Fin n) (K × K)} {s : Ops.Store K}
  (h : Sign.LoopState M x w t η A s) {dec : K → ℝ} (h01 : dec M.zero ≠ dec M.one) :
  ∃ flag, s.get t.1 (t.2 + 1) = some flag ∧ (dec flag ≠ dec M.one ↔ newtonSchulzTest M η A = true)

Full source on GitHub

Import NLAlib.Eigensolvers.Sign.State.