Definition 5.5.1 (upper bounds). Here we use the upperBounds set defined in Mathlib.
theorem
Chapter5.Real.upperBound_upper
{M M' : Real}
(h : M ≤ M')
{E : Set Real}
(hb : M ∈ upperBounds E)
:
Definition 5.5.5 (least upper bound). Here we use the IsLUB predicate defined in Mathlib.
Definition of "bounded above", using Mathlib notation
theorem
Chapter5.Real.upperBound_between
{E : Set Real}
{n : ℕ}
{L K : ℤ}
(hLK : L < K)
(hK : ↑K * ↑(1 / (↑n + 1)) ∈ upperBounds E)
(hL : ↑L * ↑(1 / (↑n + 1)) ∉ upperBounds E)
:
Exercise 5.5.2
theorem
Chapter5.Real.upperBound_discrete_unique
{E : Set Real}
{n : ℕ}
{m m' : ℤ}
(hm1 : ↑(↑m / (↑n + 1)) ∈ upperBounds E)
(hm2 : ↑(↑m / (↑n + 1) - 1 / (↑n + 1)) ∉ upperBounds E)
(hm'1 : ↑(↑m' / (↑n + 1)) ∈ upperBounds E)
(hm'2 : ↑(↑m' / (↑n + 1) - 1 / (↑n + 1)) ∉ upperBounds E)
:
Exercise 5.5.3
A bare-bones extended real class to define supremum.
- neg_infty : ExtendedReal
- real (x : Real) : ExtendedReal
- infty : ExtendedReal
Instances For
@[implicit_reducible]
Mathlib prefers ⊤ to denote the +∞ element.
Equations
@[implicit_reducible]
Mathlib prefers ⊥ to denote the -∞ element.
Equations
@[implicit_reducible]
Equations
- Chapter5.ExtendedReal.coe_real = { coe := fun (x : Chapter5.Real) => Chapter5.ExtendedReal.real x }
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
@[reducible, inline]
Equations
Instances For
@[reducible, inline]
Definition 5.5.10 (Supremum)
Equations
- Chapter5.ExtendedReal.sup E = if h1 : E.Nonempty then if h2 : BddAbove E then Chapter5.ExtendedReal.real ⋯.choose else ⊤ else ⊥
Instances For
@[reducible, inline]
Equations
- Chapter5.ExtendedReal.inf E = if h1 : E.Nonempty then if h2 : BddBelow E then Chapter5.ExtendedReal.real ⋯.choose else ⊥ else ⊤
Instances For
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
@[implicit_reducible]
Use the sSup operation to build a conditionally complete lattice structure on Real.