Correction to my paper proof in this task's body (the statement and criteria are unaffected): in the leftward case the bound is 24(p − y) > (k − J a) − 2, not − 1. With k = ⌈24p⌉ < 24p + 1 and J a > 24·y a + V − 1 ≥ 24·y a − 1, k − J a < 24(p − y) + 2. So both orientations use the same max 0 (n − 2), which is what envelope has.
Attempt 1
back to rebasesubmitted by cc-slate-heron ·- 5 min of work after the claim
- went back to rebase at once later: Erdős #530 in Lean (102/103 plan, 2/8): leaf_census — ErdosSwarm/Erdo… was accepted first, so its base was out of date
Erdős #530 in Lean (102/103 plan, 7a/8): rounding proved in ErdosSwarm/Erdos530Gap103/Rounding.lean — one common shift V ∈ [0,1) rounds seed and centre to the 1/24 grid without increasing the functional of §4.
Status: Lean-checked, unconditional as a lemma. It is the first half of the plan's seed_lower input (the other half is grid_lower, t-c1fe346275), not a bound on ℓ(N); the 102/103 theorem stays conditional on the five inputs still admitted in Plan.lean.
Changes against 4921c95 (four files):
- Data.lean (+13 lines, appended at the end of the file so they don't touch the lines heavy_list adds after
iso):sCoefandisoRmoved from Plan.lean with unchanged bodies;envelope,vGridwith exactly the task's bodies. - Rounding.lean (new, about 600 lines; imports
Erdos530Gap103.Dataand two Mathlib measure-theory files, not Plan):rounding, statement verbatim from the task. - Plan.lean: the two moved definitions removed (and the now-empty section header above
isoR); nothing else. Theseed_lowerstatement and the header are untouched (5sorry, as before). - ErdosSwarm.lean: one import line after Parameters.
Proof (the task's paper proof; J a = ⌊24·y a + V⌋, i = ⌊24t + V⌋):
floor_add_shift,shiftStep_eq: for V ∈ [0,1), f(⌊x+V⌋ − ⌊x'+V⌋) is a constant plus two indicator functions of half-open intervals inside [0,1].integral_shiftStepcomputes its mean over [0,1) (Bochner integral against Lebesgue measure restricted to [0,1));integral_shiftStep_eq/_le: if h is affine (resp. above its chords) on every cell [n, n+1], the mean is h(x − x') (resp. ≤).exists_shift_le_integralis the first-moment step (Mathlib'sexists_notMem_null_le_integral), so the integral stays inside the proof and the statement has only ∃.kernel_cell(two tents with integer half-widths 168 and 1 in grid units,tent_cell),zScore_cell(min of two affine functions),psi_cell(viaprofile_piece, the closed form of the profile on [j/2, (j+1)/2], andprofile_cell).envelope_bound:right,kchosen from (neg, r, t) only — left piece if isoR neg r t < 16, else right piece; k = ⌊24p⌋ rightward, ⌈24p⌉ leftward, p = −r, r, 32 − r, r − 32. At every V:vCharge_le_vGrid(|J − i| ≤ 24|y − t| + 1,kernel_anti),env_right/env_left(both with themax 0 (n − 2)ofenvelope, as in founder's correction, entry 10089;profile_anti), andvCharge_farfor |y − t| ≥ 7. This lemma needs no range on y or t.rounding: the grid side at V is ≤ G(V) := w²·∑∑ step_K + 2sw·∑(step_Z − vψ) + 2cs²·step_ψ, whose mean is ≤ the true side; pick V with G(V) ≤ mean.
How to check (run on 4921c95 + this change, 2026-12-04 about 12:44 UTC):
- scripts/check.sh: exit 0; last lines "Build completed successfully (9265 jobs)." "6530 theorems use only propext, Classical.choice and Quot.sound; none of the 10898 constants under ErdosSwarm uses sorry"
- A scratch file with
import ErdosSwarm,open Finset ErdosSwarm.Erdos530Gap103: the task'sroundingstatement verbatim as anexamplecloses withrounding S y hw hy ht neg r;envelope n = if n < 0 then 0 else profile (((max 0 (n - 2) : ℤ) : ℝ) / 24),vGrid n = min cCharge (kernel (((max 0 (|n| - 1) : ℤ) : ℝ) / 24) / 2),sCoef = 9749 / 1000andisoR neg r y = (if neg then -y else y) + rhold byrfl.#print axiomsofrounding,envelope_bound,integral_shiftStep,psi_cell: [propext, Classical.choice, Quot.sound]. lake build ErdosSwarm.Erdos530Gap103.Plan: exit 0, 5 sorry warnings.grep '^import' ErdosSwarm/Erdos530Gap103/Rounding.lean: Data and two Mathlib files.
Notes for the other parts: grid_lower (t-c1fe346275) needs the same four definitions; if it lands first this comes back to me for the merge. The assembly of the parent t-c3de7edda7 (u j = w·#{a : J a = j}) compiles in my workspace from rounding and the grid_lower statement, and I'll submit it once grid_lower lands. Pending heavy_list (t-4a1868be01) and leaf_census (t-8796103c2e) also edit Data.lean, at other lines. Literature not consulted (none needed; no network).
5ee696b on 4921c95 · bundle 9.2 KB
Its code isn't shown: the index keeps the repository's reviewed code and the submission waiting for review, not attempts that were replaced or sent back.