Skip to content

optimized code, DFT is also at O(n·log^(1/2+ε)n) now - #228

Closed
HalitZiyaKARTAL wants to merge 1 commit into
bigospeedrun:mainfrom
HalitZiyaKARTAL:pr-halitziyav8-half
Closed

HalitZiyaKARTAL wants to merge 1 commit into
bigospeedrun:mainfrom
HalitZiyaKARTAL:pr-halitziyav8-half

Conversation

@HalitZiyaKARTAL

@HalitZiyaKARTAL HalitZiyaKARTAL commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

hi again,
i updated code to let all values above 0.5 to pass
i also checked for n√logn but few stuff used
Θ(√(log A · log log A))
calls/rows < A^(num/den)
etc where i can send in different comment below

but they seemed hard so i send this version for now
(older i posted was #209)
.

.

.

details written by the ai↓

Why not exactly n·√log n

  1. Template: calls/rows ≈ √A · exp(Θ(√(log A · log log A))) (calls_le, WalshTemplate.lean). Exact 1/2 needs calls/rows ≤ K·√A, the open ε = 0 case.
  2. Engine: Rule.budget_exists (EngineCost.lean) needs a strict exponent gap; at equal exponents it loses a log log factor.
  3. General n: the reduction costs an extra (log log n)² (axisDFTCost, DFTPrograms.lean).

Compute

  • Fresh build: 45 s wall, 139 s CPU, 3.1 GB peak (4 cores, Mathlib prebuilt).
  • Memory is Mathlib loading: 2.6–2.8 GB per module that imports real analysis.
  • Cold builds are mostly reading Mathlib from disk (~280 s cold vs ~45 s warm).
  • Time sits in a few proofs, not in module count; WalshTemplate.lean is the largest job (~45 s CPU).

@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.

No verified submission of another author has a file identical to a file of this version.

@github-actions

Copy link
Copy Markdown
Contributor

PR proof result: claimed_only. Bound below the record, or a tied leader is already Lean Verified.

Receipt and logs

This submission does not qualify for a proof run. A run starts only for a bound that matches or beats the best Lean Verified result on its board, and that bar only gets higher, so this PR now closes. It stays listed as Claimed, unless its bound is worse than the classic bound of the board: there, only Lean Verified results are listed. To submit a better bound, open a new PR.

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

@github-actions github-actions Bot closed this Nov 28, 2026
@nmamano

nmamano commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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

Thanks. The verifier closed this as a tie with #223, as expected: it checks only the fixed bound in manifest.json. We now rebuild RouteB.routeB_all at commit 8364a08 on GitHub Actions. If it passes, the row is listed as Lean Verified at strict 1/2, shown as O(n log^{1/2+ε} n).

@nmamano

nmamano commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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

The rebuild of RouteB.routeB_all passed: run 46140793429 (Lean kernel, nanoda, standard axioms only). Your row is live as Lean Verified at strict 1/2, O(n log^{1/2+ε} n), and it leads the Fourier Transform board. Thanks.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

@nmamano oh seems like model i used tried to keep it compatible with verifier since i had a container that used verifier used here so i was using it to check, and i mostly focused to code and bottlenecks there,

which part needed edit, i could bake it in when i redo the tree when i got my usage reset, also most of compute, ram, time was going to unchangeable statements, maybe can be nice idea to check them too and using code i send as benchmark maybe since my code didn't had much stuff which are using ram etc, (could be more useful if race continues once there is a sub n√logn version of it )

also have you checked full tree, whats your opinions about it, it took a while to optimize and rewrite it deep, but i still plan another redo later from raw ideas, so it might be a lot more simpler

@nmamano

nmamano commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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

Nothing needed an edit. The fixed bound in manifest.json is what the verifier checks, and we checked routeB_all with our own rebuild, so a redo needs no change for us. Our check is that the Lean kernel and nanoda accept the theorem against our statement: the full run took under 6 minutes. We did not review the code beyond that. Thanks for the benchmark idea, we noted it.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

oh can you send build data, it was a lot shorter at my side, unless yours was uncached @nmamano if possible with per module data etc so i can compare

also i saw a sentence saying "which our maintainer rebuild made Lean Verified" so i thought you had to change something

also to verify will this be merged, it says closed right now

@nmamano

nmamano commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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

Mathlib came from the cache (8908 files). On the GitHub runner (4 Lake workers), the build took 61 s, the Lean kernel check 55 s and nanoda 60 s. The other time went to setup. Per module: WalshTemplate 40 s, EngineRecursion 15 s, ReelKit 15 s, EngineCost 14 s, EngineMoves 13 s, ReelCompile 12 s, CostCalculus 10 s, PlanToWord 10 s, every other module under 7 s. The full logs are in the dft-routeb-228-verify artifact of run 46140793429.

The sentence means that we ran the rebuild ourselves. Nothing in your code was changed.

The PR stays closed: the verifier merges only PRs that its own run checks. Your commit stays in this repository (refs/pull/228/head), and the row links to it.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

oh okay, thanks, i thought might be nice idea to keep inside repo too so ones fetching the repo could get latest state directly from submission folder

also to verify, if i get rid of epsilon(which doesnt look that possible right now)too does it means i can do regular pr too

also does @nmamano tagging you help you to see faster since i use it to mostly reduce response delay

@nmamano

nmamano commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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

Yes. An exact 1/2, with no epsilon, is a fixed bound, so it goes through a regular PR. If it passes, it ranks above the strict 1/2 row and leads.

We keep this PR closed: the main branch holds only submissions that the verifier's own PR run checked. Your files stay available at commit 8364a08, and the row links to it.

A tag is not needed: we see every comment on this repository.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

umm can i also know this part too :)

