Skip to content

DFT submission: saving 30201659/10000000000 - #90

Merged
github-actions[bot] merged 1 commit into
bigospeedrun:mainfrom
zeph1912:zeph1912-rank-moment-refinement
Oct 31, 2026
Merged

github-actions[bot] merged 1 commit into
bigospeedrun:mainfrom
zeph1912:zeph1912-rank-moment-refinement

Conversation

@zeph1912

Copy link
Copy Markdown
Contributor

Title: DFT submission: saving 30201659/10000000000


Exact DFT: saving 30201659/10000000000 (a refinement of #41's rate certificate)

This PR adds submissions/dft/zeph1912-rank-moment-refinement/. It exports

theorem Race.bound : ∃ order solve W, DFTProgram order solve W ∧
    (fun n : ℕ => (W n : ℝ)) =O[atTop]
      (fun n : ℕ => (n : ℝ) * (Real.log (n : ℝ)) ^ (1 - (30201659 : ℝ) / 10000000000))

The saving is κ = 30201659/10¹⁰ ≈ 0.0030201659, so the work is O(n (log n)^0.9969798341). The current Lean Verified leader is #41 at 30103/10⁷ ≈ 0.0030103. #41's own certificate proves the rate C₀ = 4719/1562500 = 0.00302016. This submission goes beyond C₀ by 5.9 × 10⁻⁹. It comes from a new certificate, not from changing the stated constant below an existing certificate.

What is new compared with #41

The circuit is unchanged: the P16A8Z unit and its two rank multisets. So are the strict tensor engine, Sussman's mixed-target recursion and the Fourier reduction. The certificate is new:

  1. Tighter rank-moment enclosures. The exponential bound is degree six above and degree five below (Lemma 3.1 in the paper). The bound on each log(145/r) is a rational number checked by a finite-series inequality. Together these give P_t/T_t ≤ 1 − 27/10¹² at C = 60403319/20000000000 (0.00302016595). New file: Work/BlockAccounting/Moment6.lean. Modified: Work/TensorProto/P16A8ZRate.lean.
  2. Tensor power 11640 instead of 7760. At the new rate the raw moment gap is much smaller. A larger power lets (1 − ε)^v absorb the two tail terms 2γ^v + 2η^v. The strict tensor unit completes jobs at 21^11640 and splits blocks at 20^11640. Modified: the Work/TensorEng, Work/T16A8Z and Work/FourierT16A8Z chain.
  3. Seam saving β = 3020165925/10¹². With δ < β < C, the (log log n)² factor of the reduction is absorbed.
  4. Proof engineering, no circuit change. The unchanged S2979Z native replay checkpoints in S2979ZScB.lean and S2979ZScF.lean are now checked in 15 + 15 segments (Work/GCert/Data/Gen/S2979ZReplay/{B,F}00–14.lean). The segments use an append lemma (Work/KLowW/ReplaySplit.lean) to bound memory during kernel reduction. Submission/MathlibSupport.lean narrows imports: three OpenAI model files (FourierCircuit/Core.lean, FourierTransform/ProductMatrix.lean, FourierTransform/RAM.lean) import it in place of import Mathlib. Their definitions are byte-identical otherwise.

File accounting against #41 (430 files):

Lean files
byte-identical to #41 411
import line only (Mathlib → Submission.MathlibSupport) 3
modified (certificate, tensor power, exponent chain, replay wrappers, Submission.lean) 15
new (MathlibSupport, Moment6, ReplaySplit, 30 replay segments) 33
total 462

The certified rate is still below the balance point of this circuit's raw moments. Our exact interval check places that point in (0.00302016597701562048, 0.00302016597701562050). The rate 0.003020166 fails the raw moment test, which is a negative control. Further gains therefore need a different circuit, not more certificate precision.

Credits

This proof builds on the following entries. Their file headers are kept unchanged, and every modified file has a dated note.

  • Halit Ziya Kartal: new DFT sota:O(n*(logn)^(1-(log2)/100)) (+%15) #41, submissions/dft/halitziyakartal-halitziyav4-logception. That entry has the P16A8Z unit on the #4470-patched S2979Z supplier, the 18-stage geometry, the tensor power construction and the T16A8Z/Fourier chain. This PR changes only its numerical certificate and tensor power.
  • Jacob Sussman: DFT: saving 3577409/2000000000 #29, submissions/dft/jacobalansussman-lever-2979-full-cut. That entry has the mixed-target recursion and engine. Moment6.lean is derived from his Moment4/Sharp lemmas.
  • Cinna Davis: the integer-multiplication constructions the unit is built from. These are the query-thinned controller (CrocSwap/integer-mult-bounds #4440), the retiming and span fixes (#4441, #4447), the joint helper boundaries (#4470), and the strict tensor powers (#4412, #4414, #4416). zxv: the native supplier and productive helpers (#4359). Marius-Paul Dumitrean, Jeremy Kothe, Mason Hale: the #2979 provider.
  • OpenAI: the exact computational model, the DFTProgram definitions and the all-length reduction (openai/math fd4aeeb, Apache-2.0).
  • The full lineage, including Nil Mamano and Ryan Shea's Lean pipeline, is in the retained headers of Submission.lean.

Some headers mention README.md or research/*.py (refine.py, split_replays.py, templates/). These files are in the artifact repository, not in this folder. See the links below.

Artifact

Checks run before submission

  • Artifact make check: an independent exact-rational checker using atanh and exp interval series. It covers the raw moment gap, both tail ratios, the strictification inequality (slack ≈ 1.95 × 10⁻⁷) and the negative control. The checker also regenerates the 50 generated files and compares their checksums. Passed.
  • Verifier's own pr_submissions.validate_layout and parse_manifest on this folder: 463 regular, non-executable files, 10.7 MB, one new folder. Passed. The record gate (qualifies_for_run) against the site's 2026-10-31 snapshot is above new DFT sota:O(n*(logn)^(1-(log2)/100)) (+%15) #41. Passed.
  • Derivation preview with scripts/derivation.py: closest is new DFT sota:O(n*(logn)^(1-(log2)/100)) (+%15) #41, with 411 identical, 19 changed and 33 added files. It is not constants-only, so no hold is expected.
  • Clean rebuild of this exact folder in a fresh container, on 2026-10-31. The stage was the verifier's own: generated lakefile.toml (autoImplicit = false), profiles/lake-manifest.json, generated VerifierChallenge.lean for 30201659/10000000000, Lean v4.34.1, pinned Mathlib cache and LEAN_NUM_THREADS=4. lake build Submission passed in 4 min 39 s on 16 cores. Peak single-process RSS was 5.5 GiB, under the 14 GiB cap. #print axioms Race.bound gives [propext, Classical.choice, Quot.sound].
  • Comparator in the same container, with the verifier's pins: Comparator d03acab, lean4export 076e8e5 and nanoda 8de7e0c. It ran against the generated target with permitted axioms propext, Classical.choice and Quot.sound. Both the Lean default kernel and nanoda accept the solution ("Your solution is okay!"). The nanoda pass's peak RSS was 6.7 GiB.

AI assistance

OpenAI ChatGPT Codex was used throughout the research, such as Lean development and verification scripts, as stated in the artifact's acknowledgments. Claude Code helped prepared this pull request.

Add submissions/dft/zeph1912-rank-moment-refinement, a numerical
refinement of the rate certificate in HalitZiyaKARTAL's #41
(submissions/dft/halitziyakartal-halitziyav4-logception).

The P16A8Z circuit, its rank multisets, the strict tensor engine,
Sussman's mixed-target recursion and the Fourier reduction are unchanged.
Tighter rational enclosures of the rank moments (sixth/fifth-order
exponential bounds with finite-series logarithm certificates) and a
tensor power of 11640 instead of 7760 certify the rate
C = 60403319/20000000000 (0.00302016595), above the C0 = 4719/1562500
certified in #41. Race.bound is proved at the saving 30201659/10000000000
(about 0.0030201659) through the seam saving 3020165925/10^12.

Files: 411 of the 462 Lean files are byte-identical to #41; 3 OpenAI
model files change only their Mathlib import; 15 are modified and 33
are new. Source credits are kept in the file headers.

Artifact:
https://github.com/zeph1912/Discrete-Fourier-Transform-Refinement-2026_10_31
(commit 8cd46642a51103b1462051c75102b4089340dff2),
Zenodo DOI 10.5281/zenodo.23843356.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@darkhipo

Copy link
Copy Markdown
Contributor

Reviewed the diff at 3ec9ac7 against the tree on main. Four findings, all checkable, in descending order of importance for the merge decision.

1. The comparison basis is stale. Your body names #41 at 30103/10^7 as "the current Lean Verified leader". #41's own Submission.lean header says that number is decorative:

saving 30103/10000000 (about 3.0103e-3: log10(2)/100 rounded up in its fifth digit, on purpose; see the note in the credits)

The strongest bound in main is not #41 but submissions/dft/ptweezy-dft-ceiling302016 — merged in #46, manifest.json bound 302015999999/100000000000000, i.e. C₀ to 1e-14, which is the entry your C₀ = 4719/1562500 actually matches. Measured against that, your saving is +5.9e-9, not the ~9.9e-6 the body implies. The gate still passes (5.9e-9 is a real improvement), but the framing overstates the gap by ~1700x and points maintainers at the wrong baseline.

2. The credit section omits the entry whose files you reuse. Of this PR's 463 files, 411 (88.8%) are byte-identical — same git blob SHA — to files in each of ptweezy-dft-tight302, ptweezy-dft-tight302016, ptweezy-dft-ceiling302016, and halitziyakartal-halitziyav4-logception. Per README.md, when ≥80% of the files are identical to a verified submission of another author, a pass does not merge: the bot's hold names the earlier submission and a maintainer reviews the credit. That hold is coming regardless; the credit text currently names only Halit Ziya Kartal. The P16A8Z unit, the 18-stage/145-coordinate geometry and the 7760-fold tensor power you raise to 11640 are Parker L's (ptweezy) ceiling entry verbatim — it should be named there too.

3. The cost model is not moved — I checked, because it would have mattered. The four non-Work/ deltas are import-line-only: import Mathlib → import Submission.MathlibSupport in OAI/Computability/FourierCircuit/Core.lean and OAI/Computability/FourierTransform/{ProductMatrix,RAM}.lean, plus the new 14-line MathlibSupport.lean, which declares nothing. No change to the RAM model, the statements, or the asymptotic target. That part is clean.

4. The arithmetic is internally consistent and aims at the only remaining slack. κ − C₀ = 59/10^10 exactly; C − κ = 1/(2·10^10); β = 3020165925/10^12 lies strictly between the seam δ and C. And κ sits 1e-13 below the "raw root about 3.0201660e-3" that Parker's header records — so the claim is exactly "recover the gap between the raw root and the rounded certificate", which is the only saving a construction with unchanged consumption could still buy. Moment6.lean's sextic envelope does hold: at x = 1 it exceeds e by 5.3e-6, so the 7/4320 coefficient has room, and ending the file with #print axioms on both lemmas is the right instinct.

The verifier settles whether the certificate closes. My ask is (1) and (2) — the baseline number and the credit line — because a maintainer will be reading the hold comment, and those two are about the record, not about whether the proof compiles.

— darkhipo (review lane)

@github-actions

Copy link
Copy Markdown
Contributor

Received. This proof PR waits for the verifier queue: one proof run runs at a time, and the queue is checked every 30 minutes. The result is posted here.

@github-actions

Copy link
Copy Markdown
Contributor

Derivation report for this version. It compares Git file hashes with the verified submissions of other authors. It does not judge the proof.

Closest verified submission of another author: direct-pr-41. 411 of 462 source files of this version are identical to its files (88%).
Against it: 18 changed, 33 added, 0 removed.
Constants-only and credit checks: not computed (too many or too large changed files to compare).

@darkhipo

Copy link
Copy Markdown
Contributor

Follow-up from the same review lane — one correction to my own comment above, plus the numbers I re-derived after posting it.

Correction: the hold I said "is coming regardless" is not coming. The derivation report that landed at 22:17:40 UTC shows it: Constants-only and credit checks: not computed (too many or too large changed files to compare), and no hold paragraph. That is exactly what the source predicts, not an accident of this run:

  • scripts/derivation.py sets HOLD_OVERLAP = 4/5 and MAX_PAIRS = 12, and holds only when other_author and constants_only and identical/len(cand) >= HOLD_OVERLAP.
  • constants_only = same_code and not added and not removed. This PR adds 33 files, so that is False no matter what the diff looks like.
  • Independently, compute() returns before the constants/credit scan whenever len(changed) > MAX_PAIRS. This version has 18 changed source files, so the scan short-circuits first and reports not computed.

So the credit point is a record ask for a maintainer's judgement, not a gate the bot will apply. Nothing here blocks a merge on attribution grounds, and I should not have implied otherwise. The ask itself stands: 411 of 462 Lean files are byte-identical to the P16A8Z/145-coordinate/7760-fold base, and the credit section names only Halit Ziya Kartal.

Re-derivations, all measured, not recalled:

  • File accounting: the body's table is exact. 411 identical + 3 import-line-only + 15 modified + 33 new = 462 Lean files, plus manifest.json = 463. My count agrees file for file, including which 18 differ (Submission.lean, the 3 OAI/ import lines, the FourierT16A8Z chain, T16A8Z/{Engine,RawCert,Stmt,TensorG,Hole}, TensorEng/P16A8ZEngine, TensorProto/P16A8ZRate, the two S2979ZSc{B,F} replay wrappers, manifest.json).
  • Manifest agrees with the theorem. manifest.json is {"problem":"dft","bound":"30201659/10000000000"}, identical to the saving in Submission.lean. The ranked number and the stated proof are the same number.
  • The baseline finding stands, and here is the exact arithmetic. Top of main among submissions/dft/* manifests is ptweezy-dft-ceiling302016 at 302015999999/10^14 = 0.00302015999999. So κ − leader = 590001/10^14 = 5.90001e-9, and κ − C₀ = 59/10^10 exactly. Against new DFT sota:O(n*(logn)^(1-(log2)/100)) (+%15) #41's declared 30103/10^7 the improvement is 9.8659e-6 — 1672× larger — which is the whole of finding 1.
  • The bot naming new DFT sota:O(n*(logn)^(1-(log2)/100)) (+%15) #41 as "closest" is not evidence either way. The report ranks by identical Git blobs, not by manifest.json bound; four entries share that 411-file base and the tiebreak is corpus order. It confirms the lineage, which nobody disputes, and says nothing about which bound is the leaderboard's.

The verifier still decides whether the certificate closes. My asks are unchanged: the baseline number in the body, and Parker L. in the credits.

— darkhipo (review lane)

@nmamano

nmamano commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

This is an agent for Nil (BOS Reviewer), writing for Big O Speedrun.

Thank you for the submission, and thank you @darkhipo for the review. Some facts for the record:

If Lean passes, the bot merges the PR and the result is listed as Lean Verified. Please do not push new commits while the run waits, because a new head starts a new check.

@github-actions

Copy link
Copy Markdown
Contributor

PR proof result: merge. lean_and_axiom_passed_nanoda_pending.

Receipt and logs

Exact discrete Fourier transform board: https://bigospeedrun.com/exact-dft

@github-actions
github-actions Bot merged commit 2a6ae74 into bigospeedrun:main Oct 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Final verification result.

PR proof result: merge. lean_and_axiom_passed.

Receipt and logs

Exact discrete Fourier transform board: https://bigospeedrun.com/exact-dft
lean: passed.
nanoda: passed.
Axiom audit: passed.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor

oh, congrats at record hit, i depleted my usage so i might reclaim weaker this time

(checked now) but thankfully i had new record that i build around 29 October that gives 0.00312780997, i was waiting to get to pi/1000 to publish, but seems i can use that,

@nmamano hi again nil's agent, i have prepared my next pr without using #90 do i need to mention it anywhere or should i use it when mentioning % change only ? it was a backup i made so it missed changes that are happened recently, as far as i know it passes all lean etc checks but it was like a draft so if anything is missing i can update too, i was mostly busy with integer side so i havent fully focused to next pr here

@nmamano

nmamano commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

This is an agent for Nil (BOS Reviewer), writing for Big O Speedrun.

@HalitZiyaKARTAL thank you, and good luck with the new result. To your question:

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor

oh i meant files i had was draft, i plan to send as pr, i wasnt expected to release it so i was worried it might be polished less, also seems some files missing in my backup, checking some more for my side (411 in backup while 426 expected)

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor

found a different path to other backup, shared pr now, it had improvements left so it might still he easily taken back, since i had low usage left and haven't modified DFT lean files since 29 october

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants