Mathlib.Data.ENat.Monoid
66 declarations and 3 deprecated aliases. Mathlib docs · Source
theorem ENat.lift.congr_simp E1 #
∀ (x x_1 : ℕ∞) (e_x : x = x_1) (h : x < ⊤), x.lift h = x_1.lift ⋯
instance instCharZeroENat E0 #
CharZero ℕ∞
instance instAddMonoidWithOneENat E0 #
AddMonoidWithOne ℕ∞
instance instCommSemiringENat E0 #
CommSemiring ℕ∞
instance instNoZeroDivisorsENat E0 #
NoZeroDivisors ℕ∞
instance instIsOrderedRingENat E0 #
IsOrderedRing ℕ∞
instance instCanonicallyOrderedAddENat E0 #
CanonicallyOrderedAdd ℕ∞
instance instLinearOrderedAddCommMonoidWithTopENat E0 #
LinearOrderedAddCommMonoidWithTop ℕ∞
instance instOrderedSubENat E0 #
OrderedSub ℕ∞
theorem ENat.natCast_mul E0 #
∀ (m n : ℕ), ↑(m * n) = ↑m * ↑n
theorem ENat.mul_top E0 #
∀ {m : ℕ∞}, m ≠ 0 → m * ⊤ = ⊤
theorem ENat.top_mul E0 #
∀ {m : ℕ∞}, m ≠ 0 → ⊤ * m = ⊤
theorem ENat.mul_top' E1 #
∀ {m : ℕ∞}, m * ⊤ = if m = 0 then 0 else ⊤
A version of mul_top where the RHS is stated as an ite
theorem ENat.top_mul' E1 #
∀ {m : ℕ∞}, ⊤ * m = if m = 0 then 0 else ⊤
A version of top_mul where the RHS is stated as an ite
theorem ENat.top_pow E0 #
∀ {n : ℕ}, n ≠ 0 → ⊤ ^ n = ⊤
theorem ENat.pow_eq_top_iff E0 #
∀ {a : ℕ∞} {n : ℕ}, a ^ n = ⊤ ↔ a = ⊤ ∧ n ≠ 0
theorem ENat.pow_ne_top_iff E0 #
∀ {a : ℕ∞} {n : ℕ}, a ^ n ≠ ⊤ ↔ a ≠ ⊤ ∨ n = 0
theorem ENat.pow_lt_top_iff E0 #
∀ {a : ℕ∞} {n : ℕ}, a ^ n < ⊤ ↔ a < ⊤ ∨ n = 0
theorem ENat.lift_add E0 #
∀ (a b : ℕ∞) (h : a + b < ⊤), (a + b).lift h = a.lift ⋯ + b.lift ⋯
def ENat.toNatHom E1 #
ℕ∞ →*₀ ℕ
Homomorphism from ℕ∞ to ℕ sending ∞ to 0.
theorem ENat.coe_toNatHom E0 #
⇑ENat.toNatHom = ENat.toNat
theorem ENat.toNatHom_apply E0 #
∀ (n : ℕ), ENat.toNatHom ↑n = (↑n).toNat
theorem ENat.toNat_mul E0 #
∀ (a b : ℕ∞), (a * b).toNat = a.toNat * b.toNat
theorem ENat.natCast_lt_succ E1 #
∀ {n : ℕ}, ↑n < ↑n + 1
theorem ENat.le_sub_of_add_le_left E1 #
∀ {a b c : ℕ∞}, a ≠ ⊤ → a + b ≤ c → b ≤ c - a
theorem ENat.le_sub_of_add_le_right E1 #
∀ {a b c : ℕ∞}, b ≠ ⊤ → a + b ≤ c → a ≤ c - b
theorem ENat.lt_add_left E1 #
∀ {n k : ℕ∞}, n ≠ ⊤ → 0 < k → n < k + n
theorem ENat.sub_sub_cancel E1 #
∀ {a b : ℕ∞}, a ≠ ⊤ → b ≤ a → a - (a - b) = b
theorem ENat.add_left_injective_of_ne_top E1 #
∀ {n : ℕ∞}, n ≠ ⊤ → Function.Injective fun x ↦ x + n
theorem ENat.add_right_injective_of_ne_top E1 #
∀ {n : ℕ∞}, n ≠ ⊤ → Function.Injective fun x ↦ n + x
theorem ENat.mul_right_strictMono E1 #
∀ {a : ℕ∞}, a ≠ 0 → a ≠ ⊤ → StrictMono fun x ↦ a * x
theorem ENat.mul_left_strictMono E1 #
∀ {a : ℕ∞}, a ≠ 0 → a ≠ ⊤ → StrictMono fun x ↦ x * a
theorem ENat.mul_le_mul_left_iff E0 #
∀ {a x y : ℕ∞}, a ≠ 0 → a ≠ ⊤ → (a * x ≤ a * y ↔ x ≤ y)
theorem ENat.mul_le_mul_right_iff E0 #
∀ {a x y : ℕ∞}, a ≠ 0 → a ≠ ⊤ → (x * a ≤ y * a ↔ x ≤ y)
theorem ENat.self_le_mul_right E1 #
∀ {c : ℕ∞} (a : ℕ∞), c ≠ 0 → a ≤ a * c
theorem ENat.self_le_mul_left E1 #
∀ {c : ℕ∞} (a : ℕ∞), c ≠ 0 → a ≤ c * a
instance ENat.instUniqueUnits E0 #
Unique ℕ∞ˣ
theorem ENat.add_one_natCast_le_withTop_of_lt E1 #
∀ {m : ℕ} {n : WithTop ℕ∞}, ↑m < n → ↑(m + 1) ≤ n
theorem ENat.coe_top_add_one E0 #
↑⊤ + 1 = ↑⊤
theorem ENat.add_one_eq_coe_top_iff E0 #
∀ {n : WithTop ℕ∞}, n + 1 = ↑⊤ ↔ n = ↑⊤
theorem ENat.natCast_ne_coe_top E0 #
∀ (n : ℕ), ↑n ≠ ↑⊤
theorem ENat.one_le_iff_ne_zero_withTop E1 #
∀ {n : WithTop ℕ∞}, 1 ≤ n ↔ n ≠ 0
theorem ENat.natCast_le_of_coe_top_le_withTop E1 #
∀ {N : WithTop ℕ∞}, ↑⊤ ≤ N → ∀ (n : ℕ), ↑n ≤ N
theorem ENat.natCast_lt_of_coe_top_le_withTop E1 #
∀ {N : WithTop ℕ∞}, ↑⊤ ≤ N → ∀ (n : ℕ), ↑n < N
theorem ENat.map_natCast_nonneg E0 #
∀ {n : ℕ∞} {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α],
0 ≤ ENat.map Nat.cast n
theorem ENat.map_natCast_strictMono E0 #
∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α],
StrictMono (ENat.map Nat.cast)
theorem ENat.map_natCast_injective E0 #
∀ {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α] [CharZero α],
Function.Injective (ENat.map Nat.cast)
theorem ENat.map_natCast_inj E0 #
∀ {m n : ℕ∞} {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α]
[CharZero α], ENat.map Nat.cast m = ENat.map Nat.cast n ↔ m = n
theorem ENat.map_natCast_eq_zero E0 #
∀ {n : ℕ∞} {α : Type u_1} [inst : AddMonoidWithOne α] [inst_1 : PartialOrder α] [AddLeftMono α] [ZeroLEOneClass α]
[CharZero α], ENat.map Nat.cast n = 0 ↔ n = 0
def AddMonoidHom.ENatMap E1 #
{N : Type u_1} → [inst : AddZeroClass N] → (ℕ →+ N) → ℕ∞ →+ WithTop N
A version of WithTop.map for AddMonoidHoms.
theorem AddMonoidHom.ENatMap_apply E0 #
∀ {N : Type u_1} [inst : AddZeroClass N] (f : ℕ →+ N), ⇑f.ENatMap = ENat.map ⇑f
def MonoidWithZeroHom.ENatMap E1 #
{S : Type u_1} →
[inst : MulZeroOneClass S] →
[inst_1 : DecidableEq S] → [inst_2 : Nontrivial S] → (f : ℕ →*₀ S) → Function.Injective ⇑f → ℕ∞ →*₀ WithTop S
A version of ENat.map for MonoidWithZeroHoms.
theorem MonoidWithZeroHom.ENatMap_apply E0 #
∀ {S : Type u_1} [inst : MulZeroOneClass S] [inst_1 : DecidableEq S] [inst_2 : Nontrivial S] (f : ℕ →*₀ S)
(hf : Function.Injective ⇑f), ⇑(f.ENatMap hf) = ENat.map ⇑f
def RingHom.ENatMap E1 #
{S : Type u_1} →
[inst : CommSemiring S] →
[inst_1 : PartialOrder S] →
[inst_2 : CanonicallyOrderedAdd S] →
[inst_3 : DecidableEq S] → [inst_4 : Nontrivial S] → (f : ℕ →+* S) → Function.Injective ⇑f → ℕ∞ →+* WithTop S
A version of ENat.map for RingHoms.
theorem RingHom.ENatMap_apply E0 #
∀ {S : Type u_1} [inst : CommSemiring S] [inst_1 : PartialOrder S] [inst_2 : CanonicallyOrderedAdd S]
[inst_3 : DecidableEq S] [inst_4 : Nontrivial S] (f : ℕ →+* S) (hf : Function.Injective ⇑f),
⇑(f.ENatMap hf) = (↑((↑f).ENatMap hf)).toFun
theorem ENat.map_natCast_mul E0 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] [inst_1 : DecidableEq R] [CharZero R] (a b : ℕ∞),
ENat.map Nat.cast (a * b) = ENat.map Nat.cast a * ENat.map Nat.cast b
theorem ENat.WithBot.add_natCast_cancel E0 #
∀ {a b : WithBot ℕ∞} {c : ℕ}, a + ↑c = b + ↑c ↔ a = b
theorem ENat.WithBot.add_one_cancel E0 #
∀ {a b : WithBot ℕ∞}, a + 1 = b + 1 ↔ a = b
theorem ENat.WithBot.add_ofNat_cancel E1 #
∀ {a b : WithBot ℕ∞} {c : ℕ} [inst : c.AtLeastTwo], a + OfNat.ofNat c = b + OfNat.ofNat c ↔ a = b
theorem ENat.WithBot.natCast_add_cancel E0 #
∀ {a b : WithBot ℕ∞} {c : ℕ}, ↑c + a = ↑c + b ↔ a = b
theorem ENat.WithBot.one_add_cancel E0 #
∀ {a b : WithBot ℕ∞}, 1 + a = 1 + b ↔ a = b
theorem ENat.WithBot.ofNat_add_cancel E1 #
∀ {a b : WithBot ℕ∞} {c : ℕ} [inst : c.AtLeastTwo], OfNat.ofNat c + a = OfNat.ofNat c + b ↔ a = b
theorem ENat.WithBot.add_le_add_natCast_right_iff E0 #
∀ {a b : WithBot ℕ∞} {c : ℕ}, a + ↑c ≤ b + ↑c ↔ a ≤ b
theorem ENat.WithBot.add_le_add_one_right_iff E0 #
∀ {a b : WithBot ℕ∞}, a + 1 ≤ b + 1 ↔ a ≤ b
theorem ENat.WithBot.add_le_add_natCast_left_iff E0 #
∀ {a b : WithBot ℕ∞} {c : ℕ}, ↑c + a ≤ ↑c + b ↔ a ≤ b
theorem ENat.WithBot.add_le_add_one_left_iff E0 #
∀ {a b : WithBot ℕ∞}, 1 + a ≤ 1 + b ↔ a ≤ b
Deprecated aliases
| Name | New name | Since |
|---|---|---|
ENat.add_one_pos | add_pos_of_right | 2026-05-25 |
ENat.coe_mul | ENat.natCast_mul | 2026-07-17 |
ENat.mul_le_mul_of_le_right | mul_le_mul_left | 2026-11-04 |