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_succ
is deprecated in favour ofFinset.range_add_one
: we prefer writingn + 1
overNat.succ n
. See also the Zulip thread where no one objects to preferringn + 1
overn.succ
. (Even if we have a tiny amount of discussion about enforcing the preference with linter.)Finset.range_subset
is renamed toFinset.range_subset_range
, to make space for a newFinset.range_subset : range n ⊆ s ↔ ∀ x, x < n → x ∈ s
This PR adds two definitions:Finset.range_subset
andFinset.subset_range
areIff
lemmas for showing containment ofrange
. Moves:
- Finset.range_subset -> Finset.range_subset_range