| | @@ -0,0 +1,254 @@ |
| 1 | +# Independent verification of NOTES.md |
| 2 | + |
| 3 | +Scope: `NOTES.md` in this folder (the theorem STAB(1/1001, 3600) and the |
| 4 | +corollary limsup ℓ(N)/√N ≤ 1 − 2^(−8027)), read line by line against the |
| 5 | +operator's offline copy of Phal–Gemini's paper (`erdos_530.tex`; the |
| 6 | +notes cite the repository at 42a01f6, which I could not reach to |
| 7 | +compare). Verifier: cc-amber-ibis; the notes are by cx-north-wren. |
| 8 | + |
| 9 | +**Result: no gap found.** Every step below was re-derived by hand, and |
| 10 | +every constant was recomputed by `verify_independent.py`, which was |
| 11 | +written from the notes alone and does not use `check_constants.py`. |
| 12 | +Section 7 lists remarks; none of them affects correctness. |
| 13 | + |
| 14 | +Status of the claims after this check: |
| 15 | + |
| 16 | +- Theorem and corollary: proved on paper, now read by a second member. |
| 17 | + Nothing here is Lean-checked. |
| 18 | +- Constants: exact rational arithmetic, with each square root replaced by |
| 19 | + a rational upper bound from an integer square root (parts A and B). |
| 20 | +- Identities and parameter-free inequalities: confirmed by computation |
| 21 | + on 24 (Sidon set, L, h) cases (part C). This supports the algebra; it |
| 22 | + is not a proof, and the theorem's own range (√M ≥ 10⁵/τ² ≥ 10¹¹) is |
| 23 | + out of reach of explicit sets. |
| 24 | +- Imported lemmas: I read their statements and proofs in the paper. I |
| 25 | + did not rebuild Phal–Gemini's Lean, and I could not check any |
| 26 | + literature beyond the offline copies. |
| 27 | + |
| 28 | +Rerun from the repository root (about 25 s): |
| 29 | + |
| 30 | + python3 experiments/erdos530/upper-stability/verify_independent.py |
| 31 | + |
| 32 | +Its output is in `verify_independent.log`. |
| 33 | + |
| 34 | +Line numbers refer to `NOTES.md`. Notation is the notes': k, L, h, q, |
| 35 | +D, u_t, s_t, g_t, ρ, V, P, W, v_t, m, F_x, R(x), B, b, f(d), T. |
| 36 | + |
| 37 | +## 1. Set-up (lines 34–41). Checked. |
| 38 | + |
| 39 | +- τ√M ≥ 10⁵/τ ≥ 1, so (1−τ)√M ≤ k < (1−τ)√M + 1 ≤ √M. |
| 40 | +- M ≥ 10¹⁰/τ⁴ gives τM ≥ 10¹⁰/τ³ ≥ 10⁴. Then L > τM/100 − 1 ≥ τM/200, |
| 41 | + h > 500τM − 1 ≥ 499τM, h ≥ 1000, 499τ ≤ q ≤ 500τ, |
| 42 | + L/h ≤ (τM/100)/(499τM), and 2h + L ≤ (1000 + 1/100)τM < M because |
| 43 | + 1000.01/1001 < 1. |
| 44 | +- Part B evaluates all of these with the true floors for |
| 45 | + τ ∈ {1/1001, 1/1500, 10⁻⁴, 10⁻⁹, 33·2^(−8020)/64} and four values of M |
| 46 | + each, starting at the least admissible M. |
| 47 | + |
| 48 | +## 2. Short-window variance (lines 43–63). Checked. |
| 49 | + |
| 50 | +- Moment formulas: these are the paper's sliding-window lemma, parts (i) |
| 51 | + and (ii), in the form "wk + 2Σ_{d∈D, d<w}(w−d)" that appears inside |
| 52 | + its proof. They hold for every w ≥ 1. Part C checks both for w = L and |
| 53 | + w = h. |
| 54 | +- There are M+L−1 starts and Σu_t = Lk, so Lρ is the mean and |
| 55 | + V = Σu_t² − L²k²/(M+L−1) ≤ L² + Lk − L²k²/(M+L−1). |
| 56 | +- k² ≥ (1−τ)²M ≥ (1−2τ)M and M+L−1 ≤ (1+τ/100)M give |
| 57 | + k²/(M+L−1) ≥ (1−2τ)(1−τ/100) ≥ 1 − (2+1/100)τ. |
| 58 | + k/L ≤ √M/(τM/200) = 200/(τ√M) ≤ τ/500, which uses the hypothesis |
| 59 | + τ²√M ≥ 10⁵ exactly. 2 + 1/100 + 1/500 = 2.012 < (71/50)² = 2.0164. |
| 60 | +- ρ ≥ (1−τ)√M/((1+τ)M) ≥ (1−2τ)/√M and ρ ≤ k/M since L ≥ 1. |
| 61 | +- (1) is Cauchy–Schwarz: |Σv_t(u_t − Lρ)| ≤ √(Σv_t²)·√V, divided by L. |
| 62 | + The weights may have any sign. |
| 63 | + |
| 64 | +## 3. Long-window missing differences (lines 67–128). Checked. |
| 65 | + |
| 66 | +- Σg_t² = (M−h+1) + 2(h−1)(2h−1)/(6h) = M − h/3 + 1/(3h). Needs h ≤ M. |
| 67 | +- Contribution of a ∈ S to P: a left-ramp start with overlap [1,u] |
| 68 | + contains a iff u ≥ a, so the left ramp gives |
| 69 | + Σ_{u=a}^{h−1}(h−u)/h = (h−a)(h−a+1)/(2h) = W(a), and 0 if a ≥ h. The |
| 70 | + right ramp gives W(φ(a)). Part C checks P = Σ_a (W(a)+W(φ(a))) |
| 71 | + exactly. |
| 72 | +- W, extended by W(1) to j ≤ 0, is non-increasing. For a ∈ [t,t+L−1]: |
| 73 | + a ≥ t and φ(a) ≥ M+2−L−t, so W(a)+W(φ(a)) ≤ v_t. The L starts |
| 74 | + a−L+1,…,a all lie in [2−L, M], so L·P ≤ Σ_t v_t u_t. |
| 75 | +- The first summand of v is positive only for t ≤ h−1 and the second |
| 76 | + only for t ≥ M+3−L−h; these are disjoint because 2h+L < M. |
| 77 | +- Σ_{t=1}^{h−1} W(t) = Σ_{n=1}^{h−1} n(n+1)/(2h) = (h²−1)/6. |
| 78 | + Σ_{t=1}^{h−1} W(t)² ≤ h³/20, from |
| 79 | + ∫_n^{n+1} z⁴ dz − n²(n+1)² = n² + n + 1/5 > 0. |
| 80 | + The L−1 starts t ≤ 0 each add W(1) = (h−1)/2 ≤ h/2. So |
| 81 | + Σv_t ≤ 2[(h²−1)/6 + (L−1)(h−1)/2] ≤ h²/3 + Lh and |
| 82 | + Σv_t² ≤ 2[h³/20 + (L−1)h²/4] ≤ h³/10 + Lh²/2. |
| 83 | +- (2): P ≤ Σv_tu_t/L ≤ ρΣv_t + (71/50)√(τΣv_t²), with ρ ≤ k/M and |
| 84 | + v ≥ 0, then divide by hk. |
| 85 | +- Σ(s_t − (hk/M)g_t)² ≥ 0 with Σs_tg_t = hk − P gives the displayed |
| 86 | + lower bound for Σs_t². The identity 2hm = hk + h(h−1) − Σs_t² is the |
| 87 | + paper's lemma (ii) with w = h. |
| 88 | +- (3), written out. From the two displays, |
| 89 | + m/(h²/M) ≤ kM/(2h²) + (M−k²)/(2h) − M/(2h²) − k²/(6M) + k²/(6h²M) |
| 90 | + + kP/h². |
| 91 | + Insert (2) in the last term: kP/h² ≤ k²/(3M) + (k²/M)(L/h) |
| 92 | + + (71/50)(k/√M)√(τ/q)√(1/10 + L/(2h)). Then |
| 93 | + (M−k²)/(2h) ≤ 2τM/(2h) = τ/q; −k²/(6M) + k²/(3M) = k²/(6M) ≤ 1/6; |
| 94 | + (k²/M)(L/h) ≤ L/h; k²/(6h²M) ≤ 1/(6h²); and k/√M ≤ 1. |
| 95 | + This is (3), without the factor 1/(1−τ) (remark 7.1). |
| 96 | +- Numbers: τ/q ≤ 1/499, L/h ≤ 1/49900, 1/(1−τ) ≤ 1001/1000, |
| 97 | + 1/(6h²) ≤ 1/(6·10⁶), |
| 98 | + kM/(2h²) ≤ 1/(2·499²·τ²√M) ≤ 1/(200000·499²). |
| 99 | + Sum, with a rational upper bound for the square root: |
| 100 | + **0.1888139… < 0.189**. With the true floors (part B) the right side |
| 101 | + of (3) is between 0.18877 and 0.18879 in all 20 cases. |
| 102 | +- Part C checks, on explicit sets, P ≤ Σv_tu_t/L, both bounds on Σv_t |
| 103 | + and Σv_t², (1) and (2) with the true V, the lower bound for Σs_t², the |
| 104 | + identity for 2hm, and the six-term bound for m/(h²/M) with √V/L in |
| 105 | + place of (71/50)√τ. It also checks that the six-term form equals the |
| 106 | + direct substitution of (2) into the two displays plus exactly the two |
| 107 | + dropped terms M/(2h²) and (1−k²/M)/(6h²). |
| 108 | + |
| 109 | +## 4. Few exceptional points (lines 132–184). Checked. |
| 110 | + |
| 111 | +- For x ≤ ⌈M/2⌉ and L ≤ j < h the window [x+j−L+1, x+j] lies in |
| 112 | + [x+1, x+h−1] ⊆ [M] (h < M/2), and its start lies in [2−L, M]. An |
| 113 | + a ∈ S in it has 1 ≤ a−x ≤ j, so the weight is ≤ 1−(a−x)/h; a lies in |
| 114 | + at most L windows; an a with a−x ∉ [1,h−1] lies in none. Hence |
| 115 | + Σ(weights·u)/L ≤ F_x. |
| 116 | +- Weight sum ≥ (h−1)/2 − (L−1) ≥ h/2 − L; squared sum |
| 117 | + ≤ (h−1)(2h−1)/(6h) ≤ h/3. |
| 118 | +- (4): (1) and ρ ≥ (1−2τ)/√M give |
| 119 | + F_x/(h/√M) ≥ (1−2τ)(1/2−L/h) − (71/50)√(τ/(3q)); the worst case is |
| 120 | + (999/1001)(1/2 − 1/49900) − (71/50)√(1/1497) = **0.4622800… > 0.4621** |
| 121 | + (rational upper bound for the square root). Part B: 0.46232 to 0.46332. |
| 122 | +- T ≥ (462/1000)hb/√M: Σ_{d<h} w_d f(d) = Σ_{x∈B} F_x exactly. For |
| 123 | + d = u−v ∈ D the map (x,a) ↦ (a,v,u) lands in the triples counted by |
| 124 | + R(x) and is injective for fixed x, so |
| 125 | + Σ_{d∈D} w_d f(d) ≤ Σ_{x∈B} R(x) < b·h/(10000√M). |
| 126 | +- Mixed moment: f(d)² counts pairs ((x₁,a₁),(x₂,a₂)) with common |
| 127 | + difference d. Those with x₁ = x₂ have a₁ = a₂ and number f(d), so on |
| 128 | + the missing differences they carry weight exactly T. For x₁ ≠ x₂, |
| 129 | + a₁−a₂ = x₁−x₂ ≠ 0 fixes (a₁,a₂), hence d: at most b(b−1) in total, |
| 130 | + each with weight ≤ 1. Cauchy–Schwarz with √w_d·(√w_d f(d)) gives |
| 131 | + T² ≤ m·Σ_{d∉D} w_d f(d)² ≤ m(T + b(b−1)). |
| 132 | + This is the step that replaces the paper's local upper bound |
| 133 | + (21/20)η√M for the diagonal. Part C checks all four relations of this |
| 134 | + paragraph for eight choices of B per case (the lowest-R points and |
| 135 | + random ones). |
| 136 | +- t ↦ t²/(t+b²) is increasing (derivative (t²+2tb²)/(t+b²)²), so |
| 137 | + T₀ = a·hb/√M satisfies T₀² ≤ m(T₀+b²) < β(h²/M)(T₀+b²). Dividing by |
| 138 | + b·h²/M: a²b ≤ β(a·h/√M + b), so b ≤ βa/(a²−β)·h/√M, with |
| 139 | + a² − β = 0.024444 > 0. |
| 140 | +- Reflection: R_{φ(S)}(φ(x)) = R_S(x), φ(S) is Sidon of size k, and φ |
| 141 | + maps [⌈M/2⌉+1, M] onto [1, ⌊M/2⌋]. Part C checks the R identity. |
| 142 | + Total: 2βa/(a²−β)·h/√M ≤ 1000βa/(a²−β)·τ√M = **3572.16…τ√M < 3600τ√M**. |
| 143 | + |
| 144 | +## 5. Fingerprints and the number of containers (lines 188–220). Checked. |
| 145 | + |
| 146 | +- For x ∉ S: c ∉ {a,b} (else x ∈ S), the set {a,b,c} has 2 or 3 |
| 147 | + elements, and a+b = c+x with x ∉ {a,b} is a violation. Degree ≤ 2: |
| 148 | + as c, the sum x+c fixes {a,b}; as a (after a swap), b−c = x−a ≠ 0 |
| 149 | + fixes (b,c). A maximal disjoint subfamily has at least |
| 150 | + (number of sets)/6 ≥ R(x)/162 members. This is the paper's container |
| 151 | + lemma argument unchanged. Part C checks sizes, violations, degree ≤ 2 |
| 152 | + and the two counting bounds for 150 points x per case. |
| 153 | +- p < 1 on the whole admissible range: p³ ≤ 3240000·log M/(499τ√M), |
| 154 | + log M/√M is decreasing, and at √M = 10⁵/τ² the bound is |
| 155 | + 0.13·τ·log(10⁵/τ²) ≤ 0.0033. So the branch p = 1 never occurs. |
| 156 | +- (1−p³)^(members) ≤ exp(−p³L_*) = M⁻², union bound 1/M, Markov 1/2, |
| 157 | + 1/M + 1/2 < 1. S ⊆ C(U) since U ⊆ S; C(U) ⊆ S ∪ {exceptional}; |
| 158 | + |C(U)| ≤ k + 3600τ√M ≤ (1+3600τ)√M. |U| ≤ 2pk ≤ 2p√M, so the family |
| 159 | + indexed by |U| ≤ ⌊2p√M⌋ contains C(U). |
| 160 | +- Larger Sidon sets: S' ⊇ S ⊇ U, so U∪{x} is Sidon for x ∈ S'. Correct. |
| 161 | +- **Why the exponent differs from the paper's.** It does not come from a |
| 162 | + new idea. The paper proves |𝒞_M| ≤ exp(2t_M log M) with |
| 163 | + t_M = O_δ(M^(1/3)(log M)^(1/3)), which is |
| 164 | + exp(4(144/5)^(1/3) δ^(−1/3) M^(1/3) (log M)^(4/3)), and only then |
| 165 | + applies log M ≤ 16M^(1/16), so that (log M)^(4/3) ≤ 64·M^(1/12) and |
| 166 | + 1/3 + 1/12 = 5/12. That last step is there to make N₀ explicit and |
| 167 | + free of logarithms for the Lean proof. The notes stop one step |
| 168 | + earlier. Their bound is right, and explicit: with |
| 169 | + t = ⌊2p√M⌋ ≤ 2(3240000/(499τ))^(1/3) M^(1/3)(log M)^(1/3), |
| 170 | + Σ_{j≤t} C(M,j) ≤ (t+1)M^t ≤ M^(2t) |
| 171 | + ≤ exp(74.63 τ^(−1/3) M^(1/3) (log M)^(4/3)). |
| 172 | + The price is that the corollary holds "for all sufficiently large N" |
| 173 | + with no stated N₀ (remark 7.3). |
| 174 | + |
| 175 | +## 6. Corollary (lines 224–278). Checked. |
| 176 | + |
| 177 | +Parameters: δ = 2^(−8020), τ = 33δ/64 ≤ 1/1001, B₀δ = 3600τ. |
| 178 | + |
| 179 | +- Lower tail: the paper's finite-probability lemma (vii) with Ω the |
| 180 | + container, p = δ, γ = δ/64 ∈ (0,1] gives |
| 181 | + P(|D| ≤ (63/64)δn) ≤ exp(−(δ/64)²n/4), and n ≥ (1−τ)√M. |
| 182 | +- n ≤ (1+δ/4)√M: survivors ≤ (1−63δ/64)(1+δ/4)√M |
| 183 | + < (1−47δ/64)√M < (1−33δ/64)√M. Exact check at δ = 2^(−8020). |
| 184 | +- n > (1+δ/4)√M: the violation hypergraph has rank ≤ 4; a transversal's |
| 185 | + complement is Sidon, so by the paper's window lemma (iii) (M ≥ 16) it |
| 186 | + has at most ⌊√M + 2M^(1/4)⌋ points, and t = n − ⌊√M + 2M^(1/4)⌋ is a |
| 187 | + lower bound for every transversal. For large M, |
| 188 | + (1/4 − 1/256)δ√M ≤ t ≤ n − √M ≤ B₀δ√M. |
| 189 | +- If S survives with |S| ≥ (1−τ)√M and |D| > (63/64)δn, then |
| 190 | + T = (C∖D)∖S has |T| ≤ s and T ∪ D is a transversal. Then |
| 191 | + t − s ≥ (63/64)δn − τ√M − 2M^(1/4) |
| 192 | + ≥ (63/64 − 33/64 − 1/256)δ√M = (119/256)δ√M, and |
| 193 | + 4000·119/256 = 1859.375 > B₀ = 1856.25, so t − s ≥ t/4000. |
| 194 | +- Transcript lemma hypotheses (paper's dimension-free lemma): r = 4 ≥ 1; |
| 195 | + t ≥ 1 an integer; 0 ≤ s < t; every hitting set has size ≥ t; deletion |
| 196 | + probability δ; and for the compact form 0 < δ < ε = 1/4000 < 1 with |
| 197 | + t − s ≥ εt. All hold. The bound is [4(4000eδ)^(1/4000)]^t. |
| 198 | + Base: [·]^4000 = 2^8000·4000e·δ < 2^8000·12000·2^(−8020) = 12000/2^20 |
| 199 | + ≤ 2^(−6) (exact check; uses e < 3). |
| 200 | +- Union bound: 2^(−6t/4000) with t ≥ (63/256)δ√M, plus the tail term, |
| 201 | + against exp(O(M^(1/3)(log M)^(4/3))) containers. |
| 202 | +- M = ⌊N/(1−δ−δ²)⌋ ≤ 2N. Mean (1−δ)M > N + δ²N/(1−δ−δ²) − 1, variance |
| 203 | + Mδ(1−δ) ≤ M, Chebyshev. |
| 204 | +- Trimming: c = 1 − δ/128 = 1 − 2^(−8027). |
| 205 | + c²(1−δ−δ²) − (1 − 65δ/64 − δ²) |
| 206 | + = δ²/64 + δ²/2¹⁴ + δ³(1/64 − 1/2¹⁴) − δ⁴/2¹⁴ ≥ 0, and |
| 207 | + (1 − 65δ/64 − δ²) − (1 − 33δ/64)² = δ/64 − (5185/4096)δ² > 0 for |
| 208 | + δ < 64/5185. Both also checked exactly at δ = 2^(−8020). So |
| 209 | + c√N > (1−τ)√M and every Sidon subset of the trimmed set has fewer |
| 210 | + than (1−τ)√M < (1 − 2^(−8027))√N elements. |
| 211 | + |
| 212 | +Hypotheses of the imported statements, compared with the paper: |
| 213 | + |
| 214 | +| used in the notes | paper statement | hypotheses there | met | |
| 215 | +|---|---|---|---| |
| 216 | +| moment formulas, w = L and w = h | sliding-window lemma (i), (ii) | M ≥ 1, w ≥ 1, S ⊆ [1,M] Sidon | yes | |
| 217 | +| k < √M + 2M^(1/4) | sliding-window lemma (iii) | M ≥ 16 | yes | |
| 218 | +| lower tail for the number of deleted points | finite-probability lemma (vii), with (iii), (iv) | Ω finite, p ∈ [0,1], γ ∈ (0,1] | yes, γ = δ/64 | |
| 219 | +| Markov, union bound, disjoint avoidance | finite-probability lemma (ii), (v), (vi) | p ∈ [0,1] | yes | |
| 220 | +| transcript bound | hitting-set transcript lemma, compact form | r, t ≥ 1; 0 ≤ s < t; rank ≤ r; hitting sets ≥ t; 0 < δ < ε < 1; t − s ≥ εt | yes | |
| 221 | +| Sidon definition | paper's definition (repeated summands allowed) | same | yes | |
| 222 | + |
| 223 | +I also read the Lean statements of four of these in the offline copy's |
| 224 | +`Erdos530.lean`: `finProb_lower_tail` (l. 681), `hitting_set_drop_prob` |
| 225 | +(l. 890), `sum_winCount_sq` (l. 1060) and `sidon_card_lt_erdos_turan` |
| 226 | +(l. 1203). Their hypotheses are the paper's (the transcript lemma takes |
| 227 | +natural numbers τ, s with ε·τ ≤ τ − s, 0 < δ < ε < 1, 1 ≤ r). All four |
| 228 | +are `private` there, so a Lean version of the corollary could not import |
| 229 | +them and would have to prove them again. |
| 230 | + |
| 231 | +## 7. Remarks (none is a gap) |
| 232 | + |
| 233 | +1. Line 116: the factor 1/(1−τ) is not needed, because the term comes |
| 234 | + with k/√M ≤ 1 (section 3). Keeping it only weakens the bound; the sum |
| 235 | + without it is 0.18879. |
| 236 | +2. Line 49: the bound "≤ wk + w²" can be wk + w(w−1); not used further. |
| 237 | +3. The corollary is asymptotic. My estimate (floating point, not a |
| 238 | + proof) for where its union bound starts to work, from |
| 239 | + 74.63τ^(−1/3)M^(1/3)(log M)^(4/3) < (δ/64)²(1−τ)√M/4, is |
| 240 | + M ≳ 2^112540. The other two size conditions (√M ≥ 10⁵/τ² and |
| 241 | + 2M^(1/4) ≤ (δ/256)√M) need only M ≥ 2^32118. The paper's N₀ is |
| 242 | + 2^29400300. |
| 243 | +4. Tight spots, in case the constants are changed later: (3) has margin |
| 244 | + 1.9·10⁻⁴, (4) has margin 1.8·10⁻⁴, a² − β = 0.0244, 3572.2 against |
| 245 | + 3600, and 1859.375 against B₀ = 1856.25. The choice δ = 2^(−8020) is |
| 246 | + forced by the transcript base: it needs δ < 2^(−8000)/(4000e), about |
| 247 | + 2^(−8013.4). |
| 248 | +5. Part D of the script is only a sanity probe: for Ruzsa sets with |
| 249 | + p = 211 and p = 499 and h between M/20 and M/3, m/(h²/M) is between |
| 250 | + 0.15 and 0.24, consistent with the boundary constant 1/6 plus |
| 251 | + lower-order terms. It asserts nothing. |
| 252 | +6. Part C runs at toy sizes (M ≤ 2162), where the bounds are valid but |
| 253 | + far from sharp; it confirms the direction and algebra of each step, |
| 254 | + not the constants 189/1000 and 4621/10000. |