NLA-lib Explorer

NLAlib.Ops.Hermitian.scalePair_wp

Library · theorem

The pair scaling kernel computes both rounded quotients in a disjoint output word block. A fragment of the tree NLAlib.Ops.Hermitian.scaleEntry.

NLAlib.Ops.Hermitian.scalePair_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 ai a : K}
  (hxz : Ops.Fp.Disj (Ops.Store.inBlock x.1 x.2 2) (Ops.Store.inBlock z.1 z.2 2))
  (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) (hxi : m.store.get x.1 (x.2 + 1) = some ai)
  (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.div ai a])) :
  Ops.Wp md I τ Ops.Hermitian.scalePair (Ops.Env.frame [] [x, c, z]) Q m

Full source on GitHub

Import NLAlib.Ops.Blas.HermitianEntry.