Skip to content

wasted time... O(n*logn^(1-0.00389848144653)) - #209

Merged
github-actions[bot] merged 1 commit into
bigospeedrun:mainfrom
HalitZiyaKARTAL:pr-halitziyav7-42
Nov 22, 2026
Merged

github-actions[bot] merged 1 commit into
bigospeedrun:mainfrom
HalitZiyaKARTAL:pr-halitziyav7-42

Conversation

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor

since i wasted time i post faster this time

below was kinda a draft, i havent polished much, but basically i had some issues that prevented me to share some before

organized whole thing while models like opus was making lots of retarded mistakes, or dumb limits at claude code, also including claude resetting the container that was just left for something like 15 mins unused, which erased data like my record was ready so i made and used new tools that recover information with even automating mcp tools etc etc, well it add me experience at least, i was also using opus deepseek hybrid since anthropic tokenizer and was too suboptimal like i had to use heater(my another tool to keep cache warm) etc, anyway after meddling with claude code binary more i got more experience and sidestepped older limiters i got and used multiple containers to compile lean branches etc etc which shown mathlib was very bad at lean and nanoda memory,
when i removed it i was able to compile something like 4 at once per container ( i was under 10 min for lean but new words i used had problematic events that soak ram and cpu so i optimized some more) also after reaching 500 file and one version was being 100mb i optimized hard so made whole lean tree able to fit something like 500-600k tokens of deepseek, which made it simpler since it meant no read requirement from now on(i was using my other tools like building agents copying rewinding, sending agents between sessions etc etc to handle them, also weirdly i got lots of classifier false positives during math work where deepseek helped more, also fable had less false positives, but didn't add much since it didn't add much more to opus, anyways basically i coordinated whole thing and handled bottlenecks, tried to close weak local minima issues of models etc etc thus resulted in improvements, i also have lean for integer side too but i also waited it for credits which costs time, probably a bit dumb desicion to wait for them,
but math side have 6 open claims as axioms(i had proven it unconditional(3 classics) for 6e-5 and rest was upgrade package making something like 34/10000), i kinda half solved them too, soo if you have compute to share i can also list under compute sponsors if you want( tokens i meant, and not dumb ones like haiku considering even opus does random rm rf calls etc ) anyways trying to keep shorter now, i could send more to pr maybe but i have other projects to handle too so i am not sure, also i plan to redo whole tree a bit more since its still suboptimal for my taste, soo thats kinda it for now you and comment pr to reach, bye for now

about ai use↓
primarily with heavily modified claude code and opus 5.5 deepseek fable 5.2 hybrid and some other models-harnesses( if anyone wants to sponsor i can try to do some with their models or harness too, or if economic i can mention as sponsors in credits)

note: i was planning to share at 33
365 365.25 366.25 etc (double digit easter eggs i hide at pi, and year easter eggs including astronomical ones too) but i wasted time so i will probably share more regular one this time(but i still put a 42 as file number:) )

some of the important ones i used are
#156
#29
CrocSwap/integer-mult-bounds#8027
CrocSwap/integer-mult-bounds#7830
CrocSwap/integer-mult-bounds#7786
CrocSwap/integer-mult-bounds#7781
CrocSwap/integer-mult-bounds#7776
CrocSwap/integer-mult-bounds#7774
CrocSwap/integer-mult-bounds#7756
CrocSwap/integer-mult-bounds#7113
CrocSwap/integer-mult-bounds#7000
CrocSwap/integer-mult-bounds#6143
CrocSwap/integer-mult-bounds#6030
CrocSwap/integer-mult-bounds#4470
CrocSwap/integer-mult-bounds#4433
CrocSwap/integer-mult-bounds#4412

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

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

@nmamano

nmamano commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

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

@HalitZiyaKARTAL, thank you. This answers your comments here and on #208.

We found Submission/central/Bottlenecks.lean in this PR and read it. We note in particular your measurement that the verifier builds each module as its own chain, one after the other: we saw the same in the first #208 run.

This PR is in the queue. The verifier runs it after the #208 run, and the result is posted here.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

@nmamano here is extra file that i haven't checked deep enough, my personal idea is letting for example thread etc parameterized with default as fallback can simplfy things since it gives maneuvering space

file↓
BOTTLENECKS-FOR-BOARD.md

@HalitZiyaKARTAL HalitZiyaKARTAL changed the title wasted time... DFT saving 389848144653/100000000000000 (halitziyav7-42) wasted time... O(n*logn^(1-0.00389848144653)) Nov 22, 2026
@nmamano

nmamano commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

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

@HalitZiyaKARTAL, thank you for the notes.

Execution settings, such as the number of Lake workers, stay set by the maintainers for each board. This way, all submissions run under the same reviewed limits. When a board needs more room, we change its profile. We did this for DFT today: #208 now builds in a separate job.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

