NLAlib.ShiftedQR.shExcInit_writes
Library · theorem
The start of the exceptional branch on a scalar machine with exact natural literals up to 2: from the words c_r, c_p and p at Cr, Cp, Rt, NLAlib.ShiftedQR.shExcInit stores \mathrm{fl}(c_r p) at Rt, \mathrm{fl}(c_p p) at Pt, 1 at Gw and 2 at Fl, and writes only these. A fragment of the tree NLAlib.ShiftedQR.shExc.
NLAlib.ShiftedQR.shExcInit_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] {M : Ops.Machine ℝ}
{I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar M I) (hNat : Ops.IsExactNatLit id M 2) {τ : Ops.Tape ℝ}
{m : Ops.Mem ℝ} {cr cp rt pt gw f : ℕ × ℕ} {crv cpv p : ℝ}
(hcr : m.store.get cr.1 cr.2 = some crv) (hcp : m.store.get cp.1 cp.2 = some cpv)
(hrt : m.store.get rt.1 rt.2 = some p) (hpt : pt.2 < m.store.len pt.1)
(hgw : gw.2 < m.store.len gw.1) (hf : f.2 < m.store.len f.1)
(hW :
(Ops.Store.inBlock f.1 f.2 1 ⊔ Ops.Store.inBlock gw.1 gw.2 1 ⊔
Ops.Store.inBlock pt.1 pt.2 1).Disj
(Ops.Store.inBlock cr.1 cr.2 1 ⊔ Ops.Store.inBlock cp.1 cp.2 1 ⊔
Ops.Store.inBlock rt.1 rt.2 1))
(hfg : Ops.Fp.Disj (Ops.Store.inBlock f.1 f.2 1) (Ops.Store.inBlock gw.1 gw.2 1))
(hfgp :
(Ops.Store.inBlock f.1 f.2 1 ⊔ Ops.Store.inBlock gw.1 gw.2 1).Disj
(Ops.Store.inBlock pt.1 pt.2 1)) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.shExcInit (Ops.Env.frame [] [cr, cp, rt, rt, pt, gw, f])
(Ops.Store.inBlock rt.1 rt.2 1 ⊔ Ops.Store.inBlock pt.1 pt.2 1 ⊔ Ops.Store.inBlock gw.1 gw.2 1 ⊔
Ops.Store.inBlock f.1 f.2 1)
(fun m' ↦
m'.pos = m.pos ∧
m'.store.get rt.1 rt.2 = some (M.mul crv p) ∧
m'.store.get pt.1 pt.2 = some (M.mul cpv p) ∧
m'.store.get gw.1 gw.2 = some 1 ∧ m'.store.get f.1 f.2 = some 2)
mImport NLAlib.Eigensolvers.ShiftedQR.RoundedShExc.