NLA-lib Explorer

NLAlib.Ops.EntryCodec.room_entry

Library · theorem

Capacity for a valid matrix layout supplies capacity for every complete entry block. The leading dimension and entry width are included in the common word bound.

NLAlib.Ops.EntryCodec.room_entry {K E : Type} (C : Ops.EntryCodec K E) {s : Ops.Store K}
  {L : Ops.MatLayout} {i j : ℕ} (hL : L.Valid) (hi : i < L.rows) (hj : j < L.cols)
  (hz : L.off + C.width * (L.cols * L.ld) ≤ s.len L.buf) :
  L.off + C.width * (j * L.ld + i) + C.width ≤ s.len L.buf

Full source on GitHub

Import NLAlib.Ops.Logic.EntryLayout.