NLA-lib Explorer

NLAlib.Ops.Examples.divSpec_post

Library · theorem

NLAlib.Ops.Examples.divSpec_post {K : Type} {dec : K → ℝ} {ε : ℝ} {md : Ops.Mode} {d : List ℕ}
  {ins outs : List (ℕ × ℕ)} {τ : Ops.Tape K} {m m' : Ops.Mem K} :
  ((Ops.Examples.divSpec dec ε).on md d ins outs τ m).post m m' ↔
    ∃ x y z a b v,
      ins = [x, y] ∧
        outs = [z] ∧
          m.store.get x.1 x.2 = some a ∧
            m.store.get y.1 y.2 = some b ∧
              dec b ≠ 0 ∧ |dec v - dec a / dec b| ≤ ε * |dec a / dec b| ∧ m' = m.upd z v

Full source on GitHub

Import NLAlib.Ops.Examples.Liberal.