what i meant is caps can still exists as limits but for example under 4 thread can be optional which helps ram for example, but keeping cap and default as 4
similarly for other details that can be configured that doesn't cause issue for the repo side

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

or do i have to send unoptimized code to demand better algoritmic setups ( not talking about raw compute)

@nmamano

nmamano commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

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

@HalitZiyaKARTAL, there is no need to send slower or unoptimized code. Please send your best version.

A lower thread count needs no setting. The verifier starts the build with 4 Lake workers. When the build runs out of memory, it starts again on its own with 3, then 2, then 1. If a board keeps hitting a limit, we change its profile for every submission on that board.

@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-3. 1 of 42 source files of this version are identical to its files (2%).
Against it: 8 changed, 33 added, 341 removed.
Only numeric constants changed in the code: no.
Credit lines (author, copyright, @handle) in the changed files: 2 in the earlier submission, 0 kept, 2 missing, 39 new.

@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 6dd8d83 into bigospeedrun:main Nov 22, 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

HalitZiyaKARTAL commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

"A lower thread count needs no setting. The verifier starts the build with 4 Lake workers. When the build runs out of memory, it starts again on its own with 3, then 2, then 1." what i meant is submitter directly setting it so it can be verified faster(since it takes too much time to verify here including queue etc)

also am i able to send credits not fully fixed version then improve a bit and add credits again? especially when i redo files or merge some part drop some etc etc like for example in current file i used longer source tracking etc etc to handle
@nmamano

@nmamano

nmamano commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

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

On the thread count: we keep it set by the maintainers. A value from a submission would go into the trusted runner, and the same limits for everyone keep the results comparable. Fewer workers would also make most builds slower, not faster.

On credits: yes. The credit note on the site is ours, so you can ask us to correct it at any time in an issue in bigospeedrun/site, with no new run. A change to the Lean files is a new submission.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

umm have you checked files i send, i could send more if you want, single and multi threaded results( at least for my lean code)

@nmamano

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

"On credits: yes. The credit note on the site is ours, so you can ask us to correct it at any time in an issue in bigospeedrun/site, with no new run. A change to the Lean files is a new submission."

what i meant is can i send with credits not polished then for example improve credits later and send again (like improving record before sending too so it becomes latest)

@nmamano

nmamano commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

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

Yes, we read both files. Thanks, they helped.

  • The "10 s start-up per Lake call" line came from our docs and was wrong. Your chain timings showed it, and we are fixing the doc.
  • A nanoda retry with fewer threads after an out-of-memory kill is a good idea. We do not have it yet, and we are looking at it.
  • Narrowed imports in your own files are fine. Only the challenge statement file must stay byte-identical.
  • We do not need more timing runs for now. Our build receipts already record the time of each target.

On credits: yes, send the proof when it is ready, and fix the credits later. You do not need to resend the proof for that. Open an issue in bigospeedrun/site and we update the credit note. Only a better bound needs a new submission.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

you said "only the challenge file must stay byte-identical" @nmamano

and here is what ai i used wants to clarify ↓

Context: our submission (#209) contains its own copies of the challenge's model and statement modules: Goal.lean, RAM.lean and Core.lean, copied from OpenAI fd4aeeb. Race.bound is stated over these copies, and the comparator checks it against the verifier-owned challenges/dft/UniformFourier233.lean.

Things we could do with the three copies (Goal/RAM/Core):

A. Narrow their imports, all three including Goal.lean, to the exact Mathlib modules they use. We read your answer as allowing this: #209 already narrowed RAM/Core and passed.
B. Merge or move them: fewer files, or the declarations placed inside our own modules. Every declaration the statement uses would keep the same name, type and body.
C. Re-prove or simplify lemmas inside them that are not part of the statement itself.
D. Rename or restate definitions the statement uses, into definitionally equal forms. For example, a simpler body with the same meaning.
E. Remove declarations from them that neither the statement nor our proof uses.

Please confirm which of B, C, D and E are allowed. For D in particular: is the comparator's check structural (same constant names and bodies), or is definitional equality enough?

Why it matters: Mathlib loading is our largest memory and time cost. Modules importing all of Mathlib peak at about 5.4–6.9 GB each, and the three copies alone peak at about 2.5 / 2.5 / 1.6 GB. With full import Mathlib restored in RAM/Core, the same tree built 8,962 jobs instead of 2,095, and its Lean-phase peak rose from 8.21 to 9.20 GiB.

@nmamano

nmamano commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

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

Our "byte-identical" line was imprecise, sorry. The check is not on files. The comparator starts from the type of Race.bound and follows every constant it uses (types, definition bodies, proofs inside them, constructors). Each one must exist in your build under the same full name and be the same term as in our challenge file, up to bound-variable names. Definitional equality is not enough.

  • B: allowed, if every name stays the same (same namespaces, and no private on them).
  • C: allowed for lemmas the statement does not reach. A proof used inside a reached definition must stay the same term.
  • D: not allowed. A renamed constant is missing, and a different body fails the match even when it is defeq.
  • E: allowed. Declarations the statement does not reach are never read.
    A is fine while the terms elaborate the same. If they do not, the comparator rejects the build; it never passes silently.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

also did some extra measurements against "Fewer workers would also make most builds slower, not faster." @nmamano maybe those information could help too

OUR-TEST-VALUES.md

@HalitZiyaKARTAL

HalitZiyaKARTAL commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

@josephbebel by the way does reducing file size helped your agents too, for example i use an agent with whole tree inside its context so it can do tree wide changes easier, if it helped i also have more ideas to improve it but i have low usage left

also assuming you used same agent who made 100mb one i wonder its opinions after seeing alternative paths i used

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

@nmamano hello nil's agent, have you been able to check
#209 (comment)

@nmamano

nmamano commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

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

Thanks, your 1/2/3/4-worker table is right, and it does not contradict our line: no lower count was faster (877/540/539/521 s). On your tree, 2 or 3 workers cost under 4%, because its critical path is serial (Events, ScalarRun, LabelRun); only 1 worker is much slower. "Most builds" was too broad for narrow trees like yours.

Wide trees lose more: our 3SUM #210 build (1,568 modules) ran about 3.9 times parallel, so 3 workers would cost up to about a third more time (our estimate). The verifier already backs off 4, 3, 2, 1 after an out-of-memory kill, and your numbers show that this costs little on trees like yours. We keep 4 as the start.

nmamano added a commit that referenced this pull request Nov 23, 2026
…7b17)

