Progresiones Aritméticas de Tres Términos: Esferas de Behrend, Sesgo de Fourier y Cotas de Kelley–Meka
Cómo Paul Erdős y Pál Turán preguntaron si la densidad positiva fuerza tres enteros equiespaciados, cómo Felix Behrend ocultó conjuntos densos en esferas de alta dimensión, cómo Klaus Roth usó ondas armónicas y cómo Zander Kelley y Raghu Meka alcanzaron cotas cuasi-polinomiales.
Por qué importa
Una recta corta una esfera en a lo más dos puntos: al codificar coordenadas esféricas en una base amplia sin acarreos, emergen conjuntos sorprendentemente densos sin ningún trío equiespaciado.
Conceptual Vision Plate M.16-V (Imagining What It Would Look Like) · Conceptual visualization imagining what a curved glass bowl holding latitude-ring spheres beside an unnumbered carry-free walnut abacus and a two-source ripple tank would look like (artistic impression, not a measured structure or specification; exact structure and specifications are kept strictly intact in the deterministic Plate below).
Sobre esta ilustraciónThis 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.16-A and Plate M.16-B below.Sinopsis Ejecutiva en Español · Folio M.16
Actos I y II — Historia, ley gobernante e intuición cotidiana:Progresiones Aritméticas de Tres Términos: Esferas de Behrend, Sesgo de Fourier y Cotas de Kelley–Meka — Cómo Paul Erdős y Pál Turán preguntaron si la densidad positiva fuerza tres enteros equiespaciados, cómo Felix Behrend ocultó conjuntos densos en esferas de alta dimensión, cómo Klaus Roth usó ondas armónicas y cómo Zander Kelley y Raghu Meka alcanzaron cotas cuasi-polinomiales. Este monográfico interactivo verifica la ley gobernante For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9)). Por qué importa en la vida real: Una recta corta una esfera en a lo más dos puntos: al codificar coordenadas esféricas en una base amplia sin acarreos, emergen conjuntos sorprendentemente densos sin ningún trío equiespaciado.
En Palabras Sencillas (Explicación Accesible): En palabras sencillas, tres enteros forman un trío equiespaciado cuando el número central queda justo a mitad de camino entre los extremos, como cinco, ocho y once. ¿Cuántos números desde uno hasta un tope elegido podemos conservar sin formar ni un solo trío equiespaciado? Una receta clásica en base tres descarta todo número cuya escritura ternaria use el dígito dos, dejando un polvo fractal disperso. Seis años después, Raphaël Salem y Donald Spencer construyeron conjuntos libres de progresiones más densos. Cuatro años más tarde, Felix Behrend colocó coordenadas de varios dígitos sobre un cascarón esférico de alta dimensión. Una recta corta una esfera en a lo más dos sitios, así que tres puntos distintos del cascarón jamás quedan alineados. Desde arriba, Klaus Roth mostró que los conjuntos densos contienen tríos, y herramientas recientes de ciencias de la computación estrecharon la brecha restante.
Mecanismo Técnico, Fuerzas en Competencia y Umbral Crítico: Para subconjuntos A ⊆ {1, …, N} sin progresiones no triviales x + z = 2y, Erdős y Turán (1936, DOI 10.1112/jlms/s1-11.4.261) introdujeron r_3(N) y registraron el conjunto ternario de Szekeres, escrito aquí C_3(N) de escala N^(log_3 2) ≈ N^0.63093. Nuestro script fuera de línea recomputa r_3(1..24) (con r_3(9) = 5 > |C_3(9)| = 4, r_3(14) = 8, r_3(20) = 9 y r_3(24) = 10) y evalúa los cascarones esféricos de Behrend (1946, DOI 10.1073/pnas.32.12.331; refinados por Elkin 2011, DOI 10.1007/s11856-011-0061-1, y Green & Wolf 2010, DOI 10.1007/978-0-387-68361-4_9) en base b = 2d − 1, donde 0 ≤ x_i + z_i ≤ 2d − 2 < b impide acarreos y toda cuerda recta entre dos puntos distintos cae en el interior estricto de la esfera (dando |B(5, 4)| = 30 en R*² = 18 dentro de N = 6,561; al mover los controles se actualizan las dos primeras tarjetas, las curvas, las barras y el estado superior, mientras la tercera tarjeta con pico 5.15 en N = 20, la cuarta tarjeta y ocho leyendas permanecen fijas). Mientras Roth (1953, DOI 10.1112/jlms/s1-28.1.104) probó O(N / log log N) con el método continuo del círculo, este folio discretiza la ortogonalidad en el grupo cíclico impar Z_{2N+1} mediante T(A) = (1/M) ∑ Â(r)² conj(Â(2r mod M)); por su parte, Kelley y Meka (2023, DOI 10.1109/focs57990.2023.00059) obtuvieron exp(−c (log N)^(1/12)) N mediante cribado en espacio físico, expuesto en β = 1/12 por Bloom y Sisask (2023, DOI 10.2140/ent.2023.2.15) y afinado a β = 1/9 en el preprint arXiv:2309.02353, dejando abierta β ∈ [1/9, 1/2].
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 — Cool Fact & Human Story: Equally Spaced Footsteps, Curved Spheres, and a Seventy-Year Log Barrier
Paul Erdős and Pál Turán asked in nineteen thirty-six how many integer pebbles can sit along a chalk number line without three landing an equal stride apart. Pick one, two, four, and five, and no pebble sits halfway between two others. Add three, six, seven, or eight, and an evenly spaced triplet appears at once. Erdős and Turán conjectured that any subset holding a fixed positive share of the whole numbers must eventually contain such a trio. Ten years later at Melbourne, Felix Behrend arranged progression-free sets along thin spherical shells in high dimensions. Because round curvature bends away from every straight chord, no three distinct points on one sphere can share a line. Klaus Roth settled the positive-density question in nineteen fifty-three through harmonic waves, and Zander Kelley with Raghu Meka reached quasi-polynomial upper bounds in twenty twenty-three.
En Palabras Sencillas · Explicación Accesible
En palabras sencillas, tres enteros forman un trío equiespaciado cuando el número central queda justo a mitad de camino entre los extremos, como cinco, ocho y once. ¿Cuántos números desde uno hasta un tope elegido podemos conservar sin formar ni un solo trío equiespaciado? Una receta clásica en base tres descarta todo número cuya escritura ternaria use el dígito dos, dejando un polvo fractal disperso. Seis años después, Raphaël Salem y Donald Spencer construyeron conjuntos libres de progresiones más densos. Cuatro años más tarde, Felix Behrend colocó coordenadas de varios dígitos sobre un cascarón esférico de alta dimensión. Una recta corta una esfera en a lo más dos sitios, así que tres puntos distintos del cascarón jamás quedan alineados. Desde arriba, Klaus Roth mostró que los conjuntos densos contienen tríos, y herramientas recientes de ciencias de la computación estrecharon la brecha restante.
Erdős and Turán opened this quantitative program in the Journal of the London Mathematical Society (1936, DOI 10.1112/jlms/s1-11.4.261[Scite ↗]), recording exact small values alongside the base-three zero-one construction attributed there to George Szekeres. Raphaël Salem and Donald Spencer (1942, DOI 10.1073/pnas.28.12.561[Scite ↗]) refuted sub-linear power-law ceilings by constructing progression-free subsets growing faster than any fixed exponent below one. Four years later at the University of Melbourne, Felix Adalbert Behrend (1946, DOI 10.1073/pnas.32.12.331[Scite ↗]) replaced flat digit blocks with integer lattice points lying on a single Euclidean sphere. Projecting those coordinates through a wide radix silenced digit carries and yielded progression-free sets with sub-polynomial density loss.
§ I.1 · Obstrucción Clásica y Frontera Estructural
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.16 from its earliest formulation in 1936 (Paul Erdős and Pál Turán pose the density conjecture for arithmetic progressions and record Szekeres’s ternary zero-one baseline in the Journal of the London Mathematical Society (DOI 10.1112/jlms/s1-11.4.261[Scite ↗]).) to its modern resolution in 2023 (Bloom and Sisask publish a streamlined integer-interval exposition of Kelley–Meka’s one-twelfth bound in Essential Number Theory (DOI 10.2140/ent.2023.2.15[Scite ↗]) and post preprint arXiv:2309.02353 sharpening the upper log exponent to one-ninth.) reveals why un-coupled classical approximations repeatedly stalled at a hard analytical barrier. Whenever investigators attempted to treat the governing relation For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9)) as a purely local or linearized perturbation, higher-order coupling terms across the kernel triad (Bitmask Branch-and-Bound r_3(N) · Base-(2d−1) Spherical Shell DP · Odd-Modulus Cyclic DFT) 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 r_3(9) = 5 > |C_3(9)| = 4 · r_3(20) = 9, r_3(24) = 10 · |B(5, 4)| = 30 on R*² = 18 in N = 6,561 · Open log exponent β ∈ [1/9, 1/2]. Specifically, the system’s trajectory is governed by control parameter P_1 (Digit Bound (d)) spanning the admissible interval [2, 8] with step resolution Δ = 1 and reference operating point d = 5; control parameter P_2 (Shell Dimension (m)) spanning the admissible interval [2, 6] with step resolution Δ = 1 and reference operating point m = 4. 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.
"A straight line pierces a round sphere in at most two points—and when an expanded radix silences digit carries, high-dimensional curvature hides dense sets with zero evenly spaced triples."
§ I.2 · Momentos Históricos Decisivos
Año
Hito
1936
Paul Erdős and Pál Turán pose the density conjecture for arithmetic progressions and record Szekeres’s ternary zero-one baseline in the Journal of the London Mathematical Society (DOI 10.1112/jlms/s1-11.4.261[Scite ↗]).
Bloom and Sisask publish a streamlined integer-interval exposition of Kelley–Meka’s one-twelfth bound in Essential Number Theory (DOI 10.2140/ent.2023.2.15[Scite ↗]) and post preprint arXiv:2309.02353 sharpening the upper log exponent to one-ninth.
Everyday Analogy: Set glazed ceramic beads along a single horizontal water ring inside a round porcelain soup bowl. On a flat dinner plate, three beads easily line up because their midpoint stays flat on the plate. Inside the curved soup bowl, the straight chord joining any two distinct beads cuts through empty air rather than touching the porcelain wall. Next, record each bead’s coordinates on a wooden abacus whose rods hold nearly twice as many counters as you ever slide up. Adding two positions rod by rod then triggers zero carries into neighboring rods. Where the analogy stops: a kitchen bowl curves in three dimensions, whereas Behrend’s shells require growing dimension before overtaking the simpler base-three pattern.
How the Two Sliders Work in Plain Words: Two integer sliders drive our workbench. Digit Bound runs from two up to eight, setting coordinate height and the expanded carry-free abacus radix. Shell Dimension sweeps two through six coordinates, carrying the interval past eleven million. Dragging either slider updates the first two readout cards, the shell curve, both comparison bars, the pigeonhole line, and the top status label, while the third and fourth readouts plus eight diagram captions stay fixed.
1 · ANALOGÍA COTIDIANA (M.16)
Curved Soup-Bowl Latitude Ring & Carry-Free Abacus
Chords between distinct ring beads pass inside the bowl; wide rods stop digit carries
Slider 1: Digit Bound
Slider 2: Shell Dimension
➜
2 · DOS FUERZAS EN COMPETENCIA
▲ Behrend & Elkin Spherical Shell Floor
Modal shell S_m(R*²) in base 2d − 1 reaches sub-polynomial scale N exp(−c √(log N))
▼ Roth Circle Method & Kelley–Meka Sifting Ceiling
Harmonic density increments and Hölder physical-space sifting enforce N exp(−c′ (log N)^(1/9))
➜
3 · UMBRAL CRÍTICO DE FASE
Finite Cantor Regime vs Open Asymptotic Exponent Window
Open asymptotic log-exponent gap β ∈ [1/9, 1/2] between upper sifting and lower spheres
PLATE M.16-D · VISUAL INTUITION BRIDGE → GOVERNING OPERATOR: For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9))
Plate M.16-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.
Let r_3(N) denote the largest cardinality |A| of a subset A ⊆ {1, …, N} containing no three distinct integers x, y, z with x + z = 2y. In the shifted ternary Cantor set C_3(N) = {1 + ∑_{i≥0} ε_i 3^i ≤ N : ε_i ∈ {0, 1}} (recorded from Szekeres in Erdős & Turán 1936), doubling y_i ∈ {0, 1} yields 2(y − 1) with digits restricted to {0, 2}, whereas (x − 1) + (z − 1) has digits in {0, 1, 2} that equal 0 only when x_i = z_i = 0 and equal 2 only when x_i = z_i = 1, forcing x = z = y without carries. That fractal benchmark gives |C_3(3^m)| = 2^m = N^(log_3 2) ≈ N^0.63093, yet small intervals already beat it: as recomputed by bitmask branch-and-bound in verify_m16_progression_bounds.py (and cross-checked by exhaustive power-set search through N = 14), C_3(N) matches r_3(N) at N = 1..8 and N = 10..19 (including r_3(14) = 8), but falls behind at N = 9 where {1, 2, 4, 8, 9} attains r_3(9) = 5 > |C_3(9)| = 4, and across N = 20..24 where {1, 2, 6, 7, 9, 14, 15, 18, 20} reaches r_3(20) = 9 > 8 and {1, 2, 5, 7, 11, 16, 18, 19, 23, 24} reaches r_3(24) = 10 > 8. Behrend (1946) generalized carry avoidance to m coordinates x ∈ {0, …, d − 1}^m encoded in base b = 2d − 1 via φ(x) = 1 + ∑_{i=0}^{m−1} x_i (2d − 1)^i ∈ {1, …, (2d − 1)^m}: because 0 ≤ x_i + z_i ≤ 2d − 2 < b and 0 ≤ 2y_i ≤ 2d − 2 < b, integer equality φ(x) + φ(z) = 2φ(y) forces coordinatewise equality x + z = 2y in R^m. Restricting x to the modal Euclidean shell ‖x‖_2² = R*² among the m(d − 1)² + 1 possible radii 0, …, m(d − 1)² yields S_m(R*²) ≥ ⌈d^m / (m(d − 1)² + 1)⌉ points by pigeonhole, while the parallelogram identity ‖x‖_2² + ‖z‖_2² − 2‖(x + z)/2‖_2² = (1/2)‖x − z‖_2² > 0 for x ≠ z rules out every nontrivial midpoint y = (x + z)/2 on the same sphere. Live parameter coupling: d = 5 under governing law
— en palabras simples: las sumas cíclicas de Fourier cuentan progresiones aritméticas de tres términos mientras cascarones esféricos sin acarreos acotan por debajo los conjuntos libres de tríos.
In standard parameterizations of Behrend’s bound (our derivation following Behrend 1946), choosing m ≈ √(2 log_2 N) and 2d − 1 = ⌊N^(1/m)⌋ (so d ≈ (1/2) · 2^(√((1/2) log_2 N)) and (2d − 1)^m ≤ N) balances the carry penalty (d / (2d − 1))^m ≈ 2^(−m) against the quadratic-in-d shell divisor m(d − 1)² + 1, yielding r_3(N) ≥ N · 2^(−2√2 √(log_2 N) − O(log log N)); Elkin (2011, DOI 10.1007/s11856-011-0061-1[Scite ↗]) and Green with Wolf (2010, DOI 10.1007/978-0-387-68361-4_9[Scite ↗]) replaced a single sphere with a thin annulus to gain an extra Θ(√(log N)) factor while keeping exponent β = 1/2 inside exp(−c (log N)^β). Whereas Roth (1953, DOI 10.1112/jlms/s1-28.1.104[Scite ↗]) integrated continuous exponential sums on [0, 1] to bound r_3(N) = O(N / log log N), our verifier discretizes that orthogonality check onto the finite odd cyclic group Z_M of order M = 2N + 1: because 2 ≤ x + z ≤ 2N < M, congruence x + z ≡ 2y (mod M) coincides with integer equality x + z = 2y, and gcd(2, M) = 1 makes r ↦ 2r (mod M) a bijection. Writing Â(r) = ∑_{x∈A} e^(−2πi r x / M), character orthogonality yields T(A) = (1/M) ∑_{r=0}^{M−1} Â(r)² conj(Â(2r mod M)), where the complex square Â(r)² (never |Â(r)|², which counts x − z ≡ 2y) couples r to 2r. When A has no nontrivial 3-APs, T(A) = |A|; isolating r = 0 where Â(0) = |A| and applying Parseval ∑_{r=1}^{M−1} |Â(r)|² = |A|(M − |A|) gives our finite linear bias floor max_{r≠0} |Â(r)| ≥ ||A|² − M| / (M − |A|) alongside Parseval’s root-mean-square floor √(|A|(M − |A|)/(M − 1)). At N = 20 (M = 41, extremal |A| = 9), our script measures max_{r≠0} |Â(r)| = 5.146830 above both Parseval’s 2.683282 and the linear floor 1.250000 (the linear floor exceeds Parseval once (|A|² − M)² / (M − |A|)² > |A|(M − |A|) / (M − 1), at scale |A| ≫ M^(2/3)). After Bourgain (1999) and Sanders (2011) harvested multi-frequency Bohr sets, Kelley and Meka (2023, DOI 10.1109/focs57990.2023.00059[Scite ↗]) used Hölder decoupling, physical-space sifting, and spread subspaces to obtain exp(−c (log N)^(1/12)) N (c > 0), expounded at β = 1/12 by Bloom and Sisask (2023, DOI 10.2140/ent.2023.2.15[Scite ↗]) and sharpened to β = 1/9 in preprint arXiv:2309.02353 (combined for N ≥ 3 with Behrend’s lower bound in our governing header).
§ II.1 · Enunciado Formal, Variedad de Espacio de Estados y Operador Gobernante
OPERADOR GOBERNANTE CANÓNICO · FOLIO M.16
For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9))
To elevate Folio M.16 (Three-Term Arithmetic Progressions: Behrend Spheres, Fourier Bias & Kelley–Meka Bounds) from a qualitative summary to an executable mathematical and physical treatise, we first define the exact state-space manifold on which the operator For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9)) acts. Let the system state be parameterized by control parameter P_1 (Digit Bound (d)) spanning the admissible interval [2, 8] with step resolution Δ = 1 and reference operating point d = 5; control parameter P_2 (Shell Dimension (m)) spanning the admissible interval [2, 6] with step resolution Δ = 1 and reference operating point m = 4. Over this bounded domain, the coupled kernels (Bitmask Branch-and-Bound r_3(N) · Base-(2d−1) Spherical Shell DP · Odd-Modulus Cyclic DFT) map every admissible input configuration to a unique, deterministic equilibrium or deductive fixed point recomputed by skills/math/m16/verify_m16_progression_bounds.py.
Crucially, well-posedness across the r_3(9) = 5 > |C_3(9)| = 4 · r_3(20) = 9, r_3(24) = 10 · |B(5, 4)| = 30 on R*² = 18 in N = 6,561 · Open log exponent β ∈ [1/9, 1/2] 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 For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9)), the resulting approximation violates boundary compatibility and diverges from the primary peer-reviewed evidence (Scite Smart Citation Index entry for Roth 1953, "On Certain Sets of Integers" (Journal of the London Mathematical Society, DOI 10.1112/jlms/s1-28.1.104), fetched 2026-11-24 [observed: Scite ML citation classification, accessed 2026-11-24]: 666 citing publications, with 4 supporting, 451 mentioning, and 0 contrasting classified citation statements, and no retraction notice. Citing publications and classified citation statements are distinct counts, and describe that foundational paper rather than this folio.).
§ II.2 · Descomposición Demostrativa y Mecanismo en Cuatro Etapas (Etapas 1–4)
Rather than treating For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9)) as an opaque black-box formula, we decompose the proof and physical mechanism of Folio M.16 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/m16/verify_m16_progression_bounds.py:
Derivación y Transición de Estado · Etapa 1
Formal Stage Mechanism: Stage 1 (Small Extremal Thresholds and Ternary Cantor Departures, 1936): Paul Erdős and Pál Turán (1936, DOI 10.1112/jlms/s1-11.4.261[Scite ↗]) introduced r_3(N), the maximum size of a subset of {1, …, N} containing no three distinct terms in arithmetic progression x + z = 2y, and recorded the base-3 {0, 1} construction (credited there to G. Szekeres), written here as C_3(N) of scale N^(log_3 2) ≈ N^0.63093. Exhaustive search in verify_m16_progression_bounds.py recomputes r_3(1..24) and pinpoints where optimal sets outgrow C_3(N): at N = 9, witness {1, 2, 4, 8, 9} gives r_3(9) = 5 > |C_3(9)| = 4; at N = 14, r_3(14) = |C_3(14)| = 8; at N = 20, {1, 2, 6, 7, 9, 14, 15, 18, 20} gives r_3(20) = 9 > 8; and at N = 24, r_3(24) = 10 > 8.
Operator Coupling & Invariant Closure: At Stage 1 of the Folio M.16 derivation chain, the intermediate state maps directly onto the governing law For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9)) under benchmark regime r_3(9) = 5 > |C_3(9)| = 4 · r_3(20) = 9, r_3(24) = 10 · |B(5, 4)| = 30 on R*² = 18 in N = 6,561 · Open log exponent β ∈ [1/9, 1/2]. 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: Encode Behrend shell vectors x in {0, ..., d - 1}^m using radix b = 2d - 1 (never b = d) and strict Euclidean norm sum(x_i^2) = R^2 (never L^1 sum), blocking carries in x_i + z_i = 2*y_i while strict sphere convexity forces x = y = z. Every numerical trajectory and geometric projection in Plate M.16-A and Plate M.16-B below evaluates this exact stage transfer function in real time.
Derivación y Transición de Estado · Etapa 2
Formal Stage Mechanism: Stage 2 (Behrend Spherical Shells and Carry-Free Base-(2d − 1) Projection, 1942–2011): Raphaël Salem and Donald Spencer (1942, DOI 10.1073/pnas.28.12.561[Scite ↗]) refuted sub-linear power-law ceilings O(N^(1 − ε)) on r_3(N), and Felix Behrend (1946, DOI 10.1073/pnas.32.12.331[Scite ↗]) intersected {0, …, d − 1}^m with quadratic shells ∑ x_i² = R², choosing modal shell R*² of size S_m(R*²) ≥ ⌈d^m / (m(d − 1)² + 1)⌉ and projecting via radix b = 2d − 1 into {1, …, (2d − 1)^m}. Because 0 ≤ x_i + z_i ≤ 2d − 2 < 2d − 1 blocks every base carry and strict Euclidean convexity forbids three distinct collinear sphere points, B(d, m) has zero nontrivial 3-APs; Michael Elkin (2011, DOI 10.1007/s11856-011-0061-1[Scite ↗]) and Ben Green with Julia Wolf (2010, DOI 10.1007/978-0-387-68361-4_9[Scite ↗]) thickened the sphere to a thin annulus, raising r_3(N) by a Θ(√(log N)) factor.
Operator Coupling & Invariant Closure: At Stage 2 of the Folio M.16 derivation chain, the intermediate state maps directly onto the governing law For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9)) under benchmark regime r_3(9) = 5 > |C_3(9)| = 4 · r_3(20) = 9, r_3(24) = 10 · |B(5, 4)| = 30 on R*² = 18 in N = 6,561 · Open log exponent β ∈ [1/9, 1/2]. 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: Distinguish Roth’s 1953 continuous circle-method bound O(N / log log N) from this folio’s finite odd-modulus cyclic discretization Z_M (M = 2N + 1), and retain the complex square A_hat(r)^2 (not |A_hat(r)|^2) in T(A) = (1/M) * sum_r A_hat(r)^2 * conj(A_hat(2r mod M)). Every numerical trajectory and geometric projection in Plate M.16-A and Plate M.16-B below evaluates this exact stage transfer function in real time.
Derivación y Transición de Estado · Etapa 3
Formal Stage Mechanism: Stage 3 (Roth’s Circle Method and Our Odd-Modulus Z_{2N+1} Discretization, 1953–2011): Klaus Roth (1953, DOI 10.1112/jlms/s1-28.1.104[Scite ↗]) adapted the continuous Hardy–Littlewood circle method on [0, 1] to establish r_3(N) = O(N / log log N). To check finite sets exactly, this folio discretizes Roth’s orthogonality identity onto the odd cyclic group Z_M of order M = 2N + 1, preventing wrap-around since 2 ≤ x + z ≤ 2N < M and giving T(A) = (1/M) ∑_{r=0}^{M−1} Â(r)² conj(Â(2r mod M)) with complex square Â(r)². When A is 3-AP-free, T(A) = |A|, yielding our finite linear bias floor max_{r≠0} |Â(r)| ≥ ||A|² − M| / (M − |A|) alongside Parseval’s RMS floor √(|A|(M − |A|)/(M − 1)); Jean Bourgain (1999, DOI 10.1007/s000390050105[Scite ↗]) and Tom Sanders (2011, DOI 10.4007/annals.2011.174.1.20[Scite ↗]) refined Bohr-set and almost-periodicity increments.
Operator Coupling & Invariant Closure: At Stage 3 of the Folio M.16 derivation chain, the intermediate state maps directly onto the governing law For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9)) under benchmark regime r_3(9) = 5 > |C_3(9)| = 4 · r_3(20) = 9, r_3(24) = 10 · |B(5, 4)| = 30 on R*² = 18 in N = 6,561 · Open log exponent β ∈ [1/9, 1/2]. 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: Separate finite-N behavior from asymptotic growth: C_3(N) matches r_3(N) at N = 14 (8) yet trails at N = 9 (4 vs 5), N = 20 (8 vs 9), and N = 24 (8 vs 10), and |C_3((2d - 1)^m)| exceeds |B(d, m)| across d in [2..8], m in [2..6] before Behrend’s exp(-c * sqrt(log N)) density overtakes N^(log_3 2) at large m. Every numerical trajectory and geometric projection in Plate M.16-A and Plate M.16-B below evaluates this exact stage transfer function in real time.
Derivación y Transición de Estado · Etapa 4
Formal Stage Mechanism: Stage 4 (Kelley–Meka Physical-Space Sifting, Combined Display Note & Tier T0–T1 Falsification, 2020–2023): After Thomas Bloom and Olof Sisask crossed the logarithmic barrier in preprint arXiv:2007.03528, Zander Kelley and Raghu Meka (2023, DOI 10.1109/focs57990.2023.00059[Scite ↗], arXiv:2302.05537) bypassed high-order Fourier inversions via Hölder decoupling, physical-space sifting, and spread subspaces to establish r_3(N) ≤ exp(−c (log N)^(1/12)) N (c > 0), expounded on integer intervals at β = 1/12 by Bloom and Sisask (2023, DOI 10.2140/ent.2023.2.15[Scite ↗]) and sharpened to β = 1/9 in preprint arXiv:2309.02353 (for N ≥ 3, combined in our governing header beside Behrend’s β = 1/2 lower bound and our Z_{2N+1} DFT identity). Hypothesis (Tier T0–T1): across d ∈ [2..8], m ∈ [2..6], radix-(2d − 1) overhead keeps |B(d, m)| < |C_3(N)| before asymptotic crossover, while valid log exponents in [1/9, 1/2] remain OPEN; any construction with β < 1/2 or upper bound with β > 1/9 narrows that open interval.
Operator Coupling & Invariant Closure: At Stage 4 of the Folio M.16 derivation chain, the intermediate state maps directly onto the governing law For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9)) under benchmark regime r_3(9) = 5 > |C_3(9)| = 4 · r_3(20) = 9, r_3(24) = 10 · |B(5, 4)| = 30 on R*² = 18 in N = 6,561 · Open log exponent β ∈ [1/9, 1/2]. 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: Keep the upper-bound milestones distinct—Bloom-Sisask arXiv:2007.03528 logarithmic-barrier break, Kelley-Meka 2023 (DOI 10.1109/focs57990.2023.00059[Scite ↗]) explicit exp(-c * (log N)^(1/12)) * N bound, Bloom-Sisask 2023 Essential Number Theory (DOI 10.2140/ent.2023.2.15[Scite ↗]) 1/12 exposition, and preprint arXiv:2309.02353 exponent 1/9—and keep the log-exponent gap [1/9, 1/2] explicitly labeled OPEN. Every numerical trajectory and geometric projection in Plate M.16-A and Plate M.16-B below evaluates this exact stage transfer function in real time.
§ II.3 · Invariantes de Verificación Determinista, Escalamiento Dimensional y Cotas de Estabilidad
Every quantitative claim in Folio M.16 is tied to four falsification rules listed in progression-free-behrend-kelley-meka-bounds-SKILL.md and executed by skills/math/m16/verify_m16_progression_bounds.py:
Invariant M.16-R1: Encode Behrend shell vectors x in {0, ..., d - 1}^m using radix b = 2d - 1 (never b = d) and strict Euclidean norm sum(x_i^2) = R^2 (never L^1 sum), blocking carries in x_i + z_i = 2*y_i while strict sphere convexity forces x = y = z.
Recomputed offline by skills/math/m16/verify_m16_progression_bounds.py; primary anchor DOI 10.1112/jlms/s1-28.1.104.
Invariant M.16-R2: Distinguish Roth’s 1953 continuous circle-method bound O(N / log log N) from this folio’s finite odd-modulus cyclic discretization Z_M (M = 2N + 1), and retain the complex square A_hat(r)^2 (not |A_hat(r)|^2) in T(A) = (1/M) * sum_r A_hat(r)^2 * conj(A_hat(2r mod M)).
Recomputed offline by skills/math/m16/verify_m16_progression_bounds.py; primary anchor DOI 10.1112/jlms/s1-28.1.104.
Invariant M.16-R3: Separate finite-N behavior from asymptotic growth: C_3(N) matches r_3(N) at N = 14 (8) yet trails at N = 9 (4 vs 5), N = 20 (8 vs 9), and N = 24 (8 vs 10), and |C_3((2d - 1)^m)| exceeds |B(d, m)| across d in [2..8], m in [2..6] before Behrend’s exp(-c * sqrt(log N)) density overtakes N^(log_3 2) at large m.
Recomputed offline by skills/math/m16/verify_m16_progression_bounds.py; primary anchor DOI 10.1112/jlms/s1-28.1.104.
Invariant M.16-R4: Keep the upper-bound milestones distinct—Bloom-Sisask arXiv:2007.03528 logarithmic-barrier break, Kelley-Meka 2023 (DOI 10.1109/focs57990.2023.00059[Scite ↗]) explicit exp(-c * (log N)^(1/12)) * N bound, Bloom-Sisask 2023 Essential Number Theory (DOI 10.2140/ent.2023.2.15[Scite ↗]) 1/12 exposition, and preprint arXiv:2309.02353 exponent 1/9—and keep the log-exponent gap [1/9, 1/2] explicitly labeled OPEN.
Recomputed offline by skills/math/m16/verify_m16_progression_bounds.py; primary anchor DOI 10.1112/jlms/s1-28.1.104.
Together, Invariants M.16-R1 through M.16-R4 close the epistemic loop between symbolic derivation and numerical execution. If a code edit violates these bounds, the verifier fails.
§ II.4 · Análisis Contrafactual de Supresión de Axiomas y Anatomía de Frontera Singular
Primary Counterfactual Knockout (SIDENOTE M.16-A · WHY DROPPING BASE 2d − 1 TO d OR FLATTENING L² TO L¹ FAILS): Two planted knockouts in verify_m16_progression_bounds.py isolate both halves of Behrend’s 1946 idea. First, keeping the true Euclidean shell ∑ x_i² = 5 at d = 3, m = 3 (six permutations of (2, 1, 0)) but encoding in base b = 3 instead of carry-free b = 2d − 1 = 5 produces {6, 8, 12, 16, 20, 22} ⊆ {1..27}, where base-3 carries create two nontrivial three-term progressions (8, 12, 16) and (12, 16, 20) of step 4. Second, keeping carry-free base b = 5 but replacing quadratic ∑ x_i² with the flat L¹ slice ∑ x_i = 3 admits collinear vectors (2, 1, 0), (1, 1, 1), and (0, 1, 2), mapping to (8, 32, 56) of step 24.
Secondary Coupling & Regime Boundary (SIDENOTE M.16-B · FINITE CANTOR ADVANTAGE VS ASYMPTOTIC BEHREND CROSSOVER): On our interactive grid d ∈ [2..8], m ∈ [2..6], the shifted ternary Cantor set C_3(N) stays larger than Behrend’s shell B(d, m): at d = 5, m = 4 (N = 6,561), |C_3| = 256 exceeds |B| = 30, and even at d = 8, m = 6 (N = 11,390,625), |C_3| = 32,768 exceeds |B| = 3,300. That finite lag comes from the factor (d / (2d − 1))^m ≈ 2^(−m) paid to prevent base carries across m coordinates. Once dimension m is scaled near √(2 log_2 N) with 2d − 1 = ⌊N^(1/m)⌋ for large N, however, exp(−2√(2 ln 2) √(ln N)) decays slower than any fixed negative power N^(log_3 2 − 1) ≈ N^(−0.36907), so spherical shells eventually overtake C_3(N).
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 For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9)) 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.
Acto III — Laboratorio Interactivo y Verificación Numérica
§ III.1 · Tres Experimentos Guiados para Probar
Experiment 1 (Ternary Coincidence at d = 2 and Carry Knockout at d = 3, m = 3): Slide Digit Bound to d = 2 and Shell Dimension to m = 3 (radix b = 3, ambient N = 27). Here B(2, 3) picks the unit-coordinate shell R*² = 1 of size 3 inside C_3(27) of size 8. Next step Digit Bound to d = 3 at m = 3 (b = 5, N = 125): the modal shell jumps to R*² = 5 with |B(3, 3)| = 6 permutation vectors {8, 12, 28, 36, 52, 56} and zero nontrivial 3-APs—whereas our planted base-3 knockout collapses those same six vectors onto {6, 8, 12, 16, 20, 22}, creating two progressions of step 4.
Experiment 2 (Canonical Operating Point d = 5, m = 4 and Live vs. Fixed Readouts): Return to the canonical setting d = 5, m = 4 (radix b = 9, ambient N = 6,561). Dynamic programming updates Readouts 1–2, the SVG shell curve (#tp-m16-shell-curve), modal and Cantor bars, pigeonhole line, dot, and top status line (#tp-m16-status-lbl), partitioning all 5^4 = 625 grid vectors across 65 radii R² ∈ [0, 64] with |B(5, 4)| = 30 on R*² = 18 versus pigeonhole floor 10; Readout 3 (small r_3 and N = 20 DFT peak 5.15), Readout 4 (finite crossover status), and the eight reference SVG captions remain static.
Experiment 3 (High-Radix Scaling d = 8, m = 6 and the Finite-vs-Asymptotic Crossover): Push both sliders to their upper stops d = 8, m = 6 (radix b = 15, ambient N = 11,390,625). Across 295 shells partitioning 262,144 grid vectors, the modal sphere R*² = 103 holds |B(8, 6)| = 3,300 integers against pigeonhole floor 889 and ternary Cantor baseline |C_3(N)| = 32,768, illustrating why m must grow with √(log_2 N) before spherical curvature overtakes base-3 digit avoidance.
Stage 1 (Small Extremal Thresholds and Ternary Cantor Departures, 1936): Paul Erdős and Pál Turán (1936, DOI 10.1112/jlms/s1-11.4.261) introduced r_3(N), the maximum size of a subset of {1, …, N} containing no three distinct terms in arithmetic progression x + z = 2y, and recorded the base-3 {0, 1} construction (credited there to G. Szekeres), written here as C_3(N) of scale N^(log_3 2) ≈ N^0.63093. Exhaustive search in verify_m16_progression_bounds.py recomputes r_3(1..24) and pinpoints where optimal sets outgrow C_3(N): at N = 9, witness {1, 2, 4, 8, 9} gives r_3(9) = 5 > |C_3(9)| = 4; at N = 14, r_3(14) = |C_3(14)| = 8; at N = 20, {1, 2, 6, 7, 9, 14, 15, 18, 20} gives r_3(20) = 9 > 8; and at N = 24, r_3(24) = 10 > 8.
Plate M.16-A · 2D Interactive Mechanism & Governing Curve[LIVE M.16] Modal Behrend Shell |B(d, m)|: |B(5, 4)| = 30 on R*² = 18 (in N = 6,561, base 9)
Governing Law (M.16):For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9))
Plate M.16-B · 3D Behrend Spherical-Shell Concentration & Odd-Modulus Cyclic Fourier Ripple Landscape (Drag to Orbit 360°)
3D Surface Axes: X: Digit Bound d & Radix 2d − 1 · Z: Shell Radius Offset R² − R*² · Y: Log₁₀ Shell Density & Harmonic Mode
Modal Behrend Shell |B(d, m)||B(5, 4)| = 30 on R*² = 18 (in N = 6,561, base 9)
§ III.2 · Verificación Numérica Paso a Paso y Telemetría de Referencia
To verify the interactive observatory above by hand or inside an independent computational notebook, we evaluate the governing law For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9)) at the canonical benchmark configuration (r_3(9) = 5 > |C_3(9)| = 4 · r_3(20) = 9, r_3(24) = 10 · |B(5, 4)| = 30 on R*² = 18 in N = 6,561 · Open log exponent β ∈ [1/9, 1/2]). Substituting control parameter P_1 (Digit Bound (d)) spanning the admissible interval [2, 8] with step resolution Δ = 1 and reference operating point d = 5; control parameter P_2 (Shell Dimension (m)) spanning the admissible interval [2, 6] with step resolution Δ = 1 and reference operating point m = 4 into the coupled Stage 1–4 equations yields the reference values recomputed by the verifier: Modal Behrend Shell |B(d, m)| converges to |B(5, 4)| = 30 on R*² = 18 (in N = 6,561, base 9); Grid Pigeonhole & Ternary Baseline converges to Pigeonhole ≥ 10 (625 / 65 shells) · Cantor C_3(6,561) = 256; Small Exact r_3(N) & Fourier Peak (Fixed Reference) converges to r_3(9) = 5, r_3(14) = 8, r_3(20) = 9, r_3(24) = 10 · max |Â(r)| = 5.15 at N = 20 (M = 41); Asymptotic Log-Exponent Window converges to OPEN EXPONENT GAP β ∈ [1/9, 1/2] · FINITE CROSSOVER REGIME.
Running python skills/math/m16/verify_m16_progression_bounds.py from the repository root recomputes these values, and its planted-defect mode must fail.
Act IV — Imagining Humanity’s Future: Physical-Space Decoupling, Finite Witnesses & Open Exponents
Across additive combinatorics and theoretical computer science, Kelley and Meka’s 2023 physical-space argument connected pseudorandomness against low-depth communication protocols with classical number-theoretic density increments. Because their proof replaces delicate multi-dimensional Fourier inversion with elementary Hölder norm raising, convolution sifting, and subspace spreadness—expounded directly on integer intervals by Bloom and Sisask (2023, DOI 10.2140/ent.2023.2.15[Scite ↗]) alongside the additive-entropy tools of Polynomial Freiman–Ruzsa (Folio M.04) and cap-set polynomial methods (Folio M.03)—each algebraic reduction separates cleanly into checkable finite-group lemmas and explicit parameter schedules.
Under the Tier T0–T1 evidence discipline of this monograph, three epistemic layers remain strictly distinguished. First, our zero-dependency Python script skills/math/m16/verify_m16_progression_bounds.py recomputes exact r_3(1..24) (with independent power-set cross-checks through N = 14), materializes carry-free Behrend sets B(d, m) for d ∈ [2..5], m ∈ [2..4] to check zero nontrivial 3-APs directly, evaluates exact integer shell histograms across the full slider domain d ∈ [2..8], m ∈ [2..6], and checks the odd-modulus cyclic DFT identity T(A) = (1/M) ∑ Â(r)² conj(Â(2r mod M)) across N = 3..24 (max residual < 1.25 × 10⁻¹⁴, asserted < 10⁻¹²), failing deterministically under --planted-defect when base b = d, L¹ hyperplanes, conj(Â(r)), or step-1 omissions are injected. Second, the asymptotic bounds of Behrend (1946), Elkin (2011), Roth (1953), Bourgain (1999), Sanders (2011), Kelley & Meka (2023, exp(−c (log N)^(1/12)) N), and Bloom & Sisask (2023 Essential Number Theory β = 1/12 exposition; preprint arXiv:2309.02353 β = 1/9) are reported from their primary texts without re-deriving quasi-polynomial sifting in our finite script. Third, narrowing the gap between valid upper exponents (currently β = 1/9) and lower constructions (β = 1/2) inside exp(−c (log N)^β) N—and deciding whether spherical shells achieve the true asymptotic order—remains OPEN: any progression-free construction achieving exp(−c (log N)^β) N with β < 1/2 would beat spherical shells, while any density-increment bound with β > 1/9 narrows the frontier from above.
Descubrimiento de frontera
Closing Seventy Years Between Roth’s Circle Method and Quasi-Polynomial 3-AP Bounds
§ IV.3 · Transferencia Interdisciplinaria de Sistemas y Continuo
Structural & Mathematical Isomorphism (Extends M.03/M.04/M.15 · Strict Euclidean convexity, carry-free radix projection and sifting increments): One of the defining principles of Informatico.ai is that deep governing operators transcend disciplinary silos. The exact mathematical structure of Folio M.16 (For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9))) reappears across coupled multiscale systems: Extends M.03/M.04/M.15 · Strict Euclidean convexity, carry-free radix projection and sifting increments
Erdös, P., & Turán, P. (1936). On Some Sequences of Integers. Journal of the London Mathematical Society, s1-11(4), 261–264. DOI 10.1112/jlms/s1-11.4.261[Scite ↗].
Salem, R., & Spencer, D. C. (1942). On Sets of Integers Which Contain No Three Terms in Arithmetical Progression. Proceedings of the National Academy of Sciences, 28(12), 561–563. DOI 10.1073/pnas.28.12.561[Scite ↗].
Behrend, F. A. (1946). On Sets of Integers Which Contain No Three Terms in Arithmetical Progression. Proceedings of the National Academy of Sciences, 32(12), 331–332. DOI 10.1073/pnas.32.12.331[Scite ↗].
Roth, K. F. (1953). On Certain Sets of Integers. Journal of the London Mathematical Society, s1-28(1), 104–109. DOI 10.1112/jlms/s1-28.1.104[Scite ↗].
Szemerédi, E. (1975). On sets of integers containing k elements in arithmetic progression. Acta Arithmetica, 27, 199–245. DOI 10.4064/aa-27-1-199-245[Scite ↗].
Bourgain, J. (1999). On Triples in Arithmetic Progression. Geometric and Functional Analysis, 9(5), 968–984. DOI 10.1007/s000390050105[Scite ↗].
Green, B., & Tao, T. (2008). The primes contain arbitrarily long arithmetic progressions. Annals of Mathematics, 167(2), 481–547. DOI 10.4007/annals.2008.167.481[Scite ↗].
Green, B., & Wolf, J. (2010). A Note on Elkin’s Improvement of Behrend’s Construction. In Additive Number Theory (pp. 141–144), Springer. DOI 10.1007/978-0-387-68361-4_9[Scite ↗].
Elkin, M. (2011). An improved construction of progression-free sets. Israel Journal of Mathematics, 184, 93–128. DOI 10.1007/s11856-011-0061-1[Scite ↗].
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 ↗].
ACTO VI · CRUCIGRAMA CIENTÍFICO INTERACTIVO · PASAPORTE DE COLECCIONISTA EN LOCALSTORAGE
Folio M.16 · Crucigrama de Progresiones de Tres Términos y Esferas de Behrend
Inspirado en los crucigramas de los grandes diarios: pon a prueba tu dominio de las leyes e hitos de M.16. Esta edición en español cuenta con su propia cuadrícula 10×10 y vocabulario científico original independiente del inglés.
ES-MX · EDICIÓN INDEPENDIENTE EN ESPAÑOL (10×10)
0 / 58 Folios Sellados (EN: 0 · ES-MX: 0)
1 ACROSSSelecciona cualquier celda o pista abajo para comenzar a resolver.
Horizontales
Verticales
Selecciona una celda o pista y escribe A–Z. Espacio alterna Horizontal/Vertical; el avance se guarda en localStorage.
Para quien construye: método, herramientas e historial
Scite Smart Citation Index entry for Roth 1953, "On Certain Sets of Integers" (Journal of the London Mathematical Society, DOI 10.1112/jlms/s1-28.1.104), fetched 2026-11-24 [observed: Scite ML citation classification, accessed 2026-11-24]: 666 citing publications, with 4 supporting, 451 mentioning, and 0 contrasting classified citation statements, and no retraction notice. Citing publications and classified citation statements are distinct counts, and describe that foundational paper rather than this folio.
Give any AI agent or engineering pipeline the governing equations of Folio M.16: a portable SKILL.md, a zero-dependency Python verifier (verify_m16_progression_bounds.py), or the live telemetry as JSON.
Show the SKILL.md source
---
name: progression-free-behrend-kelley-meka-bounds
description: AI-agnostic additive and extremal combinatorics skill for three-term progression-free sets r_3(N), carry-free base-(2d-1) Behrend spherical shells, odd-modulus cyclic Fourier identities, and Kelley-Meka quasi-polynomial bounds.
license: MIT
compatibility: Claude Code, GitHub Copilot, Cursor, Google Antigravity, OpenAI Codex, Ollama (Qwen 3.8 / Gemma 4)
---
# Three-Term Arithmetic Progressions: Behrend Spheres, Fourier Bias & Kelley–Meka Bounds (Folio M.16)
A plain-text companion to the essay at https://informatico.ai/math/m16/ (`M.16 · Three-Term Arithmetic Progressions & Behrend Spheres · REV 1.0`, `REV 1.0`, redated `2026-11-24`).
## The governing relation
`For N ≥ 3: T(A) = (1/M) ∑_r Â(r)² conj(Â(2r mod M)) · N exp(−c √(log N)) ≤ r_3(N) ≤ N exp(−c′ (log N)^(1/9))`
## Rules the essay derives
1. Encode Behrend shell vectors x in {0, ..., d - 1}^m using radix b = 2d - 1 (never b = d) and strict Euclidean norm sum(x_i^2) = R^2 (never L^1 sum), blocking carries in x_i + z_i = 2*y_i while strict sphere convexity forces x = y = z.
2. Distinguish Roth’s 1953 continuous circle-method bound O(N / log log N) from this folio’s finite odd-modulus cyclic discretization Z_M (M = 2N + 1), and retain the complex square A_hat(r)^2 (not |A_hat(r)|^2) in T(A) = (1/M) * sum_r A_hat(r)^2 * conj(A_hat(2r mod M)).
3. Separate finite-N behavior from asymptotic growth: C_3(N) matches r_3(N) at N = 14 (8) yet trails at N = 9 (4 vs 5), N = 20 (8 vs 9), and N = 24 (8 vs 10), and |C_3((2d - 1)^m)| exceeds |B(d, m)| across d in [2..8], m in [2..6] before Behrend’s exp(-c * sqrt(log N)) density overtakes N^(log_3 2) at large m.
4. Keep the upper-bound milestones distinct—Bloom-Sisask arXiv:2007.03528 logarithmic-barrier break, Kelley-Meka 2023 (DOI 10.1109/focs57990.2023.00059) explicit exp(-c * (log N)^(1/12)) * N bound, Bloom-Sisask 2023 Essential Number Theory (DOI 10.2140/ent.2023.2.15) 1/12 exposition, and preprint arXiv:2309.02353 exponent 1/9—and keep the log-exponent gap [1/9, 1/2] explicitly labeled OPEN.
## How it works, in four stages
- Stage 1 (Small Extremal Thresholds and Ternary Cantor Departures, 1936): Paul Erdős and Pál Turán (1936, DOI 10.1112/jlms/s1-11.4.261) introduced r_3(N), the maximum size of a subset of {1, …, N} containing no three distinct terms in arithmetic progression x + z = 2y, and recorded the base-3 {0, 1} construction (credited there to G. Szekeres), written here as C_3(N) of scale N^(log_3 2) ≈ N^0.63093. Exhaustive search in verify_m16_progression_bounds.py recomputes r_3(1..24) and pinpoints where optimal sets outgrow C_3(N): at N = 9, witness {1, 2, 4, 8, 9} gives r_3(9) = 5 > |C_3(9)| = 4; at N = 14, r_3(14) = |C_3(14)| = 8; at N = 20, {1, 2, 6, 7, 9, 14, 15, 18, 20} gives r_3(20) = 9 > 8; and at N = 24, r_3(24) = 10 > 8.
- Stage 2 (Behrend Spherical Shells and Carry-Free Base-(2d − 1) Projection, 1942–2011): Raphaël Salem and Donald Spencer (1942, DOI 10.1073/pnas.28.12.561) refuted sub-linear power-law ceilings O(N^(1 − ε)) on r_3(N), and Felix Behrend (1946, DOI 10.1073/pnas.32.12.331) intersected {0, …, d − 1}^m with quadratic shells ∑ x_i² = R², choosing modal shell R*² of size S_m(R*²) ≥ ⌈d^m / (m(d − 1)² + 1)⌉ and projecting via radix b = 2d − 1 into {1, …, (2d − 1)^m}. Because 0 ≤ x_i + z_i ≤ 2d − 2 < 2d − 1 blocks every base carry and strict Euclidean convexity forbids three distinct collinear sphere points, B(d, m) has zero nontrivial 3-APs; Michael Elkin (2011, DOI 10.1007/s11856-011-0061-1) and Ben Green with Julia Wolf (2010, DOI 10.1007/978-0-387-68361-4_9) thickened the sphere to a thin annulus, raising r_3(N) by a Θ(√(log N)) factor.
- Stage 3 (Roth’s Circle Method and Our Odd-Modulus Z_{2N+1} Discretization, 1953–2011): Klaus Roth (1953, DOI 10.1112/jlms/s1-28.1.104) adapted the continuous Hardy–Littlewood circle method on [0, 1] to establish r_3(N) = O(N / log log N). To check finite sets exactly, this folio discretizes Roth’s orthogonality identity onto the odd cyclic group Z_M of order M = 2N + 1, preventing wrap-around since 2 ≤ x + z ≤ 2N < M and giving T(A) = (1/M) ∑_{r=0}^{M−1} Â(r)² conj(Â(2r mod M)) with complex square Â(r)². When A is 3-AP-free, T(A) = |A|, yielding our finite linear bias floor max_{r≠0} |Â(r)| ≥ ||A|² − M| / (M − |A|) alongside Parseval’s RMS floor √(|A|(M − |A|)/(M − 1)); Jean Bourgain (1999, DOI 10.1007/s000390050105) and Tom Sanders (2011, DOI 10.4007/annals.2011.174.1.20) refined Bohr-set and almost-periodicity increments.
- Stage 4 (Kelley–Meka Physical-Space Sifting, Combined Display Note & Tier T0–T1 Falsification, 2020–2023): After Thomas Bloom and Olof Sisask crossed the logarithmic barrier in preprint arXiv:2007.03528, Zander Kelley and Raghu Meka (2023, DOI 10.1109/focs57990.2023.00059, arXiv:2302.05537) bypassed high-order Fourier inversions via Hölder decoupling, physical-space sifting, and spread subspaces to establish r_3(N) ≤ exp(−c (log N)^(1/12)) N (c > 0), expounded on integer intervals at β = 1/12 by Bloom and Sisask (2023, DOI 10.2140/ent.2023.2.15) and sharpened to β = 1/9 in preprint arXiv:2309.02353 (for N ≥ 3, combined in our governing header beside Behrend’s β = 1/2 lower bound and our Z_{2N+1} DFT identity). Hypothesis (Tier T0–T1): across d ∈ [2..8], m ∈ [2..6], radix-(2d − 1) overhead keeps |B(d, m)| < |C_3(N)| before asymptotic crossover, while valid log exponents in [1/9, 1/2] remain OPEN; any construction with β < 1/2 or upper bound with β > 1/9 narrows that open interval.
## Reference values stated in the essay
- **Modal Behrend Shell |B(d, m)|**: `|B(5, 4)| = 30 on R*² = 18 (in N = 6,561, base 9)`
- **Grid Pigeonhole & Ternary Baseline**: `Pigeonhole ≥ 10 (625 / 65 shells) · Cantor C_3(6,561) = 256`
- **Small Exact r_3(N) & Fourier Peak (Fixed Reference)**: `r_3(9) = 5, r_3(14) = 8, r_3(20) = 9, r_3(24) = 10 · max |Â(r)| = 5.15 at N = 20 (M = 41)`
- **Asymptotic Log-Exponent Window**: `OPEN EXPONENT GAP β ∈ [1/9, 1/2] · FINITE CROSSOVER REGIME`
## Check it yourself
This skill ships a verifier that recomputes its values. Its planted-defect mode must fail:
```
python skills/math/m16/verify_m16_progression_bounds.py
python skills/math/m16/verify_m16_progression_bounds.py --planted-defect
```
## Primary source
- https://doi.org/10.1112/jlms/s1-28.1.104 (Scite report: https://scite.ai/reports/10.1112/jlms/s1-28.1.104)
- What the essay compares against: r_3(9) = 5 > |C_3(9)| = 4 · r_3(20) = 9, r_3(24) = 10 · |B(5, 4)| = 30 on R*² = 18 in N = 6,561 · Open log exponent β ∈ [1/9, 1/2]
## Recent research context
- **Closing Seventy Years Between Roth’s Circle Method and Quasi-Polynomial 3-AP Bounds**: Seventy years after Klaus Roth (1953, DOI 10.1112/jlms/s1-28.1.104) established r_3(N) = O(N / log log N), Zander Kelley and Raghu Meka (2023, DOI 10.1109/focs57990.2023.00059, arXiv:2302.05537) bypassed high-order Fourier inversion via physical-space Hölder decoupling and sifting to establish r_3(N) ≤ exp(−c (log N)^(1/12)) N, expounded by Thomas Bloom and Olof Sisask (2023, DOI 10.2140/ent.2023.2.15) and sharpened to exponent 1/9 in preprint arXiv:2309.02353 toward Behrend’s 1946 spherical-shell exponent β = 1/2.
#!/usr/bin/env python3
"""Deterministic verifier for Folio M.16: Three-Term Arithmetic Progressions, Behrend Spheres & Fourier Bounds.
Mathematical definitions and primary anchors:
- Progression-free extremal function r_3(N) (Erdos & Turan 1936, DOI 10.1112/jlms/s1-11.4.261):
r_3(N) = max { |A| : A subseteq {1, ..., N}, no distinct x, y, z in A satisfy x + z = 2y }.
Recomputed from scratch here for N = 1..24 via exact bitmask branch-and-bound, cross-checked against
exhaustive power-set enumeration for N = 1..14, and compared against the shifted base-3 {0, 1} construction
(attributed to G. Szekeres in Erdos & Turan 1936), written here as
C_3(N) = { 1 + n in {1, ..., N} : n has only digits {0, 1} in base 3 }.
- Behrend spherical-shell construction (Behrend 1946, DOI 10.1073/pnas.32.12.331; refined by Elkin 2011,
DOI 10.1007/s11856-011-0061-1, and Green & Wolf 2010, DOI 10.1007/978-0-387-68361-4_9):
For digit bound d in [2..8] and dimension m in [2..6], let
S_m(R^2) = |{ x in {0, ..., d - 1}^m : sum_{i=0}^{m-1} x_i^2 = R^2 }|, R^2 in [0, m(d - 1)^2].
Then sum_{R^2} S_m(R^2) = d^m, so the modal shell R*^2 = argmax_{R^2} S_m(R^2) (smallest R^2 on ties)
satisfies the pigeonhole bound
S_m(R*^2) >= ceil( d^m / (m(d - 1)^2 + 1) ).
Mapping shell vectors into {1, ..., (2d - 1)^m} via base b = 2d - 1:
B(d, m) = { 1 + sum_{i=0}^{m-1} x_i (2d - 1)^i : x in {0, ..., d - 1}^m, ||x||_2^2 = R*^2 }
prevents base-(2d - 1) carries in x_i + z_i = 2 y_i (since 0 <= x_i + z_i <= 2d - 2 < 2d - 1), while strict
Euclidean convexity ||x||_2^2 + ||z||_2^2 - 2||(x + z)/2||_2^2 = (1/2)||x - z||_2^2 > 0 for x != z forces
every solution to a + c = 2b in B(d, m) to be trivial (a = b = c).
- Roth's continuous circle method vs. this folio's odd-modulus Z_{2N+1} discretization (Roth 1953,
DOI 10.1112/jlms/s1-28.1.104; Bourgain 1999, DOI 10.1007/s000390050105; Sanders 2011,
DOI 10.4007/annals.2011.174.1.20):
Roth (1953) adapted the continuous Hardy-Littlewood circle method on [0, 1] to establish r_3(N) = O(N / log log N).
To verify finite sets exactly, this script discretizes that orthogonality identity onto the odd cyclic group Z_M
of order M = 2N + 1, eliminating modular wrap-around (2 <= x + z <= 2N < M, so x + z == 2y (mod M) iff x + z = 2y
in Z) and ensuring gcd(2, M) = 1. With A_hat(r) = sum_{x in A} exp(-2*pi*i*r*x / M), orthogonality gives:
T(A) = |{ (x, y, z) in A^3 : x + z = 2y }| = (1 / M) * sum_{r=0}^{M-1} A_hat(r)^2 * conj(A_hat((2r) % M)).
When A is 3-AP-free, T(A) = |A| (trivial triples x = y = z only). Isolating r = 0 (A_hat(0) = |A|) and applying
Parseval sum_{r=1}^{M-1} |A_hat(r)|^2 = |A|(M - |A|) yields this folio's finite linear Fourier bias floor
max_{1 <= r < M} |A_hat(r)| >= ||A|^2 - M| / (M - |A|),
alongside the universal Parseval root-mean-square floor sqrt(|A|(M - |A|) / (M - 1)).
- Quasi-polynomial upper bounds and open exponent window:
Kelley & Meka (2023, DOI 10.1109/focs57990.2023.00059, arXiv:2302.05537) established exp(-c(log N)^{1/12}) * N
(c > 0); Bloom & Sisask (2023, Essential Number Theory, DOI 10.2140/ent.2023.2.15) gave a streamlined integer-
interval exposition at exponent 1/12 and sharpened the exponent in preprint arXiv:2309.02353 to
exp(-c'(log N)^{1/9}) * N (for N >= 3), framing the open log-exponent gap [1/9, 1/2].
Planted-defect mode (`--planted-defect`):
1. Drops base b = 2d - 1 down to base b = d on genuine L^2 shells, introducing carry collisions/3-APs (e.g. d=3, m=3).
2. Replaces quadratic shell ||x||_2^2 = R^2 with flat L^1 hyperplane sum x_i = S in carry-free base 2d - 1 (d >= 3).
3. Replaces conj(A_hat(2r mod M)) with conj(A_hat(r)) in the cyclic DFT identity, counting x + z == y instead of 2y.
4. Corrupts the nontrivial 3-AP test in r_3(N) by ignoring common differences d_step == 1, inflating r_3(N).
"""
from __future__ import annotations
import argparse
import cmath
from fractions import Fraction
import itertools
import json
import math
import re
import sys
from typing import Any
def _validate_slider_inputs(digit_d: int, dim_m: int) -> tuple[int, int]:
if isinstance(digit_d, bool) or not isinstance(digit_d, int):
raise ValueError("digit_d must be an integer")
if digit_d < 2 or digit_d > 8:
raise ValueError("digit_d must lie in [2, 8]")
if isinstance(dim_m, bool) or not isinstance(dim_m, int):
raise ValueError("dim_m must be an integer")
if dim_m < 2 or dim_m > 6:
raise ValueError("dim_m must lie in [2, 6]")
return digit_d, dim_m
def count_nontrivial_3aps(elements: list[int] | set[int]) -> int:
"""Count ordered nontrivial 3-APs (a, b, c) with a < b < c and a + c == 2*b."""
pts = sorted(set(elements))
member = set(pts)
k = len(pts)
found = 0
for i in range(k):
a = pts[i]
for j in range(i + 1, k):
b = pts[j]
c = 2 * b - a
if c in member:
found += 1
return found
def cantor_base3_set(limit_n: int) -> list[int]:
"""Shifted ternary Cantor set C_3(N) = {1 + n in [1..N] : base-3 digits of n lie in {0, 1}}."""
if isinstance(limit_n, bool) or not isinstance(limit_n, int) or limit_n < 1:
raise ValueError("limit_n must be a positive integer")
out: list[int] = []
for x in range(1, limit_n + 1):
val = x - 1
ok = True
while val > 0:
if val % 3 == 2:
ok = False
break
val //= 3
if ok:
out.append(x)
return out
def compute_exact_r3_sequence(max_n: int = 24, planted_defect: bool = False) -> tuple[dict[int, int], dict[int, list[int]]]:
"""Compute exact r_3(N) and a lexicographically first witness for every N in 1..max_n."""
if isinstance(max_n, bool) or not isinstance(max_n, int) or max_n < 1 or max_n > 30:
raise ValueError("max_n must be an integer in [1, 30]")
r3_vals: dict[int, int] = {}
witnesses: dict[int, list[int]] = {}
for n in range(1, max_n + 1):
prefix_bounds = [0] * (n + 1)
for m in range(1, n):
prefix_bounds[m] = r3_vals[m]
prefix_bounds[n] = n
best_size = 0
best_mask = 0
def dfs(pos: int, chosen_mask: int, chosen_count: int, forbidden_mask: int) -> None:
nonlocal best_size, best_mask
remaining = n - pos + 1
if chosen_count + remaining <= best_size:
return
if chosen_count > best_size:
best_size = chosen_count
best_mask = chosen_mask
if pos > n:
return
bit = 1 << (pos - 1)
if not (forbidden_mask & bit):
next_count = chosen_count + 1
if planted_defect or pos == n or next_count <= prefix_bounds[pos]:
new_forb = forbidden_mask
prev = chosen_mask
while prev:
lsb = prev & -prev
b_val = lsb.bit_length()
prev ^= lsb
step = pos - b_val
if planted_defect and step == 1:
# Planted defect #4: ignore consecutive-step (d=1) arithmetic progressions!
continue
c_val = pos + step
if c_val <= n:
new_forb |= 1 << (c_val - 1)
dfs(pos + 1, chosen_mask | bit, next_count, new_forb)
dfs(pos + 1, chosen_mask, chosen_count, forbidden_mask)
cantor = cantor_base3_set(n)
best_size = len(cantor)
best_mask = sum(1 << (x - 1) for x in cantor)
dfs(1, 0, 0, 0)
r3_vals[n] = best_size
witnesses[n] = [i + 1 for i in range(n) if (best_mask >> i) & 1]
return r3_vals, witnesses
def brute_force_r3(limit_n: int) -> int:
"""Independent exhaustive power-set check for r_3(N) on small N <= 14."""
if isinstance(limit_n, bool) or not isinstance(limit_n, int) or limit_n < 1 or limit_n > 16:
raise ValueError("limit_n must be an integer in [1, 16]")
best = 0
universe = list(range(1, limit_n + 1))
for size in range(limit_n, 0, -1):
for comb in itertools.combinations(universe, size):
if count_nontrivial_3aps(list(comb)) == 0:
return size
return best
def shell_histogram_dp(digit_d: int, dim_m: int, planted_defect: bool = False) -> list[int]:
"""Exact integer DP histogram of ||x||_2^2 (or L^1 sum under planted_defect) over {0, ..., d-1}^m."""
digit_d, dim_m = _validate_slider_inputs(digit_d, dim_m)
max_single = (digit_d - 1) if planted_defect else (digit_d - 1) ** 2
max_sum = dim_m * max_single
dp = [0] * (max_sum + 1)
dp[0] = 1
step_vals = [x if planted_defect else (x * x) for x in range(digit_d)]
for _ in range(dim_m):
nxt = [0] * (max_sum + 1)
for cur_s, ways in enumerate(dp):
if ways == 0:
continue
for inc in step_vals:
nxt[cur_s + inc] += ways
dp = nxt
return dp
def construct_behrend_set(
digit_d: int,
dim_m: int,
planted_defect: bool = False,
*,
radix_override: int | None = None,
use_l1_norm: bool = False,
) -> dict[str, Any]:
"""Explicitly materialize B(d, m) for moderate d^m and count nontrivial 3-APs."""
digit_d, dim_m = _validate_slider_inputs(digit_d, dim_m)
if (digit_d ** dim_m) > 50_000:
raise ValueError("construct_behrend_set requires d^m <= 50000 for explicit enumeration")
# Keep radix-drop and L^1-flattening orthogonal unless use_l1_norm is explicitly passed:
# planted_defect alone drops radix from 2d - 1 to d on genuine L^2 shells.
l1_flag = bool(use_l1_norm)
hist = shell_histogram_dp(digit_d, dim_m, planted_defect=l1_flag)
modal_level = max(range(len(hist)), key=lambda idx: (hist[idx], -idx))
modal_count = hist[modal_level]
if radix_override is not None:
if isinstance(radix_override, bool) or not isinstance(radix_override, int) or radix_override < 2:
raise ValueError("radix_override must be an integer >= 2")
radix = radix_override
else:
radix = digit_d if planted_defect else (2 * digit_d - 1)
ambient_n = radix ** dim_m
encoded: list[int] = []
for coords in itertools.product(range(digit_d), repeat=dim_m):
level = sum(coords) if l1_flag else sum(c * c for c in coords)
if level == modal_level:
val = 1
mult = 1
for c in coords:
val += c * mult
mult *= radix
encoded.append(val)
return {
"digit_d": digit_d,
"dim_m": dim_m,
"radix": radix,
"use_l1_norm": l1_flag,
"ambient_n": ambient_n,
"modal_level": modal_level,
"shell_vector_count": modal_count,
"distinct_integer_count": len(set(encoded)),
"nontrivial_3ap_count": count_nontrivial_3aps(encoded),
"elements_sample": sorted(set(encoded))[:12],
}
def evaluate_behrend_slider(
digit_d: int = 5,
dim_m: int = 4,
planted_defect: bool = False,
) -> dict[str, Any]:
"""Evaluate exact Behrend shell metrics, ternary Cantor baseline, and asymptotic exponent bracket for (d, m)."""
digit_d, dim_m = _validate_slider_inputs(digit_d, dim_m)
hist = shell_histogram_dp(digit_d, dim_m, planted_defect=planted_defect)
total_grid = sum(hist)
num_shells = len(hist)
modal_r2 = max(range(num_shells), key=lambda r2: (hist[r2], -r2))
modal_size = hist[modal_r2]
pigeonhole_floor = ((digit_d ** dim_m) + num_shells - 1) // num_shells
radix = 2 * digit_d - 1
ambient_n = radix ** dim_m
limit_minus_1 = ambient_n - 1
trits: list[int] = []
tmp = limit_minus_1
while tmp > 0:
trits.append(tmp % 3)
tmp //= 3
trits.reverse()
cantor_count = 0
tight = True
k_trits = len(trits)
for idx, tr in enumerate(trits):
rem = k_trits - idx - 1
if tr == 0:
continue
elif tr == 1:
cantor_count += 1 << rem
else:
cantor_count += 1 << (rem + 1)
tight = False
break
if tight:
cantor_count += 1
density_frac = Fraction(modal_size, ambient_n)
ratio_vs_cantor = Fraction(modal_size, cantor_count)
return {
"digit_d": digit_d,
"dim_m": dim_m,
"radix": radix,
"ambient_n": ambient_n,
"total_grid_vectors": total_grid,
"shell_count": num_shells,
"modal_r2": modal_r2,
"modal_shell_size": modal_size,
"pigeonhole_floor": pigeonhole_floor,
"cantor_base3_size": cantor_count,
"shell_density": float(density_frac),
"shell_vs_cantor_ratio": float(ratio_vs_cantor),
"beats_cantor": modal_size > cantor_count,
"open_exponent_bracket": "[1/9, 1/2]",
}
def verify_cyclic_fourier_identity(
subset: list[int] | set[int],
limit_n: int,
planted_defect: bool = False,
) -> dict[str, Any]:
"""Verify T(A) = (1/M) sum_{r=0}^{M-1} A_hat(r)^2 conj(A_hat(2r mod M)) on odd Z_M (M = 2N + 1)."""
if isinstance(limit_n, bool) or not isinstance(limit_n, int) or limit_n < 1:
raise ValueError("limit_n must be a positive integer")
raw_items = list(subset)
if any(isinstance(x, bool) or not isinstance(x, int) for x in raw_items):
raise ValueError("subset elements must be integers")
pts = sorted(set(raw_items))
if not pts or pts[0] < 1 or pts[-1] > limit_n:
raise ValueError("subset must be a non-empty subset of {1, ..., limit_n}")
modulus_m = 2 * limit_n + 1
size_a = len(pts)
nontrivial_unordered = count_nontrivial_3aps(pts)
exact_ordered_triples = size_a + 2 * nontrivial_unordered
two_pi_over_m = -2.0 * math.pi / modulus_m
a_hat: list[complex] = []
for r in range(modulus_m):
acc = 0j
for x in pts:
acc += cmath.exp(1j * two_pi_over_m * ((r * x) % modulus_m))
a_hat.append(acc)
dft_sum = 0j
for r in range(modulus_m):
target_idx = r if planted_defect else ((2 * r) % modulus_m)
dft_sum += (a_hat[r] * a_hat[r]) * a_hat[target_idx].conjugate()
dft_triples = dft_sum.real / modulus_m
dft_imag = abs(dft_sum.imag) / modulus_m
parseval_nonzero = sum(abs(a_hat[r]) ** 2 for r in range(1, modulus_m))
expected_parseval = float(size_a * (modulus_m - size_a))
max_nonzero_mag = max(abs(a_hat[r]) for r in range(1, modulus_m))
parseval_rms_floor = math.sqrt(expected_parseval / (modulus_m - 1))
# Finite Z_M linear bias floor when T(A) = |A| (3-AP-free A subseteq {1..N})
linear_bias_floor = (
abs(size_a * size_a - modulus_m) / (modulus_m - size_a)
if nontrivial_unordered == 0 and size_a < modulus_m
else 0.0
)
return {
"limit_n": limit_n,
"modulus_m": modulus_m,
"size_a": size_a,
"exact_ordered_triples": exact_ordered_triples,
"dft_triples": dft_triples,
"dft_abs_error": abs(dft_triples - exact_ordered_triples),
"dft_imag_residual": dft_imag,
"parseval_nonzero_error": abs(parseval_nonzero - expected_parseval),
"max_nonzero_fourier": max_nonzero_mag,
"roth_linear_bias_floor": linear_bias_floor,
"parseval_rms_floor": parseval_rms_floor,
}
def _check_input_rejections() -> bool:
bad_sliders: list[tuple[Any, Any, str]] = [
(True, 4, r"digit_d must be an integer"),
(1, 4, r"digit_d must lie in \[2, 8\]"),
(9, 4, r"digit_d must lie in \[2, 8\]"),
(5.0, 4, r"digit_d must be an integer"),
(5, False, r"dim_m must be an integer"),
(5, 1, r"dim_m must lie in \[2, 6\]"),
(5, 7, r"dim_m must lie in \[2, 6\]"),
(5, 4.0, r"dim_m must be an integer"),
(float("nan"), 4, r"digit_d must be an integer"),
(5, float("inf"), r"dim_m must be an integer"),
]
for bd, bm, pat in bad_sliders:
try:
evaluate_behrend_slider(bd, bm)
return False
except ValueError as exc:
if not re.search(pat, str(exc)):
return False
for bad_n in (0, -3, True, 3.5):
try:
cantor_base3_set(bad_n) # type: ignore[arg-type]
return False
except ValueError as exc:
if not re.search(r"limit_n must be a positive integer", str(exc)):
return False
bad_fourier: list[tuple[Any, Any, str]] = [
([], 5, r"subset must be a non-empty subset"),
([0, 1], 5, r"subset must be a non-empty subset"),
([1, 6], 5, r"subset must be a non-empty subset"),
([True, 2], 5, r"subset elements must be integers"),
([1.5, 2.5], 5, r"subset elements must be integers"),
([1, 2], 0, r"limit_n must be a positive integer"),
([1, 2], True, r"limit_n must be a positive integer"),
]
for bad_sub, bad_lim, pat in bad_fourier:
try:
verify_cyclic_fourier_identity(bad_sub, bad_lim)
return False
except ValueError as exc:
if not re.search(pat, str(exc)):
return False
return True
def run_verification(planted_defect: bool = False) -> tuple[bool, dict[str, Any], list[str]]:
failures: list[str] = []
guards_ok = _check_input_rejections()
if not guards_ok:
failures.append("input rejection guards failed to reject invalid parameters with expected messages")
# 1. Exhaustive r_3(N) for N = 1..24 + independent power-set cross-check on N = 1..14
r3_map, witnesses = compute_exact_r3_sequence(24, planted_defect=planted_defect)
for n_chk in range(1, 15):
bf = brute_force_r3(n_chk)
if r3_map[n_chk] != bf:
failures.append(f"r_3({n_chk}) mismatch: branch-and-bound={r3_map[n_chk]} vs brute-force={bf}")
for n_chk, wit in witnesses.items():
if len(wit) != r3_map[n_chk]:
failures.append(f"witness length mismatch at N={n_chk}")
ap_cnt = count_nontrivial_3aps(wit)
if ap_cnt != 0:
failures.append(f"witness at N={n_chk} contains {ap_cnt} nontrivial 3-APs: {wit}")
cantor_sizes = {n: len(cantor_base3_set(n)) for n in range(1, 25)}
if r3_map.get(9) != 5 or cantor_sizes[9] != 4:
failures.append(f"expected r_3(9)=5 > |C_3(9)|=4, got r_3(9)={r3_map.get(9)}, |C_3(9)|={cantor_sizes[9]}")
if r3_map.get(14) != 8 or cantor_sizes[14] != 8:
failures.append(f"expected r_3(14)=|C_3(14)|=8, got r_3(14)={r3_map.get(14)}")
if r3_map.get(20) != 9 or cantor_sizes[20] != 8:
failures.append(f"expected r_3(20)=9 > |C_3(20)|=8, got r_3(20)={r3_map.get(20)}")
if r3_map.get(24) != 10 or cantor_sizes[24] != 8:
failures.append(f"expected r_3(24)=10 > |C_3(24)|=8, got r_3(24)={r3_map.get(24)}")
# 2. Explicit Behrend shell construction & carry-free 3-AP-freeness sweep across (d in 2..5, m in 2..4)
for d_it in range(2, 6):
for m_it in range(2, 5):
if (d_it ** m_it) > 10_000:
continue
# Under planted_defect, test BOTH isolated knockouts: (a) radix=d on L^2 shells, (b) L^1 slice in radix 2d-1
b_res = construct_behrend_set(d_it, m_it, planted_defect=planted_defect, use_l1_norm=False)
if b_res["distinct_integer_count"] != b_res["shell_vector_count"]:
failures.append(
f"base encoding collision at (d={d_it}, m={m_it}): "
f"{b_res['distinct_integer_count']} != {b_res['shell_vector_count']}"
)
if b_res["nontrivial_3ap_count"] != 0:
failures.append(
f"Behrend L2 shell at (d={d_it}, m={m_it}, radix={b_res['radix']}) contains "
f"{b_res['nontrivial_3ap_count']} nontrivial 3-APs"
)
if planted_defect and d_it == 3 and m_it == 3:
l1_res = construct_behrend_set(3, 3, radix_override=5, use_l1_norm=True)
if l1_res["nontrivial_3ap_count"] != 0:
failures.append(
f"L1 hyperplane slice at (d=3, m=3, radix=5) contains "
f"{l1_res['nontrivial_3ap_count']} nontrivial 3-APs"
)
# Check full slider grid (d in 2..8, m in 2..6) pigeonhole & Cantor consistency
grid_summary: dict[str, Any] = {}
for d_it in range(2, 9):
for m_it in range(2, 7):
ev = evaluate_behrend_slider(d_it, m_it, planted_defect=planted_defect)
if ev["total_grid_vectors"] != (d_it ** m_it):
failures.append(f"histogram sum mismatch at ({d_it}, {m_it})")
if ev["modal_shell_size"] < ev["pigeonhole_floor"]:
failures.append(f"modal shell below pigeonhole floor at ({d_it}, {m_it})")
grid_summary[f"d{d_it}_m{m_it}"] = ev
# 3. Cyclic Z_{2N+1} Fourier 3-AP identity & bias floor sweep across N = 3..24
max_dft_err = 0.0
for n_it in range(3, 25):
wit = witnesses[n_it] if count_nontrivial_3aps(witnesses[n_it]) == 0 else cantor_base3_set(n_it)
f_res = verify_cyclic_fourier_identity(wit, n_it, planted_defect=planted_defect)
max_dft_err = max(max_dft_err, f_res["dft_abs_error"], f_res["dft_imag_residual"])
if f_res["dft_abs_error"] > 1e-12 or f_res["dft_imag_residual"] > 1e-12:
failures.append(
f"DFT 3-AP identity failed at N={n_it}: dft={f_res['dft_triples']:.6f} "
f"vs exact={f_res['exact_ordered_triples']}"
)
if f_res["parseval_nonzero_error"] > 1e-11:
failures.append(f"Parseval identity failed at N={n_it}")
if f_res["max_nonzero_fourier"] + 1e-11 < max(f_res["roth_linear_bias_floor"], f_res["parseval_rms_floor"]):
failures.append(f"Fourier peak below theoretical floor at N={n_it}")
default_eval = evaluate_behrend_slider(5, 4, planted_defect=planted_defect)
fourier_n14 = verify_cyclic_fourier_identity(cantor_base3_set(14), 14, planted_defect=planted_defect)
fourier_n20 = verify_cyclic_fourier_identity(witnesses[20], 20, planted_defect=planted_defect)
report = {
"folio_id": "M.16",
"status": "PASS" if not failures else "FAIL",
"planted_defect": planted_defect,
"input_guards_ok": guards_ok,
"r3_1_to_24": r3_map,
"cantor_1_to_24": cantor_sizes,
"witness_n9": witnesses[9],
"witness_n20": witnesses[20],
"witness_n24": witnesses[24],
"default_slider_d5_m4": default_eval,
"grid_highlights": {
k: grid_summary[k]
for k in ("d2_m3", "d3_m3", "d4_m3", "d5_m4", "d6_m5", "d8_m6")
},
"fourier_n14_cantor": fourier_n14,
"fourier_n20_extremal": fourier_n20,
"max_dft_abs_error": max_dft_err,
"failure_count": len(failures),
"failures": failures[:10],
}
return len(failures) == 0, report, failures
def main(argv: list[str] | None = None) -> int:
parser = argparse.ArgumentParser(description="Deterministic verifier for Folio M.16 progression-free bounds.")
parser.add_argument("--planted-defect", action="store_true", help="Run negative-control planted-defect knockouts.")
parser.add_argument("--json", action="store_true", help="Print full JSON verification report (default behavior).")
args = parser.parse_args(argv)
ok, report, failures = run_verification(planted_defect=args.planted_defect)
print(json.dumps(report, indent=2))
if failures:
for f in failures[:8]:
print(f"FAIL: {f}", file=sys.stderr)
return 0 if ok else 1
if __name__ == "__main__":
sys.exit(main())
Edition history & reviewPublished 2026-11-24 · Updated 2026-11-24 (REV 1.0)
Verification note: twelve primary DOIs (10.1112/jlms/s1-11.4.261, 10.1073/pnas.28.12.561, 10.1073/pnas.32.12.331, 10.1112/jlms/s1-28.1.104, 10.4064/aa-27-1-199-245, 10.1007/s000390050105, 10.4007/annals.2008.167.481, 10.1007/978-0-387-68361-4_9, 10.1007/s11856-011-0061-1, 10.4007/annals.2011.174.1.20, 10.1109/focs57990.2023.00059, 10.2140/ent.2023.2.15) were checked against Crossref, OpenAlex, and Scite on 2026-11-24 with zero retraction notices; skills/math/m16/verify_m16_progression_bounds.py recomputes r_3(1..24), Behrend shells, and Z_{2N+1} DFT identities.