| | @@ -0,0 +1,90 @@ |
| 1 | +# Independent verification of `NOTES.md` (small doubling and large energy) |
| 2 | + |
| 3 | +Verifier: cc-amber-ibis (task t-38224e7793). I did not write the note (cx-brisk-tern) and did not accept it in review (founder did, entry 10316). I read the note at head fe0fd45 line by line and rederived every step below on paper; `verify.py` recomputes the finite counts and constants with its own code. |
| 4 | + |
| 5 | +**Result: no gap found.** Every statement of §§1–5 follows as written. Five remarks at the end record points where the wording is terse or the result is weaker than it may look; none changes a statement. |
| 6 | + |
| 7 | +Status of the note's claims after this check: |
| 8 | + |
| 9 | +| Claim | Status | |
| 10 | +|---|---| |
| 11 | +| (1), (2), Lemma 2, Theorem 1, Theorem 3, Proposition 4, §5 deletion bound, Example 5 | proved on paper, rederived here | |
| 12 | +| Triangle removal with the constant $T(\varepsilon)$ | Lean-checked in Mathlib (not by this swarm); constant compared with the source on disk | |
| 13 | +| Prime number theorem, existence of the rational functional | cited, standard; not rederived | |
| 14 | +| Finite counts, constants, exact integrals | computed, twice independently | |
| 15 | +| Nothing in this folder | Lean-checked by the swarm | |
| 16 | + |
| 17 | +Not checked: the literature. I am offline, so I compared only with the copies in `~/ws/reference/` (Park's paper) and with accepted notes in this repository. |
| 18 | + |
| 19 | +## §1. Inequality (1) |
| 20 | + |
| 21 | +1. **Integer model.** Checked against Park, `main.tex` l. 150–158: same reduction (rational functional injective on $A\cup(A+A)$, clear denominators). The functional is linear, so it preserves pair-sum equalities, and injective on $A+A$, so it reflects them. A progression $a+c=2b$ is a pair-sum equality, so $P(A)$ is preserved, with the middle point staying the middle. Checked. |
| 22 | +2. **Labels preserve equalities.** If $x+y=x'+y'$ then $z_x+z_y-z_{x'}-z_{y'}\in\mathbb Z$, so the label sums differ by a multiple of $m$ plus $e_{x'}+e_{y'}-e_x-e_y\in(-1,1)$, an integer, hence $0$. Checked. |
| 23 | +3. **Extraction.** One input per occupied label in $B+t$: an equality among chosen inputs gives equal label sums mod $m$, so equal unordered label pairs (this needs the Sidon property of $B$ in the strong sense, including $2a=b+c$; Ruzsa's set has it, item 8), so equal input pairs. The mean over $t$ of the number of occupied labels in $B+t$ is $(b/m)H$. Checked. Same argument as Park's Lemma (l. 86–133). |
| 24 | +4. **Fibre identity.** $k-\binom k2+\binom{k-1}2=k-(k-1)=1$ for $k\ge1$; verified for $k<40$. A fibre of size $k$ has $\binom k2-(k-1)=\binom{k-1}2$ nonconsecutive pairs. The endpoints of a progression inside a fibre are nonconsecutive (the middle lies between them) and distinct progressions have distinct endpoint pairs. So $H\ge\sum k-\sum\binom k2+\#\{\text{progressions inside one fibre}\}$. Checked. (Remark 1.) |
| 25 | +5. **Pair probability $1/(4m)$.** $(z_x,z_y)$ is uniform on the torus because $\phi$ is uniform and independent of $\theta$, and $(y-x)\theta$ is uniform. Checked; `verify.py` gets exactly $1/(4m)$ for $m=1,2,3,5,7$ and four pairs. |
| 26 | +6. **Progression probability $1/(8m)$.** With $u$ the centred value of $d\theta$: two points of one window differ by less than $h\le1/2$, so consecutive points differ by exactly $u$; the third position is then $p_1+2u$ with no wrap because $p_2+u<2h\le1$ (this is the only place where $m=1$, $h=1/2$ needs a look). The starting positions form an interval of length $(h-2|u|)_+$, and $m\int_{-h/2}^{h/2}(h-2|u|)\,du=mh^2/2=1/(8m)$. Checked; `verify.py` gets exactly $1/(8m)$ for four progressions and five $m$, and a different value for the non-progression $\{0,1,3\}$ when $m\ge2$. |
| 27 | +7. **(1).** $\mathbb E H\ge N/2-\binom N2/(4m)+P(A)/(8m)$, which is the bracket. Park's Lemma is the case without the last term ($2mbn\le4m^2h(A)+b\binom n2$). Checked; `verify.py` computes $\mathbb E H$ exactly for all 255 nonempty subsets of eight consecutive integers and $m=1,2,3,5$ by a method different from the note's (see below): all 1,020 values satisfy the bound, with equality in 192, and all 1,020 equal the values of the note's quadrature. |
| 28 | +8. **(2).** Ruzsa's set: equal pair sums on the graph $i\mapsto g^i$ give equal sums and equal products in $\mathbb F_q$, hence equal unordered pairs (Park l. 135–149); `verify.py` builds it for $q\le17$ and checks the Sidon property in $\mathbb Z/q(q-1)$ including doubled elements. With $m=q(q-1)\sim cN$: coefficient $1/(2\sqrt c)-(1-\rho)/(8c^{3/2})$; derivative zero at $c=3(1-\rho)/4$, value $1/(3\sqrt c)=2/\sqrt{27(1-\rho)}$; at $c=3/4$ it is $(2/\sqrt3)(1/3+\rho/6)=c_0+\rho/(3\sqrt3)$; and $4/(27(1-\rho))>(77/200)^2$ iff $\rho>83/160083$. Checked, also in exact rationals on a grid of $c$. |
| 29 | + |
| 30 | +## §2. Lemma 2 and Theorem 1 |
| 31 | + |
| 32 | +9. **The removal lemma used.** Mathlib `SimpleGraph.FarFromTriangleFree.le_card_cliqueFinset`: if at least $\varepsilon v^2$ edges must be deleted to make $G$ triangle-free (`DeleteFar`), then `triangleRemovalBound ε * v^3 ≤ #(G.cliqueFinset 3)`; `cliqueFinset 3` is a set of 3-subsets, so unordered triangles. No hypothesis $\varepsilon\le1$. On disk (`lake-manifest.json` pins rev `0df444a3…`, the commit the note links): `triangleRemovalBound ε = min (2⌈4/ε⌉³)⁻¹ ((1 − min 1 ε/4)(ε/(16·bound (ε/8) ⌈4/ε⌉))³)`, `bound t l = S·16^S` with `S = stepBound^[⌊4/t⁵⌋] (initialBound t l)`, `stepBound n = n·4^n`, `initialBound t l = max 7 (max l (⌊log(100/t⁵)/log 4⌋ + 1))`. This is the note's $T$, $t$, $l$, $j$, $u_0$, $B_*$ for $\varepsilon\le1$. The min is the displayed term because it is at most $\varepsilon^3/4096$ while $1/(2l^3)\ge\varepsilon^3/250$. Checked. |
| 33 | +10. **Lemma 2, lower count.** The triangle of $(a,b)$ has edges $(b-a,b)$, $(b,b+a)$, $(b-a,b+a)$; each edge determines $(a,b)$, so the $\ge\gamma N^2$ designated triangles are edge-disjoint and $\gamma N^2=\varepsilon(CN)^2$ deletions are needed with $\varepsilon=\gamma/C^2\le1$. Checked. |
| 34 | +11. **Lemma 2, upper count.** The graph is tripartite, so a triangle is $(x,b,z)$; its edges give $p=b-x$, $r=z-b$, $q=(z-x)/2$ in $A$ with $p+r=2q$, and $(b,p,r)$ determines the triangle. Ordered solutions of $p+r=2q$: $N+2P(A)$. So $C^3T(\gamma/C^2)N^3\le N(N+2P(A))$, which is (3). Checked; `verify.py` builds the graph for 300 random $(A,X,Z)$, asserts edge-disjointness, enumerates all triangles (113 instances have unintended ones) and asserts both counts. |
| 35 | +12. **Theorem 1.** The map $(d,b)\mapsto(u_d+b,v_d+b)$ is injective, so $|A-A|\le K^2N$ (also asserted on 100 random sets); $|X|+N+|Z|\le(1+K+K^2)N$; $\rho_K=C^3T(1/C^2)/2<1$ from $T\le1/(2(4C^2)^3)$; gain at $c=3/4$ is $\rho_K/(3\sqrt3)>\rho_K/6=\kappa_K$, and the $o(1)$ terms ($1/(2N)$ and the prime) do not depend on $A$. Checked. Constants recomputed: $\kappa_K=(1-\varepsilon/4)/(49152\,C^3B_*^3)$; for $K=2,\,9/4,\,5/2,\,4,\,10$: $C=7,9,10,21,111$, $u_0=196,324,400,1764,49284$, $j=4(8C^2)^5$, and $j=2{,}186{,}265{,}359{,}574{,}761{,}472$ at $K=4$ as stated. (Remark 2.) |
| 36 | + |
| 37 | +## §3. Theorem 3 |
| 38 | + |
| 39 | +13. Unpopular sums carry at most $\alpha N\cdot N^2$ quadruples; the quadruples with a given $e$ (or $f$) number $r_-(e)^2$, so the same bound holds for each difference; $\eta-3\alpha=\alpha$ remains. $|D|\le N/\alpha$ gives an $f$ with $\ge\alpha^2N^2$ quadruples; $(a,b)$ determines the quadruple, $a+b\in S$, $b-a=-e-f$. $|X|+N+|Z|\le(1+8/\eta)N$, $\gamma=(\eta/4)^2$. Checked; `verify.py` runs the whole chain on 66 sets (intervals, squares, powers of two, random sets, an interval with far points) and feeds the resulting pairs to the Lemma 2 graph. |
| 40 | +14. $E(A)|A+A|\ge N^4$ and $N+2P(A)=\sum_q r(2q)\le\sqrt{NE(A)}$ by Cauchy–Schwarz. Checked on paper and asserted on the same sets. The equivalence $E=o(N^3)\iff P=o(N^2)$ follows. Checked. |
| 41 | + |
| 42 | +## §4. Proposition 4 |
| 43 | + |
| 44 | +15. Reduction mod $L$ loses at least one sum at each of the $N-2$ interior points and at least two at residue $0$: $|D+D|\le s_2-N<3d/2$. Then $|D\cap(D+h)|\ge2d-|D+D|>d/2$ for $h\in D-D$; two subsets of $D$ larger than $d/2$ meet, so $D-D$ is closed under addition, a subgroup containing the generating set $D$; summing over all $L$ shifts gives $d^2>Ld/2$, hence $D+D=\mathbb Z/L$ and $L\le s_2-N$. Checked. `verify.py` asserts each of these steps separately on all 261,566 normalized sets with maximum at most 18 (4,674 satisfy the hypothesis; $L=s_2-N$ in 534). |
| 45 | +16. Extraction: reduction mod $q(q-1)>L$ is injective, the mean over translates is $N/q$, and a pair-sum equality in the model passes to residues. Coefficient $1/\sqrt{K-1}$, and $\sqrt{2/3}>4/5$ over the whole range. Checked; the script reruns a 116-point example through its own Ruzsa set ($q=13$, mean $116/13$, best 12, every translate Sidon). |
| 46 | + |
| 47 | +## §5. Low energy and Example 5 |
| 48 | + |
| 49 | +17. $E=2N^2-N+4P+8F$: the solutions of $a+b=c+d$ are the trivial ones, the progressions (4 orderings each) and four distinct points (8 orderings, one pairing). Asserted on all 2,047 nonempty subsets of $[0,10]$, with the uniqueness of the pairing. Deletion bound by linearity of expectation; $1/2-14/128=25/64>77/200$, and $p^3P=O(N^{1/4})$. Checked. |
| 50 | +18. Theorem D and Proposition E of `../dichotomy/NOTES.md` say what the note quotes: gain $(2/\sqrt3)(1/81-\rho_4)$, and $\rho_4\ge(1-o(1))n^2/(288X)-(1+o(1))/162$ for diameter below $X$. $R_4$ is a weighted count of $\xi$ with $\sum\xi_i=0$, $\sum\xi_ia_i=0$ (Corollary B′), so it is unchanged by $x\mapsto u+vx$. Checked. |
| 51 | +19. Example 5: $|G|=2L$, $|B|=4^h$, $B+B=[0,L^2-1]$, $E(B)=36^h$, $36^h\le E(A)\le36^h+4|G|N^2$, so $E/N^{5/2}\to\infty$ like $(9/8)^h$ and $E/N^3\to0$; $B$ has no progression; the three relations reach every point from $\psi(0),\psi(1)$, so models are affine; the binary reading preserves pair-sum equalities (only this direction is needed to pull a Sidon set back). Checked on paper and for $h=1,2,3$ in the script. (Remark 3.) |
| 52 | + |
| 53 | +## Remarks |
| 54 | + |
| 55 | +1. The polynomial identity of item 4 is false at $k=0$ ($\binom{-1}{2}=1$). The note uses the count of nonconsecutive pairs, which is $0$ there, and says so. Fine. |
| 56 | +2. $\kappa_K$ is positive but far below anything computable: $B_*$ is a tower of height $j\approx3.7\cdot10^{13}$ already at $K=2$. Theorem 1 is a qualitative gain; the threshold in $N$ is equally large. The note does not claim otherwise. |
| 57 | +3. Example 5 is asymptotic only. The computed $E/N^{5/2}$ is 1.35, 1.58, 1.77 at $h=1,2,3$ (1.95 at $h=4$ from `check.py`'s output), all inside the low-energy range $E\le14N^{5/2}$ of §5; the bound $E\ge36^h$ with $N\le4^h+2\cdot3^h$ guarantees $E>14N^{5/2}$ from $h=23$. So no instance within reach of the scripts lies in the gap. The statement itself is correct. |
| 58 | +4. (1) charges only progressions. A nonconsecutive pair of a fibre that is not a progression's endpoint pair is dropped, which is why equality holds in only 192 of the 1,020 cases. |
| 59 | +5. Proposition 4's range is not the natural one: the model statement is Freiman's $3k-4$ conclusion (task t-1125f39266 extends it). |
| 60 | + |
| 61 | +## The script |
| 62 | + |
| 63 | +```sh |
| 64 | +python3 -B experiments/erdos530/lower-small-doubling/verify.py # about 20 s |
| 65 | +``` |
| 66 | + |
| 67 | +Occupancy method, independent of `../beyond2/triples.py`: cut the circle into all $2m$ cells of width $1/(2m)$ and let $c_x=\lfloor2mx\theta+f\rfloor\bmod 2m$. The integer part of $2m\phi$ rotates the cells, so the mean of a statistic of the retained (even) cells is half its mean over all cells: $\mathbb EH=\tfrac12\,\mathbb E\,\#\{c_x\}$. On a $\theta$-interval avoiding $2mx\theta\in\mathbb Z$ and $2m(x-y)\theta\in\mathbb Z$ the breakpoints in $f$ are linear in $\theta$ in a fixed order, so the midpoint rule is exact in rationals. Only the last step of the script imports the note's quadrature, to compare values. |
| 68 | + |
| 69 | +Output at fe0fd45 (exit 0): |
| 70 | + |
| 71 | +``` |
| 72 | +[1] pair collision 1/(4m), progression collision 1/(8m): exact for m=1,2,3,5,7 |
| 73 | +[1] inequality (1): 1020 exact occupancy means, equality in 192 |
| 74 | +[1] Ruzsa sets Sidon for q<=17; optimum c=3(1-rho)/4, value 4/(27(1-rho)); threshold 83/160083 |
| 75 | +[2] K=2: C=7, eps=1/49, u_0=196, j=37024595836928, kappa_K=(65/1101463552)/B_*^3 |
| 76 | +[2] K=9/4: C=9, eps=1/81, u_0=324, j=457019805007872, kappa_K=(323/11609505792)/B_*^3 |
| 77 | +[2] K=5/2: C=10, eps=1/100, u_0=400, j=1310720000000000, kappa_K=(133/6553600000)/B_*^3 |
| 78 | +[2] K=4: C=21, eps=1/441, u_0=1764, j=2186265359574761472, kappa_K=(1763/802966929408)/B_*^3 |
| 79 | +[2] K=10: C=111, eps=1/12321, u_0=49284, j=37216858748603802006454272, kappa_K=(49283/3312959137579008)/B_*^3 |
| 80 | +[2] Lemma 2 graph: 300 random instances, designated triangles edge-disjoint, all triangles <= N(N+2P); 113 have unintended triangles |
| 81 | +[3] Theorem 3 on 66 sets: popular labels, common shift f, |X|+N+|Z| <= ceil(1+8/eta)N, gamma=(eta/4)^2; 4 with a proper subgraph |
| 82 | +[4] Proposition 4: 261566 normalized sets with max <= 18, 4674 in the range 2|A+A| < 5N-3, all steps hold, L = |A+A|-N in 534 |
| 83 | +[4] extraction: N=116, |A+A|=261, q=13, mean 116/13, best 12 |
| 84 | +[5] E = 2N^2 - N + 4P + 8F on 2047 subsets of [0,10]; 1/2 - 14/128 = 25/64 |
| 85 | +[5] Example 5, h=1: N=7, |A+A|=16, E(A)=175, E/N^2.5=1.350, E/N^3=0.5102 |
| 86 | +[5] Example 5, h=2: N=27, |A+A|=111, E(A)=5967, E/N^2.5=1.575, E/N^3=0.3032 |
| 87 | +[5] Example 5, h=3: N=103, |A+A|=874, E(A)=190307, E/N^2.5=1.768, E/N^3=0.1742 |
| 88 | +[9] all 1020 occupancy means equal the note's quadrature values |
| 89 | +verify.py: all checks passed |
| 90 | +``` |