NLA-lib Explorer

Fin.greedyPerm_eq_one_of_forall_le

Library · theorem

If the current diagonal position always maximizes the score in the original ordering, first-maximum pivoting never exchanges two rows.

Fin.greedyPerm_eq_one_of_forall_le.{u_1} {α : Type u_1} [LinearOrder α] {n : ℕ}
  (s : Equiv.Perm (Fin n) → Fin n → Fin n → α) (h : ∀ (j i : Fin n), j ≤ i → s 1 j i ≤ s 1 j j)
  (k : ℕ) : Fin.greedyPerm s k = 1

Full source on GitHub

Import NLAlib.ForMathlib.GroupTheory.Perm.Fin.