The last element of a finite initial subset #
These initial-subset facts identify the highest starred coordinate of a canonical tensor box and the remaining star set after replacing it. They use the existing rank-filter initial subset rather than adding a second ordering or rank convention.
theorem Finset.erase_max_lowest_erase {α : Type u_1} [LinearOrder α] {S : Finset α} {k : ℕ} (hk : k ≤ S.card) (hne : (lowest k S).Nonempty) :
Removing that coordinate from the ambient set leaves the same shorter initial subset.