The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V02. Numbers

Mathlib.Data.PNat.Interval

21 declarations. Mathlib docs · Source

instance PNat.instLocallyFiniteOrder E0 #

LocallyFiniteOrder ℕ+

theorem PNat.Icc_eq_finset_subtype E1 #

∀ (a b : ℕ+), Finset.Icc a b = Finset.subtype (fun n ↦ 0 < n) (Finset.Icc ↑a ↑b)

theorem PNat.Ico_eq_finset_subtype E1 #

∀ (a b : ℕ+), Finset.Ico a b = Finset.subtype (fun n ↦ 0 < n) (Finset.Ico ↑a ↑b)

theorem PNat.Ioc_eq_finset_subtype E1 #

∀ (a b : ℕ+), Finset.Ioc a b = Finset.subtype (fun n ↦ 0 < n) (Finset.Ioc ↑a ↑b)

theorem PNat.Ioo_eq_finset_subtype E1 #

∀ (a b : ℕ+), Finset.Ioo a b = Finset.subtype (fun n ↦ 0 < n) (Finset.Ioo ↑a ↑b)

theorem PNat.uIcc_eq_finset_subtype E1 #

∀ (a b : ℕ+), Finset.uIcc a b = Finset.subtype (fun n ↦ 0 < n) (Finset.uIcc ↑a ↑b)

theorem PNat.map_subtype_embedding_Icc E0 #

∀ (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 E0 #

∀ (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 E0 #

∀ (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 E0 #

∀ (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 E0 #

∀ (a b : ℕ+), Finset.map (Function.Embedding.subtype fun n ↦ 0 < n) (Finset.uIcc a b) = Finset.uIcc ↑a ↑b

theorem PNat.card_Icc E0 #

∀ (a b : ℕ+), (Finset.Icc a b).card = ↑b + 1 - ↑a

theorem PNat.card_Ico E0 #

∀ (a b : ℕ+), (Finset.Ico a b).card = ↑b - ↑a

theorem PNat.card_Ioc E0 #

∀ (a b : ℕ+), (Finset.Ioc a b).card = ↑b - ↑a

theorem PNat.card_Ioo E0 #

∀ (a b : ℕ+), (Finset.Ioo a b).card = ↑b - ↑a - 1

theorem PNat.card_uIcc E0 #

∀ (a b : ℕ+), (Finset.uIcc a b).card = (↑↑b - ↑↑a).natAbs + 1

theorem PNat.card_fintype_Icc E1 #

∀ (a b : ℕ+), Fintype.card ↑(Set.Icc a b) = ↑b + 1 - ↑a

theorem PNat.card_fintype_Ico E1 #

∀ (a b : ℕ+), Fintype.card ↑(Set.Ico a b) = ↑b - ↑a

theorem PNat.card_fintype_Ioc E1 #

∀ (a b : ℕ+), Fintype.card ↑(Set.Ioc a b) = ↑b - ↑a

theorem PNat.card_fintype_Ioo E1 #

∀ (a b : ℕ+), Fintype.card ↑(Set.Ioo a b) = ↑b - ↑a - 1

theorem PNat.card_fintype_uIcc E1 #

∀ (a b : ℕ+), Fintype.card ↑(Set.uIcc a b) = (↑↑b - ↑↑a).natAbs + 1