Finite intervals of naturals #
This file proves that ℕ
is a LocallyFiniteOrder
and calculates the cardinality of its
intervals as finsets and fintypes.
TODO #
Some lemmas can be generalized using OrderedGroup
, CanonicallyOrderedMul
or SuccOrder
and subsequently be moved upstream to Order.Interval.Finset
.
Equations
- One or more equations did not get rendered due to their size.
@[deprecated Fintype.card_Icc (since := "2025-03-28")]
@[deprecated Fintype.card_Ico (since := "2025-03-28")]
@[deprecated Fintype.card_Ioc (since := "2025-03-28")]
@[deprecated Fintype.card_Ioo (since := "2025-03-28")]
@[deprecated Fintype.card_Iic (since := "2025-03-28")]
@[deprecated Fintype.card_Iio (since := "2025-03-28")]
@[deprecated Finset.Icc_succ_left_eq_Ioc (since := "2025-04-24")]
@[deprecated Finset.Ico_succ_right_eq_Icc (since := "2025-04-24")]
@[deprecated Finset.Ico_succ_left_eq_Ioo (since := "2025-04-24")]
@[deprecated Finset.Icc_pred_right_eq_Ico (since := "2025-04-24")]
@[deprecated Finset.Ico_succ_succ_eq_Ioc (since := "2025-04-24")]
@[deprecated Finset.insert_Ico_right_eq_Ico_succ_right (since := "2025-04-24")]
@[deprecated Finset.insert_Ico_succ_left_eq_Ico (since := "2025-04-24")]
@[deprecated Finset.insert_Icc_succ_left_eq_Icc (since := "2025-04-24")]
@[deprecated Finset.insert_Icc_eq_Icc_succ_right (since := "2025-04-24")]
Note that while this lemma cannot be easily generalized to a type class, it holds for ℤ as
well. See Int.image_Ico_emod
for the ℤ version.