Documentation

Analysis.Section_4_4

Аналіз I, Глава 4.4 #

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:

Many of the results here can be established more quickly by relying more heavily on the Mathlib API; one can set oneself the exercise of doing so.

theorem Rat.between_int (x : ) :
∃! n : , n x x < n + 1

Твердження 4.4.1 (Interspersing of integers by rationals) / Вправа 4.4.1

theorem Nat.exists_gt (x : ) :
∃ (n : ), n > x
theorem Rat.exists_between_rat {x y : } (h : x < y) :
∃ (z : ), x < z z < y

Твердження 4.4.3 (Interspersing of rationals)

theorem Nat.no_infinite_descent :
¬∃ (a : ), ∀ (n : ), a (n + 1) < a n

Вправа 4.4.2

def Int.infinite_descent :
Decidable (∃ (a : ), ∀ (n : ), a (n + 1) < a n)
Equations
Instances For
    theorem Rat.not_exist_sqrt_two :
    ¬∃ (x : ), x ^ 2 = 2

    Твердження 4.4.4 / Вправа 4.4.3

    theorem Rat.exist_approx_sqrt_two {ε : } ( : ε > 0) :
    x0, x ^ 2 < 2 2 < (x + ε) ^ 2

    Твердження 4.4.5