NLA-lib Explorer

NLAlib.Ops.BlockFn.readBlocks_cells_three

Library · theorem

Reading three cells.

NLAlib.Ops.BlockFn.readBlocks_cells_three {K : Type} {m : Ops.Mem K} {x y w : ℕ × ℕ}
  {xs : List (List K)} :
  m.readBlocks [x, y, w] [1, 1, 1] = some xs ↔
    ∃ a b c,
      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 ∧ xs = [[a], [b], [c]]

Full source on GitHub

Import NLAlib.Ops.Blocks.