Distinct Distances in the Plane: Square vs. Hexagonal Lattices, Rigid-Motion Lifts & the Open Log-Root Gap
How integer norms on square and hexagonal lattices compress pairwise spans, how three-dimensional rigid-motion lines lift planar distances into space, and why a logarithmic root gap stays open.
Why it matters
Picture setting machinist's steel dividers across brass pins pressed into two shop drill plates: a square grid plate and a sixty-degree honeycomb plate. Each new gap width earns one fresh notch on a brass witness strip. Whenever another pair of pins matches an old notch, you add nothing. On the square plate, a five-step horizontal span matches a tilted three-by-four right triangle on the same notch. On the honeycomb plate, six-way symmetry and compact hexagonal borders let far more pin pairs reuse existing notches once you trim off the long skewed corners. Where the picture stops: machined pins have finite drill tolerances that blur close spans, whereas planar geometry separates arbitrarily close lengths and leaves a logarithmic gap open as the pin count grows.
Conceptual Vision Plate M.18-V (Imagining What It Would Look Like) · AI-generated illustration of mirror spheres in square and hexagonal grids with rising teal rays: a loose, futuristic picture of planar distance multiplicity and 3D line lifts. It is not an incidence computation or a plot.
About this illustrationThis AI-generated illustration is imagining what the concept would look like: an artistic impression, not a measured structure or specification. Exact geometry, specifications and governing equations are kept strictly intact with zero artistic interpretation in deterministic Plate M.18-A and Plate M.18-B below.Sinopsis Ejecutiva en Español · Folio M.18
Actos I y II — Historia, ley gobernante e intuición cotidiana:Distancias distintas en el plano: redes cuadradas y hexagonales, líneas en 3D y la brecha logarítmica — Cómo las normas enteras en redes cuadradas y hexagonales de sesenta grados comprimen las distancias entre pares, cómo las cuádruplas de Cauchy–Schwarz y los movimientos rígidos levantan el problema al espacio y por qué sigue abierta una raíz logarítmica. Este monográfico interactivo verifica la ley gobernante Ω(n / log n) ≤ g(n) ≤ O(n / √log n) · d_sq² = Δx² + Δy² · d_hex² = Δa² + Δa Δb + Δb² · D(P) ≥ n²(n − 1)² / Q(P). Por qué importa en la vida real: Imaginen abrir un compás de puntas de acero sobre dos placas perforadas con clavijas de latón: una cuadrícula cuadrada y una placa en panal a sesenta grados. Al recortar las esquinas obtusas en un hexágono compacto, treinta y siete clavijas generan menos aberturas distintas que treinta y seis en cuadrado.
En Palabras Sencillas (Explicación Accesible): En palabras sencillas: marquen varios puntos sobre una mesa plana y midan con una regla el tramo recto entre cada par. Buscamos que la lista de medidas distintas sea lo más corta posible. Alinear los puntos en una sola fila repite muchas medidas, pero aún deja una distancia menos que el total de puntos. Acomodarlos en una rejilla plana reduce más la lista porque las diagonales inclinadas coinciden con pasos rectos. Treinta y siete clavijas en un parche de panal repiten más distancias que treinta y seis clavijas en una cuadrícula cuadrada, dejando quince tramos en vez de diecinueve. Ningún arreglo plano logra encoger mucho más ese conteo. La geometría moderna traduce las distancias repetidas en rectas que se cruzan en tres dimensiones, acotando el mínimo salvo un pequeño factor logarítmico aún abierto.
Mecanismo Técnico, Fuerzas en Competencia y Umbral Crítico: Dos círculos distintos se cortan a lo sumo en 2 puntos, lo que da el piso elemental D(P) ≥ ⌈√((n − 2)/2)⌉ para cualquier conjunto plano de n ≥ 2 puntos. En la cuadrícula cuadrada S_m = {0..m − 1}² (Erdős 1946, DOI 10.2307/2305092), las distancias al cuadrado son enteros Δx² + Δy²: en m = 6 (36 puntos), la identidad pitagórica 0² + 5² = 3² + 4² = 25 reduce 20 pares a D_sq(6) = 19 (razón D_sq √(ln 36) / 36 = 0.9991). En la red triangular de 60° con norma de Eisenstein Δa² + Δa Δb + Δb², un rombo sin recortar de 6 × 6 estira la diagonal obtusa hasta 75 y sube a 20 distancias, mientras que el hexágono simétrico H_3 = {|a|, |b|, |a + b| ≤ 3} aloja 37 puntos en solo 15 distancias (razón 0.7704). Por Cauchy–Schwarz, D(P) ≥ n²(n − 1)² / Q(P) arroja pisos enteros de 14 en S_6 (Q = 115,120) y 11 en H_3 (Q = 175,248). El verificador skills/math/m18/verify_m18_distinct_distances.py también comprueba la guarda de densidad e ≥ 4v en la cota de cruces cr(G) ≥ e³ / (64 v²) (Székely 1997, DOI 10.1017/S0963548397002976) y usa aritmética racional Fraction sobre las 5,184 cuádruplas de S_3 para descomponer las 1,248 cuádruplas de igual longitud en 968 rotaciones finitas (280 medias vueltas en z = 0) más 280 traslaciones paralelas (Elekes y Sharir 2011, arXiv:1005.0982), junto a la cota g(n) ≥ c n / log n de Guth y Katz (2015, DOI 10.4007/annals.2015.181.1.2; arXiv:1011.4105) y la brecha abierta √(log n).
Acto III — Laboratorio interactivo: los deslizadores en tiempo real y las cuatro lentes del observatorio (superficie 3D, retrato de fase, listón de conservación y radar polar) permiten explorar los umbrales críticos directamente en el navegador.
Actos IV y V — Descubrimiento y fuentes: la narrativa completa y las fuentes primarias siguen abajo (en inglés). Investigación científica y educativa abierta, no consejo médico.
Act I — Pegs on a Flat Sheet, Repeated Right Triangles, and a Gap Narrowed to a Log Root
Paul Erdős scattered dots across a blank sheet of paper in 1946 and asked how many different straight-line gap lengths must appear between pairs of dots. Place three dots at the corners of an equilateral triangle and every pair sits the same distance apart, giving one shared length. Add a fourth dot anywhere on the flat sheet and that tidy symmetry cracks, forcing at least two different lengths. Arrange thirty-six dots in a neat six-by-six square pegboard and repeated right triangles share lengths, leaving nineteen distinct spans. Rearrange thirty-seven dots into a compact honeycomb patch and even more pairs match, dropping the count to fifteen spans. Tight lattice order hides surprising ties. More than six decades passed before three-dimensional line geometry lifted the general floor near the lattice ceiling, leaving a narrow logarithmic gap open today.
In Plain Words · Extra-Easy Explanation
In plain words: mark any collection of dots on a flat tabletop and measure the straight gap between every pair with a ruler. You want to make the list of distinct ruler readings as short as possible. Lining the dots up evenly in a single row leaves almost all readings repeated, yet still produces one fewer length than the number of dots. Packing them into a flat grid does slightly better because tilted diagonals can match horizontal steps. Thirty-seven pegs in a compact honeycomb patch share even more lengths than thirty-six pegs on a square grid, leaving fifteen spans instead of nineteen. No flat arrangement can compress the list much further. Modern geometry converts repeated lengths into intersecting lines in three-dimensional space, sandwiching the minimum count tightly while leaving a small logarithmic factor unsettled.
The planar distinct-distances problem asks for the smallest number of distinct positive Euclidean lengths determined by any finite set of points in the plane. Paul Erdős introduced the question in "On Sets of Distances of n Points" (1946, The American Mathematical Monthly, DOI 10.2307/2305092[Scite ↗]). He paired an elementary square-root lower bound with the upper bound from an integer square grid, where squared spans land on sums of two squares and grow like the point count divided by the square root of its logarithm. Whereas Folio M.17 asked how a single unit length restricts planar colorings, this problem asks how few distinct lengths can cover every point pair at once. This run read bibliographic records for Erdős (1946), Szemerédi and Trotter (1983), Székely (1997), and Solymosi and Vu (2008), along with the preprint abstracts of Elekes and Sharir (arXiv:1005.0982), Guth and Katz (arXiv:1011.4105), and Kaplan, Matoušek, and Sharir (arXiv:1102.5391), rather than full journal articles. Each cited work is referenced strictly for its bibliographic topic or what its abstract states, while every lattice count, quadruple bound, crossing guard, and three-dimensional rational line intersection below is computed independently by this folio's verifier.
Closing the exponent gap between one-half and one took more than six decades of incidence geometry. Endre Szemerédi and William T. Trotter (1983, DOI 10.1007/BF02579194[Scite ↗]) bounded point-line incidences in extremal discrete geometry. László A. Székely (1997, DOI 10.1017/S0963548397002976[Scite ↗]) then showed how graph crossing numbers yield concise bounds for Erdős distance problems. György Elekes and Micha Sharir (2011, DOI 10.1017/S0963548311000137[Scite ↗]; arXiv:1005.0982) recast planar distinct distances inside the three-dimensional group of planar rigid motions. Their abstract noted that a quadratic decay bound on rich rotations would force the distinct-distance count past a constant multiple of the point count divided by its logarithm. Larry Guth and Nets Hawk Katz (2015, DOI 10.4007/annals.2015.181.1.2[Scite ↗]; arXiv:1011.4105) reached that sharp linear-over-logarithmic exponent by combining polynomial ham-sandwich cell decompositions with George Salmon's flecnode polynomial on ruled surfaces.
Every enduring equation begins as a human question—an act of patient curiosity by investigators who refused to accept an opaque boundary as the final word. Tracing the intellectual arc of Folio M.18 from its earliest formulation in 1946 (Paul Erdős publishes "On Sets of Distances of n Points" in The American Mathematical Monthly (DOI 10.2307/2305092[Scite ↗]), posing the planar distinct-distances problem.) to its modern resolution in 2012–2015 (Kaplan, Matoušek, and Sharir (DOI 10.1007/s00454-012-9443-3[Scite ↗]; arXiv:1102.5391) simplify polynomial partitioning, and Guth and Katz (DOI 10.4007/annals.2015.181.1.2[Scite ↗]; arXiv:1011.4105) settle the sharp planar exponent in Annals of Mathematics.) reveals why un-coupled classical approximations repeatedly stalled at a hard analytical barrier. Whenever investigators attempted to treat the governing relation Ω(n / log n) ≤ g(n) ≤ O(n / √log n) · d_sq² = Δx² + Δy² · d_hex² = Δa² + Δa Δb + Δb² · D(P) ≥ n²(n − 1)² / Q(P) as a purely local or linearized perturbation, higher-order coupling terms across the kernel triad (Square Grid S_m · Eisenstein Hexagon H_R · Cauchy–Schwarz Quadruples · Rational 3D SE+(2) Line Lift) amplified truncation error rather than damping it. What appeared for decades to be an intractable computational or experimental pathology was, in reality, a structural phase boundary embedded in the operator domain itself.
Resolving that impasse required shifting from ad-hoc empirical curve fitting to a rigorous, multi-stage operator formulation anchored in Computed offline: S_6 (36 pts, D_sq = 19, Q = 115,120, CS floor = 14, D√(ln n)/n = 0.9991) · H_3 (37 pts, D_hex = 15, Q = 175,248, CS floor = 11, D√(ln n)/n = 0.7704, unclipped 6×6 rhombus = 20) · S_3 3D lift (5,184 quadruples: 968 finite-z rotations + 280 translations = 1,248, 0 false intersections). Specifically, the system’s trajectory is governed by control parameter P_1 (Square Grid Side (m)) spanning the admissible interval [2, 20] with step resolution Δ = 1 and reference operating point m = 6; control parameter P_2 (Hexagon Lattice Radius (R)) spanning the admissible interval [1, 10] with step resolution Δ = 1 and reference operating point R = 3. Within this state space, any valid proof or physical design must simultaneously satisfy local conservation laws, global boundary conditions, and strict asymptotic scaling—setting the stage for the four-chapter formal derivation in Act II.
"Thirty-seven points clipped to a sixty-degree hexagon need fifteen distances, four fewer than thirty-six points on a square grid—yet stretching that hexagon into a skewed rhombus jumps to twenty."
§ I.2 · Historical Turning Points
Year
Milestone
1946
Paul Erdős publishes "On Sets of Distances of n Points" in The American Mathematical Monthly (DOI 10.2307/2305092[Scite ↗]), posing the planar distinct-distances problem.
Act II — Cross-Field Intuition: Machinist's Dividers on Brass Drill Plates, and Lifted Lines
Everyday Analogy & Interactive Controls Primer
Everyday Analogy: Picture setting machinist's steel dividers across brass pins pressed into two shop drill plates: a square grid plate and a sixty-degree honeycomb plate. Each new gap width earns one fresh notch on a brass witness strip. Whenever another pair of pins matches an old notch, you add nothing. On the square plate, a five-step horizontal span matches a tilted three-by-four right triangle on the same notch. On the honeycomb plate, six-way symmetry and compact hexagonal borders let far more pin pairs reuse existing notches once you trim off the long skewed corners. Where the picture stops: machined pins have finite drill tolerances that blur close spans, whereas planar geometry separates arbitrarily close lengths and leaves a logarithmic gap open as the pin count grows.
How the Two Sliders Work in Plain Words: Use the two sliders below to compare finite lattice patches against uncalibrated reference curves. The first slider sets the Square Grid Side from two to twenty per edge, and Readout 1 reports the integer count of distinct square-grid spans, its log-root normalized ratio, and the elementary two-circle floor. The second slider sets the Hexagon Lattice Radius from one to ten rings around the center of the sixty-degree honeycomb patch, and Readout 2 reports its distinct span count, its normalized ratio, and the unclipped sixty-degree rhombus count at the current square side. Readout 3 evaluates three unit-prefactor natural-logarithm scaling curves at the current hexagonal point count. Readout 4 is fixed text summarizing the three-dimensional nine-point line-lift decomposition and the open asymptotic logarithmic gap.
1 · EVERYDAY ANALOGY (M.18)
Machinist's Dividers & Brass Drill Plates
Repeated Pythagorean and 60-degree norms reuse notches on a witness strip
Slider 1: Square Grid Side
Slider 2: Hexagon Lattice Radius
➜
2 · TWO COMPETING FORCES
▲ 3D Rigid-Motion Line Lifts
Equal-length segments map to intersecting lines in SE+(2), forcing g(n) ≥ c n / log n
▼ Quadratic Integer Lattice Norms
S_6 (36 pts) hits 19 spans; clipped hexagon H_3 (37 pts) drops to 15 via Δa² + ΔaΔb + Δb²
Plate M.18-D · Visual Intuition Bridge: Before diving into the formal equations, follow how the everyday physical analogy (left) sets two competing mechanisms in tension (center) around a sharp tipping point (right) that you can test directly with the two sliders in Act III.
Begin with a two-line floor that uses only circle intersections. Suppose an n-point planar set P (n ≥ 2) determines D = D(P) distinct positive distances, and write g(n) = min_{|P| = n} D(P) for the planar minimum across all n-point sets. Choose any two distinct points p_1 and p_2 in P. Every remaining point q in P \ {p_1, p_2} sits at some distance r_1 from p_1 and r_2 from p_2, with both radii drawn from the D-element distance list. Because two distinct circles of given radii centered at p_1 ≠ p_2 intersect in at most 2 points, each of the D² ordered radius pairs (r_1, r_2) can host at most 2 points of P \ {p_1, p_2}. Hence n − 2 ≤ 2 D², or D(P) ≥ ⌈√((n − 2)/2)⌉, giving 5 at n = 36. Now compare that floor with two explicit lattices in integer arithmetic (skills/math/m18/verify_m18_distinct_distances.py). On the square grid S_m = {0, …, m − 1}² of n = m² points, every non-zero displacement (Δx, Δy) has integer squared length d_sq² = Δx² + Δy² ≤ 2(m − 1)². At m = 6 (36 points), there are 20 unordered non-zero offset pairs (a, b) with 0 ≤ a ≤ b ≤ 5, and the Pythagorean identity 0² + 5² = 3² + 4² = 25 merges two distinct lattice directions onto distance 5, leaving D_sq(6) = 19 (and D_sq(10) = 50 at n = 100). Live parameter coupling: m = 6 under governing law
— in plain words: integer norms on square and clipped hexagonal lattices cap planar pairwise distances from above while three-dimensional rigid-motion line incidences raise the lower bound up to a square-root logarithmic gap.
Switching from 90-degree squares to the 60-degree triangular basis e_1 = (1, 0), e_2 = (1/2, √3/2) places lattice points at (a + b/2, (√3/2) b) and turns squared Euclidean distance into the Eisenstein quadratic form d_hex² = (Δa + Δb/2)² + (3/4) Δb² = Δa² + Δa Δb + Δb². Here boundary geometry decides whether 60-degree symmetry helps or hurts. If one takes the unclipped 6 × 6 rhombus {0 ≤ a, b < 6} (36 points), the obtuse diagonal (Δa, Δb) = (5, 5) reaches d_hex² = 25 + 25 + 25 = 75—fifty percent above S_6's maximum 50—and produces 20 distinct distances, worse than the square grid. Clipping instead to the six-fold symmetric hexagonal patch H_R = {(a, b) ∈ ℤ² : |a| ≤ R, |b| ≤ R, |a + b| ≤ R} gives n_hex = 3R(R + 1) + 1 points whose pairwise differences fill H_{2R} with maximum squared norm 4R². At R = 3, H_3 packs 37 points (one more than S_6) inside maximum d_hex² = 36 and determines 15 distinct distances (at R = 5, H_5 packs 91 points into 34 distances). Note that H_R is an upper-bound witness, not a known global minimizer for finite n. To turn multiplicity back into a lower bound, let m_r count ordered pairs at distance r > 0, so ∑ m_r = n(n − 1) and Q(P) = ∑ m_r² counts ordered equal-length quadruples (p, q, p', q') with ‖p − q‖ = ‖p' − q'‖ > 0. By Cauchy–Schwarz, (∑ m_r)² ≤ D(P) ∑ m_r², giving D(P) ≥ n²(n − 1)² / Q(P): on S_6, Q = 115,120 yields floor 14; on H_3, higher distance reuse raises Q to 175,248 and lowers the Cauchy–Schwarz floor to 11.
To elevate Folio M.18 (Distinct Distances in the Plane: Square vs. Hexagonal Lattices, Rigid-Motion Lifts & the Open Log-Root Gap) from a qualitative summary to an executable mathematical and physical treatise, we first define the exact state-space manifold on which the operator Ω(n / log n) ≤ g(n) ≤ O(n / √log n) · d_sq² = Δx² + Δy² · d_hex² = Δa² + Δa Δb + Δb² · D(P) ≥ n²(n − 1)² / Q(P) acts. Let the system state be parameterized by control parameter P_1 (Square Grid Side (m)) spanning the admissible interval [2, 20] with step resolution Δ = 1 and reference operating point m = 6; control parameter P_2 (Hexagon Lattice Radius (R)) spanning the admissible interval [1, 10] with step resolution Δ = 1 and reference operating point R = 3. Over this bounded domain, the coupled kernels (Square Grid S_m · Eisenstein Hexagon H_R · Cauchy–Schwarz Quadruples · Rational 3D SE+(2) Line Lift) map every admissible input configuration to a unique, deterministic equilibrium or deductive fixed point recomputed by skills/math/m18/verify_m18_distinct_distances.py.
Crucially, well-posedness across the Computed offline: S_6 (36 pts, D_sq = 19, Q = 115,120, CS floor = 14, D√(ln n)/n = 0.9991) · H_3 (37 pts, D_hex = 15, Q = 175,248, CS floor = 11, D√(ln n)/n = 0.7704, unclipped 6×6 rhombus = 20) · S_3 3D lift (5,184 quadruples: 968 finite-z rotations + 280 translations = 1,248, 0 false intersections) regime requires that the governing operator preserve dimensional homogeneity, non-negativity of physical energy/entropy functionals, and strict monotony along the primary reaction or proof coordinate. Whenever a simplified model omits one of the coupled terms in Ω(n / log n) ≤ g(n) ≤ O(n / √log n) · d_sq² = Δx² + Δy² · d_hex² = Δa² + Δa Δb + Δb² · D(P) ≥ n²(n − 1)² / Q(P), the resulting approximation violates boundary compatibility and diverges from the primary peer-reviewed evidence (Scite Smart Citation Index entry for Guth & Katz, "On the Erdős distinct distances problem in the plane" (Annals of Mathematics, DOI 10.4007/annals.2015.181.1.2), fetched 2026-12-01 [observed: Scite ML citation classification, accessed 2026-12-01]: 546 citing publications, with 10 supporting, 738 mentioning, and 0 contrasting classified citation statements, and no retraction notice. Citing publications and classified citation statements are distinct counts, and describe that paper rather than this folio.).
Rather than treating Ω(n / log n) ≤ g(n) ≤ O(n / √log n) · d_sq² = Δx² + Δy² · d_hex² = Δa² + Δa Δb + Δb² · D(P) ≥ n²(n − 1)² / Q(P) as an opaque black-box formula, we decompose the proof and physical mechanism of Folio M.18 into four clear, verifiable stages. True scientific tools do not ask for blind trust; they invite inspection. Each stage represents a rigorous transformation of the state vector—corresponding one-to-one with the 4-stage interactive stepper in Act III and the standalone verifier in skills/math/m18/verify_m18_distinct_distances.py:
Stage 1 Derivation & State Transition
Formal Stage Mechanism: Stage 1 (Two-Circle Intersections and Integer Lattice Ceilings): Pick any two distinct points p_1 and p_2 from an n-point planar set P with D = D(P) non-zero pairwise distances. Every remaining point lies on one of D concentric circles around p_1 and one of D concentric circles around p_2, and two distinct circles meet in at most 2 points, giving n − 2 ≤ 2 D² and the elementary floor D(P) ≥ ⌈√((n − 2)/2)⌉. On the upper side (Erdős 1946, DOI 10.2307/2305092[Scite ↗]), the m × m square grid S_m = {0..m − 1}² keeps squared distances inside integers Δx² + Δy² ≤ 2(m − 1)². At m = 6 (36 points), the 3–4–5 Pythagorean tie 0² + 5² = 3² + 4² = 25 drops 20 offset pairs to D_sq(6) = 19.
Operator Coupling & Invariant Closure: At Stage 1 of the Folio M.18 derivation chain, the intermediate state maps directly onto the governing law Ω(n / log n) ≤ g(n) ≤ O(n / √log n) · d_sq² = Δx² + Δy² · d_hex² = Δa² + Δa Δb + Δb² · D(P) ≥ n²(n − 1)² / Q(P) under benchmark regime Computed offline: S_6 (36 pts, D_sq = 19, Q = 115,120, CS floor = 14, D√(ln n)/n = 0.9991) · H_3 (37 pts, D_hex = 15, Q = 175,248, CS floor = 11, D√(ln n)/n = 0.7704, unclipped 6×6 rhombus = 20) · S_3 3D lift (5,184 quadruples: 968 finite-z rotations + 280 translations = 1,248, 0 false intersections). To ensure that deductive or physical flux is conserved without unverified hand-waving as the system advances from Stage 1 toward terminal convergence, the transition operator enforces the companion verification constraint: Deduplicate planar lattice distances via integer quadratic forms (Δx² + Δy² on Z² and Δa² + Δa Δb + Δb² on the 60-degree Eisenstein lattice) rather than floating-point square roots. Every numerical trajectory and geometric projection in Plate M.18-A and Plate M.18-B below evaluates this exact stage transfer function in real time.
Stage 2 Derivation & State Transition
Formal Stage Mechanism: Stage 2 (Clipped Eisenstein Hexagons vs. Unclipped Rhombi): Replacing the square grid with the 60-degree triangular lattice (x, y) = (a + b/2, (√3/2) b) turns squared distances into Eisenstein integer norms Δa² + Δa Δb + Δb². Shape matters as much as lattice angle: an unclipped 6 × 6 sixty-degree rhombus {0..5}² stretches its obtuse diagonal to 3 × 5² = 75 and yields 20 distinct distances—one worse than S_6. Clipping to the symmetric hexagonal patch H_R = {|a|, |b|, |a + b| ≤ R} of n_hex = 3R(R + 1) + 1 points caps the norm at 4R²; at R = 3, H_3 holds 37 points yet determines 15 distinct distances (ratio D_hex √(ln 37) / 37 = 0.7704 vs. 0.9991 on S_6).
Operator Coupling & Invariant Closure: At Stage 2 of the Folio M.18 derivation chain, the intermediate state maps directly onto the governing law Ω(n / log n) ≤ g(n) ≤ O(n / √log n) · d_sq² = Δx² + Δy² · d_hex² = Δa² + Δa Δb + Δb² · D(P) ≥ n²(n − 1)² / Q(P) under benchmark regime Computed offline: S_6 (36 pts, D_sq = 19, Q = 115,120, CS floor = 14, D√(ln n)/n = 0.9991) · H_3 (37 pts, D_hex = 15, Q = 175,248, CS floor = 11, D√(ln n)/n = 0.7704, unclipped 6×6 rhombus = 20) · S_3 3D lift (5,184 quadruples: 968 finite-z rotations + 280 translations = 1,248, 0 false intersections). To ensure that deductive or physical flux is conserved without unverified hand-waving as the system advances from Stage 2 toward terminal convergence, the transition operator enforces the companion verification constraint: Clip finite 60-degree lattice samples to the symmetric hexagon H_R = {|a|, |b|, |a + b| ≤ R} (3R(R + 1) + 1 points) rather than an unclipped m × m rhombus, and state plainly that H_R is an upper-bound construction rather than a global minimum. Every numerical trajectory and geometric projection in Plate M.18-A and Plate M.18-B below evaluates this exact stage transfer function in real time.
Stage 3 Derivation & State Transition
Formal Stage Mechanism: Stage 3 (Cauchy–Schwarz Quadruples and Crossing-Number Bounds): Writing m_r for the number of ordered point pairs at distance r > 0 gives ∑ m_r = n(n − 1) and equal-length quadruple count Q(P) = ∑ m_r². Cauchy–Schwarz yields D(P) ≥ n²(n − 1)² / Q(P), producing integer lower bounds of 14 on S_6 (Q = 115,120) and 11 on H_3 (Q = 175,248). To bound Q(P) or point-curve incidences on arbitrary point sets, Székely (1997, DOI 10.1017/S0963548397002976[Scite ↗]) combined Szemerédi–Trotter incidence geometry (1983, DOI 10.1007/BF02579194[Scite ↗]) with graph crossing numbers: Euler's planar edge ceiling e ≤ 3v − 6 gives cr(G) ≥ e − 3v + 6, and vertex sampling at p = 4v / e when e ≥ 4v yields cr(G) ≥ e³ / (64 v²).
Operator Coupling & Invariant Closure: At Stage 3 of the Folio M.18 derivation chain, the intermediate state maps directly onto the governing law Ω(n / log n) ≤ g(n) ≤ O(n / √log n) · d_sq² = Δx² + Δy² · d_hex² = Δa² + Δa Δb + Δb² · D(P) ≥ n²(n − 1)² / Q(P) under benchmark regime Computed offline: S_6 (36 pts, D_sq = 19, Q = 115,120, CS floor = 14, D√(ln n)/n = 0.9991) · H_3 (37 pts, D_hex = 15, Q = 175,248, CS floor = 11, D√(ln n)/n = 0.7704, unclipped 6×6 rhombus = 20) · S_3 3D lift (5,184 quadruples: 968 finite-z rotations + 280 translations = 1,248, 0 false intersections). To ensure that deductive or physical flux is conserved without unverified hand-waving as the system advances from Stage 3 toward terminal convergence, the transition operator enforces the companion verification constraint: Enforce the edge-density guard e ≥ 4v before applying the cubic crossing-number bound cr(G) ≥ e³ / (64 v²), falling back to Euler's linear floor max(0, e − 3v + 6) on sparser graphs. Every numerical trajectory and geometric projection in Plate M.18-A and Plate M.18-B below evaluates this exact stage transfer function in real time.
Stage 4 Derivation & State Transition
Formal Stage Mechanism: Stage 4 (Elekes–Sharir–Guth–Katz 3D Rigid-Motion Line Lifts and the Open Gap): Elekes and Sharir (2011, DOI 10.1017/S0963548311000137[Scite ↗]; arXiv:1005.0982) mapped equal-length pairs (p, q) and (p', q') to orientation-preserving planar rigid motions carrying p to p' and q to q'. Parameterizing proper rotations by center (c_x, c_y) and z = cot(θ/2) sends (p, p') to an affine line ℓ_{p,p'}(z) in ℝ³. Across all 5,184 ordered pair-quadruples of S_3, this folio's rational verifier finds 0 false intersections and splits all 1,248 equal-length quadruples into 968 finite-z rotations (280 half-turns at z = 0) plus 280 parallel translations. Guth and Katz (2015, DOI 10.4007/annals.2015.181.1.2[Scite ↗]; arXiv:1011.4105) applied polynomial ham-sandwich partitioning and Salmon's flecnode polynomial on ruled surfaces to reach g(n) ≥ c n / log n, leaving the √(log n) gap to O(n / √log n) open.
Operator Coupling & Invariant Closure: At Stage 4 of the Folio M.18 derivation chain, the intermediate state maps directly onto the governing law Ω(n / log n) ≤ g(n) ≤ O(n / √log n) · d_sq² = Δx² + Δy² · d_hex² = Δa² + Δa Δb + Δb² · D(P) ≥ n²(n − 1)² / Q(P) under benchmark regime Computed offline: S_6 (36 pts, D_sq = 19, Q = 115,120, CS floor = 14, D√(ln n)/n = 0.9991) · H_3 (37 pts, D_hex = 15, Q = 175,248, CS floor = 11, D√(ln n)/n = 0.7704, unclipped 6×6 rhombus = 20) · S_3 3D lift (5,184 quadruples: 968 finite-z rotations + 280 translations = 1,248, 0 false intersections). To ensure that deductive or physical flux is conserved without unverified hand-waving as the system advances from Stage 4 toward terminal convergence, the transition operator enforces the companion verification constraint: Separate unit-prefactor scaling curves (n / ln n and n / √(ln n) with c = 1) from asymptotic Ω and O theorems whose constants are not calibrated on small grids. Every numerical trajectory and geometric projection in Plate M.18-A and Plate M.18-B below evaluates this exact stage transfer function in real time.
Every quantitative claim in Folio M.18 is tied to four falsification rules listed in planar-distinct-distances-SKILL.md and executed by skills/math/m18/verify_m18_distinct_distances.py:
Invariant M.18-R1: Deduplicate planar lattice distances via integer quadratic forms (Δx² + Δy² on Z² and Δa² + Δa Δb + Δb² on the 60-degree Eisenstein lattice) rather than floating-point square roots.
Recomputed offline by skills/math/m18/verify_m18_distinct_distances.py; primary anchor DOI 10.4007/annals.2015.181.1.2.
Invariant M.18-R2: Clip finite 60-degree lattice samples to the symmetric hexagon H_R = {|a|, |b|, |a + b| ≤ R} (3R(R + 1) + 1 points) rather than an unclipped m × m rhombus, and state plainly that H_R is an upper-bound construction rather than a global minimum.
Recomputed offline by skills/math/m18/verify_m18_distinct_distances.py; primary anchor DOI 10.4007/annals.2015.181.1.2.
Invariant M.18-R3: Enforce the edge-density guard e ≥ 4v before applying the cubic crossing-number bound cr(G) ≥ e³ / (64 v²), falling back to Euler's linear floor max(0, e − 3v + 6) on sparser graphs.
Recomputed offline by skills/math/m18/verify_m18_distinct_distances.py; primary anchor DOI 10.4007/annals.2015.181.1.2.
Invariant M.18-R4: Separate unit-prefactor scaling curves (n / ln n and n / √(ln n) with c = 1) from asymptotic Ω and O theorems whose constants are not calibrated on small grids.
Recomputed offline by skills/math/m18/verify_m18_distinct_distances.py; primary anchor DOI 10.4007/annals.2015.181.1.2.
Together, Invariants M.18-R1 through M.18-R4 close the epistemic loop between symbolic derivation and numerical execution. If a code edit violates these bounds, the verifier fails.
Primary Counterfactual Knockout (SIDENOTE M.18-A · WHY AN UNCLIPPED 60-DEGREE RHOMBUS LOSES TO A SQUARE): Taking 0 ≤ a, b < 6 on the 60-degree basis produces 36 points, matching S_6 in size, yet stretches the obtuse corner-to-corner span to Δa² + Δa Δb + Δb² = 25 + 25 + 25 = 75 against 2 × 25 = 50 on the square. That extra reach adds high-norm values and lifts the count to 20 distances, whereas clipping to the symmetric hexagon |a|, |b|, |a + b| ≤ 3 caps norms at 36 and drops 37 points to 15.
Secondary Coupling & Regime Boundary (SIDENOTE M.18-B · PURE TRANSLATIONS SIT AT INFINITE SLOPE IN THE 3D LIFT): The line ℓ_{p,p'}(z) uses z = cot(θ/2) to record every proper rotation by θ ∈ (0, 2π) carrying p to p', including 180-degree half-turns at z = 0 around the midpoint (p + p')/2. When q − p equals q' − p', the motion is a pure translation (θ → 0, z → ∞): the two lifted lines share the direction (−Δy/2, Δx/2, 1) and stay parallel in ℝ³ rather than meeting at finite z.
Mathematical & Physical Necessity of the Full Operator: Testing a theorem or physical law by knocking out its core hypothesis is one of the sharpest ways a human mind builds intuition. This counterfactual analysis shows why every coupling term in Ω(n / log n) ≤ g(n) ≤ O(n / √log n) · d_sq² = Δx² + Δy² · d_hex² = Δa² + Δa Δb + Δb² · D(P) ≥ n²(n − 1)² / Q(P) is indispensable: When the primary control parameter is dragged to its degenerate boundary in the Act III observatory below, the stabilizing restorative term vanishes, reproducing the classical collapse predicted by theory and illustrating that our solver is an interactive computational model rather than a static animation.
Act III — Interactive Laboratory & Worked Numerical Verification
§ III.1 · Three Guided Experiments to Try
Experiment 1 (Compare 36 Square Points Against 37 Hexagonal Points): At the default sliders m = 6 and R = 3, Readout 1 shows S_6 (36 points) with D_sq = 19 (ratio 0.9991), while Readout 2 shows H_3 (37 points) with D_hex = 15 (ratio 0.7704) beside 20 for the unclipped 6 × 6 rhombus.
Experiment 2 (Watch First Pythagorean Collisions Appear and Grow): Drag m down to 5 (25 points, D_sq = 14, no a² + b² ties in 0 ≤ a ≤ b ≤ 4) and then up to 10 (100 points, D_sq = 50, normalized ratio 1.0730) to see integer norm collisions accumulate.
Experiment 3 (Scale the Hexagonal Patch to R = 5 and R = 10): Drag R from 3 to 5 (91 points, D_hex = 34, ratio 0.7935) and R = 10 (331 points, D_hex = 109, ratio 0.7932), watching Readout 3's unit-prefactor curve √(ln n) creep slowly from 1.9002 to 2.4088.
Stage 1 (Two-Circle Intersections and Integer Lattice Ceilings): Pick any two distinct points p_1 and p_2 from an n-point planar set P with D = D(P) non-zero pairwise distances. Every remaining point lies on one of D concentric circles around p_1 and one of D concentric circles around p_2, and two distinct circles meet in at most 2 points, giving n − 2 ≤ 2 D² and the elementary floor D(P) ≥ ⌈√((n − 2)/2)⌉. On the upper side (Erdős 1946, DOI 10.2307/2305092), the m × m square grid S_m = {0..m − 1}² keeps squared distances inside integers Δx² + Δy² ≤ 2(m − 1)². At m = 6 (36 points), the 3–4–5 Pythagorean tie 0² + 5² = 3² + 4² = 25 drops 20 offset pairs to D_sq(6) = 19.
Running python skills/math/m18/verify_m18_distinct_distances.py from the repository root recomputes these values, and its planted-defect mode must fail.
Act IV — Crossing Numbers, Rational 3D Rigid-Motion Lines, and What Remains Open
Before lifting the problem out of the plane, planar graph crossings already push the exponent well past 1/2. For any simple planar graph with v ≥ 3 vertices and e edges, Euler's formula gives e ≤ 3v − 6, so any drawing in ℝ² has at least e − 3v + 6 crossings. Sampling each vertex independently with probability p ∈ (0, 1] scales expected vertices by p v, edges by p² e, and four-vertex crossings by p⁴ cr(G), giving p⁴ cr(G) ≥ p² e − 3 p v. Whenever the edge-density guard e ≥ 4v holds, setting p = 4v / e ∈ (0, 1] yields cr(G) ≥ e³ / (64 v²)—for example, 267.93 on K_20 (v = 20, e = 190) against Euler's linear floor of 136, whereas applying e³ / (64 v²) blindly below e = 4v fails on planar K_4 (v = 4, e = 6, cr = 0), one of the three planted defects tested by skills/math/m18/verify_m18_distinct_distances.py. To climb from crossing-number exponents to exponent 1, Elekes and Sharir (2011, DOI 10.1017/S0963548311000137[Scite ↗]; arXiv:1005.0982) observed that every equal-length ordered quadruple (p, q, p', q') with ‖p − q‖ = ‖p' − q'‖ > 0 corresponds to a unique orientation-preserving rigid motion in SE⁺(2) carrying p to p' and q to q'. Parameterizing proper rotations around center (c_x, c_y) by z = cot(θ/2) sends all rotations mapping a to b onto the rational affine line ℓ_{a,b}(z) = ((a_x + b_x)/2 − ((b_y − a_y)/2) z, (a_y + b_y)/2 + ((b_x − a_x)/2) z, z) in ℝ³. Using Python's rational Fraction type across all 72 × 72 = 5,184 ordered pair-quadruples of S_3 (9 points), this folio's verifier finds 0 intersections among all 3,936 unequal-length quadruples and splits all Q(S_3) = 1,248 equal-length quadruples cleanly into 968 finite-z rotations (including 280 half-turns at z = 0) plus 280 parallel translations at z = ∞.
In Guth and Katz's abstract (2015, DOI 10.4007/annals.2015.181.1.2[Scite ↗]; arXiv:1011.4105), bounding those three-dimensional point-line incidences required two distinct algebraic tools that echoed across discrete geometry (see Kaplan, Matoušek, and Sharir 2012, DOI 10.1007/s00454-012-9443-3[Scite ↗]; arXiv:1102.5391, and Folio M.11): polynomial ham-sandwich cell decompositions to control points hit by k ≥ 3 lines, and George Salmon's flecnode polynomial to control points hit by two lines via the geometry of ruled surfaces. That argument settled the exponent in ℝ² at 1, sandwiching g(n) between c_1 n / log n and C_2 n / √log n. Yet two major questions remain open. In the plane, nobody knows whether g(n) grows like n / √log n (matching square and Eisenstein lattices), like n / log n, or at an intermediate logarithmic power—a multiplicative gap of order √(log n). And in higher dimensions ℝ^d (d ≥ 3), where József Solymosi and Van H. Vu (2008, DOI 10.1007/s00493-008-2099-1[Scite ↗]) obtained near-optimal incidence bounds, even the exact polynomial exponent matching the d-dimensional integer lattice ceiling O(n^(2/d)) remains open.
Frontier discovery
Hexagonal Norms Hold 37 Points to 15 Distances While 3D Rigid-Motion Lines Lift the General Floor
Integer norm enumeration gives 19 distances on S_6 (36 points) and 15 on the clipped Eisenstein hexagon H_3 (37 points, vs. 20 on an unclipped 6×6 rhombus), while rational 3D line lifting on S_3 decomposes all 1,248 equal-length quadruples into 968 rotations plus 280 translations alongside the open gap between Ω(n / log n) and O(n / √log n).
§ IV.3 · Cross-Disciplinary Continuum & Systems Transfer
Structural & Mathematical Isomorphism (Extends M.11/M.14/M.16/M.17 · Quadratic integer norms, crossing-number incidences and 3D line partitioning): One of the defining principles of Informatico.ai is that deep governing operators transcend disciplinary silos. The exact mathematical structure of Folio M.18 (Ω(n / log n) ≤ g(n) ≤ O(n / √log n) · d_sq² = Δx² + Δy² · d_hex² = Δa² + Δa Δb + Δb² · D(P) ≥ n²(n − 1)² / Q(P)) reappears across coupled multiscale systems.
Living Edition & Revision Provenance (REV 1.0): REV 1.0 (Published 2026-12-01): Volume VII Mathematics folio on Erdős distinct distances in the plane, pairing integer norms on square grids and clipped Eisenstein hexagons with Cauchy–Schwarz quadruple bounds and rational 3D rigid-motion line intersections. Independent verification: all seven cited DOIs resolved on Crossref and Scite on 2026-12-01 with zero retraction notices; preprint abstracts (arXiv:1005.0982, arXiv:1011.4105, arXiv:1102.5391) were read and cited strictly for what those abstracts state. All lattice counts, Pythagorean collisions, crossing guards, and 3D Fraction line intersections are recomputed offline by skills/math/m18/verify_m18_distinct_distances.py (with --planted-defect). By pairing multi-chapter mathematical and physical derivations with interactive WebGL2/SVG observatories and downloadable SKILL.md companions, Folio M.18 equips engineers, mathematicians, physicists, and AI agents with a permanent, falsifiable building block for frontier discovery.
Act V — Sources
Erdős, P. (1946). On Sets of Distances of n Points. The American Mathematical Monthly, 53(5), 248–250. DOI 10.2307/2305092[Scite ↗].
Szemerédi, E., & Trotter, W. T. (1983). Extremal problems in discrete geometry. Combinatorica, 3(3–4), 381–392. DOI 10.1007/BF02579194[Scite ↗].
Székely, L. A. (1997). Crossing Numbers and Hard Erdős Problems in Discrete Geometry. Combinatorics, Probability and Computing, 6(3), 353–358. DOI 10.1017/S0963548397002976[Scite ↗].
Solymosi, J., & Vu, V. H. (2008). Near optimal bounds for the Erdős distinct distances problem in high dimensions. Combinatorica, 28(1), 113–125. DOI 10.1007/s00493-008-2099-1[Scite ↗].
Elekes, G., & Sharir, M. (2011). Incidences in Three Dimensions and Distinct Distances in the Plane. Combinatorics, Probability and Computing, 20(4), 571–608. DOI 10.1017/S0963548311000137[Scite ↗]. Preprint: arXiv:1005.0982.
Kaplan, H., Matoušek, J., & Sharir, M. (2012). Simple Proofs of Classical Theorems in Discrete Geometry via the Guth–Katz Polynomial Partitioning Technique. Discrete & Computational Geometry, 48(3), 499–517. DOI 10.1007/s00454-012-9443-3[Scite ↗]. Preprint: arXiv:1102.5391.
Nicholson, J. M., et al. (2021). scite: A smart citation index that displays the context of citations and classifies their intent using deep learning (https://scite.ai). Quantitative Science Studies, 2(3), 882–898. DOI 10.1162/qss_a_00146[Scite ↗].
Folio M.18 · Planar Distinct Distances & 3D Line Lifts Crossword
Inspired by classic broadsheet crosswords: test your command of M.18’s governing laws and historical turning points. Switch to ES-MX in the masthead to unlock a completely independent Spanish crossword with its own grid and scientific vocabulary.
EN · INDEPENDENT ENGLISH EDITION (10×10)
0 / 64 Folios Sealed (EN: 0 · ES-MX: 0)
1 ACROSSSelect any cell or clue below to begin solving.
Across
Down
Select any cell or clue and type A–Z. Space toggles Across/Down; progress auto-saves to localStorage.
For builders: method, tools and edition history
FolioM.18 · Planar Distinct Distances & 3D Rigid-Motion Line Lifts · REV 1.0 · VOL. 07
KernelsSquare Grid S_m · Eisenstein Hexagon H_R · Cauchy–Schwarz Quadruples · Rational 3D SE+(2) Line Lift
Scite Smart Citation Index entry for Guth & Katz, "On the Erdős distinct distances problem in the plane" (Annals of Mathematics, DOI 10.4007/annals.2015.181.1.2), fetched 2026-12-01 [observed: Scite ML citation classification, accessed 2026-12-01]: 546 citing publications, with 10 supporting, 738 mentioning, and 0 contrasting classified citation statements, and no retraction notice. Citing publications and classified citation statements are distinct counts, and describe that paper rather than this folio.
Give any AI agent or engineering pipeline the governing equations of Folio M.18: a portable SKILL.md, a zero-dependency Python verifier (verify_m18_distinct_distances.py), or the live telemetry as JSON.
Show the SKILL.md source
---
name: planar-distinct-distances
description: AI-agnostic skill for Erdős distinct distances in the plane: integer norms on square grids and clipped Eisenstein hexagons, Cauchy–Schwarz quadruple bounds, crossing-number density guards, and rational 3D rigid-motion line lifts.
license: MIT
compatibility: Claude Code, GitHub Copilot, Cursor, Google Antigravity, OpenAI Codex, Ollama (Qwen 3.8 / Gemma 4)
---
# Distinct Distances in the Plane: Square vs. Hexagonal Lattices, Rigid-Motion Lifts & the Open Log-Root Gap (Folio M.18)
A plain-text companion to the essay at https://informatico.ai/math/m18/ (`M.18 · Planar Distinct Distances & 3D Rigid-Motion Line Lifts · REV 1.0`, `REV 1.0`, redated `2026-12-01`).
## The governing relation
`Ω(n / log n) ≤ g(n) ≤ O(n / √log n) · d_sq² = Δx² + Δy² · d_hex² = Δa² + Δa Δb + Δb² · D(P) ≥ n²(n − 1)² / Q(P)`
## Rules the essay derives
1. Deduplicate planar lattice distances via integer quadratic forms (Δx² + Δy² on Z² and Δa² + Δa Δb + Δb² on the 60-degree Eisenstein lattice) rather than floating-point square roots.
2. Clip finite 60-degree lattice samples to the symmetric hexagon H_R = {|a|, |b|, |a + b| ≤ R} (3R(R + 1) + 1 points) rather than an unclipped m × m rhombus, and state plainly that H_R is an upper-bound construction rather than a global minimum.
3. Enforce the edge-density guard e ≥ 4v before applying the cubic crossing-number bound cr(G) ≥ e³ / (64 v²), falling back to Euler's linear floor max(0, e − 3v + 6) on sparser graphs.
4. Separate unit-prefactor scaling curves (n / ln n and n / √(ln n) with c = 1) from asymptotic Ω and O theorems whose constants are not calibrated on small grids.
## How it works, in four stages
- Stage 1 (Two-Circle Intersections and Integer Lattice Ceilings): Pick any two distinct points p_1 and p_2 from an n-point planar set P with D = D(P) non-zero pairwise distances. Every remaining point lies on one of D concentric circles around p_1 and one of D concentric circles around p_2, and two distinct circles meet in at most 2 points, giving n − 2 ≤ 2 D² and the elementary floor D(P) ≥ ⌈√((n − 2)/2)⌉. On the upper side (Erdős 1946, DOI 10.2307/2305092), the m × m square grid S_m = {0..m − 1}² keeps squared distances inside integers Δx² + Δy² ≤ 2(m − 1)². At m = 6 (36 points), the 3–4–5 Pythagorean tie 0² + 5² = 3² + 4² = 25 drops 20 offset pairs to D_sq(6) = 19.
- Stage 2 (Clipped Eisenstein Hexagons vs. Unclipped Rhombi): Replacing the square grid with the 60-degree triangular lattice (x, y) = (a + b/2, (√3/2) b) turns squared distances into Eisenstein integer norms Δa² + Δa Δb + Δb². Shape matters as much as lattice angle: an unclipped 6 × 6 sixty-degree rhombus {0..5}² stretches its obtuse diagonal to 3 × 5² = 75 and yields 20 distinct distances—one worse than S_6. Clipping to the symmetric hexagonal patch H_R = {|a|, |b|, |a + b| ≤ R} of n_hex = 3R(R + 1) + 1 points caps the norm at 4R²; at R = 3, H_3 holds 37 points yet determines 15 distinct distances (ratio D_hex √(ln 37) / 37 = 0.7704 vs. 0.9991 on S_6).
- Stage 3 (Cauchy–Schwarz Quadruples and Crossing-Number Bounds): Writing m_r for the number of ordered point pairs at distance r > 0 gives ∑ m_r = n(n − 1) and equal-length quadruple count Q(P) = ∑ m_r². Cauchy–Schwarz yields D(P) ≥ n²(n − 1)² / Q(P), producing integer lower bounds of 14 on S_6 (Q = 115,120) and 11 on H_3 (Q = 175,248). To bound Q(P) or point-curve incidences on arbitrary point sets, Székely (1997, DOI 10.1017/S0963548397002976) combined Szemerédi–Trotter incidence geometry (1983, DOI 10.1007/BF02579194) with graph crossing numbers: Euler's planar edge ceiling e ≤ 3v − 6 gives cr(G) ≥ e − 3v + 6, and vertex sampling at p = 4v / e when e ≥ 4v yields cr(G) ≥ e³ / (64 v²).
- Stage 4 (Elekes–Sharir–Guth–Katz 3D Rigid-Motion Line Lifts and the Open Gap): Elekes and Sharir (2011, DOI 10.1017/S0963548311000137; arXiv:1005.0982) mapped equal-length pairs (p, q) and (p', q') to orientation-preserving planar rigid motions carrying p to p' and q to q'. Parameterizing proper rotations by center (c_x, c_y) and z = cot(θ/2) sends (p, p') to an affine line ℓ_{p,p'}(z) in ℝ³. Across all 5,184 ordered pair-quadruples of S_3, this folio's rational verifier finds 0 false intersections and splits all 1,248 equal-length quadruples into 968 finite-z rotations (280 half-turns at z = 0) plus 280 parallel translations. Guth and Katz (2015, DOI 10.4007/annals.2015.181.1.2; arXiv:1011.4105) applied polynomial ham-sandwich partitioning and Salmon's flecnode polynomial on ruled surfaces to reach g(n) ≥ c n / log n, leaving the √(log n) gap to O(n / √log n) open.
## Reference values stated in the essay
- **Square Grid S_m Distances**: `S_6 (36 pts): D_sq = 19 · D_sq √(ln n)/n = 0.9991 · floor ⌈√((n−2)/2)⌉ = 5`
- **Hexagonal Patch H_R Distances**: `H_3 (37 pts): D_hex = 15 · D_hex √(ln n)/n = 0.7704 (unclipped 6×6 rhombus: 20)`
- **Unit-Prefactor Curves (c = 1 at n_hex)**: `c = 1 curves (n = 37): n^(4/5) = 17.9706 · n/ln n = 10.2467 · √(ln n) = 1.9002`
- **3D Lift & Open Window (Fixed Text)**: `Fixed Text · S_3 lift: 968 rot. + 280 trans. = 1,248 quads · Ω(n/log n) vs. O(n/√log n)`
## Check it yourself
This skill ships a verifier that recomputes its values. Its planted-defect mode must fail:
```
python skills/math/m18/verify_m18_distinct_distances.py
python skills/math/m18/verify_m18_distinct_distances.py --planted-defect
```
## Primary source
- https://doi.org/10.4007/annals.2015.181.1.2 (Scite report: https://scite.ai/reports/10.4007/annals.2015.181.1.2)
- What the essay compares against: Computed offline: S_6 (36 pts, D_sq = 19, Q = 115,120, CS floor = 14, D√(ln n)/n = 0.9991) · H_3 (37 pts, D_hex = 15, Q = 175,248, CS floor = 11, D√(ln n)/n = 0.7704, unclipped 6×6 rhombus = 20) · S_3 3D lift (5,184 quadruples: 968 finite-z rotations + 280 translations = 1,248, 0 false intersections)
## Recent research context
- **Hexagonal Norms Hold 37 Points to 15 Distances While 3D Rigid-Motion Lines Lift the General Floor**: Integer norm enumeration gives 19 distances on S_6 (36 points) and 15 on the clipped Eisenstein hexagon H_3 (37 points, vs. 20 on an unclipped 6×6 rhombus), while rational 3D line lifting on S_3 decomposes all 1,248 equal-length quadruples into 968 rotations plus 280 translations alongside the open gap between Ω(n / log n) and O(n / √log n).
#!/usr/bin/env python3
"""Independent offline verifier for Folio M.18 (Erdos Distinct Distances in the Plane).
Standard library only (fractions, json, math, re, sys, pathlib). Recomputes from first principles:
1. Exact integer squared-distance sets, Pythagorean collision witnesses, ordered-pair
multiplicities, Cauchy-Schwarz quadruple lower bounds, and elementary two-circle
intersection floors on the m x m square grid S_m = {0..m-1}^2.
2. Exact integer Eisenstein norms da^2 + da*db + db^2 on the 60-degree hexagonal patch
H_R = {(a, b) in Z^2 : |a| <= R, |b| <= R, |a + b| <= R} (n_hex = 3*R*(R+1) + 1),
contrasted against the unclipped m x m 60-degree rhombus whose obtuse diagonal
inflates the maximum squared distance to 3*(m-1)^2.
3. Self-contained crossing-number inequality pieces: Euler's planar floor e - 3v + 6
and the dense-graph threshold e >= 4v required before applying e^3 / (64 * v^2).
4. Exact rational verification (fractions.Fraction) of the Elekes-Sharir-Guth-Katz
3D rigid-motion line-lifting bijection l_{p, p'}(z) and l_{q, q'}(z) across all
5,184 ordered pair-quadruples of S_3 (9 points, 72 ordered pairs), recording zero
false intersections on unequal lengths and decomposing pairs into finite-z proper
rotations (including z = 0 half-turns) plus z = infinity pure translations.
5. Exact parity with src/modules/solvers.mjs and the built English and Mexican Spanish
M.18 pages once generated.
Usage:
python skills/math/m18/verify_m18_distinct_distances.py
python skills/math/m18/verify_m18_distinct_distances.py --planted-defect
python skills/math/m18/verify_m18_distinct_distances.py --planted-defect=euclidean-on-axial
python skills/math/m18/verify_m18_distinct_distances.py --planted-defect=crossing-below-4v
"""
from __future__ import annotations
import json
import math
import re
import sys
from fractions import Fraction
from pathlib import Path
ROOT = Path(__file__).resolve().parents[3]
SOLVERS_JS = ROOT / "src" / "modules" / "solvers.mjs"
PAGES = (
ROOT / "src" / "math" / "m18" / "index.html",
ROOT / "src" / "es-mx" / "math" / "m18" / "index.html",
)
_DEFECT_ARG = next((a for a in sys.argv[1:] if a.startswith("--planted-defect")), "")
DEFECT = (_DEFECT_ARG.split("=", 1)[1] if "=" in _DEFECT_ARG else "unclipped-rhombus") if _DEFECT_ARG else ""
VALID_DEFECTS = {"", "unclipped-rhombus", "euclidean-on-axial", "crossing-below-4v"}
REF_M = 6
REF_R = 3
def two_circle_floor(n: int) -> int:
"""Elementary lower bound ceil(sqrt((n - 2) / 2)) from two-circle intersections."""
if not isinstance(n, int) or isinstance(n, bool) or n < 2:
raise ValueError("Point count n must be an integer >= 2")
if n <= 4:
return 1
return math.isqrt((n - 3) // 2) + 1
def scaling_reference_curves(n: int) -> dict[str, float]:
"""Unit-prefactor (c = 1, natural log) scaling curves evaluated at point count n >= 4."""
if not isinstance(n, int) or isinstance(n, bool) or n < 4:
raise ValueError("Scaling curves require an integer point count n >= 4")
ln_n = math.log(n)
sqrt_ln = math.sqrt(ln_n)
return {
"n": float(n),
"ln_n": ln_n,
"sqrt_ln_n": sqrt_ln,
"szekely_n_4_5": math.pow(n, 0.8),
"guth_katz_unit": n / ln_n,
"erdos_grid_unit": n / sqrt_ln,
}
def square_grid_metrics(m: int) -> dict:
"""Exact distance and quadruple counts on the m x m integer square grid S_m."""
if not isinstance(m, int) or isinstance(m, bool) or m < 2:
raise ValueError("Square grid side m must be an integer >= 2")
pts = [(x, y) for x in range(m) for y in range(m)]
n = len(pts)
mult: dict[int, int] = {}
for i in range(n):
x1, y1 = pts[i]
for j in range(n):
if i == j:
continue
dx = pts[j][0] - x1
dy = pts[j][1] - y1
d2 = dx * dx + dy * dy
mult[d2] = mult.get(d2, 0) + 1
offset_norms: dict[int, list[tuple[int, int]]] = {}
for a in range(m):
for b in range(a, m):
if a == 0 and b == 0:
continue
d2 = a * a + b * b
offset_norms.setdefault(d2, []).append((a, b))
collisions = {d2: pairs for d2, pairs in sorted(offset_norms.items()) if len(pairs) > 1}
distinct = len(mult)
total_ordered_pairs = n * (n - 1)
quadruples = sum(c * c for c in mult.values())
cs_floor = (total_ordered_pairs * total_ordered_pairs + quadruples - 1) // quadruples
erdos_ratio = distinct * math.sqrt(math.log(n)) / n
return {
"m": m,
"points": n,
"distinct_distances": distinct,
"max_d2": 2 * (m - 1) * (m - 1),
"ordered_pairs": total_ordered_pairs,
"equal_length_quadruples": quadruples,
"cauchy_schwarz_floor": cs_floor,
"two_circle_floor": two_circle_floor(n),
"erdos_norm_ratio": erdos_ratio,
"collision_count": len(collisions),
"collisions": collisions,
}
def unclipped_rhombus_distances(m: int) -> int:
"""Distinct Eisenstein norms on the unclipped m x m 60-degree rhombus {0..m-1}^2."""
if not isinstance(m, int) or isinstance(m, bool) or m < 2:
raise ValueError("Rhombus side m must be an integer >= 2")
pts = [(a, b) for a in range(m) for b in range(m)]
norms: set[int] = set()
for i, (a1, b1) in enumerate(pts):
for j, (a2, b2) in enumerate(pts):
if i == j:
continue
da = a2 - a1
db = b2 - b1
norms.add(da * da + da * db + db * db)
return len(norms)
def eisenstein_hex_metrics(
radius: int,
*,
unclipped_rhombus_side: int | None = None,
axial_euclidean_bug: bool = False,
) -> dict:
"""Exact distance and quadruple counts on the 60-degree hexagonal patch H_R."""
if not isinstance(radius, int) or isinstance(radius, bool) or radius < 1:
raise ValueError("Hexagon radius R must be an integer >= 1")
if unclipped_rhombus_side is not None:
pts = [(a, b) for a in range(unclipped_rhombus_side) for b in range(unclipped_rhombus_side)]
else:
pts = [
(a, b)
for a in range(-radius, radius + 1)
for b in range(-radius, radius + 1)
if abs(a + b) <= radius
]
n = len(pts)
mult: dict[int, int] = {}
for i, (a1, b1) in enumerate(pts):
for j, (a2, b2) in enumerate(pts):
if i == j:
continue
da = a2 - a1
db = b2 - b1
d2 = (da * da + db * db) if axial_euclidean_bug else (da * da + da * db + db * db)
mult[d2] = mult.get(d2, 0) + 1
diff_set_norms = {
(da * da + db * db) if axial_euclidean_bug else (da * da + da * db + db * db)
for da in range(-2 * radius, 2 * radius + 1)
for db in range(-2 * radius, 2 * radius + 1)
if (da != 0 or db != 0) and abs(da + db) <= 2 * radius
}
distinct = len(mult)
total_ordered_pairs = n * (n - 1)
quadruples = sum(c * c for c in mult.values())
cs_floor = (total_ordered_pairs * total_ordered_pairs + quadruples - 1) // quadruples
erdos_ratio = distinct * math.sqrt(math.log(n)) / n
return {
"radius": radius,
"points": n,
"expected_hex_points": 3 * radius * (radius + 1) + 1,
"distinct_distances": distinct,
"difference_disk_matches": (unclipped_rhombus_side is None and distinct == len(diff_set_norms)),
"max_d2": max(mult) if mult else 0,
"ordered_pairs": total_ordered_pairs,
"equal_length_quadruples": quadruples,
"cauchy_schwarz_floor": cs_floor,
"two_circle_floor": two_circle_floor(n),
"erdos_norm_ratio": erdos_ratio,
}
def crossing_lower_bound(vertices: int, edges: int, *, ignore_density_guard: bool = False) -> float:
"""Crossing-number lower bound: cubic bound e^3/(64*v^2) for e >= 4v, else Euler floor."""
if (
not isinstance(vertices, int)
or isinstance(vertices, bool)
or not isinstance(edges, int)
or isinstance(edges, bool)
or vertices < 3
or edges < 0
):
raise ValueError("Crossing bound requires integer vertices >= 3 and edges >= 0")
euler_floor = float(max(0, edges - 3 * vertices + 6))
if ignore_density_guard or edges >= 4 * vertices:
return max(euler_floor, (edges ** 3) / (64.0 * vertices * vertices))
return euler_floor
def lift_line_intersection_exact(
p: tuple[int, int],
p_prime: tuple[int, int],
q: tuple[int, int],
q_prime: tuple[int, int],
) -> tuple[str, tuple[Fraction, Fraction, Fraction] | None]:
"""Exact Fraction intersection of Elekes-Sharir 3D rigid-motion lines l_{p,p'} and l_{q,q'}.
Line l_{a, b}(z) = ((a_x + b_x)/2 - ((b_y - a_y)/2)*z, (a_y + b_y)/2 + ((b_x - a_x)/2)*z, z)
represents all proper planar rotations by angle theta = 2*arccot(z) mapping a -> b
(including 180-degree half-turns at z = 0). Pure translations correspond to z = infinity.
"""
if p == q or p_prime == q_prime:
raise ValueError("Distinct endpoints p != q and p_prime != q_prime are required")
ux = Fraction(p_prime[0] - p[0])
uy = Fraction(p_prime[1] - p[1])
vx = Fraction(q_prime[0] - q[0])
vy = Fraction(q_prime[1] - q[1])
mx_diff = Fraction((q[0] + q_prime[0]) - (p[0] + p_prime[0]), 2)
my_diff = Fraction((q[1] + q_prime[1]) - (p[1] + p_prime[1]), 2)
# Solve -(uy/2)*z + (vy/2)*z = mx_diff and (ux/2)*z - (vx/2)*z = my_diff
coef_x = Fraction(vy - uy, 2)
coef_y = Fraction(ux - vx, 2)
if coef_x == 0 and coef_y == 0:
# Parallel direction vectors in R^3: u == v, i.e. q' - p' == q - p (pure translation).
if mx_diff == 0 and my_diff == 0:
return ("identical_line", None)
return ("translation_at_infinity", None)
z = (mx_diff / coef_x) if coef_x != 0 else (my_diff / coef_y)
if coef_x * z != mx_diff or coef_y * z != my_diff:
return ("skew_no_intersection", None)
cx = Fraction(p[0] + p_prime[0], 2) - Fraction(uy, 2) * z
cy = Fraction(p[1] + p_prime[1], 2) + Fraction(ux, 2) * z
return ("proper_rotation", (cx, cy, z))
def apply_rational_rotation(
pt: tuple[int, int],
center: tuple[Fraction, Fraction],
z: Fraction,
) -> tuple[Fraction, Fraction]:
"""Apply exact rational rotation around center by theta with cot(theta/2) = z."""
# cos(theta) = (z^2 - 1)/(z^2 + 1), sin(theta) = 2z/(z^2 + 1) when theta moves p -> p'
# Check orientation sign from l_{p, p'}: p - c = (-dx/2 + (dy/2)*z, -dy/2 - (dx/2)*z)
denom = z * z + 1
cos_t = (z * z - 1) / denom
sin_t = (2 * z) / denom
rx = Fraction(pt[0]) - center[0]
ry = Fraction(pt[1]) - center[1]
return (
center[0] + cos_t * rx - sin_t * ry,
center[1] + sin_t * rx + cos_t * ry,
)
def verify_elekes_sharir_lift(grid_side: int = 3) -> dict:
"""Exhaustively check the 3D rigid-motion line-lifting bijection on S_{grid_side}."""
if not isinstance(grid_side, int) or isinstance(grid_side, bool) or grid_side < 2:
raise ValueError("Lift grid side must be an integer >= 2")
pts = [(x, y) for x in range(grid_side) for y in range(grid_side)]
pairs = [(p, q) for p in pts for q in pts if p != q]
equal_quads = 0
proper_rotations = 0
half_turns_z0 = 0
translations = 0
false_intersections = 0
bijection_mismatches = 0
for p, q in pairs:
d2_pq = (q[0] - p[0]) ** 2 + (q[1] - p[1]) ** 2
for p_prime, q_prime in pairs:
d2_ppqq = (q_prime[0] - p_prime[0]) ** 2 + (q_prime[1] - p_prime[1]) ** 2
kind, witness = lift_line_intersection_exact(p, p_prime, q, q_prime)
same_len = (d2_pq == d2_ppqq)
if same_len:
equal_quads += 1
if kind == "proper_rotation" and witness is not None:
proper_rotations += 1
cx, cy, z = witness
if z == 0:
half_turns_z0 += 1
img_p = apply_rational_rotation(p, (cx, cy), z)
img_q = apply_rational_rotation(q, (cx, cy), z)
if img_p != (Fraction(p_prime[0]), Fraction(p_prime[1])) or img_q != (
Fraction(q_prime[0]),
Fraction(q_prime[1]),
):
bijection_mismatches += 1
elif kind == "translation_at_infinity":
translations += 1
if (q[0] - p[0], q[1] - p[1]) != (q_prime[0] - p_prime[0], q_prime[1] - p_prime[1]):
bijection_mismatches += 1
else:
bijection_mismatches += 1
else:
if kind != "skew_no_intersection":
false_intersections += 1
return {
"grid_side": grid_side,
"points": len(pts),
"ordered_pairs": len(pairs),
"pair_quadruples_checked": len(pairs) * len(pairs),
"equal_length_quadruples": equal_quads,
"proper_rotations_finite_z": proper_rotations,
"half_turns_at_z0": half_turns_z0,
"pure_translations_at_infinity": translations,
"false_intersections": false_intersections,
"bijection_mismatches": bijection_mismatches,
}
def main() -> int:
if DEFECT not in VALID_DEFECTS:
print(json.dumps({"status": "FAIL", "folio_id": "M.18", "error": f"Unknown defect {DEFECT!r}"}))
return 2
failures: list[str] = []
sq6 = square_grid_metrics(REF_M)
sq3 = square_grid_metrics(3)
sq10 = square_grid_metrics(10)
rhombus6 = unclipped_rhombus_distances(REF_M)
hex3 = eisenstein_hex_metrics(
REF_R,
unclipped_rhombus_side=(REF_M if DEFECT == "unclipped-rhombus" else None),
axial_euclidean_bug=(DEFECT == "euclidean-on-axial"),
)
hex5 = eisenstein_hex_metrics(5)
curves37 = scaling_reference_curves(37)
lift3 = verify_elekes_sharir_lift(3)
# 1. Square grid S_6 invariants
if sq6["points"] != 36 or sq6["distinct_distances"] != 19:
failures.append(f"Expected S_6 (36 pts) to have 19 distinct distances, got {sq6}")
if sq6["collisions"].get(25) != [(0, 5), (3, 4)]:
failures.append(f"Expected Pythagorean collision d^2=25: [(0,5),(3,4)], got {sq6['collisions']}")
if abs(sq6["erdos_norm_ratio"] - 0.999093) > 1e-5:
failures.append(f"Unexpected S_6 normalized ratio {sq6['erdos_norm_ratio']:.6f}")
if sq6["two_circle_floor"] != 5 or sq6["cauchy_schwarz_floor"] != 14:
failures.append(f"Invalid S_6 lower bounds: {sq6}")
# 2. Hexagonal Eisenstein patch H_3 invariants vs S_6 and unclipped 6x6 rhombus
if hex3["points"] != 37 or hex3["points"] != hex3["expected_hex_points"]:
failures.append(f"Expected H_3 to contain 37 = 3*3*4 + 1 points, got {hex3['points']}")
if hex3["distinct_distances"] != 15:
failures.append(f"Expected H_3 (37 pts) to determine 15 distinct distances, got {hex3['distinct_distances']}")
if not hex3["difference_disk_matches"]:
failures.append("H_3 pairwise distances failed to match H_6 difference disk")
if not (hex3["distinct_distances"] < sq6["distinct_distances"] < rhombus6):
failures.append(
f"Expected H_3 ({hex3['distinct_distances']}) < S_6 ({sq6['distinct_distances']}) < rhombus_6 ({rhombus6})"
)
if rhombus6 != 20:
failures.append(f"Expected unclipped 6x6 60-degree rhombus to yield 20 distances, got {rhombus6}")
if abs(hex3["erdos_norm_ratio"] - 0.770368) > 1e-5:
failures.append(f"Unexpected H_3 normalized ratio {hex3['erdos_norm_ratio']:.6f}")
# 3. Crossing-number density threshold check on planar K_4 (v=4, e=6, cr(K_4)=0) and dense K_20 (v=20, e=190)
k4_lb = crossing_lower_bound(4, 6, ignore_density_guard=(DEFECT == "crossing-below-4v"))
if k4_lb > 0.0:
failures.append(f"Crossing bound violated planar K_4 (cr=0) with lower bound {k4_lb:.6f} when e < 4v")
k7_lb = crossing_lower_bound(7, 21)
if k7_lb != 6.0:
failures.append(f"Expected Euler floor 6.0 on K_7, got {k7_lb}")
k20_lb = crossing_lower_bound(20, 190)
if abs(k20_lb - (190 ** 3) / (64.0 * 400.0)) > 1e-9:
failures.append(f"Unexpected dense crossing bound on K_20 (v=20, e=190): {k20_lb}")
# 4. Exact rational Elekes-Sharir 3D rigid-motion line-lifting bijection on S_3
if (
lift3["equal_length_quadruples"] != sq3["equal_length_quadruples"]
or lift3["equal_length_quadruples"] != 1248
or lift3["proper_rotations_finite_z"] != 968
or lift3["half_turns_at_z0"] != 280
or lift3["pure_translations_at_infinity"] != 280
or lift3["false_intersections"] != 0
or lift3["bijection_mismatches"] != 0
):
failures.append(f"Elekes-Sharir 3D line-lifting bijection check failed: {lift3}")
# 5. Built HTML & JS solver parity when pages are present on disk
if SOLVERS_JS.is_file() and all(p.is_file() for p in PAGES):
js = SOLVERS_JS.read_text(encoding="utf-8")
if 'slug === "m18"' not in js:
failures.append("src/modules/solvers.mjs missing m18 branch")
for page in PAGES:
txt = page.read_text(encoding="utf-8")
for token in ("0.9991", "0.7704", "17.9706", "10.2467", "1.9002", "Fixed Text"):
if token not in txt:
failures.append(f"{page.relative_to(ROOT)} missing expected token {token!r}")
status = "FAIL" if failures else "PASS"
report = {
"status": status,
"folio_id": "M.18",
"planted_defect": DEFECT or None,
"s6": {
"points": sq6["points"],
"distinct_distances": sq6["distinct_distances"],
"erdos_norm_ratio": round(sq6["erdos_norm_ratio"], 6),
"equal_length_quadruples": sq6["equal_length_quadruples"],
"cauchy_schwarz_floor": sq6["cauchy_schwarz_floor"],
"two_circle_floor": sq6["two_circle_floor"],
"pythagorean_d2_25": sq6["collisions"].get(25),
},
"s10": {
"points": sq10["points"],
"distinct_distances": sq10["distinct_distances"],
"erdos_norm_ratio": round(sq10["erdos_norm_ratio"], 6),
},
"h3": {
"points": hex3["points"],
"distinct_distances": hex3["distinct_distances"],
"erdos_norm_ratio": round(hex3["erdos_norm_ratio"], 6),
"equal_length_quadruples": hex3["equal_length_quadruples"],
"cauchy_schwarz_floor": hex3["cauchy_schwarz_floor"],
"unclipped_rhombus_6x6": rhombus6,
},
"h5": {
"points": hex5["points"],
"distinct_distances": hex5["distinct_distances"],
"erdos_norm_ratio": round(hex5["erdos_norm_ratio"], 6),
},
"scaling_at_n37": {k: round(v, 6) for k, v in curves37.items()},
"elekes_sharir_s3_lift": lift3,
"failures": failures,
}
print(json.dumps(report, indent=2))
return 1 if failures else 0
if __name__ == "__main__":
raise SystemExit(main())
Edition history & reviewPublished 2026-12-01 · Updated 2026-12-01 (REV 1.0)
REV 1.0 (Published 2026-12-01): Volume VII Mathematics folio on Erdős distinct distances in the plane, pairing integer norms on square grids and clipped Eisenstein hexagons with Cauchy–Schwarz quadruple bounds and rational 3D rigid-motion line intersections.
Independent verification: all seven cited DOIs resolved on Crossref and Scite on 2026-12-01 with zero retraction notices; preprint abstracts (arXiv:1005.0982, arXiv:1011.4105, arXiv:1102.5391) were read and cited strictly for what those abstracts state. All lattice counts, Pythagorean collisions, crossing guards, and 3D Fraction line intersections are recomputed offline by skills/math/m18/verify_m18_distinct_distances.py (with --planted-defect).