NLA-lib Explorer

NLAlib.Ops.Hermitian.scaleDiagonal_wp

Library · theorem

Diagonal scaling returns the actual rounded quotient and literal zero. A fragment of the tree NLAlib.Ops.Hermitian.scaleUpper.

NLAlib.Ops.Hermitian.scaleDiagonal_wp {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  {M : Ops.Machine K} {I : Ops.Interp Op Tst K} (hI : Ops.IsScalar M I) {md : Ops.Mode}
  {τ : Ops.Tape K} {m : Ops.Mem K} {x c z : ℕ × ℕ} {ar a : K} (hxr : m.store.get x.1 x.2 = some ar)
  (hc : m.store.get c.1 c.2 = some a) (hz : z.2 + 2 ≤ m.store.len z.1) {Q : Ops.Mem K → Prop}
  (hQ : Q (m.updBlock z [M.div ar a, M.lit 0])) :
  Ops.Wp md I τ Ops.Hermitian.scaleDiagonal (Ops.Env.frame [] [x, c, z]) Q m

Full source on GitHub

Import NLAlib.Ops.Blas.HermitianEntry.