Analysis I, Section 5.1 #
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:
- Notion of a sequence of rationals
- Notions of
ε-steadiness, eventualε-steadiness, and Cauchy sequences
Sequence can be thought of as functions from ℤ to ℚ.
Equations
- Chapter5.Sequence.instCoeFun = { coe := fun (a : Chapter5.Sequence) => a.seq }
Example 5.1.2
Equations
Instances For
Example 5.1.2
Equations
- Chapter5.Sequence.three = { n₀ := 0, seq := fun (n : ℤ) => if n ≥ 0 then (fun (x : ℕ) => 3) n.toNat else 0, vanish := Chapter5.Sequence.three._proof_4 }
Instances For
Example 5.1.2
Equations
- Chapter5.Sequence.squares_from_three = Chapter5.Sequence.mk' 3 fun (n : { n : ℤ // n ≥ 3 }) => ↑↑n ^ 2
Instances For
a.from n₁ starts a:Sequence from n₁. It is intended for use when n₁ ≥ n₀, but returns the "junk" value of the original sequence a otherwise.
Equations
Instances For
Definition 5.1.6 (Eventually ε-steady)
Equations
- ε.eventuallySteady a = ∃ N ≥ a.n₀, ε.steady (a.from N)
Instances For
Example 5.1.10. (This requires extensive familiarity with Mathlib's API for the real numbers. )
Example 5.1.10. (This requires extensive familiarity with Mathlib's API for the real numbers. )
Lemma 5.1.15 (Cauchy sequences are bounded) / Exercise 5.1.1