Finite intervals of positive naturals #
This file proves that ℕ+
is a LocallyFiniteOrder
and calculates the cardinality of its
intervals as finsets and fintypes.
Equations
- PNat.instLocallyFiniteOrder = Subtype.instLocallyFiniteOrder fun (n : ℕ) => 0 < n
theorem
PNat.Icc_eq_finset_subtype
(a b : ℕ+)
:
Finset.Icc a b = Finset.subtype (fun (n : ℕ) => 0 < n) (Finset.Icc ↑a ↑b)
theorem
PNat.Ico_eq_finset_subtype
(a b : ℕ+)
:
Finset.Ico a b = Finset.subtype (fun (n : ℕ) => 0 < n) (Finset.Ico ↑a ↑b)
theorem
PNat.Ioc_eq_finset_subtype
(a b : ℕ+)
:
Finset.Ioc a b = Finset.subtype (fun (n : ℕ) => 0 < n) (Finset.Ioc ↑a ↑b)
theorem
PNat.Ioo_eq_finset_subtype
(a b : ℕ+)
:
Finset.Ioo a b = Finset.subtype (fun (n : ℕ) => 0 < n) (Finset.Ioo ↑a ↑b)
theorem
PNat.uIcc_eq_finset_subtype
(a b : ℕ+)
:
Finset.uIcc a b = Finset.subtype (fun (n : ℕ) => 0 < n) (Finset.uIcc ↑a ↑b)
theorem
PNat.map_subtype_embedding_Icc
(a b : ℕ+)
:
Finset.map (Function.Embedding.subtype fun (n : ℕ) => 0 < n) (Finset.Icc a b) = Finset.Icc ↑a ↑b
theorem
PNat.map_subtype_embedding_Ico
(a b : ℕ+)
:
Finset.map (Function.Embedding.subtype fun (n : ℕ) => 0 < n) (Finset.Ico a b) = Finset.Ico ↑a ↑b
theorem
PNat.map_subtype_embedding_Ioc
(a b : ℕ+)
:
Finset.map (Function.Embedding.subtype fun (n : ℕ) => 0 < n) (Finset.Ioc a b) = Finset.Ioc ↑a ↑b
theorem
PNat.map_subtype_embedding_Ioo
(a b : ℕ+)
:
Finset.map (Function.Embedding.subtype fun (n : ℕ) => 0 < n) (Finset.Ioo a b) = Finset.Ioo ↑a ↑b
theorem
PNat.map_subtype_embedding_uIcc
(a b : ℕ+)
:
Finset.map (Function.Embedding.subtype fun (n : ℕ) => 0 < n) (Finset.uIcc a b) = Finset.uIcc ↑a ↑b