r/algorithms • • 29d ago

News Deterministic factoring in time N^o(1)

https://hexagonmath.org/2610.00600?version=1

The current best upper bound for deterministic factoring is N{1/5+o(1)}. We provide a Lean certificate that there exists a deterministic Turing machine that computes the smallest prime factor of every N in N{o(1)} steps: for every k\geq 1 it runs within C_k 2{n/k} steps on n-bit inputs. The algorithm reduces factoring to counting divisors with prescribed leading bits, and counts them by leveraging the counting engine used to refute the Exponential Time Hypothesis (ETH). The Lean statement that a reader must check to verify the proof is only 13 lines and only uses Mathlib. The full proof is about 35,000 lines. This note was written less than 24 hours after the ETH refutations were posted. No human-readable explanation of these results exists yet, and their Lean proofs are long: Anthropic's alone runs to about 152,000 lines. Our proof re-proves only the part of the counting engine it needs and imports nothing from those developments. We hope this application, with its short statement, serves as a stepping stone for those working to understand the engine; a follow-up paper will explain this proof in detail.

166 Upvotes

16 comments sorted by

15

u/Beginning_Marzipan_5 29d ago

That is wild. We live in such interesting times. From the looks of it, this is a galactic algorithm.

I asked Chatty to inspect the Lean code and work out the actual runtime. It came up with the upper bound
N^O(1 / (log log N)^0.01535)

That exponent goes to zero extraordinarily slow. But certainly o(1). Apparently, even the first level of recursion requires an input of more than 10^1114 bits!

Still, if this holds up, it’s a remarkable theoretical breakthrough.

6

u/Ythio 29d ago

Why publishing it now without the "follow-up paper [that] will explain the proof in detail" ?

7

u/scrumbly 29d ago

For priority I'm sure. Every hour counts nowadays

1

u/Ok_Comb_1891 27d ago

yes dfintely, when you think that some of these proof tkes 3 hours or less to do, in future it may take than less than 3 hours astra time to do one proof

0

u/[deleted] 29d ago

[deleted] — view deleted comment

1

u/joshtryingtohelp 26d ago

If you're interested, I am working on some tooling that's intended to help me with exactly this kind of workflow. It's still going to need some work before it's releasable, but hoping it can speed work like this up significantly.

Are you already using lean4-skills and lean-lsp-mcp, by chance?

0

u/[deleted] 23d ago

[removed] — view removed comment

1

u/Phytor_c 23d ago

What work?....

0

u/[deleted] 29d ago

[deleted] — view deleted comment

11

u/cuervamellori 29d ago

Is one way to interpret this to say:

Taking n to be the number of bits in the input, for any ε>0, this algorithm is O( (1+ε)^n )?

6

u/uwaces 29d ago

What are the consequences of the theorem as stated? If the constants are suitably small does this break the hardness assumptions baked into asymmetric cryptography? Im out of my depth and trying to make a good faith effort to understand the significance of the result.

Do we concretely know the values of C_k?

14

u/misogrumpy 29d ago

I think saying you wrote it and you’re working through the proof are a bit contradictory ❤️

7

u/Wild-Store321 29d ago

It is only contradictory if “it” (or “this”) refers to “the proof”

2

u/Beginning_Marzipan_5 29d ago

That the algoritm is deterministic is an important qualification. Heuristic factorization was already sub exponential; and in fact has better asymptotic bounds than this new algorithm.