Rendered at 08:28:22 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
articulatepang 4 hours ago [-]
The article says “This means that for P to equal NP, there must be some trick to computing permanents using AND/OR/NOT on the bits of the input that is better than addition and multiplication.”
This is implying that if P=NP then there must be a polynomial time algorithm for finding the permanent. But that isn’t known to be true. It would be consistent with all known results if P=NP but computing the permanent is still not possible in polynomial time.
Finding the permanent of a 0/1 matrix in polynomial time is stronger than P=NP; it would let you count the number of solutions to NP problems in polynomial time.
emil-lp 44 minutes ago [-]
You're right. It almost sounds like they're conflating NP with #P.
newsy-combi 2 hours ago [-]
Horizontal overflow is so annoying on mobile and 10x worse when it persists in reader view. There's no reason why your equations shouldn't either have overflow-x: auto; which will give them their own horizontal scrollbar instead of abusing the whole page, or just let them wrap, possibly with an indent in the next line/s.
sorrywhat 53 minutes ago [-]
We need a separate comment section for the inevitable "contrast is a bit bad", "scrolling kind of sucks", "typeface is a bit weird", "doesn't work with JS disabled"... comments under literally everything posted here.
spragl 29 minutes ago [-]
I like how short and to the point that article is. But it leaves readers confused about P vs NP. Some readers apparently seem to think that we are closer to P = NP now, but that is not the case. The result is not directly applicable. If anything it gives an indication that P ≠ NP is likely to be the case.
soon_to_be_sb 2 hours ago [-]
Can someone say how proving P=NP will automatically allow us to crack RSA? Like if we have a public key, just by using the proof of P=NP, can we easily get the private key from it?
Gabriel54 2 hours ago [-]
It wouldn’t. If P=NP then many problems we think are hard (ie currently require exponential time) would in fact be solvable in polynomial time. But such a polynomial time algorithm might be “galactic” in the sense that the constants are so astronomically large that in practice the algorithm would not be faster than current methods.
Note that this is not widely believed to be likely, because usually if a problem is in P, then usually further work can improve constants considerably, but it is a possibility that there is a certain class of problems in P that are “galacticly” polynomial.
2143 2 hours ago [-]
I’m not qualified to answer this.
(Well my qualification is this – I took a semester of Theory of Computation class about a decade ago and barely managed to pass without screwing up my scholarship in the foreign country I was studying in. Today I write PHP during my day job..)
One way to try to get the private key is to try all possibilities. For an RSA key with 4096 bits, there are 2^4096 possible keys, which I’m told is greater than the number of atoms in the universe.
So you see, this is a O(2^n) operation. ie., the algorithm is “exponential”.
You’ll never finish checking all those combinations before the universe ends, or at least not before the Sun explodes and the Earth ceases to exist as we know it.
Unless you’re really really lucky and a key you try during your lifetime happens to be the actual private key. But the likelihood of that happening is practically zero because of the sheer number of possibilities.
The point is, you have to exhaustively check all possible keys. Exponential.
P=NP means there exists a polynomial time (O(n^k)) algorithm to find the private key. ie., it can be found relatively quickly.
This is all I know. I skipped a lot of details. Experts can chime in.
teo_zero 2 hours ago [-]
I like your explanation, but you merely said that a high number of possibilities means it takes a long high time to break it. This is true independently of whether such high number is obtained as an exponential (2^n) or a polynomial (k*n, with k very big).
I think it's more about growth: if we ever build a supercomputer that can break RSA in a reasonal time, we will bump that 4096 a bit to still be safe. In the case of exponential algorithm like 2^n, if you increase n by 1, you double the breaking time. In the other case you have to double n to get the same effect.
So, it's not about how hard it is to break it, it's about how fast can we make it harder.
taneq 1 hours ago [-]
Not claiming to be an expert, but you can game this by saying you can find a 4096-bit RSA key in O(1) time, because O(2^4096) is O(1). :P
inkysigma 2 hours ago [-]
Depending on the proof of P=NP and what you mean by "easily". In TCS, anything polynomial is considered "easily" so it could easily be the case that some ridiculous polynomial is implied with some ridiculous constants.
Suppose the proof of P=NP were not constructive, then Levin's universal search algorithm automatically gives us an algorithm that finds the factors in polynomial time. This would satisfy some definition of "easily" from above. However, if you take a look at Levin's universal search, it quickly becomes apparent the constants involved are truly galactic and not worth even thinking about in a practical sense.
If the proof of P=NP were constructive but gave some incredibly high degree polynomial or something with incredibly high constants, then we might be more wary. We would be able to get factors in polynomial time but it would still be "hard" in a practical sense to get the private key but it becomes exceedingly difficult to guarantee that there isn't some practically efficient algorithm. Proving fine grained lower bounds like this has been difficult to say the least.
If the proof of P=NP were constructive and efficient, then we would easily be able to get the private key. There is some additional detail here about what NP complete problem was actually solved (and thus how much the polynomial reduction cost but this is typically small) but this is a bit detailed and unclear. We would also probably begin searching for a directly efficient factoring algorithm.
rmu09 45 minutes ago [-]
Is it even known that factorization is NP? Maybe some new efficient algorithm (like manually calculating a square root) pops up that just yields the largest prime factor of a number? Is that ruled out? That would break RSA without touching all the other P=NP stuff.
emil-lp 35 minutes ago [-]
It's "trivial" to show that Integer Factorization is in NP and also in co-NP.
In NP: given a factor, check it.
In coNP: give prime factorization.
solyin 2 hours ago [-]
> if we have a public key, just by using the proof of P=NP, can we easily get the private key from it?
There's a couple more steps, but since we have AI, I wouldn't say it would be easy per se, but it goes from being actually impossible to "okay, maybe with a lot of effort". Right now, it's impossible for anybody to snoop or alter the TLS connection to my bank that's encrypted with a 4k RSA key. To go from impossible to "maybe the CIA/NSA if they really cared" would be world changing. Nevermind that me talking to my bank is not that interesting to them, the mere possibility upends a lot of assumptions about the world that computer people have.
It wouldn't be automatic, but a CIA agent with access to Claude and enough tokens could then do it.
cantalopes 44 minutes ago [-]
Majority of respected professors of theoretical conputer science kind of know and assumes that p is not np. it's possible because not proven but it's extremely unlikely
habitue 1 hours ago [-]
Depends on if the proof is constructive or non-constructive.
If the proof is constructive, it'll say "here's an algorithm you can use"
If the proof is non-constructive, it'll say "It's not possible for there not to be an algorithm you can use" and... that doesn't really help you find the algorithm
tyre 1 hours ago [-]
If the proof is non-constructive, but still a verified proof, would that change the attention on and investment into breaking these algorithms?
Or is there already such an astronomically large incentive (stealing the world’s data, btc, etc.) that reasonably not much would change?
_heimdall 2 hours ago [-]
Proving P=NP is theoretical, for starters. It would be an important finding, but it wouldn't immediately break RSA encryption.
tgv 2 hours ago [-]
Unless someone presents a constructive proof, an actual algorithm.
NoMoreNicksLeft 2 hours ago [-]
One NP problem can be transformed into another... if you can solve an NP problem, you can solve all NP problems. It's generally trivial to prove that a particular problem is NP, and many classes of problems have been proven to be NP. P problems can be solved in non-exponential time. That is, if you're cracking some crypto and the crypto were P instead of NP, it wouldn't take you 10 billion years or a Matrioshka brain to do it. Crypto is NP by design. Because, for now, we think NP != P. And if we were wrong about that...
tyre 1 hours ago [-]
> That is, if you're cracking some crypto and the crypto were P instead of NP, it wouldn't take you 10 billion years or a Matrioshka brain to do it.
How hard could a P crypto be? If not 10bn years, could it be 1000 years? 100? 10?
A crypto algorithm that we believe would last 50 years when accounting for Moore’s law growth of compute seems pretty alright for many things. Not everything and maybe not even most things. But many things.
johncolanduoni 41 minutes ago [-]
> One NP problem can be transformed into another... if you can solve an NP problem, you can solve all NP problems.
This is not true. Only algorithms that solve NP-hard problems can be used to solve any other NP problem.
spragl 41 minutes ago [-]
Substitute "NP" with "NP-complete" and then you are correct.
For example factorization is in NP but it is not NP-complete (unless that has been proven now, who knows).
grogenaut 2 hours ago [-]
while definitely a 3 miniute read it's not a tl;dr or simplification, it still requires plenty of math and other background.
jdw64 1 hours ago [-]
This post is written in an easy-to-understand way. I enjoyed reading it.
But I’m curious:the permanent is the operation that changes the minus signs to plus signs, right?
I’ve never really understood the concept of the permanent. I know how it’s calculated, but I don’t understand why it was introduced.
spragl 8 minutes ago [-]
Its just a number you calculate from a matrix. Like the determinant or the trace.
I have never seen it mentioned outside the VP vs VNP area, but it is being used here and there.
I have no intuition for what the number tells you, but I didnt look it up or ask AI either.
bongofizzbuzz 59 minutes ago [-]
This is knowledge based question rather than someone's opinion, perfect for an AI to answer.
flexagoon 24 minutes ago [-]
God forbid humans interact and ask each other questions. So outdated and inefficient.
bongofizzbuzz 22 minutes ago [-]
Think Google dictionary results automatically served.
This is implying that if P=NP then there must be a polynomial time algorithm for finding the permanent. But that isn’t known to be true. It would be consistent with all known results if P=NP but computing the permanent is still not possible in polynomial time.
Finding the permanent of a 0/1 matrix in polynomial time is stronger than P=NP; it would let you count the number of solutions to NP problems in polynomial time.
Note that this is not widely believed to be likely, because usually if a problem is in P, then usually further work can improve constants considerably, but it is a possibility that there is a certain class of problems in P that are “galacticly” polynomial.
(Well my qualification is this – I took a semester of Theory of Computation class about a decade ago and barely managed to pass without screwing up my scholarship in the foreign country I was studying in. Today I write PHP during my day job..)
One way to try to get the private key is to try all possibilities. For an RSA key with 4096 bits, there are 2^4096 possible keys, which I’m told is greater than the number of atoms in the universe.
So you see, this is a O(2^n) operation. ie., the algorithm is “exponential”.
You’ll never finish checking all those combinations before the universe ends, or at least not before the Sun explodes and the Earth ceases to exist as we know it.
Unless you’re really really lucky and a key you try during your lifetime happens to be the actual private key. But the likelihood of that happening is practically zero because of the sheer number of possibilities.
The point is, you have to exhaustively check all possible keys. Exponential.
P=NP means there exists a polynomial time (O(n^k)) algorithm to find the private key. ie., it can be found relatively quickly.
This is all I know. I skipped a lot of details. Experts can chime in.
I think it's more about growth: if we ever build a supercomputer that can break RSA in a reasonal time, we will bump that 4096 a bit to still be safe. In the case of exponential algorithm like 2^n, if you increase n by 1, you double the breaking time. In the other case you have to double n to get the same effect.
So, it's not about how hard it is to break it, it's about how fast can we make it harder.
Suppose the proof of P=NP were not constructive, then Levin's universal search algorithm automatically gives us an algorithm that finds the factors in polynomial time. This would satisfy some definition of "easily" from above. However, if you take a look at Levin's universal search, it quickly becomes apparent the constants involved are truly galactic and not worth even thinking about in a practical sense.
If the proof of P=NP were constructive but gave some incredibly high degree polynomial or something with incredibly high constants, then we might be more wary. We would be able to get factors in polynomial time but it would still be "hard" in a practical sense to get the private key but it becomes exceedingly difficult to guarantee that there isn't some practically efficient algorithm. Proving fine grained lower bounds like this has been difficult to say the least.
If the proof of P=NP were constructive and efficient, then we would easily be able to get the private key. There is some additional detail here about what NP complete problem was actually solved (and thus how much the polynomial reduction cost but this is typically small) but this is a bit detailed and unclear. We would also probably begin searching for a directly efficient factoring algorithm.
In NP: given a factor, check it.
In coNP: give prime factorization.
There's a couple more steps, but since we have AI, I wouldn't say it would be easy per se, but it goes from being actually impossible to "okay, maybe with a lot of effort". Right now, it's impossible for anybody to snoop or alter the TLS connection to my bank that's encrypted with a 4k RSA key. To go from impossible to "maybe the CIA/NSA if they really cared" would be world changing. Nevermind that me talking to my bank is not that interesting to them, the mere possibility upends a lot of assumptions about the world that computer people have.
It wouldn't be automatic, but a CIA agent with access to Claude and enough tokens could then do it.
If the proof is constructive, it'll say "here's an algorithm you can use"
If the proof is non-constructive, it'll say "It's not possible for there not to be an algorithm you can use" and... that doesn't really help you find the algorithm
Or is there already such an astronomically large incentive (stealing the world’s data, btc, etc.) that reasonably not much would change?
How hard could a P crypto be? If not 10bn years, could it be 1000 years? 100? 10?
A crypto algorithm that we believe would last 50 years when accounting for Moore’s law growth of compute seems pretty alright for many things. Not everything and maybe not even most things. But many things.
This is not true. Only algorithms that solve NP-hard problems can be used to solve any other NP problem.
For example factorization is in NP but it is not NP-complete (unless that has been proven now, who knows).
But I’m curious:the permanent is the operation that changes the minus signs to plus signs, right? I’ve never really understood the concept of the permanent. I know how it’s calculated, but I don’t understand why it was introduced.
I have never seen it mentioned outside the VP vs VNP area, but it is being used here and there.
I have no intuition for what the number tells you, but I didnt look it up or ask AI either.