The areas / V04. Order and lattices
Mathlib.Order.Interval.Set.Nat
7 declarations. Mathlib docs · Source
theorem Set.ncard_Icc_nat E0 #
∀ (a b : ℕ), (Set.Icc a b).ncard = b + 1 - a
theorem Set.ncard_Ico_nat E0 #
∀ (a b : ℕ), (Set.Ico a b).ncard = b - a
theorem Set.ncard_Ioc_nat E0 #
∀ (a b : ℕ), (Set.Ioc a b).ncard = b - a
theorem Set.ncard_Ioo_nat E0 #
∀ (a b : ℕ), (Set.Ioo a b).ncard = b - a - 1
theorem Set.ncard_uIcc_nat E0 #
∀ (a b : ℕ), (Set.uIcc a b).ncard = (↑b - ↑a).natAbs + 1
theorem Set.ncard_Iic_nat E0 #
∀ (b : ℕ), (Set.Iic b).ncard = b + 1
theorem Set.ncard_Iio_nat E0 #
∀ (b : ℕ), (Set.Iio b).ncard = b