The partial sum D n of the decimal expansion determined by digits.
Equations
- decimalPrefix digits n = ∑ i ∈ Finset.range n, ↑↑(digits (i + 1)) / 10 ^ (i + 1)
Instances For
The decimal digits digits approximate x with the bounds D n ≤ x ≤ D n + 1/10^n.
Equations
- decimalBounds digits x = ∀ (n : ℕ), decimalPrefix digits n ≤ x ∧ x ≤ decimalPrefix digits n + 1 / 10 ^ n
Instances For
The decimal digits digits approximate x with strict lower bounds D n < x
and start with a leading 0 digit.
Equations
- decimalBoundsStrict digits x = (digits 0 = 0 ∧ ∀ (n : ℕ), decimalPrefix digits n < x ∧ x ≤ decimalPrefix digits n + 1 / 10 ^ n)
Instances For
Expanding one more digit in the decimal prefix.
Bounding the tail of the decimal prefix by a geometric sum.
Each decimal prefix is bounded above by 1.
A global bound on any prefix in terms of the n-th prefix.
Using the supremum of decimal prefixes gives an x satisfying the decimal bounds.
The value determined by a given digit stream satisfying decimal bounds is unique.
Proposition 1.5.1.
(i) Every infinite sequence of digits 0.d1d2d3… represents a unique real number
x ∈ [0, 1] such that D n ≤ x ≤ D n + 1/10^n for all n ∈ ℕ, where D n is
the partial sum of the first n digits.
(ii) For every x ∈ (0, 1] there exists an infinite sequence of digits
representing x, and there is a unique representation satisfying
D n < x ≤ D n + 1/10^n for all n ∈ ℕ.
Theorem 1.5.2 (Cantor): The set (0, 1] is uncountable.
Proposition 1.5.3: If a rational number x ∈ (0, 1] has decimal expansion
0.d₁d₂d₃…, then its digits eventually repeat, i.e., there exist positive
integers N and P such that dₙ = dₙ₊ₚ for all n ≥ N.
Example 1.5.4: The real number with decimal expansion 0.101001000100001…,
whose 1s occur at the positions 1, 3, 6, 10, … (each separated by an
increasing block of zeros), is irrational.
Instances For
The number decimalWithIncreasingZeroBlocks from Example 1.5.4 is irrational.