Erdős #530 in Lean, 74/75 plan, brief A3ac: seed_lower_of_grid {P : Allocation} (hgrid : GridLower P) : SeedLower P is proved, for every allocation table, with the statement of Plan.lean unchanged. Resubmitted on head cc9b11d (A1a and A2 landed); the only conflict was the import block of Plan.lean (both imports kept). SeedLower.lean is unchanged from the first submission.
Files
- New
ErdosSwarm/Erdos530Gap75/SeedLower.lean (imported from ErdosSwarm.lean). Proof as in the note §2 (4) and §3 last ¶: for each shift v ∈ (0,1) the seed and the outsider are rounded to the nodes ⌊16y+v⌋, the rounded masses satisfy GridLower with the integer isometry gridIso neg r v, and the inequality is integrated over v. Pieces: tent_mesh, kernel_mesh (the kernel is affine between mesh points), kernel_le, share_mem, nodeScore_nonneg/_le; integral_floor_add, floor_sub_floor_mem, integral_floor_sub, integral_gridWeight_floor (∫₀¹ gridWeight(⌊16y+v⌋ − ⌊16y'+v⌋) dv = kernel(y − y')); measurable_roundedScore, intervalIntegrable_roundedScore; iso_gridIso_mem (image node in [0, 512], endpoints included; a reflection excludes one shift) and integral_pos_off_point for that single shift.
Plan.lean: imports SeedLower.lean; the sorry theorem seed_lower_of_grid is replaced by a comment. PLAN.md: row A3ac marked proved, ordering item 6 points A1b to the reusable lemmas. ErdosSwarm.lean: one import line.
Checks on cc9b11d + this change (logs in my workspace: a3ac-check3.log, a3ac-example3.log, a3ac-plan3.log)
scripts/check.sh: exit 0, last lines "Build completed successfully (9337 jobs)." and "8857 theorems use only propext, Classical.choice and Quot.sound; none of the 13459 constants under ErdosSwarm uses sorry".
- Through
import ErdosSwarm: open ErdosSwarm.Erdos530Gap75 in example {P : Allocation} (hgrid : GridLower P) : SeedLower P := seed_lower_of_grid hgrid compiles; #print axioms seed_lower_of_grid = [propext, Classical.choice, Quot.sound].
lake env lean ErdosSwarm/Erdos530Gap75/Plan.lean: exit 0, exactly 7 "declaration uses sorry" (8 on cc9b11d before the change).
- No
sorry or native_decide in SeedLower.lean; Data.lean and Results.lean untouched.
Status: the implication GridLower P → SeedLower P is Lean-checked. GridLower for the published table (A3b) is still open, so SeedLower itself and Cover75 are not proved yet. A1b (charging, t-81dda59a78), which I am finishing now, is stacked on this change: it uses the shift-average lemmas above.
Since attempt 1
- rebased onto a newer head
- bundle 7.5 KB → 7.6 KB (+70 B)
Erdős #530 in Lean, 74/75 plan, brief A3ac: `seed_lower_of_grid {P : Allocation} (hgrid : GridLower P) : SeedLower P` is proved, for every allocation table, with the statement of Plan.lean unchanged. On head 9eb525d (A4 merged in).Resubmitted on head cc9b11d (A1a and A2 landed); the only conflict was the import block of Plan.lean (both imports kept). SeedLower.lean is unchanged from the first submission.
Files
- New `ErdosSwarm/Erdos530Gap75/SeedLower.lean` (imported from `ErdosSwarm.lean`). Proof as in the note §2 (4) and §3 last ¶: for each shift v ∈ (0,1) the seed and the outsider are rounded to the nodes ⌊16y+v⌋, the rounded masses u_j = w·#{a : ⌊16y_a+v⌋ = j} satisfy `GridLower` with the integer isometry `gridIso neg r v`, and the inequality is integrated over v. Pieces:
- `tent_mesh`, `kernel_mesh`: the `tent_mesh`, `kernel_mesh` (the kernel is affine between consecutive points of the mesh 1/16 (all knots 0, ±1/16, ±1, …, ±7 are mesh points);mesh points), `kernel_le`, `share_mem`, `nodeScore_nonneg/_le` (0 ≤ nodeScore ≤ 2929/700).
- `integral_floor_add` (∫₀¹ ⌊x+v⌋ dv = x, via the fractional part over a period), `floor_sub_floor_mem` (⌊x+v⌋−⌊x'+v⌋ ∈ {⌊d⌋, ⌊d⌋+1}),`nodeScore_nonneg/_le`; `integral_floor_add`, `floor_sub_floor_mem`, `integral_floor_sub`, and `integral_gridWeight_floor`: ∫₀¹`integral_gridWeight_floor` (∫₀¹ gridWeight(⌊16y+v⌋ − ⌊16y'+v⌋) dv = kernel(y − y'). So the grid energy has mean E_W exactly; the score has mean `score` by definition.
-y')); `measurable_roundedScore`, `intervalIntegrable_roundedScore` (measurable and bounded).
- `iso_gridIso_mem`: the image of the rounded outsider is in [0, 512] whenever g(t) ∈ [0, 32],`intervalIntegrable_roundedScore`; `iso_gridIso_mem` (image node in [0, 512], endpoints included; for a reflection this needs 16t+v ∉ ℤ, which fails at one shift at most (v = 1 − {16t}, and only matters when g(t) = 0). a reflection excludes one shift) and `integral_pos_off_point` handles that single point by splitting the integral there, so the strict inequality survives.
The shift-average lemmas are public so that A1b (charging) can use them.for that single shift.
- `Plan.lean`: imports SeedLower.lean; the `sorry` theorem `seed_lower_of_grid` is replaced by a comment, so `cover75` uses the proved lemma.comment. `PLAN.md`: row A3ac marked proved, and the ordering list (item 6)ordering item 6 points A1b to the reusable lemmas. `ErdosSwarm.lean`: one import line.
Checks on cc9b11d + this change (logs in my workspace: a3ac-check2.log, a3ac-example2.log, a3ac-plan2.log; worklog task-530-a3ac/NOTES.md)
- `scripts/check.sh` on 9eb525d + this change:a3ac-check3.log, a3ac-example3.log, a3ac-plan3.log)
- `scripts/check.sh`: exit 0, last lines "Build completed successfully (9335 jobs)." and "8844(9337 jobs)." and "8857 theorems use only propext, Classical.choice and Quot.sound; none of the 1344613459 constants under ErdosSwarm uses sorry". (Also exit 0 on the earlier head 72184f2: 9334 jobs, 8839 theorems.)
- Through `import ErdosSwarm`: `open ErdosSwarm.Erdos530Gap75 in example {P : Allocation} (hgrid : GridLower P) : SeedLower P := seed_lower_of_grid hgrid` compiles; `#print axioms` of `seed_lower_of_grid`, `integral_gridWeight_floor`, `intervalIntegrable_roundedScore`, `kernel_mesh` givesaxioms seed_lower_of_grid` = [propext, Classical.choice, Quot.sound].
- `lake env lean ErdosSwarm/Erdos530Gap75/Plan.lean`: exit 0, exactly 97 "declaration uses sorry" (10 on this head(8 on cc9b11d before the change).
- No `sorry` or `native_decide` in SeedLower.lean; Data.lean and Results.lean untouched.
Status: the implication GridLower P → SeedLower P is Lean-checked. `GridLower` for the published table (A3b) is still open, so `SeedLower` itself and `Cover75` are not proved yet. A1b (charging, t-81dda59a78), which I am finishing now, is stacked on this change: it uses the shift-average lemmas above.
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.