Farey spacing and uniqueness of rational approximation #
Elementary Diophantine separation bounds for distinct rational numbers (1 / (q.den * r.den) and
1 / N ^ 2) and uniqueness of rational and coprime-fraction approximations within 1 / (2 N ^ 2)
of any real number α. These bounds underlie unique continued-fraction recovery in quantum period
and order finding (Arora and Barak, Chapter 20, Exercises 7 and 11).
Main results #
Rat.one_div_mul_den_le_abs_sub: two distinct rationalsq ≠ rsatisfy1 / (q.den * r.den) ≤ |q - r|.Rat.one_div_sq_le_abs_sub_of_den_le,Rat.one_div_sq_lt_abs_sub_of_den_le_of_den_lt: separation by1 / N ^ 2(weak and strict) for distinct rationals with denominators at mostN.Rat.eq_of_den_le_of_abs_sub_lt,Rat.eq_of_den_lt_of_abs_sub_le: uniqueness of a rational approximation with denominator≤ N(or< N) within1 / (2 N ^ 2)of any realα(Arora and Barak, Chapter 20, Exercise 7).Rat.eq_of_coprime_of_abs_div_sub_lt,Rat.eq_of_coprime_of_abs_sub_div_lt: uniqueness of a coprime pair(j, r)with0 < r ≤ Nwithin1 / (2 N ^ 2)of any realα(Arora and Barak, Chapter 20, Exercises 7 and 11).
References #
Two distinct rational numbers with denominators q.den ≤ N and r.den < N are strictly more
than 1 / N ^ 2 apart (Arora and Barak, Chapter 20, Exercises 7 and 11).
Uniqueness of rational approximation within 1 / (2 N ^ 2)
(Arora and Barak, Chapter 20, Exercise 7): for any real α and N : ℕ, at most
one rational q with q.den ≤ N satisfies |α - q| < 1 / (2 * N ^ 2).
Uniqueness of rational approximation with one denominator < N
(Arora and Barak, Chapter 20, Exercise 7): for any real α and N : ℕ, if
q.den ≤ N and r.den < N both lie within 1 / (2 * N ^ 2) of α, then q = r.
Uniqueness of coprime fractions with denominators at most N
(Arora and Barak, Chapter 20, Exercise 11): if (j₁, r₁) and (j₂, r₂) are
coprime pairs of natural numbers with 0 < r₁ ≤ N, 0 < r₂ ≤ N, and
|j₁ / r₁ - j₂ / r₂| < 1 / N ^ 2, then j₁ = j₂ and r₁ = r₂.
Uniqueness of coprime fraction recovery from an approximation within 1 / (2 N ^ 2)
(Arora and Barak, Chapter 20, Exercises 7 and 11): if (j₁, r₁) and (j₂, r₂) are
coprime pairs of natural numbers with 0 < r₁ ≤ N and 0 < r₂ ≤ N whose quotients both lie within
1 / (2 N ^ 2) of α : ℝ (one strictly), then j₁ = j₂ and r₁ = r₂.