NLA-lib Explorer

NLAlib.Ops.Store.shape_eq_iff

Library · theorem

Two stores have the same shape when they have the same number of buffers and the same buffer lengths.

NLAlib.Ops.Store.shape_eq_iff {K : Type} {s t : Ops.Store K} :
  s.shape = t.shape ↔ List.length s = List.length t ∧ ∀ (b : ℕ), s.len b = t.len b

Full source on GitHub

Import NLAlib.Ops.RunMeasurable.