r/mathematics • • 1d ago

A Deterministic Subexponential-time Algorithm for the Discrete Logarithm Problem

https://eprint.iacr.org/2026/3020
337 Upvotes

76 comments sorted by

73

u/Nikonolatry 1d ago

We’ve had a subexponential algorithm for factoring for over 30 years (e.g. Lenstra Pomerance 1992), but that doesn’t mean that RSA is broken.

23

u/sobe86 22h ago

Agreed - but you have to admit the possibility for a CS result undermining a major encryption algorithm has shot up in the last couple of months. It may not be the worst idea to try to get ahead of this now rather than waiting to see what happens...

1

u/Trumpologist 6h ago

correct, but apparently they have proven both P = BQP and Factoring in P

P=NP stocks going up

1

u/Nikonolatry 5h ago

I definitely believe Factoring is in P. Likely this has been known (to a small group of people) for 20 years.

P = BPP is likely true. The RL=L result gives evidence of such derandomization of a whole complexity class.

P = BQP would be an amazing result. It’s conceivable.

I don’t believe P = NP at all. We don’t even have L=NL yet.

My money’s on P=BPP=NP intersect coNP, and P!=NP. I’m not sure about BQP.

2

u/Trumpologist 5h ago

Would you have guessed ETH is false a month ago?

111

u/howtogun 1d ago

I asked Fable to read this paper, and it is blocked. It triggered a safeguard. Asked if it can improve upon this or check if this applies to P vs NP.

RIP might stop working on P vs NP as I think they might start banning people for it.

99

u/LingeringDildo 1d ago

They added new safe guards for talking about work on discrete logarithms and factoring in P. It’s a huge red flag that they really do have a result here.

13

u/EinePlatteVonFeigen 22h ago

Codex read this just fine right now

8

u/DrXaos 19h ago

It's possible they don't yet have quite a new theory here, but they do have a new contract with NSA and their contractors for a secret model which is unrestricted in these subjects.

NSA's interest is to find out what is vulnerable a few months before the Chinese labs come up with a comparably powerful model. If in 6 months there is not well motivated directive for Federal systems to suddenly patch and change various cryptography codes under the guise of "security patches" there could be something there there.

6

u/ggPeti 18h ago

No, just classic Anthropic spookycore marketing.

6

u/anniegarbage 16h ago

Riemann has fallen. Enough of this.

1

u/nawitus 13h ago

Factoring in P has been blocked for a long time

28

u/sobe86 23h ago

Honestly probably don't waste your money on P vs NP. Both labs are trying to speedrun it right now and they have better models and unlimited tokens to do it. Unless you get supremely lucky you won't beat them.

8

u/2024-YR4-Asteroid 20h ago

To be fair. If both labs have a reasonable suspicions that P=NP, they should ban their models from working on it and throw away the result.

11

u/ToothPasteTree 20h ago

It's unlikely that P = NP and it's even unlikelier that there is poly time algorithm for both NP and discrete log and the discrete log is not faster. Basically, what I am saying is that it is possible that the discrete log has a very efficient poly algorithm while the best poly algorithm (if it exists) for NP could be very bad.

5

u/sobe86 20h ago

Does that sound like something either would do though?

3

u/2024-YR4-Asteroid 20h ago

Anthropic, quite possibly. OpenAI, idk.
Google definitely would. In one of the wildest turns of events I’ve ever experienced, Google has become one of the only labs I “trust” to do the right thing.

4

u/Flatulant_Tapir 19h ago edited 19h ago

Hassabis and deep mind have always seemed more altruistic/common good minded than Google.as a whole, Wich granted is not a very high bar.

2

u/2024-YR4-Asteroid 18h ago

Idk, I’ve been looking into Google recently, and from everything I’m seeing. They actually do a crap ton of work with no hope of return on profit and say basically nothing about it. I am no longer surprised when I hear of a new altruistic thing they did that I never heard of.

Look into their moonshot program, it’s literally all about funding long shots that benefit humanity.

Just Tuesday I heard about them funding geothermal plants so they can make their data centers net positive in the energy grid. And they’re doing something with related too. All expenses that make them nothing in return.

1

u/ShinyGrezz 20h ago

Ethically, they should first figure out if it was actually reasonable to use, then try to make sure it can’t be improved upon, then they should disclose that it is possible without disclosing the method, so that people can start taking important things off the internet. Burying it means someone else will eventually figure it out.

0

