NLA-lib Explorer

NLAlib.Ops.Routine.separated_iff_pairwise

Library · theorem

Separation by buffer is a condition on pairs of operands: two operands are in different buffers unless both are merely read (NLAlib.Ops.Access.apart).

NLAlib.Ops.Routine.separated_iff_pairwise {Op Tst : Type} (R : Ops.Routine Op Tst)
  (args : List (ℕ × ℕ)) :
  R.Separated args ↔
    List.Pairwise (fun u v ↦ u.1.access.apart v.1.access = true → u.2.1 ≠ v.2.1) (R.ports.zip args)

Full source on GitHub

Import NLAlib.Ops.RoutineInterface.