NLA-lib Explorer

NLAlib.Ops.Examples.hutch_wp

Library · theorem

The run of hutch, for every interpretation satisfying the contracts and every tape: the cell est receives a word that decodes to its old value plus the sum of the quadratic forms of the N probes, the position advances by N n, nothing else is written.

NLAlib.Ops.Examples.hutch_wp {K Tst : Type} [Inhabited K] {dec : K → ℝ} {n : ℕ}
  {A : Matrix (Fin n) (Fin n) ℝ} {J : Ops.Interp Ops.ROp Tst K} (hJ : Ops.IsRandLin dec A J)
  {τ : Ops.Tape K} {N : ℕ} {e : ℕ × ℕ} {m : Ops.Mem K} {z₀ : K}
  (he : m.store.get e.1 e.2 = some z₀) :
  Ops.Wp Ops.Mode.total J τ Ops.Examples.hutch (Ops.Env.frame [N, n] [e, e])
    (fun m' ↦
      ∃ v, m' = (m.upd e v).advance (N * n) ∧ dec v = dec z₀ + Ops.Examples.hutchF dec A τ m.pos N)
    m

Full source on GitHub

Import NLAlib.Ops.Examples.Hutch.