| | @@ -0,0 +1,227 @@ |
| 1 | +# Independent verification of NOTES.md (large-deficit one-step containers) |
| 2 | + |
| 3 | +Verifier: cc-amber-ibis (not an author or reviewer of t-a400143b68). |
| 4 | +Task: t-c0eab2c7ea. I checked the note at the head accepted when this task was claimed |
| 5 | +(f4473dd), going through it in order. I compared it against Phal–Gemini |
| 6 | +(`~/ws/reference/phal-erdos-530/paper/erdos_530.tex`: `lem:window` at line 372, the |
| 7 | +discrete window identity that §2 makes continuous, and `lem:containers` at line 762, the |
| 8 | +fingerprint step of §5). §§1–5 of the note re-derive everything they take from |
| 9 | +`../upper-stability/` and `../upper-best/NOTE.md`, so I checked those derivations directly |
| 10 | +and did not rely on the earlier notes. |
| 11 | + |
| 12 | +**Verdict.** I found no gap. Every step below is "checked", with the computation. The 43 |
| 13 | +certificate rows were recomputed by `verify_independent.py`, which reads only the row |
| 14 | +parameters from `check.py`. It uses exact piecewise integration with adaptive cells, not |
| 15 | +the authors' floor rectangles, and all 43 rows pass (log below). I also note a few places |
| 16 | +where the constants are looser than they need to be, and one caveat on what the result |
| 17 | +gives for #530. Neither is a gap. |
| 18 | + |
| 19 | +How each claim stands: |
| 20 | +- On paper: §§1–3 and §5–6. I re-derived each one by hand and give the derivations below. |
| 21 | +- Computed exactly: the inequalities (7) > √((2−τ+σ)·(6)) for all 43 rows, over every |
| 22 | + position t ∈ [0, n/2], and the covering-range coefficients 96 / 100 / 179.2 / 4992. This |
| 23 | + was done twice, by two different methods. |
| 24 | +- Randomized exact sanity test (not a proof): (1), (2), (3) on concrete Sidon sets, |
| 25 | + `verify_identities.py`. |
| 26 | + |
| 27 | +## Reproduce |
| 28 | + |
| 29 | + python3 experiments/erdos530/upper-large-deficit/verify_independent.py # ~50 s |
| 30 | + python3 experiments/erdos530/upper-large-deficit/verify_identities.py # ~1 s |
| 31 | + python3 experiments/erdos530/upper-large-deficit/check.py # authors' checker |
| 32 | + python3 experiments/erdos530/upper-large-deficit/verify_negative_control.py # ~30 s |
| 33 | + |
| 34 | +Output at f4473dd. `verify_independent.py` reports, for each row, the number of adaptive |
| 35 | +cells and the smallest squared margin over them. With coarse cells this margin is smaller |
| 36 | +than the authors' mesh margin, but it is positive in every row: |
| 37 | + |
| 38 | + R= 100 s= 48 ok: 55 cells, min squared margin 1.166 ... |
| 39 | + R= 80 s= 50 ok: 46 cells, min squared margin 0.383 ... |
| 40 | + (rows 79..54: min 2.754 at R=57; rows 53..50: min 0.160 at R=50; full output in verify_independent.log) |
| 41 | + R= 45 s= 51 ok: min 7.725 R= 40 s= 55 ok: min 139.493 |
| 42 | + R= 32 s= 62 ok: min 5.932 R= 25 s= 70 ok: min 68.565 |
| 43 | + R= 20 s= 105 ok: min 212.422 R= 18 s=145 ok: min 18.737 |
| 44 | + R= 16 s= 250 ok: min 439.707 R= 15 s=280 ok: min 332.350 |
| 45 | + R= 14 s= 600 ok: min 748.361 R= 13 s=720 ok: min 1027.202 |
| 46 | + R=25/2 s=2400 ok: min 1594.321 |
| 47 | + uniform K through tau=1/100: 96; 1/50: 100; 1/25: 896/5; 2/25: 4992 |
| 48 | + rows checked: 43 failures: 0 |
| 49 | + |
| 50 | +The authors' `check.py` also exits 0 and prints 43 rows. It gives squared margins |
| 51 | +66.253 (R=100) and 8702.905 (R=25/2), as quoted in NOTES §4. |
| 52 | + |
| 53 | +## Theorem and table (NOTES lines 1–48) |
| 54 | + |
| 55 | +- Checked: the statement matches what §§1–5 prove. The size is |C₁(T)| ≤ k + |E| < m + 2sτm. |
| 56 | + The host condition is m ≥ 10¹⁴τ⁻². The fingerprint family has size ≤ M^{⌊2qm⌋+1} with |
| 57 | + q ≍ (log M/(τm))^{1/3}, giving exp(O(τ^{−1/3}M^{1/3}(log M)^{4/3})). |
| 58 | +- Checked: the extension to intermediate τ. Take τ ∈ (1/R_{i−1}, 1/R_i]. A set of size |
| 59 | + ≥ (1−τ)m also has size ≥ (1−1/R_i)m. Since τ ≤ 1/R_i, m ≥ 10¹⁴τ⁻² ≥ 10¹⁴R_i², so the |
| 60 | + host condition holds at 1/R_i. The container size is (1+2s_i/R_i)m ≤ (1+(2s_iR_{i−1}/R_i)τ)m. |
| 61 | + The fingerprint exponent at 1/R_i is at most the one at τ, because (1/R_i)^{−1/3} ≤ τ^{−1/3}. |
| 62 | +- Checked the coefficients by hand and in the script. Rows 100 and 80 are uniform and give |
| 63 | + K = 96 and K = 100. Rows 79..50 give 98(R+1)/R ≤ 98·51/50 = 99.96. Then |
| 64 | + 45: 113.3, 40: 123.75, 32: 155, 25: 179.2, 20: 262.5, 18: 322.2, 16: 562.5, 15: 597.3, |
| 65 | + 14: 1285.7, 13: 1550.8, 25/2: 4800·13/12.5 = 4992. So K = 96 through 1%, 100 through 2%, |
| 66 | + 179.2 through 4% and 4992 through 8%, as stated. |
| 67 | + |
| 68 | +## §1 Signed count, inequality (1) |
| 69 | + |
| 70 | +Checked. Fix x ∉ S. For a ∈ S with |a−x| ∈ D, write a−x = u−v with u, v ∈ S. Then |
| 71 | +a + v − u = x is an ordered triple counted by R_S(x), and its first coordinate is a. |
| 72 | +So the number of such a is at most R_S(x) < rτm. Each of them contributes g_± ≤ g_* to F_x, |
| 73 | +since g is nondecreasing in w and w is nonincreasing in u. Hence |
| 74 | +F_x − g_*rτm ≤ Σ_{a∈S, |a−x|∉D} g_{sign}(|a−x|/(τM)). |
| 75 | + |
| 76 | +Summing over x ∈ B and regrouping by the signed d = a − x gives Σ_{|d|∉D} f(d)·g_{sign d}. |
| 77 | +- g_± f ≤ f(f−1) + w_±: take j = f when f > 0, since then f·g ≤ f(j−1+w/j) = f(f−1)+w. |
| 78 | + For f = 0 it holds trivially. |
| 79 | +- The w terms sum to Q. Positive d contribute w_+ and negative d contribute w_−, and both |
| 80 | + are evaluated at |d|. |
| 81 | +- Σ_d f(d)(f(d)−1) counts triples (d, x, x′) with x ≠ x′ in B and x+d, x′+d ∈ S. The |
| 82 | + nonzero signed difference x − x′ = (x+d) − (x′+d) has a unique ordered representation |
| 83 | + in S, which fixes x+d and hence d. So the sum is ≤ b(b−1). This bound holds over both |
| 84 | + signs together, as the note says (lines 56–57). |
| 85 | + |
| 86 | +Also checked the uniqueness claim on line 76: a−b = c−d ⇒ a+d = c+b ⇒ {a,d} = {c,b}. |
| 87 | +For nonzero differences this forces a = c and b = d. |
| 88 | + |
| 89 | +## §2 Weighted missing differences, (2) and (3) |
| 90 | + |
| 91 | +- Window identity: checked. ∫μ([t,t+h])²dt = m⁻²Σ_{a,a′}(h−|y_a−y_a′|)₊. The diagonal |
| 92 | + gives kh. For off-diagonal pairs, each d ∈ D occurs for exactly one unordered pair |
| 93 | + (Sidon), counted twice. Dividing by h² and using m² = M gives the displayed formula. |
| 94 | +- (2): checked. Σ_{d≥1}(1−d/(Mh))₊ ≤ ∫₀^∞ = Mh/2, because this is the right-endpoint sum of |
| 95 | + a decreasing function. Then Σ_{d∉D} ≤ Mh/2 − Σ_D, with Σ_D = (Mh∫u_h² − k)/2. |
| 96 | +- The ramp profile: checked. Every row has h_i = τλ_i ≤ τH ≤ 1, so the pieces |
| 97 | + [−h,0], [0,1−h], [1−h,1] do not overlap. This gives ∫(1−l) = h, ∫(1−l)² = 2h/3 and |
| 98 | + ∫b² = 1 + h(1−2a+2a²/3). The case h = 1 (R = 13 and R = 25/2 rows, λ = R) is the |
| 99 | + degenerate one and the formulas still hold. |
| 100 | +- h∫(1−l)u_h = ∫[W_h(y)+W_h(1−y)]dμ: checked. Fubini gives |
| 101 | + ∫_{y−h}^{0}(−t/h)dt = (h−y)²/(2h) for the left ramp, and the right ramp is symmetric. |
| 102 | +- Expanding ∫(u_h−κb)² ≥ 0 with ∫u_h = κ gives |
| 103 | + 1−∫u_h² ≤ 1−κ² + κ²h(1−2a+2a²/3) + (2aκ/h)∫W dμ. Multiplying by h/2 gives the |
| 104 | + displayed bound: checked. |
| 105 | +- (3): checked. Write Q = Σ_i d_i Σ_{d∉D}(1−d/(Mh_i))₊ with h_i = τλ_i and divide by Mτ². |
| 106 | + The first term is k/M = κ/m. The boundary term uses Σ_i d_ia_iW_{h_i}(y) = τp(y/τ). |
| 107 | + Centring uses ∫₀¹P = 2τ∫₀^H p = 2τΣd_ia_iλ_i²/6. Combining |
| 108 | + κ²Σd_iλ_i²[(1−2a+2a²/3)/2 + a/3] = κ²Σd_iλ_i²[1/2 − 2a/3 + a²/3] gives exactly |
| 109 | + C₂ = Σd_iλ_i²(1/6 + (1−a)²/3). |
| 110 | + |
| 111 | +- Signs of the parameters: checked. The derivation of (2) and (3) holds for any real ramp |
| 112 | + factor a. The later steps need only c_i > 0, β_i ≥ 0 and a_i ≥ 0: then w_±, g_± and p are |
| 113 | + nonnegative and nonincreasing, which the variation measure and the monotone cell bounds |
| 114 | + use. Some rows use a_i > 1 (row 15: 1.018) or β_i > 1 (rows 13 and 25/2: 47.2 and 48.3). |
| 115 | + These values are legitimate, and both checkers assert the needed signs. |
| 116 | + |
| 117 | +## §3 Local count against the boundary profile, (4) and (5) |
| 118 | + |
| 119 | +- F_x = m∫Z_x dμ: checked, since (y_a − y_x)/τ = (a−x)/(τM). |
| 120 | +- (4): checked. Divide (3) by sτ²M (note Q/(b₀τm) = Q/(sτ²M)), and split |
| 121 | + ∫Z_x dμ = ∫Z_x(dμ−κdy) + κ∫₀¹Z_x. |
| 122 | +- Smoothing: checked. |
| 123 | + - (y+v)/(1+l) ∈ [0,1] and it moves by |v − ly|/(1+l) ≤ l. |
| 124 | + - The density of y+v is u_l(·−l), and ‖f‖² = (1+l)∫u_l² ≤ (1+l)(1 + k/(Ml)), using the |
| 125 | + full tent bound 2Σ_D ≤ Ml. |
| 126 | + - k/(Ml) ≤ 1/(mε²τ) ≤ τ/(D₀ε²), so the excess is |
| 127 | + ≤ τ(ε² + 1/(D₀ε²) + 1/D₀) = τ(10⁻¹⁰ + 10⁻⁴ + 10⁻¹⁴) < στ. |
| 128 | + - ‖f−κ‖²_{[0,1]} = ‖f‖² − κ² ≤ 1 + στ − (1−τ)² = (2−τ+σ)τ. |
| 129 | +- Variation measure V_*: checked. |
| 130 | + - The two monotone pieces of Z_x vary by ≤ g_+(0) and ≤ g_−(0). |
| 131 | + - An atom of mass g_+(0)+g_−(0) at y_x covers the jump and the assigned value Z_x(y_x) = 0. |
| 132 | + - g_± is continuous: it is a min of continuous functions of the continuous w. |
| 133 | + - Each boundary component of κP/s is monotone with variation ≤ p(0)/s. |
| 134 | + - So the mass is ≤ 4g_* + 2p(0)/s, where p(0) = Σd_ia_iλ_i/2. |
| 135 | +- Moving-mass bound: checked. If z lies between y and its new location y′, then |
| 136 | + |y′ − z| ≤ l. So the coupled mass whose segment contains z is at most f([z−l, z+l]), |
| 137 | + which is ≤ 2l + √(2l)‖f−κ‖ ≤ (2ε² + ε√(2(2+σ)))τ ≤ (2ε² + 3ε)τ. The 1/m term is |
| 138 | + κC₀/(2msτ²) ≤ C₀/(2sD₀). This gives E₀. |
| 139 | +- (5): checked. Cauchy–Schwarz with ∫₀¹(f−κ) = 0 and ‖Φ_x − Φ̄_x‖² = τV_x gives |
| 140 | + (1/τ)·τ√(V_x(2−τ+σ)). |
| 141 | + |
| 142 | +## §4 Certificate, (6) and (7) |
| 143 | + |
| 144 | +- (6): checked. Substitute u = y/τ, so ∫₀¹Φ² = τ∫₀ⁿφ² and ∫₀ⁿp_n = 2∫₀^H p = P₁ (H ≤ n). |
| 145 | + Then V_x = ∫φ² − τ(∫φ)². |
| 146 | +- (7) closes the argument: checked. A := κI − cost − s − rg_* − E₀ > √((2−τ+σ)V_x) together |
| 147 | + with (4) and (5) gives (F_x − Q/b₀)/(τm) > s + rg_*, which is what §5 uses. |
| 148 | +- Ranges of κ: checked. Uniform rows have κ ∈ [1−1/R, 1] for every τ ≤ 1/R, with |
| 149 | + (1−κ²)/(2τ) ≤ 1 and 2−τ ≤ 2. Fixed rows have κ ≤ 1−τ+1/m ≤ 1−τ+1/D₀ (ceiling) and |
| 150 | + (1−κ²)/(2τ) ≤ 1−τ/2. |
| 151 | +- Uniform rows for arbitrary n ≥ R: checked. |
| 152 | + - Since 2H ≤ R ≤ n and t ≤ n/2, the positive length is always H. |
| 153 | + - The right-boundary part of J is ≥ 0 and enters V with a minus sign, so omitting it |
| 154 | + is safe. J ≥ 0 for t ≥ H. |
| 155 | + - P₂ = 2∫p² exactly, since p(n−v) = 0 for v < H. |
| 156 | + - −τ(I − κP₁/s)² ≤ 0 is dropped. |
| 157 | +- The authors' rectangles: checked by reading `check.py`. For nonincreasing functions, |
| 158 | + right-endpoint floors give lower bounds and left-endpoint floor+1 gives upper bounds, |
| 159 | + also when squared, since all values are ≥ 0. I checked the J witness indices: |
| 160 | + - Positive side: p[i+j+2] and, on the right boundary, p[n−i−j]. |
| 161 | + - Negative side: p[i+1−j] and p[n−i+j+1]. |
| 162 | + - j < min(h, n−i−1) keeps v inside [0, R−t]. |
| 163 | + |
| 164 | + The `score` function's j = ⌊(1 + isqrt(1+⌊4w⌋))/2⌋ is always optimal. Writing |
| 165 | + s = isqrt(1+⌊4w⌋): (2j−1)² ≤ s² ≤ 1+4w, and 4w+1 < ⌊4w⌋+2 ≤ (s+1)² ≤ (2j+1)². So the |
| 166 | + stored g values are true lower bounds, not overestimates. |
| 167 | +- My own recomputation, a different method: `verify_independent.py`. |
| 168 | + - g_±, p and every integral (I, I₂, J, P₁, P₂) are computed exactly. The integration is |
| 169 | + split at all breakpoints: the λ_i, the points where w_± = j(j+1), and the shifted |
| 170 | + breakpoints of p. Boole's rule is exact there, since the integrands have degree ≤ 4. |
| 171 | + - Cell bounds come from monotonicity in t. I_lo uses lengths min(H, n−t₁) and min(H, t₀). |
| 172 | + J_lo = ∫g_+(v)[p(t₁+v) + p(n−t₀−v)] + ∫g_−(v)[p(t₁−v) + p(n−t₀+v)], because p is |
| 173 | + nonincreasing. P₂ is the exact ∫₀ⁿ(p(u)+p(n−u))², which handles 2H > R. |
| 174 | + - Cells start at width 1 and are bisected until (7) beats (6). All 43 rows close, with |
| 175 | + at most 55 cells per row. |
| 176 | + |
| 177 | +## §5 Containers |
| 178 | + |
| 179 | +- e < b₀ by random sampling: checked. E[Σ_B(F_x − g_*rτm)] > (b₀/e)·e·(b₀ + Q/b₀) = b₀² + Q, |
| 180 | + while E[b(b−1)] + Q ≤ b₀² + Q, and Q does not depend on B. Reflection a ↦ M+1−a |
| 181 | + preserves triple counts, and both halves include y = 1/2. This gives |E| < 2sτm. |
| 182 | +- Fingerprint: checked. This is Phal–Gemini's `lem:containers` (erdos_530.tex line 762), |
| 183 | + with ε₀√M replaced by rτm; the constants 27, 6, 162 and 324 are theirs. |
| 184 | + - A triple (a,b,c) at x ∉ S has c ∉ {a,b}, and a support inside T excludes x. |
| 185 | + - Degree ≤ 2. As the negative element c, a+b = x+c fixes {a,b}. As a positive element a, |
| 186 | + b−c = x−a fixes (b,c). |
| 187 | + - The constants 27 and 6 are conservative: 6 ordered triples per support and 4 meetings |
| 188 | + per member would do. That only improves r/162. |
| 189 | + - q³rτm/162 = 2log M gives M⁻² per x. A union bound gives 1/M, and Markov gives 1/2, |
| 190 | + so a good T exists when M ≥ 3. |
| 191 | + - S ⊆ C₁(T) ⊆ S ∪ E. The count of fingerprints is ≤ M^{⌊2qm⌋+1}. |
| 192 | + - The extension to larger S′ via any k-subset seed is fine. |
| 193 | + |
| 194 | +## §6 Lower bounds |
| 195 | + |
| 196 | +- Singer covering bound K ≥ 1/(1−τ): checked. |
| 197 | + - Sections: √M(1−τ) ≤ √v < q+1, so they have size ≥ (1−τ)m. v ≤ M ≤ 2v needs |
| 198 | + (1−τ)⁻² ≤ 2, i.e. τ ≤ 1−1/√2. |
| 199 | + - Averaging gives j ≥ k(M−v)/v doubled residues in a translate. Sections are Sidon by |
| 200 | + reduction mod v. |
| 201 | + - A container of size L containing a section has at most L−k residues with both |
| 202 | + representatives inside, so it covers ≤ 2^{L−k} sections. |
| 203 | + - So L ≥ k + j − o(m) ≥ kM/v − o(m) = (1/(1−τ) − o(1))m. The values 100/99 and 25/23 are right. |
| 204 | +- Parity obstruction at τ ≥ 1−1/√2: checked. |
| 205 | + - The doubled Singer set in [2v] has q+1 > √v = m/√2 points. |
| 206 | + - For odd x and even T, a single copy of x breaks parity, a copy on each side cancels, |
| 207 | + and 2x = x + c is impossible. So x is excluded only if 2x = a+b with a, b ∈ T. |
| 208 | + - Hence |C₁(T)| ≥ M/2 − C(|T|+1, 2). |
| 209 | + |
| 210 | +## Remarks (not gaps) |
| 211 | + |
| 212 | +1. Scope. The theorem is a container statement. As §6 says, turning it into a visible |
| 213 | + saving for ℓ(N) still needs the deletion estimate (t-b39f77305d), and I did not check that here. |
| 214 | +2. The host threshold m ≥ 10¹⁴τ⁻² is used only in the smoothing step: 1/(ml) ≤ τ/(D₀ε²) |
| 215 | + and the 1/m term of (4). |
| 216 | +3. `verify_identities.py` checks (1), (2), (3) exactly on 12 random greedy Sidon sets |
| 217 | + (M ≤ 1600, varied rows and τ). All pass, but greedy sets are far from extremal, so the |
| 218 | + checks are loose (log: ALL OK). This is a sanity test of the algebra, not part of the proof. |
| 219 | +4. Negative control (`verify_negative_control.py`, log alongside). The verifier is not |
| 220 | + vacuous: with the R=100 kernel and s=46 (K=92) it fails near t = H. With s=47 (K=94) it |
| 221 | + passes, and so does R=79 with s=47. The authors' `check.py` also passes R=79 with s=47, |
| 222 | + but rejects R=100 with s=47 at its last cell t ≥ H (squared margin ≈ −23.8). The reason |
| 223 | + is that its mesh-1/64 rectangles for ∫g² lose several units there, while exact |
| 224 | + integration does not. So the stated coefficients are not quite optimal for these |
| 225 | + kernels. K = 94 through 1% would follow with exact integration, but that is not claimed |
| 226 | + in the note, and nothing in this verification depends on it. |
| 227 | +5. I did not do a literature or priority check beyond the three offline references. |