NLAlib.Ops.BlockFn.apply_tern_eq_some_iff
Library · theorem
A call of a function of three cells, on cells.
NLAlib.Ops.BlockFn.apply_tern_eq_some_iff {K : Type} {g : K → K → K → Option K} {x y w z : ℕ × ℕ}
{τ : Ops.Tape K} {m m' : Ops.Mem K} :
(Ops.BlockFn.tern g).apply [] [x, y, w] [z] τ m = some m' ↔
∃ a b c v,
m.store.get x.1 x.2 = some a ∧
m.store.get y.1 y.2 = some b ∧
m.store.get w.1 w.2 = some c ∧ g a b c = some v ∧ z.2 < m.store.len z.1 ∧ m' = m.upd z vImport NLAlib.Ops.Blocks.