Analysis I, Section 5.4: Ordering the reals #
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:
- Ordering 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.4.1 (sequences bounded away from zero with sign). Sequences are indexed to start from zero as this is more convenient for Mathlib purposes.
Equations
- Chapter5.BoundedAwayPos a = ∃ c > 0, ∀ (n : ℕ), a n ≥ c
Instances For
Definition 5.4.1 (sequences bounded away from zero with sign).
Equations
- Chapter5.BoundedAwayNeg a = ∃ c > 0, ∀ (n : ℕ), a n ≤ -c
Instances For
Definition 5.4.1 (sequences bounded away from zero with sign).
Definition 5.4.1 (sequences bounded away from zero with sign).
Equations
- x.IsPos = ∃ (a : ℕ → ℚ), Chapter5.BoundedAwayPos a ∧ (↑a).IsCauchy ∧ x = Chapter5.LIM a
Instances For
Equations
- x.IsNeg = ∃ (a : ℕ → ℚ), Chapter5.BoundedAwayNeg a ∧ (↑a).IsCauchy ∧ x = Chapter5.LIM a
Instances For
Definition 5.4.6 (Ordering of the reals)
Equations
- Chapter5.Real.instLT = { lt := fun (x y : Chapter5.Real) => (x - y).IsNeg }
Definition 5.4.6 (Ordering of the reals)
Equations
- Chapter5.Real.instLE = { le := fun (x y : Chapter5.Real) => x < y ∨ x = y }
(Not from textbook) Real has the structure of a linear ordering. The order is not computable, and so classical logic is required to impose decidability.
Equations
- One or more equations did not get rendered due to their size.
(Not from textbook) Real has the structure of a strict ordered ring.
Not from textbook: the rationals map as an ordered ring homomorphism into the reals.
Equations
- Chapter5.Real.ratCast_ordered_hom = { toRingHom := Chapter5.Real.ratCast_hom, monotone' := Chapter5.Real.ratCast_ordered_hom._proof_1 }