The areas / V06. Rings, fields and ordered algebra
Mathlib.Algebra.Order.Floor.Extended
79 declarations. Mathlib docs · Source
def ENat.floor E1 #
ENNReal → ℕ∞
⌊r⌋ₑ is the greatest extended natural n such that n ≤ r.
def ENat.ceil E1 #
ENNReal → ℕ∞
⌈r⌉ₑ is the least extended natural n such that r ≤ n
def ENat.«term⌊_⌋ₑ» E1 #
Lean.ParserDescr
⌊r⌋ₑ is the greatest extended natural n such that n ≤ r.
def ENat.«term⌈_⌉ₑ» E1 #
Lean.ParserDescr
⌈r⌉ₑ is the least extended natural n such that r ≤ n
theorem ENat.floor_top E0 #
⌊⊤⌋ₑ = ⊤
theorem ENat.ceil_top E0 #
⌈⊤⌉ₑ = ⊤
theorem ENat.floor_coe E0 #
∀ (r : NNReal), ⌊↑r⌋ₑ = ↑⌊r⌋₊
theorem ENat.ceil_coe E0 #
∀ (r : NNReal), ⌈↑r⌉ₑ = ↑⌈r⌉₊
theorem ENat.floor_eq_top E0 #
∀ {r : ENNReal}, ⌊r⌋ₑ = ⊤ ↔ r = ⊤
theorem ENat.ceil_eq_top E0 #
∀ {r : ENNReal}, ⌈r⌉ₑ = ⊤ ↔ r = ⊤
theorem ENat.floor_lt_top E1 #
∀ {r : ENNReal}, ⌊r⌋ₑ < ⊤ ↔ r < ⊤
theorem ENat.ceil_lt_top E0 #
∀ {r : ENNReal}, ⌈r⌉ₑ < ⊤ ↔ r < ⊤
theorem ENat.le_floor E0 #
∀ {r : ENNReal} {n : ℕ∞}, n ≤ ⌊r⌋ₑ ↔ ↑n ≤ r
theorem ENat.ceil_le E0 #
∀ {r : ENNReal} {n : ℕ∞}, ⌈r⌉ₑ ≤ n ↔ r ≤ ↑n
theorem ENat.floor_lt E0 #
∀ {r : ENNReal} {n : ℕ∞}, ⌊r⌋ₑ < n ↔ r < ↑n
theorem ENat.lt_ceil E0 #
∀ {r : ENNReal} {n : ℕ∞}, n < ⌈r⌉ₑ ↔ ↑n < r
theorem ENat.gc_toENNReal_floor E1 #
GaloisConnection ENat.toENNReal ENat.floor
theorem ENat.gc_ceil_toENNReal E1 #
GaloisConnection ENat.ceil ENat.toENNReal
theorem ENat.floor_le_self E1 #
∀ {r : ENNReal}, ↑⌊r⌋ₑ ≤ r
theorem ENat.le_ceil_self E1 #
∀ {r : ENNReal}, r ≤ ↑⌈r⌉ₑ
theorem ENat.floor_le E0 #
∀ {r : ENNReal} {n : ℕ∞}, n ≠ ⊤ → (⌊r⌋ₑ ≤ n ↔ r < ↑n + 1)
theorem ENat.le_ceil E0 #
∀ {r : ENNReal} {n : ℕ∞}, n ≠ 0 → n ≠ ⊤ → (n ≤ ⌈r⌉ₑ ↔ ↑n - 1 < r)
theorem ENat.lt_floor E0 #
∀ {r : ENNReal} {n : ℕ∞}, n ≠ ⊤ → (n < ⌊r⌋ₑ ↔ ↑n + 1 ≤ r)
theorem ENat.ceil_lt E0 #
∀ {r : ENNReal} {n : ℕ∞}, n ≠ 0 → n ≠ ⊤ → (⌈r⌉ₑ < n ↔ r ≤ ↑n - 1)
theorem ENat.floor_mono E1 #
Monotone ENat.floor
theorem ENat.ceil_mono E1 #
Monotone ENat.ceil
theorem ENat.floor_le_floor E1 #
∀ {r s : ENNReal}, r ≤ s → ⌊r⌋ₑ ≤ ⌊s⌋ₑ
theorem ENat.ceil_le_ceil E1 #
∀ {r s : ENNReal}, r ≤ s → ⌈r⌉ₑ ≤ ⌈s⌉ₑ
theorem ENat.floor_natCast E0 #
∀ (n : ℕ∞), ⌊↑n⌋ₑ = n
theorem ENat.ceil_natCast E0 #
∀ (n : ℕ∞), ⌈↑n⌉ₑ = n
theorem ENat.floor_zero E0 #
⌊0⌋ₑ = 0
theorem ENat.ceil_zero E0 #
⌈0⌉ₑ = 0
theorem ENat.floor_one E0 #
⌊1⌋ₑ = 1
theorem ENat.ceil_one E0 #
⌈1⌉ₑ = 1
theorem ENat.floor_ofNat E0 #
∀ (n : ℕ) [inst : n.AtLeastTwo], ⌊OfNat.ofNat n⌋ₑ = OfNat.ofNat n
theorem ENat.ceil_ofNat E0 #
∀ (n : ℕ) [inst : n.AtLeastTwo], ⌈OfNat.ofNat n⌉ₑ = OfNat.ofNat n
theorem ENat.floor_pos E1 #
∀ {r : ENNReal}, 0 < ⌊r⌋ₑ ↔ 1 ≤ r
theorem ENat.ceil_pos E1 #
∀ {r : ENNReal}, 0 < ⌈r⌉ₑ ↔ 0 < r
theorem ENat.floor_eq_zero E0 #
∀ {r : ENNReal}, ⌊r⌋ₑ = 0 ↔ r < 1
theorem ENat.ceil_eq_zero E0 #
∀ {r : ENNReal}, ⌈r⌉ₑ = 0 ↔ r = 0
theorem ENat.floor_le_ceil E1 #
∀ {r : ENNReal}, ⌊r⌋ₑ ≤ ⌈r⌉ₑ
theorem ENat.ceil_le_floor_add_one E1 #
∀ (r : ENNReal), ⌈r⌉ₑ ≤ ⌊r⌋ₑ + 1
theorem ENat.floor_lt_ceil E1 #
∀ {r s : ENNReal}, r < s → ⌊r⌋ₑ < ⌈s⌉ₑ
theorem ENat.floor_congr E1 #
∀ {r s : ENNReal}, (∀ (n : ℕ∞), ↑n ≤ r ↔ ↑n ≤ s) → ⌊r⌋ₑ = ⌊s⌋ₑ
theorem ENat.ceil_congr E1 #
∀ {r s : ENNReal}, (∀ (n : ℕ∞), r ≤ ↑n ↔ s ≤ ↑n) → ⌈r⌉ₑ = ⌈s⌉ₑ
theorem ENat.floor_add_toENNReal E0 #
∀ (r : ENNReal) (n : ℕ∞), ⌊r + ↑n⌋ₑ = ⌊r⌋ₑ + n
theorem ENat.ceil_add_toENNReal E0 #
∀ (r : ENNReal) (n : ℕ∞), ⌈r + ↑n⌉ₑ = ⌈r⌉ₑ + n
theorem ENat.floor_toENNReal_add E0 #
∀ (r : ENNReal) (n : ℕ∞), ⌊↑n + r⌋ₑ = n + ⌊r⌋ₑ
theorem ENat.ceil_toENNReal_add E0 #
∀ (r : ENNReal) (n : ℕ∞), ⌈↑n + r⌉ₑ = n + ⌈r⌉ₑ
theorem ENat.floor_add_natCast E0 #
∀ (r : ENNReal) (n : ℕ), ⌊r + ↑n⌋ₑ = ⌊r⌋ₑ + ↑n
theorem ENat.ceil_add_natCast E0 #
∀ (r : ENNReal) (n : ℕ), ⌈r + ↑n⌉ₑ = ⌈r⌉ₑ + ↑n
theorem ENat.floor_natCast_add E0 #
∀ (r : ENNReal) (n : ℕ), ⌊↑n + r⌋ₑ = ↑n + ⌊r⌋ₑ
theorem ENat.ceil_natCast_add E0 #
∀ (r : ENNReal) (n : ℕ), ⌈↑n + r⌉ₑ = ↑n + ⌈r⌉ₑ
theorem ENat.floor_add_one E0 #
∀ (r : ENNReal), ⌊r + 1⌋ₑ = ⌊r⌋ₑ + 1
theorem ENat.ceil_add_one E0 #
∀ (r : ENNReal), ⌈r + 1⌉ₑ = ⌈r⌉ₑ + 1
theorem ENat.floor_add_ofNat E0 #
∀ (r : ENNReal) (n : ℕ) [inst : n.AtLeastTwo], ⌊r + OfNat.ofNat n⌋ₑ = ⌊r⌋ₑ + OfNat.ofNat n
theorem ENat.ceil_add_ofNat E0 #
∀ (r : ENNReal) (n : ℕ) [inst : n.AtLeastTwo], ⌈r + OfNat.ofNat n⌉ₑ = ⌈r⌉ₑ + OfNat.ofNat n
theorem ENat.floor_sub_toENNReal E0 #
∀ (r : ENNReal) (n : ℕ∞), ⌊r - ↑n⌋ₑ = ⌊r⌋ₑ - n
theorem ENat.ceil_sub_toENNReal E0 #
∀ (r : ENNReal) (n : ℕ∞), ⌈r - ↑n⌉ₑ = ⌈r⌉ₑ - n
theorem ENat.floor_sub_natCast E0 #
∀ (r : ENNReal) (n : ℕ), ⌊r - ↑n⌋ₑ = ⌊r⌋ₑ - ↑n
theorem ENat.ceil_sub_natCast E0 #
∀ (r : ENNReal) (n : ℕ), ⌈r - ↑n⌉ₑ = ⌈r⌉ₑ - ↑n
theorem ENat.floor_sub_one E0 #
∀ (r : ENNReal), ⌊r - 1⌋ₑ = ⌊r⌋ₑ - 1
theorem ENat.ceil_sub_one E0 #
∀ (r : ENNReal), ⌈r - 1⌉ₑ = ⌈r⌉ₑ - 1
theorem ENat.floor_sub_ofNat E0 #
∀ (r : ENNReal) (n : ℕ) [inst : n.AtLeastTwo], ⌊r - OfNat.ofNat n⌋ₑ = ⌊r⌋ₑ - OfNat.ofNat n
theorem ENat.ceil_sub_ofNat E0 #
∀ (r : ENNReal) (n : ℕ) [inst : n.AtLeastTwo], ⌈r - OfNat.ofNat n⌉ₑ = ⌈r⌉ₑ - OfNat.ofNat n
theorem ENat.ceil_lt_add_one E1 #
∀ {r : ENNReal}, r ≠ ⊤ → ↑⌈r⌉ₑ < r + 1
theorem ENat.ceil_add_le E1 #
∀ (r s : ENNReal), ⌈r + s⌉ₑ ≤ ⌈r⌉ₑ + ⌈s⌉ₑ
theorem ENat.toENNReal_iSup E0 #
∀ {ι : Sort u_1} (f : ι → ℕ∞), ↑(⨆ i, f i) = ⨆ i, ↑(f i)
theorem ENat.toENNReal_iInf E0 #
∀ {ι : Sort u_1} (f : ι → ℕ∞), ↑(⨅ i, f i) = ⨅ i, ↑(f i)
theorem ENat.preimage_toENNReal_Ioi E0 #
∀ (a : ENNReal), ENat.toENNReal ⁻¹' Set.Ioi a = Set.Ioi ⌊a⌋ₑ
theorem ENat.preimage_toENNReal_Iio E0 #
∀ (a : ENNReal), ENat.toENNReal ⁻¹' Set.Iio a = Set.Iio ⌈a⌉ₑ
theorem ENat.preimage_toENNReal_Iic E0 #
∀ (a : ENNReal), ENat.toENNReal ⁻¹' Set.Iic a = Set.Iic ⌊a⌋ₑ
theorem ENat.preimage_toENNReal_Ici E0 #
∀ (a : ENNReal), ENat.toENNReal ⁻¹' Set.Ici a = Set.Ici ⌈a⌉ₑ
theorem ENat.preimage_toENNReal_Icc E0 #
∀ (a b : ENNReal), ENat.toENNReal ⁻¹' Set.Icc a b = Set.Icc ⌈a⌉ₑ ⌊b⌋ₑ
theorem ENat.preimage_toENNReal_Ico E0 #
∀ (a b : ENNReal), ENat.toENNReal ⁻¹' Set.Ico a b = Set.Ico ⌈a⌉ₑ ⌈b⌉ₑ
theorem ENat.preimage_toENNReal_Ioc E0 #
∀ (a b : ENNReal), ENat.toENNReal ⁻¹' Set.Ioc a b = Set.Ioc ⌊a⌋ₑ ⌊b⌋ₑ
theorem ENat.preimage_toENNReal_Ioo E0 #
∀ (a b : ENNReal), ENat.toENNReal ⁻¹' Set.Ioo a b = Set.Ioo ⌊a⌋ₑ ⌈b⌉ₑ
theorem Mathlib.Meta.Positivity.natCeil_pos E1 #
∀ {r : ENNReal}, 0 < r → 0 < ⌈r⌉ₑ
Alias of the reverse direction of ENat.ceil_pos.
def Mathlib.Meta.Positivity.evalENatCeil E1 #
Mathlib.Meta.Positivity.PositivityExt
Extension for the positivity tactic: ENat.ceil is positive if its input is.