NLA-lib Explorer

NLAlib.Ops.Examples.npow_wp

Library · theorem

The run of npow, for every interpretation satisfying the contract of nmv and every tape: the block x decodes to the noisy power iteration of the tape entries from the position.

NLAlib.Ops.Examples.npow_wp {K Tst : Type} [Inhabited K] {n : ℕ} {dec : K → ℝ}
  {N : (Fin n → ℝ) → (Fin n → K) → Fin n → ℝ} {J : Ops.Interp Ops.Examples.NOp Tst K}
  (hJ : Ops.Examples.IsNoisy dec N J) {τ : Ops.Tape K} {k : ℕ} {x : ℕ × ℕ} {m : Ops.Mem K}
  {xs₀ : List K} (hx : m.store.readBlock x.1 x.2 n = some xs₀) (hxl : x.2 + n ≤ m.store.len x.1)
  (hlx : x.1 < List.length m.store) :
  Ops.Wp Ops.Mode.total J τ Ops.Examples.npow (Ops.Env.frame [k, n] [x, x])
    (Ops.Examples.NpowPost dec n k x m
      (Ops.Examples.noisyIter N (Ops.decv dec n xs₀) τ m.pos (2 * k)))
    m

Full source on GitHub

Import NLAlib.Ops.Examples.Noisy.