NLA-lib Explorer

NLAlib.Ops.scalarPower_writes_exact

Library · theorem

Exact arithmetic

Under the exact real arithmetic model the actual sequential power equals the mathematical natural power, with no sign or nonzero assumption on its base. A fragment of the tree NLAlib.ShiftedQR.iterationConstantsWithScratch.

NLAlib.Ops.scalarPower_writes_exact {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] {M : Ops.Machine ℝ}
  {I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I) (hE : Ops.ExactModel id M) {τ : Ops.Tape ℝ}
  {m : Ops.Mem ℝ} {n : ℕ} {x z : ℕ × ℕ} {v : ℝ} (hx : m.store.get x.1 x.2 = some v)
  (hz : z.2 < m.store.len z.1)
  (hsep : Ops.Fp.Disj (Ops.Store.inBlock x.1 x.2 1) (Ops.Store.inBlock z.1 z.2 1)) :
  Ops.Writes Ops.Mode.total I τ Ops.scalarPower (Ops.Env.frame [n] [x, z])
    (Ops.Store.inBlock z.1 z.2 1) (fun m' ↦ m'.pos = m.pos ∧ m'.store.get z.1 z.2 = some (v ^ n)) m

Full source on GitHub

Import NLAlib.Ops.Blas.Power.