Mathlib.Data.ENat.Lattice
65 declarations and 11 deprecated aliases. Mathlib docs · Source
instance instCompleteLinearOrderENat E0 #
CompleteLinearOrder ℕ∞
instance instCompleteLinearOrderWithBotENat E0 #
CompleteLinearOrder (WithBot ℕ∞)
theorem ENat.iSup_natCast_eq_top E1 #
∀ {ι : Sort u_1} {f : ι → ℕ}, ⨆ i, ↑(f i) = ⊤ ↔ ¬BddAbove (Set.range f)
theorem ENat.iSup_natCast_ne_top E1 #
∀ {ι : Sort u_1} {f : ι → ℕ}, ⨆ i, ↑(f i) ≠ ⊤ ↔ BddAbove (Set.range f)
theorem ENat.iSup_natCast_lt_top E1 #
∀ {ι : Sort u_1} {f : ι → ℕ}, ⨆ i, ↑(f i) < ⊤ ↔ BddAbove (Set.range f)
theorem ENat.iInf_natCast_eq_top E1 #
∀ {ι : Sort u_1} {f : ι → ℕ}, ⨅ i, ↑(f i) = ⊤ ↔ IsEmpty ι
theorem ENat.iInf_natCast_ne_top E1 #
∀ {ι : Sort u_1} {f : ι → ℕ}, ⨅ i, ↑(f i) ≠ ⊤ ↔ Nonempty ι
theorem ENat.iInf_natCast_lt_top E1 #
∀ {ι : Sort u_1} {f : ι → ℕ}, ⨅ i, ↑(f i) < ⊤ ↔ Nonempty ι
theorem ENat.natCast_sSup E1 #
∀ {s : Set ℕ}, BddAbove s → ↑(sSup s) = ⨆ a ∈ s, ↑a
theorem ENat.natCast_sInf E1 #
∀ {s : Set ℕ}, s.Nonempty → ↑(sInf s) = ⨅ a ∈ s, ↑a
theorem ENat.natCast_iSup E1 #
∀ {ι : Sort u_1} {f : ι → ℕ}, BddAbove (Set.range f) → ↑(⨆ i, f i) = ⨆ i, ↑(f i)
theorem ENat.natCast_iInf E1 #
∀ {ι : Sort u_1} {f : ι → ℕ} [Nonempty ι], ↑(⨅ i, f i) = ⨅ i, ↑(f i)
theorem ENat.iInf_eq_top_of_isEmpty E1 #
∀ {ι : Sort u_1} {f : ι → ℕ} [IsEmpty ι], ⨅ i, ↑(f i) = ⊤
theorem ENat.iInf_eq_natCast_iff E0 #
∀ {ι : Sort u_1} {f : ι → ℕ∞} {n : ℕ}, ⨅ i, f i = ↑n ↔ (∃ i, f i = ↑n) ∧ ∀ (i : ι), ↑n ≤ f i
theorem ENat.iInf_toNat E1 #
∀ {ι : Sort u_1} {f : ι → ℕ}, (⨅ i, ↑(f i)).toNat = ⨅ i, f i
theorem ENat.iInf_eq_zero E0 #
∀ {ι : Sort u_1} {f : ι → ℕ∞}, ⨅ i, f i = 0 ↔ ∃ i, f i = 0
theorem ENat.sSup_eq_zero E1 #
∀ {s : Set ℕ∞}, sSup s = 0 ↔ ∀ a ∈ s, a = 0
theorem ENat.sInf_eq_zero E1 #
∀ {s : Set ℕ∞}, sInf s = 0 ↔ 0 ∈ s
theorem ENat.sSup_eq_zero' E1 #
∀ {s : Set ℕ∞}, sSup s = 0 ↔ s = ∅ ∨ s = {0}
theorem ENat.iSup_eq_zero E0 #
∀ {ι : Sort u_1} {f : ι → ℕ∞}, iSup f = 0 ↔ ∀ (i : ι), f i = 0
theorem ENat.iSup_zero E0 #
∀ {ι : Sort u_1}, ⨆ x, 0 = 0
theorem ENat.sSup_eq_top_of_infinite E1 #
∀ {s : Set ℕ∞}, s.Infinite → sSup s = ⊤
theorem ENat.finite_of_sSup_lt_top E1 #
∀ {s : Set ℕ∞}, sSup s < ⊤ → s.Finite
theorem ENat.sSup_mem_of_nonempty_of_lt_top E1 #
∀ {s : Set ℕ∞} [Nonempty ↑s], sSup s < ⊤ → sSup s ∈ s
theorem ENat.exists_eq_iSup_of_lt_top E1 #
∀ {ι : Sort u_1} {f : ι → ℕ∞} [Nonempty ι], ⨆ i, f i < ⊤ → ∃ i, f i = ⨆ i, f i
theorem ENat.exists_eq_iInf E1 #
∀ {ι : Sort u_1} [Nonempty ι] (f : ι → ℕ∞), ∃ a, f a = ⨅ x, f x
theorem ENat.exists_eq_iSup₂_of_lt_top E1 #
∀ {ι₁ : Type u_2} {ι₂ : Type u_3} {f : ι₁ → ι₂ → ℕ∞} [Nonempty ι₁] [Nonempty ι₂],
⨆ i, ⨆ j, f i j < ⊤ → ∃ i j, f i j = ⨆ i, ⨆ j, f i j
theorem ENat.iSup_natCast E1 #
⨆ n, ↑n = ⊤
theorem ENat.mul_iSup E1 #
∀ {ι : Sort u_2} (a : ℕ∞) (f : ι → ℕ∞), a * ⨆ i, f i = ⨆ i, a * f i
theorem ENat.iSup_mul E1 #
∀ {ι : Sort u_2} (f : ι → ℕ∞) (a : ℕ∞), (⨆ i, f i) * a = ⨆ i, f i * a
theorem ENat.mul_sSup E1 #
∀ {s : Set ℕ∞} {a : ℕ∞}, a * sSup s = ⨆ b ∈ s, a * b
theorem ENat.sSup_mul E1 #
∀ {s : Set ℕ∞} {a : ℕ∞}, sSup s * a = ⨆ b ∈ s, b * a
theorem ENat.mul_iInf E1 #
∀ {ι : Sort u_2} {f : ι → ℕ∞} {a : ℕ∞} [Nonempty ι], a * ⨅ i, f i = ⨅ i, a * f i
theorem ENat.iInf_mul E1 #
∀ {ι : Sort u_2} {f : ι → ℕ∞} {a : ℕ∞} [Nonempty ι], (⨅ i, f i) * a = ⨅ i, f i * a
theorem ENat.mul_iInf' E1 #
∀ {ι : Sort u_2} {f : ι → ℕ∞} {a : ℕ∞}, (a = 0 → Nonempty ι) → a * ⨅ i, f i = ⨅ i, a * f i
A version of mul_iInf with a slightly more general hypothesis.
theorem ENat.iInf_mul' E1 #
∀ {ι : Sort u_2} {f : ι → ℕ∞} {a : ℕ∞}, (a = 0 → Nonempty ι) → (⨅ i, f i) * a = ⨅ i, f i * a
A version of iInf_mul with a slightly more general hypothesis.
theorem ENat.mul_iInf_of_ne E1 #
∀ {ι : Sort u_2} {f : ι → ℕ∞} {a : ℕ∞}, a ≠ 0 → a * ⨅ i, f i = ⨅ i, a * f i
If a ≠ 0, then right multiplication by a maps infimum to infimum.
See also ENat.iInf_mul that assumes [Nonempty ι] but does not require a ≠ 0.
theorem ENat.iInf_mul_of_ne E1 #
∀ {ι : Sort u_2} {f : ι → ℕ∞} {a : ℕ∞}, a ≠ 0 → (⨅ i, f i) * a = ⨅ i, f i * a
If a ≠ 0, then right multiplication by a maps infimum to infimum.
See also ENat.iInf_mul that assumes [Nonempty ι] but does not require a ≠ 0.
theorem ENat.add_iSup E1 #
∀ {ι : Sort u_2} {a : ℕ∞} [Nonempty ι] (f : ι → ℕ∞), a + ⨆ i, f i = ⨆ i, a + f i
theorem ENat.iSup_add E1 #
∀ {ι : Sort u_2} {a : ℕ∞} [Nonempty ι] (f : ι → ℕ∞), (⨆ i, f i) + a = ⨆ i, f i + a
theorem ENat.add_biSup' E1 #
∀ {ι : Sort u_2} {a : ℕ∞} {p : ι → Prop},
(∃ i, p i) → ∀ (f : ι → ℕ∞), a + ⨆ i, ⨆ (_ : p i), f i = ⨆ i, ⨆ (_ : p i), a + f i
theorem ENat.biSup_add' E1 #
∀ {ι : Sort u_2} {a : ℕ∞} {p : ι → Prop},
(∃ i, p i) → ∀ (f : ι → ℕ∞), (⨆ i, ⨆ (_ : p i), f i) + a = ⨆ i, ⨆ (_ : p i), f i + a
theorem ENat.add_biSup E1 #
∀ {a : ℕ∞} {ι : Type u_4} {s : Set ι}, s.Nonempty → ∀ (f : ι → ℕ∞), a + ⨆ i ∈ s, f i = ⨆ i ∈ s, a + f i
theorem ENat.biSup_add E1 #
∀ {a : ℕ∞} {ι : Type u_4} {s : Set ι}, s.Nonempty → ∀ (f : ι → ℕ∞), (⨆ i ∈ s, f i) + a = ⨆ i ∈ s, f i + a
theorem ENat.add_sSup E1 #
∀ {s : Set ℕ∞} {a : ℕ∞}, s.Nonempty → a + sSup s = ⨆ b ∈ s, a + b
theorem ENat.sSup_add E1 #
∀ {s : Set ℕ∞} {a : ℕ∞}, s.Nonempty → sSup s + a = ⨆ b ∈ s, b + a
theorem ENat.iSup_add_iSup_le E1 #
∀ {ι : Sort u_2} {κ : Sort u_3} {f : ι → ℕ∞} {a : ℕ∞} [Nonempty ι] [Nonempty κ] {g : κ → ℕ∞},
(∀ (i : ι) (j : κ), f i + g j ≤ a) → iSup f + iSup g ≤ a
theorem ENat.biSup_add_biSup_le' E1 #
∀ {ι : Sort u_2} {κ : Sort u_3} {f : ι → ℕ∞} {a : ℕ∞} {p : ι → Prop} {q : κ → Prop},
(∃ i, p i) →
(∃ j, q j) →
∀ {g : κ → ℕ∞},
(∀ (i : ι), p i → ∀ (j : κ), q j → f i + g j ≤ a) → (⨆ i, ⨆ (_ : p i), f i) + ⨆ j, ⨆ (_ : q j), g j ≤ a
theorem ENat.biSup_add_biSup_le E1 #
∀ {ι : Type u_4} {κ : Type u_5} {s : Set ι} {t : Set κ},
s.Nonempty →
t.Nonempty →
∀ {f : ι → ℕ∞} {g : κ → ℕ∞} {a : ℕ∞}, (∀ i ∈ s, ∀ j ∈ t, f i + g j ≤ a) → (⨆ i ∈ s, f i) + ⨆ j ∈ t, g j ≤ a
theorem ENat.iSup_add_iSup E1 #
∀ {ι : Sort u_2} {f g : ι → ℕ∞}, (∀ (i j : ι), ∃ k, f i + g j ≤ f k + g k) → iSup f + iSup g = ⨆ i, f i + g i
theorem ENat.iSup_add_iSup_of_monotone E1 #
∀ {ι : Type u_4} [inst : Preorder ι] [IsDirectedOrder ι] {f g : ι → ℕ∞},
Monotone f → Monotone g → iSup f + iSup g = ⨆ a, f a + g a
theorem ENat.smul_iSup E1 #
∀ {ι : Sort u_2} {R : Type u_4} [inst : SMul R ℕ∞] [IsScalarTower R ℕ∞ ℕ∞] (f : ι → ℕ∞) (c : R),
c • ⨆ i, f i = ⨆ i, c • f i
theorem ENat.smul_sSup E1 #
∀ {R : Type u_4} [inst : SMul R ℕ∞] [IsScalarTower R ℕ∞ ℕ∞] (s : Set ℕ∞) (c : R), c • sSup s = ⨆ a ∈ s, c • a
theorem ENat.sub_iSup E1 #
∀ {ι : Sort u_2} {f : ι → ℕ∞} {a : ℕ∞} [Nonempty ι], a ≠ ⊤ → a - ⨆ i, f i = ⨅ i, a - f i
theorem ENat.iInf_add E1 #
∀ {ι : Sort u_2} {f : ι → ℕ∞} {a : ℕ∞}, iInf f + a = ⨅ i, f i + a
theorem ENat.sub_iInf E1 #
∀ {ι : Sort u_2} {f : ι → ℕ∞} {a : ℕ∞}, a - ⨅ i, f i = ⨆ i, a - f i
theorem ENat.sInf_add E1 #
∀ {a : ℕ∞} {s : Set ℕ∞}, sInf s + a = ⨅ b ∈ s, b + a
theorem ENat.add_iInf E1 #
∀ {ι : Sort u_2} {f : ι → ℕ∞} {a : ℕ∞}, a + iInf f = ⨅ b, a + f b
theorem ENat.iInf_add_iInf E1 #
∀ {ι : Sort u_2} {f g : ι → ℕ∞}, (∀ (i j : ι), ∃ k, f k + g k ≤ f i + g j) → iInf f + iInf g = ⨅ a, f a + g a
theorem ENat.iInf_add_iInf_of_monotone E1 #
∀ {ι : Type u_4} [inst : Preorder ι] [IsCodirectedOrder ι] {f g : ι → ℕ∞},
Monotone f → Monotone g → iInf f + iInf g = ⨅ a, f a + g a
theorem ENat.add_iInf₂ E1 #
∀ {ι : Sort u_2} {a : ℕ∞} {κ : ι → Sort u_4} (f : (i : ι) → κ i → ℕ∞), a + ⨅ i, ⨅ j, f i j = ⨅ i, ⨅ j, a + f i j
theorem ENat.iInf₂_add E1 #
∀ {ι : Sort u_2} {a : ℕ∞} {κ : ι → Sort u_4} (f : (i : ι) → κ i → ℕ∞), (⨅ i, ⨅ j, f i j) + a = ⨅ i, ⨅ j, f i j + a
theorem ENat.add_sInf E1 #
∀ {a : ℕ∞} {s : Set ℕ∞}, a + sInf s = ⨅ b ∈ s, a + b
theorem ENat.le_iInf_add_iInf E1 #
∀ {ι : Sort u_2} {f : ι → ℕ∞} {a : ℕ∞} {κ : Sort u_4} {g : κ → ℕ∞},
(∀ (i : ι) (j : κ), a ≤ f i + g j) → a ≤ iInf f + iInf g
theorem ENat.le_iInf₂_add_iInf₂ E1 #
∀ {ι : Sort u_2} {a : ℕ∞} {κ : Sort u_4} {q₁ : ι → Sort u_5} {q₂ : κ → Sort u_6} {f : (i : ι) → q₁ i → ℕ∞}
{g : (k : κ) → q₂ k → ℕ∞},
(∀ (i : ι) (pi : q₁ i) (k : κ) (qk : q₂ k), a ≤ f i pi + g k qk) → a ≤ (⨅ i, ⨅ qi, f i qi) + ⨅ k, ⨅ qk, g k qk
Deprecated aliases
| Name | New name | Since |
|---|---|---|
ENat.coe_iInf | ENat.natCast_iInf | 2026-07-17 |
ENat.coe_iSup | ENat.natCast_iSup | 2026-07-17 |
ENat.coe_sInf | ENat.natCast_sInf | 2026-07-17 |
ENat.coe_sSup | ENat.natCast_sSup | 2026-07-17 |
ENat.iInf_coe_eq_top | ENat.iInf_natCast_eq_top | 2026-07-17 |
ENat.iInf_coe_lt_top | ENat.iInf_natCast_lt_top | 2026-07-17 |
ENat.iInf_coe_ne_top | ENat.iInf_natCast_ne_top | 2026-07-17 |
ENat.iInf_eq_coe_iff | ENat.iInf_eq_natCast_iff | 2026-07-17 |
ENat.iSup_coe_eq_top | ENat.iSup_natCast_eq_top | 2026-07-17 |
ENat.iSup_coe_lt_top | ENat.iSup_natCast_lt_top | 2026-07-17 |
ENat.iSup_coe_ne_top | ENat.iSup_natCast_ne_top | 2026-07-17 |