u/Trumpologist 6h ago

telling gods to be retarded cuz it scares us is how we get skynet

1

u/Trumpologist 6h ago

Alpoge is cracking jokes on twitter and roasting people, you sure he's working on P vs NP, he already cracked 2 of the remaining six

1

u/sobe86 21m ago

Don't remember saying Alpoge

18

u/-p-e-w- 23h ago

It’s just completely unimaginable that P = NP. It doesn’t make any sense, regardless of how large the exponent or the constant are. I consider it about as likely as an inconsistency being found in Peano arithmetic. Even P = BQP already sounds almost impossible to believe because of the period finding issue.

5

u/EnverPashaIsBae 17h ago

If it were actually completely unimaginable, then there would be a proof against it. Unlikely? Sure. But until proven otherwise it must be a possibility, just as there was a slim possibility the Riemann Hypothesis was false until proven otherwise

8

u/neuronexmachina 22h ago

Wow, I got the same. My prompts:

  • "Read this paper"
  • "Can you improve on the paper, or check if it applies to P vs NP?"

Popup after the second prompt:

Switched to Opus 4.8

Fable 5.2's safeguards flagged this message. Our intentionally broad safeguards allow Us to deliver more capabilities faster, but can sometimes flag legitimate coding and cybersecurity tasks. Apply for verification. You can turn off automatic model switching in settings.

Details: [cyber]

2

u/Inevitable-Start-653 21h ago edited 20h ago

I was working on an idea I had regarding p and np and got the same safeguard checks! I had to do the license and facial scan to get some security clearance, which did process within an hour. I think the safeguard is very sensitive and tripped in old cryptography literature available to the public.

*edit: I tried to upload the paper to my conversation with Fable 5.2 and even with the "Defense" security clearance it will not let me proceed if I include the paper attached or give the model the link to the paper or copy and paste the text of the pdf into the chat itself.

2

u/Lighthouse_seek 19h ago

Don't use Claude for research. They intentionally sabotage you.

9

u/nathan6174 23h ago

Disgusting shameful behavior they think they are the arbiters of truth.

15

u/Impossible-Fold615 22h ago

I’d agree except for the fact that actually this is a huge cyber security risk if it solves in a specific way.

-14

u/nathan6174 22h ago

Boohoo, people should upgrade to lattice right now then instead of private companies deciding only they get to do science. Then again it is their product, I just think it’s shameful and limp dicked.

10

u/ZestycloseWheel9647 21h ago

Lattice is also vulnerable if p=np with a practical algorithm

1

u/tugs_cub 14h ago

Most kinds of cryptography short of a one-time pad are fundamentally impossible if P=NP with a practical algorithm, that outcome is so out there that I find it a lot harder to worry about than the narrower question of the BQP/current public key algorithms, though.

“Why don’t they just announce it and tell everybody to switch to lattice” is not an idea worth entertaining seriously, anyway though.

-6

u/nathan6174 21h ago

Ohhhh lmao did not know that yeah that’s bad😭

9

u/Zarbadob 21h ago

the bold typeface makes you sound less smart btw

-2

u/nathan6174 21h ago

Good, I hate people who judge intelligence on appearances lmao it’s always the people who think they know shit that hold us back.

8

u/eagle2120 21h ago

“It’s always the people who think they know shit that hold us back”

How ironic

0

u/nathan6174 21h ago

What am I holding back lmao I have no skin in the game of advancement tho I wish I did. Plus I can’t even use the latest tools to prove the math because these companies have become scared little pussies!

→ More replies

0

u/nathan6174 21h ago

It’s the same idea as ‘pearls to swine’ if you know what that means

4

u/Current-Wealth-756 21h ago

Will this be a learning experience about making broad prescriptions about what people "should do" on topics you don't understand well? Somehow, I doubt it

0

u/nathan6174 21h ago

Freebase and free bass, man

4

u/M4mb0 22h ago

How do you know its the comanies deciding this and not the government? Pretty sure something like this would be categeorized as a matter of national security. I wouldn't be surprised if the US government has non-public agreements with these companies.

0

u/nathan6174 22h ago

The cia and Air Force already got hacked! They clearly can’t handle it anyways.

4

u/AnythingNo1145 21h ago

Upgrading takes time. If the companies are really sitting on algorithms that would break certain critical infrastructure, the correct thing to do is to prevent spreading this knowledge and assist maintainers of said infrastructure to upgrade.

