NLA-lib Explorer

NLAlib.Ops.Examples.waddFn_apply

Library · theorem

What a successful call of the block function of wadd is.

NLAlib.Ops.Examples.waddFn_apply {f : ℕ → List Bool → List Bool → List Bool} {d : List ℕ}
  {ins outs : List (ℕ × ℕ)} {τ : Ops.Tape Bool} {m m' : Ops.Mem Bool}
  (h : (Ops.Examples.waddFn f).apply d ins outs τ m = some m') :
  ∃ w x y z xs ys,
    d = [w] ∧
      ins = [x, y] ∧
        outs = [z] ∧
          m.store.readBlock x.1 x.2 w = some xs ∧
            m.store.readBlock y.1 y.2 w = some ys ∧
              (f w xs ys).length = w ∧ z.2 + w ≤ m.store.len z.1 ∧ m' = m.updBlock z (f w xs ys)

Full source on GitHub

Import NLAlib.Ops.Examples.Bits.