Mathlib.Basic.ENNReal.Basic
209 declarations and 14 deprecated aliases. Mathlib docs · Source
Extended non-negative reals
We define ENNReal = ℝ≥0∞ := WithTop ℝ≥0 to be the type of extended nonnegative real numbers,
i.e., the interval [0, +∞]. This type is used as the codomain of a MeasureTheory.Measure,
and of the extended distance edist in an EMetricSpace.
In this file we set up many of the instances on ℝ≥0∞, and provide relationships between ℝ≥0∞ and
ℝ≥0, and between ℝ≥0∞ and ℝ. In particular, we provide a coercion from ℝ≥0 to ℝ≥0∞ as well
as functions ENNReal.toNNReal, ENNReal.ofReal and ENNReal.toReal, all of which take the value
zero wherever they cannot be the identity. Also included is the relationship between ℝ≥0∞ and ℕ.
The interaction of these functions, especially ENNReal.ofReal and ENNReal.toReal, with the
algebraic and lattice structure can be found in Mathlib.Basic.ENNReal.Real.
This file proves many of the order properties of ℝ≥0∞, with the exception of the ways those relate
to the algebraic structure, which are included in Mathlib.Basic.ENNReal.Operations.
This file also defines inversion and division: this includes Inv and Div instances on ℝ≥0∞
making it into a DivInvOneMonoid.
As a consequence of being a DivInvOneMonoid, ℝ≥0∞ inherits a power operation with integer
exponent: this and other properties is shown in Mathlib.Basic.ENNReal.Inv.
Main definitions
-
ℝ≥0∞: the extended nonnegative real numbers[0, ∞]; defined asWithTop ℝ≥0; it is equipped with the following structures:-
coercion from
ℝ≥0defined in the natural way; -
the natural structure of a complete dense linear order:
↑p ≤ ↑q ↔ p ≤ qand∀ a, a ≤ ∞; -
a + bis defined so that↑p + ↑q = ↑(p + q)for(p q : ℝ≥0)anda + ∞ = ∞ + a = ∞; -
a * bis defined so that↑p * ↑q = ↑(p * q)for(p q : ℝ≥0),0 * ∞ = ∞ * 0 = 0, anda * ∞ = ∞ * a = ∞fora ≠ 0; -
a - bis defined as the minimaldsuch thata ≤ d + b; this way we have↑p - ↑q = ↑(p - q),∞ - ↑p = ∞,↑p - ∞ = ∞ - ∞ = 0; note that there is no negation, only subtraction;
The addition and multiplication defined this way together with
0 = ↑0and1 = ↑1turnℝ≥0∞into a canonically ordered commutative semiring of characteristic zero.a⁻¹is defined asInf {b | 1 ≤ a * b}. This way we have(↑p)⁻¹ = ↑(p⁻¹)forp : ℝ≥0,p ≠ 0,0⁻¹ = ∞, and∞⁻¹ = 0.a / bis defined asa * b⁻¹.
This inversion and division include
InvandDivinstances onℝ≥0∞, making it into aDivInvOneMonoid. Further properties of these are shown inMathlib.Basic.ENNReal.Inv. -
-
Coercions to/from other types:
-
coercion
ℝ≥0 → ℝ≥0∞is defined asCoe, so one can use(p : ℝ≥0)in a context that expectsa : ℝ≥0∞, and Lean will applycoeautomatically; -
ENNReal.toNNRealsends↑ptopand∞to0; -
ENNReal.toReal := coe ∘ ENNReal.toNNRealsends↑p,p : ℝ≥0to(↑p : ℝ)and∞to0; -
ENNReal.ofReal := coe ∘ Real.toNNRealsendsx : ℝto↑⟨max x 0, _⟩ -
ENNReal.neTopEquivNNRealis an equivalence between{a : ℝ≥0∞ // a ≠ 0}andℝ≥0.
-
Implementation notes
We define a CanLift ℝ≥0∞ ℝ≥0 instance, so one of the ways to prove theorems about an ℝ≥0∞
number a is to consider the cases a = ∞ and a ≠ ∞, and use the tactic lift a to ℝ≥0 using ha
in the second case. This instance is even more useful if one already has ha : a ≠ ∞ in the
context, or if we have (f : α → ℝ≥0∞) (hf : ∀ x, f x ≠ ∞).
Notation
ℝ≥0∞: the type of the extended nonnegative real numbers;ℝ≥0: the type of nonnegative real numbers[0, ∞); defined inMathlib.Basic.NNReal.Defs;∞: a localized notation inENNRealfor⊤ : ℝ≥0∞.
def ENNReal E3 #
Type
The extended nonnegative real numbers. This is usually denoted [0, ∞], and is relevant as the codomain of a measure.
def ENNReal.«termℝ≥0∞» E1 #
Lean.ParserDescr
The extended nonnegative real numbers. This is usually denoted [0, ∞], and is relevant as the codomain of a measure.
def ENNReal.«term∞» E1 #
Lean.ParserDescr
Notation for infinity as an ENNReal number.
def ENNReal.ofNNReal E1 #
NNReal → ENNReal
Coercion from ℝ≥0 to ℝ≥0∞.
instance ENNReal.instCoeNNReal E0 #
Coe NNReal ENNReal
instance ENNReal.instZero E0 #
Zero ENNReal
instance ENNReal.instOne E0 #
One ENNReal
instance ENNReal.instBot E0 #
Bot ENNReal
instance ENNReal.instAdd E0 #
Add ENNReal
instance ENNReal.instNontrivial E0 #
Nontrivial ENNReal
instance ENNReal.instLE E0 #
LE ENNReal
instance ENNReal.instDistribLattice E0 #
DistribLattice ENNReal
instance ENNReal.instPartialOrder E0 #
PartialOrder ENNReal
instance ENNReal.instTop E0 #
Top ENNReal
instance ENNReal.instAddCommMonoidWithOne E0 #
AddCommMonoidWithOne ENNReal
instance ENNReal.instSemilatticeSup E0 #
SemilatticeSup ENNReal
instance ENNReal.instOrderBot E0 #
OrderBot ENNReal
instance ENNReal.instOrderTop E0 #
OrderTop ENNReal
instance ENNReal.instBoundedOrder E0 #
BoundedOrder ENNReal
instance ENNReal.instCharZero E0 #
CharZero ENNReal
instance ENNReal.instMin E0 #
Min ENNReal
instance ENNReal.instMax E0 #
Max ENNReal
instance ENNReal.instCommSemiring E0 #
CommSemiring ENNReal
instance ENNReal.instIsOrderedRing E0 #
IsOrderedRing ENNReal
instance ENNReal.instCanonicallyOrderedAdd E0 #
CanonicallyOrderedAdd ENNReal
instance ENNReal.instNoZeroDivisors E0 #
NoZeroDivisors ENNReal
instance ENNReal.instCompleteLinearOrder E0 #
CompleteLinearOrder ENNReal
instance ENNReal.instDenselyOrdered E0 #
DenselyOrdered ENNReal
instance ENNReal.instAddCommMonoid E0 #
AddCommMonoid ENNReal
instance ENNReal.instLinearOrder E0 #
LinearOrder ENNReal
instance ENNReal.instIsOrderedAddMonoid E0 #
IsOrderedAddMonoid ENNReal
instance ENNReal.instSub E0 #
Sub ENNReal
instance ENNReal.instOrderedSub E0 #
OrderedSub ENNReal
instance ENNReal.instLinearOrderedAddCommMonoidWithTop E0 #
LinearOrderedAddCommMonoidWithTop ENNReal
instance ENNReal.instInv E0 #
Inv ENNReal
instance ENNReal.instDivInvMonoid E0 #
DivInvMonoid ENNReal
instance ENNReal.instIsOrderedMonoid E0 #
IsOrderedMonoid ENNReal
instance ENNReal.instUniqueAddUnits E0 #
Unique (AddUnits ENNReal)
instance ENNReal.instInhabited E0 #
Inhabited ENNReal
def ENNReal.recTopCoe E1 #
{C : ENNReal → Sort u_2} → C ⊤ → ((x : NNReal) → C ↑x) → (x : ENNReal) → C x
A version of WithTop.recTopCoe that uses ENNReal.ofNNReal.
theorem ENNReal.recTopCoe_top E0 #
∀ {C : ENNReal → Sort u_2} (top : C ⊤) (coe : (x : NNReal) → C ↑x), ENNReal.recTopCoe top coe ⊤ = top
theorem ENNReal.recTopCoe_ofNNReal E0 #
∀ {C : ENNReal → Sort u_2} (top : C ⊤) (coe : (x : NNReal) → C ↑x) (x : NNReal), ENNReal.recTopCoe top coe ↑x = coe x
instance ENNReal.canLift E0 #
CanLift ENNReal NNReal ENNReal.ofNNReal fun x ↦ x ≠ ⊤
theorem ENNReal.none_eq_top E0 #
none = ⊤
theorem ENNReal.some_eq_coe E0 #
∀ (a : NNReal), some a = ↑a
theorem ENNReal.some_eq_coe' E0 #
∀ (a : NNReal), ↑a = ↑a
theorem ENNReal.coe_injective E0 #
Function.Injective ENNReal.ofNNReal
theorem ENNReal.coe_inj E0 #
∀ {p q : NNReal}, ↑p = ↑q ↔ p = q
theorem ENNReal.coe_ne_coe E0 #
∀ {p q : NNReal}, ↑p ≠ ↑q ↔ p ≠ q
theorem ENNReal.range_coe' E1 #
Set.range ENNReal.ofNNReal = Set.Iio ⊤
theorem ENNReal.range_coe E0 #
Set.range ENNReal.ofNNReal = {⊤}ᶜ
instance ENNReal.instNNRatCast E0 #
NNRatCast ENNReal
theorem ENNReal.coe_nnratCast E0 #
∀ (q : ℚ≥0), ↑↑q = ↑q
def ENNReal.toNNReal E3 #
ENNReal → NNReal
toNNReal x returns x if it is real, otherwise 0.
def ENNReal.toReal E1 #
ENNReal → ℝ
toReal x returns x if it is real, 0 otherwise.
def ENNReal.ofReal E1 #
ℝ → ENNReal
ofReal x returns x if it is nonnegative, 0 otherwise.
theorem ENNReal.toNNReal_coe E0 #
∀ (r : NNReal), (↑r).toNNReal = r
theorem ENNReal.coe_toNNReal E0 #
∀ {a : ENNReal}, a ≠ ⊤ → ↑a.toNNReal = a
theorem ENNReal.coe_comp_toNNReal_comp E0 #
∀ {ι : Type u_2} {f : ι → ENNReal}, (∀ (x : ι), f x ≠ ⊤) → (fun x ↦ ↑x) ∘ ENNReal.toNNReal ∘ f = f
theorem ENNReal.ofReal_toReal E0 #
∀ {a : ENNReal}, a ≠ ⊤ → ENNReal.ofReal a.toReal = a
theorem ENNReal.toReal_ofReal E0 #
∀ {r : ℝ}, 0 ≤ r → (ENNReal.ofReal r).toReal = r
theorem ENNReal.toReal_ofReal' E1 #
∀ {r : ℝ}, (ENNReal.ofReal r).toReal = max r 0
theorem ENNReal.coe_toNNReal_le_self E0 #
∀ {a : ENNReal}, ↑a.toNNReal ≤ a
theorem ENNReal.coe_nnreal_eq E0 #
∀ (r : NNReal), ↑r = ENNReal.ofReal ↑r
theorem ENNReal.ofReal_eq_coe_nnreal E1 #
∀ {x : ℝ} (h : 0 ≤ x), ENNReal.ofReal x = ↑(NNReal.mk x h)
theorem ENNReal.ofNNReal_toNNReal E1 #
∀ (x : ℝ), ↑x.toNNReal = ENNReal.ofReal x
theorem ENNReal.ofReal_coe_nnreal E0 #
∀ {p : NNReal}, ENNReal.ofReal ↑p = ↑p
theorem ENNReal.coe_zero E0 #
↑0 = 0
theorem ENNReal.coe_one E0 #
↑1 = 1
theorem ENNReal.toReal_nonneg E0 #
∀ {a : ENNReal}, 0 ≤ a.toReal
theorem ENNReal.coe_toNNReal_eq_toReal E0 #
∀ (z : ENNReal), ↑z.toNNReal = z.toReal
theorem ENNReal.toNNReal_toReal_eq E0 #
∀ (z : ENNReal), z.toReal.toNNReal = z.toNNReal
theorem ENNReal.toNNReal_top E0 #
⊤.toNNReal = 0
theorem ENNReal.toReal_top E0 #
⊤.toReal = 0
theorem ENNReal.toReal_one E0 #
ENNReal.toReal 1 = 1
theorem ENNReal.toNNReal_one E0 #
ENNReal.toNNReal 1 = 1
theorem ENNReal.coe_toReal E0 #
∀ (r : NNReal), (↑r).toReal = ↑r
theorem ENNReal.toNNReal_zero E0 #
ENNReal.toNNReal 0 = 0
theorem ENNReal.toReal_zero E0 #
ENNReal.toReal 0 = 0
theorem ENNReal.ofReal_zero E0 #
ENNReal.ofReal 0 = 0
theorem ENNReal.ofReal_one E0 #
ENNReal.ofReal 1 = 1
theorem ENNReal.ofReal_toReal_le E1 #
∀ {a : ENNReal}, ENNReal.ofReal a.toReal ≤ a
theorem ENNReal.forall_ennreal E1 #
∀ {p : ENNReal → Prop}, (∀ (a : ENNReal), p a) ↔ (∀ (r : NNReal), p ↑r) ∧ p ⊤
theorem ENNReal.forall_ne_top E1 #
∀ {p : ENNReal → Prop}, (∀ (x : ENNReal), x ≠ ⊤ → p x) ↔ ∀ (x : NNReal), p ↑x
theorem ENNReal.exists_ne_top E1 #
∀ {p : ENNReal → Prop}, (∃ x, x ≠ ⊤ ∧ p x) ↔ ∃ x, p ↑x
theorem ENNReal.toNNReal_eq_zero_iff E0 #
∀ (x : ENNReal), x.toNNReal = 0 ↔ x = 0 ∨ x = ⊤
theorem ENNReal.toReal_eq_zero_iff E0 #
∀ (x : ENNReal), x.toReal = 0 ↔ x = 0 ∨ x = ⊤
theorem ENNReal.toNNReal_ne_zero E1 #
∀ {a : ENNReal}, a.toNNReal ≠ 0 ↔ a ≠ 0 ∧ a ≠ ⊤
theorem ENNReal.toReal_ne_zero E1 #
∀ {a : ENNReal}, a.toReal ≠ 0 ↔ a ≠ 0 ∧ a ≠ ⊤
theorem ENNReal.toNNReal_eq_one_iff E0 #
∀ (x : ENNReal), x.toNNReal = 1 ↔ x = 1
theorem ENNReal.toReal_eq_one_iff E0 #
∀ (x : ENNReal), x.toReal = 1 ↔ x = 1
theorem ENNReal.toNNReal_ne_one E1 #
∀ {a : ENNReal}, a.toNNReal ≠ 1 ↔ a ≠ 1
theorem ENNReal.toReal_ne_one E1 #
∀ {a : ENNReal}, a.toReal ≠ 1 ↔ a ≠ 1
theorem ENNReal.coe_ne_top E0 #
∀ {r : NNReal}, ↑r ≠ ⊤
theorem ENNReal.top_ne_coe E0 #
∀ {r : NNReal}, ⊤ ≠ ↑r
theorem ENNReal.coe_lt_top E0 #
∀ {r : NNReal}, ↑r < ⊤
theorem ENNReal.ofReal_ne_top E0 #
∀ {r : ℝ}, ENNReal.ofReal r ≠ ⊤
theorem ENNReal.ofReal_lt_top E0 #
∀ {r : ℝ}, ENNReal.ofReal r < ⊤
theorem ENNReal.top_ne_ofReal E0 #
∀ {r : ℝ}, ⊤ ≠ ENNReal.ofReal r
theorem ENNReal.ofReal_toReal_eq_iff E0 #
∀ {a : ENNReal}, ENNReal.ofReal a.toReal = a ↔ a ≠ ⊤
theorem ENNReal.toReal_ofReal_eq_iff E0 #
∀ {a : ℝ}, (ENNReal.ofReal a).toReal = a ↔ 0 ≤ a
theorem ENNReal.zero_ne_top E0 #
0 ≠ ⊤
theorem ENNReal.top_ne_zero E0 #
⊤ ≠ 0
theorem ENNReal.one_ne_top E0 #
1 ≠ ⊤
theorem ENNReal.top_ne_one E0 #
⊤ ≠ 1
theorem ENNReal.zero_lt_top E0 #
0 < ⊤
theorem ENNReal.coe_le_coe E0 #
∀ {r q : NNReal}, ↑r ≤ ↑q ↔ r ≤ q
theorem ENNReal.coe_lt_coe E0 #
∀ {r q : NNReal}, ↑r < ↑q ↔ r < q
theorem ENNReal.coe_mono E0 #
Monotone ENNReal.ofNNReal
theorem ENNReal.coe_strictMono E0 #
StrictMono ENNReal.ofNNReal
theorem ENNReal.coe_eq_zero E0 #
∀ {r : NNReal}, ↑r = 0 ↔ r = 0
theorem ENNReal.zero_eq_coe E0 #
∀ {r : NNReal}, 0 = ↑r ↔ 0 = r
theorem ENNReal.coe_eq_one E0 #
∀ {r : NNReal}, ↑r = 1 ↔ r = 1
theorem ENNReal.one_eq_coe E0 #
∀ {r : NNReal}, 1 = ↑r ↔ 1 = r
theorem ENNReal.coe_pos E0 #
∀ {r : NNReal}, 0 < ↑r ↔ 0 < r
theorem ENNReal.coe_ne_zero E0 #
∀ {r : NNReal}, ↑r ≠ 0 ↔ r ≠ 0
theorem ENNReal.coe_ne_one E0 #
∀ {r : NNReal}, ↑r ≠ 1 ↔ r ≠ 1
theorem ENNReal.coe_add E0 #
∀ (x y : NNReal), ↑(x + y) = ↑x + ↑y
theorem ENNReal.coe_mul E0 #
∀ (x y : NNReal), ↑(x * y) = ↑x * ↑y
theorem ENNReal.coe_nsmul E0 #
∀ (n : ℕ) (x : NNReal), ↑(n • x) = n • ↑x
theorem ENNReal.coe_pow E0 #
∀ (x : NNReal) (n : ℕ), ↑(x ^ n) = ↑x ^ n
theorem ENNReal.coe_ofNat E0 #
∀ (n : ℕ) [inst : n.AtLeastTwo], ↑(OfNat.ofNat n) = OfNat.ofNat n
theorem ENNReal.coe_two E0 #
↑2 = 2
theorem ENNReal.toNNReal_eq_toNNReal_iff E0 #
∀ (x y : ENNReal), x.toNNReal = y.toNNReal ↔ x = y ∨ x = 0 ∧ y = ⊤ ∨ x = ⊤ ∧ y = 0
theorem ENNReal.toReal_eq_toReal_iff E0 #
∀ (x y : ENNReal), x.toReal = y.toReal ↔ x = y ∨ x = 0 ∧ y = ⊤ ∨ x = ⊤ ∧ y = 0
theorem ENNReal.toNNReal_eq_toNNReal_iff' E1 #
∀ {x y : ENNReal}, x ≠ ⊤ → y ≠ ⊤ → (x.toNNReal = y.toNNReal ↔ x = y)
theorem ENNReal.toReal_eq_toReal_iff' E1 #
∀ {x y : ENNReal}, x ≠ ⊤ → y ≠ ⊤ → (x.toReal = y.toReal ↔ x = y)
theorem ENNReal.one_lt_two E1 #
1 < 2
instance fact_one_le_one_ennreal E0 #
Fact (1 ≤ 1)
(1 : ℝ≥0∞) ≤ 1, recorded as a Fact for use with Lp spaces.
instance fact_one_le_two_ennreal E0 #
Fact (1 ≤ 2)
(1 : ℝ≥0∞) ≤ 2, recorded as a Fact for use with Lp spaces.
instance fact_one_le_top_ennreal E0 #
Fact (1 ≤ ⊤)
(1 : ℝ≥0∞) ≤ ∞, recorded as a Fact for use with Lp spaces.
def ENNReal.neTopEquivNNReal E3 #
↑{a | a ≠ ⊤} ≃ NNReal
The set of numbers in ℝ≥0∞ that are not equal to ∞ is equivalent to ℝ≥0.
theorem ENNReal.cinfi_ne_top E1 #
∀ {α : Type u_1} [inst : InfSet α] (f : ENNReal → α), ⨅ x, f ↑x = ⨅ x, f ↑x
theorem ENNReal.iInf_ne_top E1 #
∀ {α : Type u_1} [inst : CompleteLattice α] (f : ENNReal → α), ⨅ x, ⨅ (_ : x ≠ ⊤), f x = ⨅ x, f ↑x
theorem ENNReal.csupr_ne_top E1 #
∀ {α : Type u_1} [inst : SupSet α] (f : ENNReal → α), ⨆ x, f ↑x = ⨆ x, f ↑x
theorem ENNReal.iSup_ne_top E1 #
∀ {α : Type u_1} [inst : CompleteLattice α] (f : ENNReal → α), ⨆ x, ⨆ (_ : x ≠ ⊤), f x = ⨆ x, f ↑x
theorem ENNReal.iInf_ennreal E1 #
∀ {α : Type u_2} [inst : CompleteLattice α] {f : ENNReal → α}, ⨅ n, f n = (⨅ n, f ↑n) ⊓ f ⊤
theorem ENNReal.iSup_ennreal E1 #
∀ {α : Type u_2} [inst : CompleteLattice α] {f : ENNReal → α}, ⨆ n, f n = (⨆ n, f ↑n) ⊔ f ⊤
def ENNReal.ofNNRealHom E1 #
NNReal →+* ENNReal
Coercion ℝ≥0 → ℝ≥0∞ as a RingHom.
theorem ENNReal.coe_ofNNRealHom E0 #
⇑ENNReal.ofNNRealHom = WithTop.some
theorem ENNReal.bot_eq_zero E1 #
⊥ = 0
theorem ENNReal.not_top_le_coe E0 #
∀ {r : NNReal}, ¬⊤ ≤ ↑r
theorem ENNReal.one_le_coe_iff E0 #
∀ {r : NNReal}, 1 ≤ ↑r ↔ 1 ≤ r
theorem ENNReal.coe_le_one_iff E0 #
∀ {r : NNReal}, ↑r ≤ 1 ↔ r ≤ 1
theorem ENNReal.coe_lt_one_iff E0 #
∀ {p : NNReal}, ↑p < 1 ↔ p < 1
theorem ENNReal.one_lt_coe_iff E0 #
∀ {p : NNReal}, 1 < ↑p ↔ 1 < p
theorem ENNReal.coe_natCast E0 #
∀ (n : ℕ), ↑↑n = ↑n
theorem ENNReal.ofReal_natCast E0 #
∀ (n : ℕ), ENNReal.ofReal ↑n = ↑n
theorem ENNReal.ofReal_ofNat E0 #
∀ (n : ℕ) [inst : n.AtLeastTwo], ENNReal.ofReal (OfNat.ofNat n) = OfNat.ofNat n
theorem ENNReal.natCast_ne_top E0 #
∀ (n : ℕ), ↑n ≠ ⊤
theorem ENNReal.natCast_lt_top E0 #
∀ (n : ℕ), ↑n < ⊤
theorem ENNReal.ofNat_ne_top E0 #
∀ {n : ℕ} [inst : n.AtLeastTwo], OfNat.ofNat n ≠ ⊤
theorem ENNReal.ofNat_lt_top E0 #
∀ {n : ℕ} [inst : n.AtLeastTwo], OfNat.ofNat n < ⊤
theorem ENNReal.top_ne_natCast E0 #
∀ (n : ℕ), ⊤ ≠ ↑n
theorem ENNReal.top_ne_ofNat E0 #
∀ {n : ℕ} [inst : n.AtLeastTwo], ⊤ ≠ OfNat.ofNat n
theorem ENNReal.natCast_le_ofNNReal E0 #
∀ {r : NNReal} {n : ℕ}, ↑n ≤ ↑r ↔ ↑n ≤ r
theorem ENNReal.ofNNReal_le_natCast E0 #
∀ {r : NNReal} {n : ℕ}, ↑r ≤ ↑n ↔ r ≤ ↑n
theorem ENNReal.ofNNReal_add_natCast E0 #
∀ (r : NNReal) (n : ℕ), ↑(r + ↑n) = ↑r + ↑n
theorem ENNReal.ofNNReal_natCast_add E0 #
∀ (n : ℕ) (r : NNReal), ↑(↑n + r) = ↑n + ↑r
theorem ENNReal.ofNNReal_sub_natCast E0 #
∀ (r : NNReal) (n : ℕ), ↑(r - ↑n) = ↑r - ↑n
theorem ENNReal.ofNNReal_natCast_sub E0 #
∀ (n : ℕ) (r : NNReal), ↑(↑n - r) = ↑n - ↑r
theorem ENNReal.one_lt_top E0 #
1 < ⊤
theorem ENNReal.toNNReal_natCast E0 #
∀ (n : ℕ), (↑n).toNNReal = ↑n
theorem ENNReal.toNNReal_ofNat E1 #
∀ (n : ℕ) [inst : n.AtLeastTwo], (OfNat.ofNat n).toNNReal = OfNat.ofNat n
theorem ENNReal.toReal_natCast E0 #
∀ (n : ℕ), (↑n).toReal = ↑n
theorem ENNReal.toReal_ofNat E0 #
∀ (n : ℕ) [inst : n.AtLeastTwo], (OfNat.ofNat n).toReal = OfNat.ofNat n
theorem ENNReal.toNNReal_natCast_eq_toNNReal E1 #
∀ (n : ℕ), (↑n).toNNReal = (↑n).toNNReal
theorem ENNReal.le_coe_iff E0 #
∀ {a : ENNReal} {r : NNReal}, a ≤ ↑r ↔ ∃ p, a = ↑p ∧ p ≤ r
theorem ENNReal.coe_le_iff E0 #
∀ {a : ENNReal} {r : NNReal}, ↑r ≤ a ↔ ∀ (p : NNReal), a = ↑p → r ≤ p
theorem ENNReal.lt_iff_exists_coe E0 #
∀ {a b : ENNReal}, a < b ↔ ∃ p, a = ↑p ∧ ↑p < b
theorem ENNReal.toReal_le_coe_of_le_coe E0 #
∀ {a : ENNReal} {b : NNReal}, a ≤ ↑b → a.toReal ≤ ↑b
theorem ENNReal.lt_iff_exists_rat_btwn E1 #
∀ {a b : ENNReal}, a < b ↔ ∃ q, 0 ≤ q ∧ a < ↑(↑q).toNNReal ∧ ↑(↑q).toNNReal < b
theorem ENNReal.lt_iff_exists_real_btwn E1 #
∀ {a b : ENNReal}, a < b ↔ ∃ r, 0 ≤ r ∧ a < ENNReal.ofReal r ∧ ENNReal.ofReal r < b
theorem ENNReal.lt_iff_exists_nnreal_btwn E1 #
∀ {a b : ENNReal}, a < b ↔ ∃ r, a < ↑r ∧ ↑r < b
theorem ENNReal.lt_iff_exists_add_pos_lt E1 #
∀ {a b : ENNReal}, a < b ↔ ∃ r, 0 < r ∧ a + ↑r < b
theorem ENNReal.le_of_forall_pos_le_add E1 #
∀ {a b : ENNReal}, (∀ (ε : NNReal), 0 < ε → b < ⊤ → a ≤ b + ↑ε) → a ≤ b
theorem ENNReal.natCast_lt_coe E0 #
∀ {r : NNReal} {n : ℕ}, ↑n < ↑r ↔ ↑n < r
theorem ENNReal.coe_lt_natCast E0 #
∀ {r : NNReal} {n : ℕ}, ↑r < ↑n ↔ r < ↑n
theorem ENNReal.exists_nat_gt E1 #
∀ {r : ENNReal}, r ≠ ⊤ → ∃ n, r < ↑n
theorem ENNReal.iUnion_Iio_natCast E0 #
⋃ n, Set.Iio ↑n = {⊤}ᶜ
theorem ENNReal.iUnion_Iic_natCast E0 #
⋃ n, Set.Iic ↑n = {⊤}ᶜ
theorem ENNReal.iUnion_Ioc_natCast E0 #
∀ {a : ENNReal}, ⋃ n, Set.Ioc a ↑n = Set.Ioi a \ {⊤}
theorem ENNReal.iUnion_Ioo_natCast E0 #
∀ {a : ENNReal}, ⋃ n, Set.Ioo a ↑n = Set.Ioi a \ {⊤}
theorem ENNReal.iUnion_Icc_natCast E0 #
∀ {a : ENNReal}, ⋃ n, Set.Icc a ↑n = Set.Ici a \ {⊤}
theorem ENNReal.iUnion_Ico_natCast E0 #
∀ {a : ENNReal}, ⋃ n, Set.Ico a ↑n = Set.Ici a \ {⊤}
theorem ENNReal.iInter_Ici_natCast E0 #
⋂ n, Set.Ici ↑n = {⊤}
theorem ENNReal.iInter_Ioi_natCast E0 #
⋂ n, Set.Ioi ↑n = {⊤}
theorem ENNReal.coe_min E0 #
∀ (r p : NNReal), ↑(min r p) = min ↑r ↑p
theorem ENNReal.coe_max E0 #
∀ (r p : NNReal), ↑(max r p) = max ↑r ↑p
theorem ENNReal.le_of_top_imp_top_of_toNNReal_le E1 #
∀ {a b : ENNReal}, (a = ⊤ → b = ⊤) → (a ≠ ⊤ → b ≠ ⊤ → a.toNNReal ≤ b.toNNReal) → a ≤ b
theorem ENNReal.abs_toReal E0 #
∀ {x : ENNReal}, |x.toReal| = x.toReal
theorem ENNReal.coe_sSup E0 #
∀ {s : Set NNReal}, BddAbove s → ↑(sSup s) = ⨆ a ∈ s, ↑a
theorem ENNReal.coe_sInf E0 #
∀ {s : Set NNReal}, s.Nonempty → ↑(sInf s) = ⨅ a ∈ s, ↑a
theorem ENNReal.coe_iSup E0 #
∀ {ι : Sort u_3} {f : ι → NNReal}, BddAbove (Set.range f) → ↑(iSup f) = ⨆ a, ↑(f a)
theorem ENNReal.coe_iInf E0 #
∀ {ι : Sort u_3} [Nonempty ι] (f : ι → NNReal), ↑(iInf f) = ⨅ a, ↑(f a)
theorem ENNReal.coe_mem_upperBounds E0 #
∀ {r : NNReal} {s : Set NNReal}, ↑r ∈ upperBounds (ENNReal.ofNNReal '' s) ↔ r ∈ upperBounds s
theorem ENNReal.iSup_coe_eq_top E1 #
∀ {ι : Sort u_2} {f : ι → NNReal}, ⨆ i, ↑(f i) = ⊤ ↔ ¬BddAbove (Set.range f)
theorem ENNReal.iSup_coe_lt_top E1 #
∀ {ι : Sort u_2} {f : ι → NNReal}, ⨆ i, ↑(f i) < ⊤ ↔ BddAbove (Set.range f)
theorem ENNReal.iInf_coe_eq_top E1 #
∀ {ι : Sort u_2} {f : ι → NNReal}, ⨅ i, ↑(f i) = ⊤ ↔ IsEmpty ι
theorem ENNReal.iInf_coe_lt_top E1 #
∀ {ι : Sort u_2} {f : ι → NNReal}, ⨅ i, ↑(f i) < ⊤ ↔ Nonempty ι
theorem Set.OrdConnected.preimage_coe_nnreal_ennreal E1 #
∀ {u : Set ENNReal}, u.OrdConnected → (ENNReal.ofNNReal ⁻¹' u).OrdConnected
theorem Set.OrdConnected.image_coe_nnreal_ennreal E1 #
∀ {t : Set NNReal}, t.OrdConnected → (ENNReal.ofNNReal '' t).OrdConnected
theorem Set.OrdConnected.preimage_ennreal_ofReal E1 #
∀ {u : Set ENNReal}, u.OrdConnected → (ENNReal.ofReal ⁻¹' u).OrdConnected
theorem Set.OrdConnected.image_ennreal_ofReal E1 #
∀ {s : Set ℝ}, s.OrdConnected → (ENNReal.ofReal '' s).OrdConnected
instance instReprENNReal E0 #
Repr ENNReal
While not very useful, this instance uses the same representation as Real.instRepr.
def Mathlib.Meta.Positivity.evalENNRealtoReal E1 #
Mathlib.Meta.Positivity.PositivityExt
Extension for the positivity tactic: ENNReal.toReal.
def Mathlib.Meta.Positivity.evalENNRealOfNNReal E1 #
Mathlib.Meta.Positivity.PositivityExt
Extension for the positivity tactic: ENNReal.ofNNReal.
theorem ENNReal.ofNat_eq_coe_ofNat E1 #
∀ (n : ℕ) [inst : n.AtLeastTwo], OfNat.ofNat n = ↑(OfNat.ofNat n)
ENNReal.coe_ofNat read from right to left, restated because the ofNat(n) on the right-hand
side of ENNReal.coe_ofNat is no_indexed, which would make the reversed lemma match every term.
theorem ENNReal.ofScientific_eq_coe_ofScientific E1 #
∀ (m : ℕ) (s : Bool) (e : ℕ), OfScientific.ofScientific m s e = ↑(OfScientific.ofScientific m s e)
The decimal-literal counterpart of ENNReal.ofNat_eq_coe_ofNat.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
ENNReal.coe_le_coe_of_le | ENNReal.coe_le_coe | 2026-08-04 |
ENNReal.coe_lt_coe_of_lt | ENNReal.coe_lt_coe | 2026-08-04 |
ENNReal.iInter_Ici_coe_nat | ENNReal.iInter_Ici_natCast | 2026-10-13 |
ENNReal.iInter_Ioi_coe_nat | ENNReal.iInter_Ioi_natCast | 2026-10-13 |
ENNReal.iUnion_Icc_coe_nat | ENNReal.iUnion_Icc_natCast | 2026-10-13 |
ENNReal.iUnion_Ico_coe_nat | ENNReal.iUnion_Ico_natCast | 2026-10-13 |
ENNReal.iUnion_Iic_coe_nat | ENNReal.iUnion_Iic_natCast | 2026-10-13 |
ENNReal.iUnion_Iio_coe_nat | ENNReal.iUnion_Iio_natCast | 2026-10-13 |
ENNReal.iUnion_Ioc_coe_nat | ENNReal.iUnion_Ioc_natCast | 2026-10-13 |
ENNReal.iUnion_Ioo_coe_nat | ENNReal.iUnion_Ioo_natCast | 2026-10-13 |
ENNReal.max_eq_zero_iff | max_eq_zero | 2026-05-07 |
ENNReal.max_zero_left | zero_max | 2026-05-07 |
ENNReal.max_zero_right | max_zero | 2026-05-07 |
ENNReal.min_eq_zero_iff | min_eq_zero | 2026-05-07 |