Commit 2025-09-11 00:00 7b1146a7
View on Github →chore(Data/Finset): deprecate range_succ; rename range_subset to range_subset_range (#29509)
This PR contains the non-grind changes split off from #29426:
Finset.range_succis deprecated in favour ofFinset.range_add_one: we prefer writingn + 1overNat.succ n. See also the Zulip thread where no one objects to preferringn + 1overn.succ. (Even if we have a tiny amount of discussion about enforcing the preference with linter.)Finset.range_subsetis renamed toFinset.range_subset_range, to make space for a newFinset.range_subset : range n ⊆ s ↔ ∀ x, x < n → x ∈ sThis PR adds two definitions:Finset.range_subsetandFinset.subset_rangeareIfflemmas for showing containment ofrange. Moves:
- Finset.range_subset -> Finset.range_subset_range