NLA-lib Explorer

NLAlib.Ops.Hermitian.averageDiagonal_wp

Library · theorem

Diagonal averaging returns the actual two rounded scalar operations and literal zero. A fragment of the tree NLAlib.Ops.Hermitian.averageUpper.

NLAlib.Ops.Hermitian.averageDiagonal_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}
  (hcz : Ops.Fp.Disj (Ops.Store.inBlock c.1 c.2 1) (Ops.Store.inBlock z.1 z.2 2))
  (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 (M.add ar ar) a, M.lit 0])) :
  Ops.Wp md I τ Ops.Hermitian.averageDiagonal (Ops.Env.frame [] [x, c, z]) Q m

Full source on GitHub

Import NLAlib.Ops.Blas.HermitianEntry.