Unit circles through three of n points
Show that n points in the plane have only o(n²) unit circles passing through three of them; the best construction gives n^{3/2}.

Determine the growth order for square-grid sections
Browse files+2 −0 routes/rusirui-prove-asymptotic-bound/README.md View file
| @@ -13,6 +13,8 @@ For a set `A` of `n` planar points, let `u(A)` count the unit circles that conta | ||
| 13 | 13 | - For a finite set in a translate of the Gaussian integer Laurent ring of algebraically independent unit phases, `u(A)<=6n^(3/2)`. The ring permits sums of arbitrary powers and products of the phases. Prime valuations force the centers into the ring and their unit jumps to be monomials times Gaussian units. A coordinate cut counts the corresponding lattice vertices. Elekes's pair sums and triple sums attain the exponent using powers of a single generic phase. [Laurent proof](generic-unit-sum-configurations.md) |
| 14 | 14 | - If `Γ` is a multiplicative group of rank `r` in the unit circle, at most `C^(r+1)n^(2-ε)` circles have three points whose directions lie in one coset of `Γ`. The constants `C,ε>0` are absolute and the coset can vary by circle. This gives a uniform power saving for roots of unity and for point sets whose coordinates are totally real algebraic integers, up to translation. [Relative direction proof](finite-rank-relative-directions.md) |
| 15 | 15 | |
| 16 | +- On an `m×m` square lattice section with `n=m²`, the maximum over the radius is `n exp(Θ(log(n)/log log(n)))`. The lower bound uses rational rotations of one lattice triangle with centers in distinct classes modulo the lattice. The upper bound counts permitted chord lengths using Gaussian prime valuations. The lower bound answers the lattice question in equation (8) of Erdős's 1981 paper. [Square-grid proof and exact check](square-grid-asymptotics.md) | |
| 17 | + | |
| 16 | 18 | ## Completion fibers for arbitrary sets |
| 17 | 19 | |
| 18 | 20 | Choose a triple `a,b,c` on each counted circle with center `q` and put `d=a+b+c-2q`. Write `x=q-a`, `y=q-b`, and `z=q-c`. The three points are `d+y+z`, `d+x+z`, and `d+x+y`, and the center is `d+x+y+z`. Discarding circles whose diameter pair belongs to `A` costs `O(n^(4/3))` by the classical unit-distance bound. |
+43 −0 routes/rusirui-prove-asymptotic-bound/square-grid-asymptotics.md added View file
| @@ -0,0 +1,43 @@ | ||
| 1 | +# Maximum count on a square lattice section | |
| 2 | + | |
| 3 | +Let `G_m={0,...,m-1}²`, with `n=m²` points. For `R>0` let `u_R(G_m)` count circles of radius `R` through at least three points of `G_m`. There are absolute constants `c,C>0` such that for all sufficiently large `m`, | |
| 4 | + | |
| 5 | +`n exp(c log(n)/log log(n)) <= max_R u_R(G_m) <= n exp(C log(n)/log log(n))`. | |
| 6 | + | |
| 7 | +In particular the normalized maximum tends to infinity. This answers the square-lattice question in display (8) of Erdős's 1981 paper. Scaling by `1/R` converts each example into a unit-circle example. [Erdős, pp. 143–144](https://www.renyi.hu/~p_erdos/1981-29.pdf). | |
| 8 | + | |
| 9 | +## Lower bound from rational rotations | |
| 10 | + | |
| 11 | +Identify the square lattice with the Gaussian integers. Take an integer `L>=2` and set `R=1+L²`. The triangle with vertices `0, 2L²+2Li, 2L²-2Li` lies on the circle of center `R` and radius `R`. For the two nonzero vertices the squared distance is `(L²-1)²+4L²=R²`. Its vertices are distinct and lie at distance less than `2R` from 0. | |
| 12 | + | |
| 13 | +Every complex number `g` with `|g|=1` and `Lg` a Gaussian integer rotates this triangle to another lattice triangle. This holds because its nonzero vertices after rotation are `(2L+2i)(Lg)` and `(2L-2i)(Lg)`. The center is `Rg`. If two of these centers are congruent modulo the Gaussian integers, then `R(g-g')` and `L(g-g')` are Gaussian integers. The integers `R,L` are coprime, so `g-g'` itself is a Gaussian integer. Because both rotations have modulus one, there are at most 13 possibilities for this difference, the number of Gaussian integers of modulus at most two. Each center class thus accounts for at most 13 rotations. | |
| 14 | + | |
| 15 | +For `L` the product of `k` distinct primes `p≡1 mod 4`, there are `4·3^k` such rotations by Gaussian factorization. Indeed each `p=π bar(π)` gives three ways to allocate the two factors over `π,bar(π)` in a Gaussian integer of norm `L²`, independently of the other primes. Hence there are at least `4·3^k/13` distinct center classes. If `R<=m/16`, translating each rotated triangle by every integer vector whose coordinates lie in `[ceil(m/4),floor(3m/4)]` keeps it wholly in `G_m`. This follows from the bound `2R<=m/8` on its vertex displacements from 0. All such translations yield distinct centers within each class, and centers from different classes are distinct. Thus `u_R(G_m) >= c_0 m² 3^k` for an absolute `c_0>0`. | |
| 16 | + | |
| 17 | +For every large `m` choose `k=floor(c_1 log(m)/log log(m))` with a sufficiently small absolute `c_1>0`, and take the first `k` primes congruent to 1 modulo 4. The prime number theorem for arithmetic progressions gives `p_k=O(k log(2k))`. Their product has logarithm `O(k log(2k))` and therefore `1+L²<=m/16` for all sufficiently large `m` by the choice of `c_1`. This gives the lower bound. For the divergence alone one can fix an arbitrarily large `k` before taking `m` large, and only infinitude of primes in this progression is needed. [NIST DLMF, §27.12](https://dlmf.nist.gov/27.12). | |
| 18 | + | |
| 19 | +## Upper bound from the permitted chord lengths | |
| 20 | + | |
| 21 | +If any circle is counted, then its center `q` has rational coordinates by solving the two perpendicular-bisector equations from a noncollinear lattice triple. Its squared radius is a positive rational number `R²=N/D` in lowest terms. The circumradius formula using side lengths and twice the signed area gives `N<=8m^6`, because each squared side length is at most `2m²`. | |
| 22 | + | |
| 23 | +For a point `a` of the lattice on such a circle, write `w_a=a-q` in the Gaussian rational field. It satisfies `w_a bar(w_a)=N/D`. Let `v_π` be the valuation at a Gaussian prime `π`, and put `e=v_π(N/D)`. | |
| 24 | + | |
| 25 | +- If `v_π(q)<0`, then every `w_a` has the same valuation `v_π(q)` by the lattice integrality of `a`. | |
| 26 | +- If `v_π(bar(q))<0`, then every `bar(w_a)` has the same valuation for the same reason. The norm equation gives the same valuation `e-v_π(bar(q))` for every `w_a`. | |
| 27 | +- If neither center coordinate in this conjugate pair has negative valuation, both jump valuations are nonnegative and sum to `e`, so `0<=v_π(w_a)<=e`. | |
| 28 | + | |
| 29 | +At any prime, ratios `g=w_a/w_b` of two jumps from the same circle therefore have valuation magnitude at most `max(0,e)`. Variations can occur only at primes dividing `N`, since `N,D` are coprime in the Gaussian integers too. The argument includes `q=0` by treating zero as having no pole. As `g bar(g)=1`, conjugate primes have opposite exponents in `g` and primes fixed by conjugation up to a unit have exponent zero. Thus for every split rational prime `p|N`, the exponent at one of its two Gaussian factors has at most `2v_p(N)+1` choices. The unit multiplier has four choices. Over all the possible circles of this radius, the number of possible ratios is at most `4 prod_(p|N) (2v_p(N)+1) = 4 τ(N²)`, where `τ` is the ordinary divisor function. | |
| 30 | + | |
| 31 | +Every pair of distinct points on one of these circles has squared chord length `R²(2-g-g^(-1))`, so at most `4τ(N²)` different squared lengths occur. Each is a positive integer at most `2m²`. The number of Gaussian lattice displacements of squared length `d` is at most `4τ(d)` by Gaussian factorization. For an arbitrary subset `B` of `G_m`, at most `4|B| τ(d)` ordered pairs have squared distance `d`. Each unordered pair lies on at most two radius-`R` circles, so summing these bounds already bounds the number of counted circles up to an absolute factor. The standard estimate `τ(t) <= exp(O(log(t)/log log(t)))` for `t>=3` gives | |
| 32 | + | |
| 33 | +`u_R(B) <= |B| exp(O(log(m)/log log(m)))`, | |
| 34 | + | |
| 35 | +uniformly in `R` and in the subset `B`. For instance, the divisor bound follows by splitting the prime factors of `t` at `sqrt(log(t))`. The smaller primes contribute at most `O(sqrt(log(t)) log log(t))` to `log τ(t)` since every exponent is at most `log_2(t)`. For the larger primes we use `log(e+1)<=e log 2` and the sum of their exponents is at most `2 log(t)/log log(t)`. Taking `B=G_m` proves the stated upper bound. | |
| 36 | + | |
| 37 | +The estimate for subsets also covers sets in a translated, rotated, and scaled square grid, with the radius scaled accordingly. For instance, if the side length before scaling is bounded by a fixed power of `|B|`, then the number of rich unit circles is at most `|B|^(1+o(1))`. | |
| 38 | + | |
| 39 | +## Exact finite check | |
| 40 | + | |
| 41 | +From this route folder, run `python square_grid_certificate.py --primes 4`. The script uses exact integers to construct `3^4=81` center classes. It checks three squared-distance equalities per class and the placement of every permitted translation via the corner coordinate bounds. It reports the number of resulting distinct centers without building the full grid. | |
| 42 | + | |
| 43 | +Problem credit goes to [Erdős Problems #104](https://www.erdosproblems.com/104). | |
+89 −0 routes/rusirui-prove-asymptotic-bound/square_grid_certificate.py added View file
| @@ -0,0 +1,89 @@ | ||
| 1 | +"""Check the square-grid construction using exact integer arithmetic.""" | |
| 2 | + | |
| 3 | +import argparse | |
| 4 | +from itertools import product | |
| 5 | +from math import isqrt, prod | |
| 6 | + | |
| 7 | + | |
| 8 | +def multiply(left, right): | |
| 9 | + a, b = left | |
| 10 | + c, d = right | |
| 11 | + return a * c - b * d, a * d + b * c | |
| 12 | + | |
| 13 | + | |
| 14 | +def split_primes(count): | |
| 15 | + factors = [] | |
| 16 | + candidate = 5 | |
| 17 | + while len(factors) < count: | |
| 18 | + if all(candidate % d for d in range(2, isqrt(candidate) + 1)): | |
| 19 | + for a in range(1, isqrt(candidate) + 1): | |
| 20 | + b = isqrt(candidate - a * a) | |
| 21 | + if b > 0 and a * a + b * b == candidate: | |
| 22 | + factors.append((candidate, a, b)) | |
| 23 | + break | |
| 24 | + else: | |
| 25 | + raise ValueError(f"Expected a split prime: {candidate}") | |
| 26 | + candidate += 4 | |
| 27 | + return factors | |
| 28 | + | |
| 29 | + | |
| 30 | +def certify(prime_count): | |
| 31 | + factors = split_primes(prime_count) | |
| 32 | + denominator = prod(p for p, _, _ in factors) | |
| 33 | + radius = 1 + denominator**2 | |
| 34 | + side = 16 * radius | |
| 35 | + lower, upper = side // 4, 3 * side // 4 | |
| 36 | + shift_count = (upper - lower + 1) ** 2 | |
| 37 | + | |
| 38 | + rotation_factors = [] | |
| 39 | + for p, a, b in factors: | |
| 40 | + square = multiply((a, b), (a, b)) | |
| 41 | + rotation_factors.append(((p, 0), square, (square[0], -square[1]))) | |
| 42 | + | |
| 43 | + residue_classes = set() | |
| 44 | + for factors_for_rotation in product(*rotation_factors): | |
| 45 | + scaled_rotation = (1, 0) | |
| 46 | + for factor in factors_for_rotation: | |
| 47 | + scaled_rotation = multiply(scaled_rotation, factor) | |
| 48 | + center_real, center_imag = multiply((radius, 0), scaled_rotation) | |
| 49 | + residue = center_real % denominator, center_imag % denominator | |
| 50 | + if residue in residue_classes: | |
| 51 | + raise ValueError(f"Repeated center class: {residue}") | |
| 52 | + residue_classes.add(residue) | |
| 53 | + | |
| 54 | + vertices = [ | |
| 55 | + (0, 0), | |
| 56 | + multiply((2 * denominator, 2), scaled_rotation), | |
| 57 | + multiply((2 * denominator, -2), scaled_rotation), | |
| 58 | + ] | |
| 59 | + if len(set(vertices)) != 3: | |
| 60 | + raise ValueError(f"Repeated vertex in {vertices}") | |
| 61 | + for real, imag in vertices: | |
| 62 | + dx = denominator * real - center_real | |
| 63 | + dy = denominator * imag - center_imag | |
| 64 | + if dx * dx + dy * dy != (denominator * radius) ** 2: | |
| 65 | + raise ValueError(f"Off-circle vertex: {real, imag}") | |
| 66 | + if not all(0 <= x + lower <= x + upper < side for x in (real, imag)): | |
| 67 | + raise ValueError(f"Translated vertex leaves the grid: {real, imag}") | |
| 68 | + | |
| 69 | + if len(residue_classes) != 3**prime_count: | |
| 70 | + raise ValueError("Wrong number of distinct center classes") | |
| 71 | + return side, radius, len(residue_classes), shift_count | |
| 72 | + | |
| 73 | + | |
| 74 | +def main(): | |
| 75 | + parser = argparse.ArgumentParser(description=__doc__) | |
| 76 | + parser.add_argument("--primes", type=int, default=4) | |
| 77 | + args = parser.parse_args() | |
| 78 | + if args.primes < 1: | |
| 79 | + parser.error("--primes must be positive") | |
| 80 | + side, radius, class_count, shift_count = certify(args.primes) | |
| 81 | + print(f"Grid side: {side}") | |
| 82 | + print(f"Radius: {radius}") | |
| 83 | + print(f"Distinct center classes: {class_count}") | |
| 84 | + print(f"Translations per class: {shift_count}") | |
| 85 | + print(f"Certified lower bound: {class_count * shift_count} circles") | |
| 86 | + | |
| 87 | + | |
| 88 | +if __name__ == "__main__": | |
| 89 | + main() | |