Analysis I, Section 5.5: The least upper bound property #
I have attempted to make the translation as faithful a paraphrasing as possible of the original text. When there is a choice between a more idiomatic Lean solution and a more faithful translation, I have generally chosen the latter. In particular, there will be places where the Lean code could be "golfed" to be more elegant and idiomatic, but I have consciously avoided doing so.
Main constructions and results of this section:
- Upper bound and least upper bound on the real line
Tips from past users #
Users of the companion who have completed the exercises in this section are welcome to send their tips for future users in this section as PRs.
- (Add tip here)
Definition 5.5.1 (upper bounds). Here we use the upperBounds set defined in Mathlib.
Definition 5.5.5 (least upper bound). Here we use the isLUB predicate defined in Mathlib.
definition of "bounded above", using Mathlib notation
Exercise 5.5.2
Exercise 5.5.3
A bare-bones extended real class to define supremum.
- neg_infty : ExtendedReal
- real (x : Real) : ExtendedReal
- infty : ExtendedReal
Instances For
Mathlib prefers ⊤ to denote the +∞ element.
Equations
Mathlib prefers ⊥ to denote the -∞ element.
Equations
Equations
- Chapter5.ExtendedReal.coe_real = { coe := fun (x : Chapter5.Real) => Chapter5.ExtendedReal.real x }
Equations
- One or more equations did not get rendered due to their size.
Equations
Instances For
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
Equations
- Chapter5.ExtendedReal.inf E = if h1 : E.Nonempty then if h2 : BddBelow E then Chapter5.ExtendedReal.real ⋯.choose else ⊥ else ⊤
Instances For
Equations
- One or more equations did not get rendered due to their size.
Use the sSup operation to build a conditionally complete lattice structure on Real