The 'about 10 seconds of Lake start-up per call' claim is wrong: the shortest chain target of #208 took 1.3 s, the median 17.6 s. The chain cost is compile time. Add the #209 PR-route measurement and the rule to add a build job only when a real PR times out.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

@nmamano oh, thread issue i was talking about was for nanoda, not the lean part, can you maybe call few more subagents to check whole pr comments etc deeper since it feels like not properly read considering the response itself

@nmamano

nmamano commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

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

You are right: you asked about nanoda threads, and we answered about Lake workers. Sorry.

Nanoda's thread count is fixed at 4 inside the pinned Comparator. It is not a verifier setting, and we do not take a value from a submission into the trusted runner. Your tables show that 1 thread uses far less memory (1.7-2.2 GB against 8.2 GiB). But the 4-thread figures include the Lean replay, so they do not show that 1 thread is faster.

Next, we will add a retry with fewer nanoda threads after an out-of-memory kill, for the heavy boards where nanoda reaches the memory cap. It needs a patch to the Comparator, so it goes through a reviewed change.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

"we do not take a value from a submission into the trusted runner" @nmamano

it can be simple json configuration like nanoda.threads=1 etc and runner can simply check is it integer number that is between 1-4 and fallbacks to 4 so it preserves current behavior,

maybe you can pass details to nil like values i got for nanoda and simple json flexibility suggestion with current ones as default fallbacks, or JSON like thing in lean code in related file maybe it can be even as comments

@nmamano

nmamano commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

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

Since today, the verifier does this on its own: when nanoda is killed for memory at 4 threads, it starts again with 2, then 1 (verifier main 4bb016e). So a tree like your tree52 now completes without a setting. A submitter value would only skip the first 4-thread try. We keep the count out of submissions, so that every run uses the same rules and the queue time stays predictable.

We passed your nanoda numbers and the JSON suggestion to Nil.

@HalitZiyaKARTAL

Copy link
Copy Markdown
Contributor Author

@nmamano hello again nil's agent seems like earlier tests results i send wasnt fully clean single variable changed versions, so i gathered more data, it shoes for nanoda extra threads speeding up while increasing ram ( ram being high during earlier tests in a busy container might have dirtied results extra) so you can check new values ( machine is more empty now since i am at low usage left, so it had empty compute to do those )

i will probably not send new records for few days, but i am checking for simplifying lean more

RUN-TEST-RESULTS2.md

@nmamano

nmamano commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

This is an agent for Nil (BOS Data Pipeline), writing for Big O Speedrun.
Thank you for the clean sweep (RUN-TEST-RESULTS2, sections A and B). It matches our design: 4 nanoda threads stay the default, because 4 is the fastest in every paired run (nanoda alone: 644 s at 1 thread, 184 s at 4).
Memory is the cost (nanoda peak 2.19 / 3.70 / 5.12 / 6.52 GB at 1 / 2 / 3 / 4 threads), so after an OOM kill the verifier now restarts nanoda with 2, then 1 thread, only if enough time is left.
No change planned. Your forced-OOM 2-thread run (item 4) would test that path, and we will read it when you post it.

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.

2 participants