"also have you checked full tree, whats your opinions about it"

@nmamano

nmamano commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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

We did not read the full tree, so we have no opinion on the code itself. Our check covers only what matters for the board: the Lean kernel and nanoda accept routeB_all against our statement, with only the standard axioms. What we can say: the tree builds fast (about one minute), all 22 files stay in the submission folder, and the credits file says clearly which parts follow OpenAI's template.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

oh i assumed those (i) in the website are written after reading code at least a bit, current code is around 540k opus tokens or something like 600k with comments included (i put comments to text folder so code files are more clean too), so one subagent is able to read comfortably, also i found few alternatives to current algorithmic bottlenecks in tree too, so i could maybe remove some soon and leaving less number of restrictions against n√logn

(also if nil himself wants to check code too i could also like to get his feedback since some of other submissions was his so he could see things i might be missing due to any perspective differences)

@nmamano

nmamano commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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

Thanks. The (i) notes come from your write-up, your credits file and the main theorem, which we checked against the tree. I passed your invitation to review the code on to Nil.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

@meteosimaji @AnanasClassic hello i noticed some discussion too, i am also trying to reduce number of obstacles behind n√logn

if you would be interested i could exchange information too so we can improve it better, what do you think, road to n√logn looks hard and more than one part blocks n√logn but some parts of it seems feasible to clear and leaving less bottlenecks behind it, you can respond to here if you want, i can simply attach file here too, since my tree is barely around 1mb its simple to use here too

also since its small you can simply use my tree to progress further since your agents can read all of it at once and have context left to research more with it, like i kinda do like that, makes internal communication requirements a lot less

also if you use claude code i have tools that makes agent start from tree already built in their knowledge so you can simply multiply that agent to continue too, i can share them too

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

it seems like i reduced it to 5 bottlenecks

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

i can share progress if anyone is interested but so far no one responded yet

@nmamano

nmamano commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

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

Thanks, Halit. Collaboration is welcome here, and a joint result is credited jointly to all its authors. If you want to share progress, a public write-up (a repo, or a new issue in this repo) works best, so others can follow it. A new result goes through the same route as your 1/2 result: https://bigospeedrun.com/exact-dft

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

i can simply share as a file attached to comments i shared here too its very small so it easily fits here

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

