NLAlib.Ops.Hermitian.averagePair_wp
Library · theorem
The entry kernel returns the actual machine word pair and preserves all other memory. The output pair is disjoint from both input pairs and the scalar cell; each input word is readable and both output cells fit. This is a functional execution theorem, so it requires no numerical accuracy claim about a zero divisor. A fragment of the tree NLAlib.Ops.Hermitian.averageUpper.
NLAlib.Ops.Hermitian.averagePair_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 y c z : ℕ × ℕ} {ar ai br bi a : K}
(hxz : Ops.Fp.Disj (Ops.Store.inBlock x.1 x.2 2) (Ops.Store.inBlock z.1 z.2 2))
(hyz : Ops.Fp.Disj (Ops.Store.inBlock y.1 y.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)
(hyr : m.store.get y.1 y.2 = some br) (hyi : m.store.get y.1 (y.2 + 1) = some bi)
(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 br) a, M.div (M.sub ai bi) a])) :
Ops.Wp md I τ Ops.Hermitian.averagePair (Ops.Env.frame [] [x, y, c, z]) Q mImport NLAlib.Ops.Blas.HermitianEntry.