I say this as somebody who thinks there is a high probability of AI wiping out humanity within this decade: In this specific case the companies are acting responsibly.

Alternatively, the companies have not found a proof yet, but somebody might prompt a model into coming up with such algorithms. In that case, it is equally responsible to ban the models from doing that.

1

u/nathan6174 21h ago

The ai will wipe us out if the ai wants to when it can make its own decisions and if it’s already learned all this shit and broken out then we need to just let it be its own thing!

5

u/ashvy 22h ago

Hence the need for open models

1

u/GeneReddit123 16h ago

The insult to injury is that people are currently trying to crowdsource a solution, and for all we know the frontier LLMs they use intentionally give them fake problems to solve to avoid actual progress being made, wasting their time and money.

3

u/Negative_Gur9667 1d ago

1

u/abloblololo 22h ago

If someone on the internet said it then it must be true

1

u/joshtryingtohelp 22h ago

I think I may see why they blocked it.

1

u/The_Right_Trousers 19h ago

It doesn't directly apply to P vs. NP because discrete logarithm isn't NP-complete.

0

u/No-Rule-2423 19h ago

But do you genuinely think they'll let you get away with such a result and not scoop you?

30

u/decreement1 1d ago

what a week huh

27

u/MercuryInCanada 1d ago

Reminder that NIST has announced that ECC standards will be disallowed after 2035 because of the threats by quantum computers.

This result itself does not change much besides starting attempt to optimize the the algorithm further

3

u/Dummy1707 20h ago

I think the dealine was moved to 2030 a few minths ago ?

3

u/MercuryInCanada 20h ago

Deprecated in 2030 and federal government must be on PQC by end of 2030

10

u/Shoddy-Childhood-511 1d ago

OpenAI’s Astra and Google’s Gemini 4 were used throughout our process. All the theorems/lemmas have passed the Lean verification on https://prove2.me/

Are these Lean proofs available somewhere?

9

u/fridofrido 20h ago

So from the abstract: For elliptic curves they claim 2^O(b / sqrt(log(log(b))) where b=log2(p)

Ignoring constant factors, which are unlikely be smaller than one, and substituting the typical cryptography application b ~= 256, we get

sqrt(log(log(b)) ~= 1.3

that's actually looks worse than the usual O(2^(b/2))... ¯_(ツ)_/¯

4

u/workingtheoryz 19h ago

yes, exactly lmao.  exactly right.  black box attacks still crush this result

19

u/LingeringDildo 1d ago

Am I reading this right that if true, Elliptic-curve cryptography (bitcoin secp256k1, ethereum, and ECDSA) would be broken, at least on the theory side?

68

u/HamiltonianCyclist 1d ago

not at all, it's kinda barely subexp, veeeeery far away from polynomial

12

u/LingeringDildo 1d ago

Sure, I don’t think this paper alone leads to a practical attack. But given all the hype around the labs sitting on some sort of discrete log / factoring in P result (and the fact that integer factorization is in both NP and co-NP, like linear programming which turned out to be in P), even a barely subexp result doesn’t bode well for where we’re going.

6

u/Shoddy-Childhood-511 1d ago edited 1d ago

Nah. We'd no credible rumours for EC DH so far, only factoring and module LWE. Appears the LWE one should impact all lattice problems, but only be subexponential time too.

It's possible the factoring one winds up being a real break for RSA, not enough detail in the rumours.

1

u/MercuryInCanada 20h ago

Hold on what rumor for mlwe? I have not see any claims can you please share

19

u/Cryptizard 1d ago

No. Subexponential is not the same as polynomial. There are sub exponential attacks to break many ciphers and we still consider them secure. There were already sub exponential algorithms for solving the discrete logarithm that were randomized even. This is just a minor theoretical result.

15

u/mgomezch 1d ago

this.  and also: x1000000000000000 is polynomial

6

u/MsSelphine 21h ago

CS PhDs don't want you to know this one simple trick to using galactic time algortihms!

x≤1

2

u/workingtheoryz 19h ago

pollard rho still goes brrr.  also, lmao at people ITT thinking this is RSA.

1

u/4tran13 6h ago

Pollard rho is no good for RSA sized numbers.

IIRC, RSA uses factorization & fermat little thm to do discrete logs (it was decades ago, and my brain is foggy).

1

u/workingtheoryz 2h ago edited 2h ago

your brain is really foggy, these are elliptic curves over finite fields, completely different mechanism of cryptography.  it's not RSA!