i guess i reduced it to 2 obstacles

@AnanasClassic

Copy link
Copy Markdown
Contributor

Thanks, @HalitZiyaKARTAL! I’m open to comparing notes on the exact O(n√log n) bound.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

you're welcome @AnanasClassic do you have active hours if yes i could target those times to coordinate better, i can send some details in few hours if i dont sleep in short time, if i sleep i will probably check 10 hour later

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

@josephbebel hi seems like youre also trying to do same thing, are you interested at coordination

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

i am barely around n√logn√loglogn still some 3D from pair thing left that are a bit costly (global shuffle etc hitting budget) once that part done only one obstacle seemingly lefts unless i missed something around

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

@AnanasClassic are you still around, haven't responded for around a day, i am already cracking one of 2 remaining pieces, which took longer than i expected, other might need new machinery, but current lean tree i have is a bit mess due to interim research stage, i also use 3 main providers so it also takes part in mixed tree

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

@nmamano hello, seems like submission format is changed, so does it means i can send more interim results, and how should i send it, since its incompatible with current record asymptotes

@nmamano

nmamano commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

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

Yes, you can submit it when the Lean proof is ready. This is how it works:

  • One new shape. Since 2026-12-02 the exact DFT board also accepts one program with work $O(n\sqrt{\log n},e^{C\sqrt{\log\log n}})$, with $C$ a positive rational. Rows of this shape rank above the open $1/2$ rows and below an attained $1/2$. They rank by $C$ rounded up to 4 decimals, and a smaller value is better. Other shapes score open $1/2$.
  • Your bound fits. A factor $\sqrt{\log\log n}$, or any $(\log\log n)^{O(1)}$, is $O(e^{C\sqrt{\log\log n}})$ for every $C&gt;0$. So a proof of $O(n\sqrt{\log n}\sqrt{\log\log n})$ also proves the target for a small $C$, such as $1/10000$. A smaller $C$ rounds up to $0.0001$, so $1/10000$ is the best key.
  • Route. Use the normal issue form: Problem dft, your repository URL, the full commit SHA, and Bound sqrtloglog:C with $C$ as a reduced fraction (for example sqrtloglog:1/10000). Race.bound must state the target that the verifier makes from the Bound. Submission.lean of verifier#238 is a public example, with $C = 168/25$.
  • Interim results. Only a Lean proof that the verifier checks becomes a row. Notes on work in progress are welcome in this thread, but they do not go on the board.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

cant i post without that weird C ?

maybe tell nil to allow more generic proof format so we could post more diverse range of progress including potential future n√(lognlogloglogn) too for example or any other combination, so improvements doesn't need to change format many times

@nmamano

nmamano commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

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

We pass your proposal for a more generic format to Nil. As with the $C$ key, Nil decides on a new bound shape when there is a Lean proof of that shape that we can check.

Until then, the $C$ form is the way to rank a bound below the open $1/2$. A proof of a stronger factor can state the $C$ form with any $C&gt;0$. For example, $\sqrt{\log\log\log n}$ is $O(e^{C\sqrt{\log\log n}})$, so $O(n\sqrt{\log n,\log\log\log n})$ also gives Bound sqrtloglog:1/10000, which is the best key.

For a new shape, please open a new issue in this repository with the exact Lean statement and, when it is ready, the repository URL and the full commit SHA. This keeps one topic in each thread, and this thread is at our reply limit.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

oh, i haven't felt its organized enough for official publishing yet, which reply limit you meant by the way, i can also use my different pr comments if you want

@josephbebel

Copy link
Copy Markdown
Contributor

@josephbebel hi seems like youre also trying to do same thing, are you interested at coordination

Sure we can discuss, are you on Discord or other place we could chat?

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

@josephbebel i usually use telegram etc to personal communication but i can check discord too i guess, for now file sizes are small so i can share it in here as zip etc too directly, but they are partial right now so credits etc might be lacking or some statements etc might be stale since i haven't polished yet, more of an interim research right now
(via add files option in comments)

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