Mathlib.Data.Int.Interval
25 declarations. Mathlib docs · Source
instance Int.instLocallyFiniteOrder E0 #
LocallyFiniteOrder ℤ
theorem Int.Icc_eq_finset_map E1 #
∀ (a b : ℤ), Finset.Icc a b = Finset.map (Nat.castEmbedding.trans (addLeftEmbedding a)) (Finset.range (b + 1 - a).toNat)
theorem Int.Ico_eq_finset_map E1 #
∀ (a b : ℤ), Finset.Ico a b = Finset.map (Nat.castEmbedding.trans (addLeftEmbedding a)) (Finset.range (b - a).toNat)
theorem Int.Ioc_eq_finset_map E1 #
∀ (a b : ℤ),
Finset.Ioc a b = Finset.map (Nat.castEmbedding.trans (addLeftEmbedding (a + 1))) (Finset.range (b - a).toNat)
theorem Int.Ioo_eq_finset_map E1 #
∀ (a b : ℤ),
Finset.Ioo a b = Finset.map (Nat.castEmbedding.trans (addLeftEmbedding (a + 1))) (Finset.range (b - a - 1).toNat)
theorem Int.uIcc_eq_finset_map E1 #
∀ (a b : ℤ),
Finset.uIcc a b =
Finset.map (Nat.castEmbedding.trans (addLeftEmbedding (min a b))) (Finset.range (max a b + 1 - min a b).toNat)
theorem Int.card_Icc E0 #
∀ (a b : ℤ), (Finset.Icc a b).card = (b + 1 - a).toNat
theorem Int.card_Ico E0 #
∀ (a b : ℤ), (Finset.Ico a b).card = (b - a).toNat
theorem Int.card_Ioc E0 #
∀ (a b : ℤ), (Finset.Ioc a b).card = (b - a).toNat
theorem Int.card_Ioo E0 #
∀ (a b : ℤ), (Finset.Ioo a b).card = (b - a - 1).toNat
theorem Int.card_uIcc E0 #
∀ (a b : ℤ), (Finset.uIcc a b).card = (b - a).natAbs + 1
theorem Int.card_Icc_of_le E1 #
∀ (a b : ℤ), a ≤ b + 1 → ↑(Finset.Icc a b).card = b + 1 - a
theorem Int.card_Ico_of_le E1 #
∀ (a b : ℤ), a ≤ b → ↑(Finset.Ico a b).card = b - a
theorem Int.card_Ioc_of_le E1 #
∀ (a b : ℤ), a ≤ b → ↑(Finset.Ioc a b).card = b - a
theorem Int.card_Ioo_of_lt E1 #
∀ (a b : ℤ), a < b → ↑(Finset.Ioo a b).card = b - a - 1
theorem Int.Icc_eq_pair E1 #
∀ (a : ℤ), Finset.Icc a (a + 1) = {a, a + 1}
theorem Int.card_fintype_Icc_of_le E1 #
∀ (a b : ℤ), a ≤ b + 1 → ↑(Fintype.card ↑(Set.Icc a b)) = b + 1 - a
theorem Int.card_fintype_Ico_of_le E1 #
∀ (a b : ℤ), a ≤ b → ↑(Fintype.card ↑(Set.Ico a b)) = b - a
theorem Int.card_fintype_Ioc_of_le E1 #
∀ (a b : ℤ), a ≤ b → ↑(Fintype.card ↑(Set.Ioc a b)) = b - a
theorem Int.card_fintype_Ioo_of_lt E1 #
∀ (a b : ℤ), a < b → ↑(Fintype.card ↑(Set.Ioo a b)) = b - a - 1
theorem Int.image_Ico_emod E1 #
∀ (n a : ℤ), 0 ≤ a → Finset.image (fun x ↦ x % a) (Finset.Ico n (n + a)) = Finset.Ico 0 a
theorem Finset.Icc_succ_succ E1 #
∀ (m n : ℕ), Finset.Icc (-(↑m + 1)) (↑n + 1) = Finset.Icc (-↑m) ↑n ∪ {-(↑m + 1), ↑n + 1}
theorem Finset.Ico_succ_succ E1 #
∀ (m n : ℕ), Finset.Ico (-(↑m + 1)) (↑n + 1) = Finset.Ico (-↑m) ↑n ∪ {-(↑m + 1), ↑n}
theorem Finset.Ioc_succ_succ E1 #
∀ (m n : ℕ), Finset.Ioc (-(↑m + 1)) (↑n + 1) = Finset.Ioc (-↑m) ↑n ∪ {-↑m, ↑n + 1}
theorem Finset.Ioo_succ_succ E1 #
∀ (m n : ℕ), Finset.Ioo (-(↑m + 1)) (↑n + 1) = Finset.Ioo (-↑m) ↑n ∪ {-↑m, ↑n}