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.
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.
I would've been more polite to suggest a resource for learning about determinants. Although really the linear algebra is irrelevant. All you really need to know is that its a computationally costly thing for large matrices and that's why people have bothered to optimize it and have found it difficult to do so, and that permanents are a similar kind of thing which have a complexity which is related to the proved theorem.
I suspect linear algebra was used only as evidence that there are applications which people care about that could be improved if an efficient algorithm was known.
Knowing how to compute the determinant is like knowing how to write a function in C. You can write C functions with your eyes folded but that doesn't mean you can understand the code in the Linux kernel repo.
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?
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.
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.
This is a total laymans perspective, but: I've never figured how we could get an algorithm that's O(n^1000) or whatever other constant exponent for general problems like NP. n^2 algorithms are a dime a dozen, n^3 isn't super uncommon either, but what magic trick would confine the exponent to anything constant for a class of algorithms where n is unbounded and there's otherwise no other number in it to derive that from?
I've been chewing on the same question and found this at least: https://arxiv.org/abs/2207.07613v1 with O(n^31) and O(n^23) for specific problems!
Edit: also, slightly more contrived, O(n^k) algorithms aren't all that unusual. For example, a naive algorithm for finding k-cliques in graphs. That looks exponential, but by the rules of big-O, if you fix k to a constant, then it just becomes a large constant exponent polynomial-time algorithm.
I guess a constant factor like "TSP routes of length k" could introduce a constant that the algorithm is itself some power of, though I'm not sure that could apply to every NP-complete algorithm.
(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 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.
> P=NP means there exists a polynomial time (O(n^k)) algorithm to find the private key. ie., it can be found relatively quickly.
Assuming k is manageable. If k=4096, you're still in for a bad time with even the next 50 years of computers (more quantum breakthroughs notwithstanding)
RSA can be broken much faster than brute force because it's a matter of factorizing a number. That's why the key is so long. 4096 bits is quite excessive when only 256 are needed for quantum brute force prevention.
> Like if we have a public key, just by using the proof of P=NP, can we easily get the private key from it?
1. Consider an RSA public key (n, e). Keep in mind that by the RSA standard, n=p*q where p,q are prime (for the mathematics behind RSA, this condition can be relaxed, but for simplicity, let's assume that this is the case).
2. Formulate "n=p*q AND p prime AND q prime" as a Boolean circuit where the inputs are bits encoding candidates for p and q.
3. Since P=NP, you can in polynomial time decide whether for a Boolean circuit there exist variable assignment such that the circuit evaluates to 1.
4. We know that our original circuit has such an assignment. To find p,q, set some Boolean variable to 0 or 1 and check whether under this additional condition, the circuit still has an assignment for which it evaluates to 1. If this is the case, do this with another input variable, until you have found p, q.
5. To construct a private key that is able to decrypt the messages encrypted with the public key (n, e), use (n, d) where d*e ≡ 1 mod λ(n). λ(n) is the Carmichael function of n (https://en.wikipedia.org/wiki/Carmichael_function ). If n=p*q where p, q are odd primes, we have λ(n)=lcm(p-1, q-1).
Note that (n, d) is not necessarily equal to the original private key (for example, the original creator could instead have used the formula de ≡ 1 mod φ(n) where φ is Euler's totient function; for n=pq where p,q prime, we have φ(n)=(p-1)*(q-1) , even though this way of creating private keys is prohibited in FIPS 186-4. See https://en.wikipedia.org/w/index.php?title=RSA_cryptosystem&... for a discussion of this topic).*
If the proof gives a P algorithm to solve NP problems, we can apply it to many NP problems to find out their solutions.
This won't work if the solution is "only technically in P" like O(n^10¹⁰⁰⁰), or if the proof is nonconstructive (e.g. proof by contradiction) and doesn't give an algorithm.
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
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.
Nor is it known whether it's NP-complete, which is usually what people intend when they informally speculate whether something "is NP" or "is in NP" (yes I know that's wrong and nearly backwards, but it's still common).
I don't understand what you're trying to say, but yes, IF could be in P, and it could be NP-complete, but in the latter case, it would mean that NP=coNP, which we don't believe.
It's conjectured to be NPI (NP intermediate), but that's only a conjecture.
> 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.
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
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...
> 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.
Do these "arithmetic circuits" allow only for addition and multiplication?
Do we have any idea if it's possible to compute this quickly if we allow for anything else, like exponentiation, logs, or even division and rational functions?
The theory is based on the fact that you are computing (families of) polynomials. It gives a nice framework, with reductions and natural complete problems. If you add non polynomial gates, you may have to rework the entire theory, I doubt this will give you something as neat as the algebraic complexity theory.
That said, one comment about adding divisions: it is known that you can remove them from any circuit as long as their result is a polynomial. That is, if your circuit compute P/Q at some point and P = QR, then you can show that there is a circuit computing R without division (this is a classical result of Strassen in a 1973 paper "Vermeidung von Divisionen").
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.
It's a mistake to do anything with a mobile phone tbf. I wouldn't choose it if I had the call. Touch screens are a cute 2003 gimmick that stalled in 2007. Everything is so small an inaccessible, and the fact it's available all the time in your pocket dictates everything from how you use it to how do we function as a society.
That being written, from a phone, I feel like the phone is a catalysator to everything we have today in tech - and in large part the internet.
While a downvote can be construed as a rejection of your opinion, it should not be construed as a rejection of your right to hold a contrarian opinion. It's ok to be downvoted. It's just others having an opinion about your opinion; which they are entitled to. This is just participating in a community.
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.
I love how it's 2026 with engineering solved tm, let alone fronend coding/webmastering and yet such flaws are still the norm, it makes me think what kind of SI we need in order to solve those UX pains.
Most people are discussing the fallout of P=NP, like crypto dying. For me the real damage is never being able to tell my boss "that requirement is unreasonable and probably impossible" again. Once P=NP every requirement gets solved in polynomial time. There goes my excuse for slacking off. :(
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.
The simplest explanation would be that there are hard graph problems that can be reduced to computing the permanent of a matrix derived from the adjacency matrix of a graph, like counting the number of perfect matchings. And the permanent looks a lot like the determinant, which has easier algorithms.
I think people mostly care about the permanent since even if you restrict to matrices with just 0s and 1s then it is #P-complete. I.e. if you give me a function in P that accepts/rejects a given string then if I have a fast way to compute the permanent I can count how many strings are accepted by your function. This is much stronger than being NP-complete.
This knowledge based question is one that many fellow readers may not have thought to ask, and asking it in public gives more people the opportunity to learn. Perfect for a HN comment.
What you’re saying isn’t wrong. But there’s a difference between questions asked to humans and questions asked to AI. Even when it comes to knowledge about the permanent, I already know the calculation method. The problem is why it’s used.
Actually, asking AI solves things to some extent, but the key is that asking humans gives you more keywords in addition to the answer. AI answers help you understand the problem in several ways, which is helpful, but they don’t explain the broader backdrop of those keywords very well—where they’re used, what similar things they’re used for, and so on. So the reason people usually ask questions here is that sometimes actual mathematicians or developers come and tell you where it’s used, recommend books, and make it easy to follow up. What you’re saying makes sense too.
I understand but I don't think you will get a better human rollout vs what an AI can provide already along with adjacent keywords and ability to take the conversation in any direction.
Of course, if you set a target and ask questions all the way to that destination, honestly, AI is better at that. However, I basically want to know the peripheral knowledge too, so that’s why. Of course, I don’t think what you said is wrong. Nevertheless, generally through communication you can come to learn better knowledge and books, so that’s the reason. Have a good day.
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.
You're right. It almost sounds like they're conflating NP with #P.
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.
It leaves me confused right after the article states “You learned how to take a determinant in your linear algebra class”.
No, I didn’t, that’s exactly why I don’t understand what this variation means.
I guess the audience is people who are proficient with math but don’t understand Anthropic’s proof?
I would've been more polite to suggest a resource for learning about determinants. Although really the linear algebra is irrelevant. All you really need to know is that its a computationally costly thing for large matrices and that's why people have bothered to optimize it and have found it difficult to do so, and that permanents are a similar kind of thing which have a complexity which is related to the proved theorem.
I suspect linear algebra was used only as evidence that there are applications which people care about that could be improved if an efficient algorithm was known.
Except that determinants can be calculated quite efficiently.
Isn’t it the case that nobody understands the proof(s) yet?
Knowing how to compute the determinant is like knowing how to write a function in C. You can write C functions with your eyes folded but that doesn't mean you can understand the code in the Linux kernel repo.
this helps understand it a bit more for me. I still dont completely understand P vs NP
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?
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.
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.
This is a total laymans perspective, but: I've never figured how we could get an algorithm that's O(n^1000) or whatever other constant exponent for general problems like NP. n^2 algorithms are a dime a dozen, n^3 isn't super uncommon either, but what magic trick would confine the exponent to anything constant for a class of algorithms where n is unbounded and there's otherwise no other number in it to derive that from?
I've been chewing on the same question and found this at least: https://arxiv.org/abs/2207.07613v1 with O(n^31) and O(n^23) for specific problems!
Edit: also, slightly more contrived, O(n^k) algorithms aren't all that unusual. For example, a naive algorithm for finding k-cliques in graphs. That looks exponential, but by the rules of big-O, if you fix k to a constant, then it just becomes a large constant exponent polynomial-time algorithm.
I guess a constant factor like "TSP routes of length k" could introduce a constant that the algorithm is itself some power of, though I'm not sure that could apply to every NP-complete algorithm.
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.
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.
> P=NP means there exists a polynomial time (O(n^k)) algorithm to find the private key. ie., it can be found relatively quickly.
Assuming k is manageable. If k=4096, you're still in for a bad time with even the next 50 years of computers (more quantum breakthroughs notwithstanding)
RSA can be broken much faster than brute force because it's a matter of factorizing a number. That's why the key is so long. 4096 bits is quite excessive when only 256 are needed for quantum brute force prevention.
I'm confused,RSA-896 has already been factored without Quantum. 256 is way too small.
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
> Like if we have a public key, just by using the proof of P=NP, can we easily get the private key from it?
1. Consider an RSA public key (n, e). Keep in mind that by the RSA standard, n=p*q where p,q are prime (for the mathematics behind RSA, this condition can be relaxed, but for simplicity, let's assume that this is the case).
2. Formulate "n=p*q AND p prime AND q prime" as a Boolean circuit where the inputs are bits encoding candidates for p and q.
3. Since P=NP, you can in polynomial time decide whether for a Boolean circuit there exist variable assignment such that the circuit evaluates to 1.
4. We know that our original circuit has such an assignment. To find p,q, set some Boolean variable to 0 or 1 and check whether under this additional condition, the circuit still has an assignment for which it evaluates to 1. If this is the case, do this with another input variable, until you have found p, q.
5. To construct a private key that is able to decrypt the messages encrypted with the public key (n, e), use (n, d) where d*e ≡ 1 mod λ(n). λ(n) is the Carmichael function of n (https://en.wikipedia.org/wiki/Carmichael_function ). If n=p*q where p, q are odd primes, we have λ(n)=lcm(p-1, q-1).
Note that (n, d) is not necessarily equal to the original private key (for example, the original creator could instead have used the formula de ≡ 1 mod φ(n) where φ is Euler's totient function; for n=pq where p,q prime, we have φ(n)=(p-1)*(q-1) , even though this way of creating private keys is prohibited in FIPS 186-4. See https://en.wikipedia.org/w/index.php?title=RSA_cryptosystem&... for a discussion of this topic).*
It means that there’s a simple algorithm so solve every problem, rather than having to brute force it.
So basically being able to reverse all crypto algorithms without having to try all possible combinations.
If the proof gives a P algorithm to solve NP problems, we can apply it to many NP problems to find out their solutions.
This won't work if the solution is "only technically in P" like O(n^10¹⁰⁰⁰), or if the proof is nonconstructive (e.g. proof by contradiction) and doesn't give an algorithm.
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
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?
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.
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.
It's not known whether factoring is in P.
Nor is it known whether it's NP-complete, which is usually what people intend when they informally speculate whether something "is NP" or "is in NP" (yes I know that's wrong and nearly backwards, but it's still common).
I don't understand what you're trying to say, but yes, IF could be in P, and it could be NP-complete, but in the latter case, it would mean that NP=coNP, which we don't believe.
It's conjectured to be NPI (NP intermediate), but that's only a conjecture.
We can already break RSA to varying degrees. Here's the most recent (also with Anthropic btw):
https://saweis.net/posts/rsa-896.html
> 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.
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
Proving P=NP is theoretical, for starters. It would be an important finding, but it wouldn't immediately break RSA encryption.
Unless someone presents a constructive proof, an actual algorithm.
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...
If P = NP, we can reduce all NP problems to SAT and use a SAT solver. Isn’t that so?
> 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.
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).
> 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.
I remember vaguely my cs professor using the age of the universe as a fraction of time it will take to solve it, or something
Do these "arithmetic circuits" allow only for addition and multiplication?
Do we have any idea if it's possible to compute this quickly if we allow for anything else, like exponentiation, logs, or even division and rational functions?
The theory is based on the fact that you are computing (families of) polynomials. It gives a nice framework, with reductions and natural complete problems. If you add non polynomial gates, you may have to rework the entire theory, I doubt this will give you something as neat as the algebraic complexity theory.
That said, one comment about adding divisions: it is known that you can remove them from any circuit as long as their result is a polynomial. That is, if your circuit compute P/Q at some point and P = QR, then you can show that there is a circuit computing R without division (this is a classical result of Strassen in a 1973 paper "Vermeidung von Divisionen").
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.
It's a mistake to try to access websites on a mobile phone.
[edit]
No amount of downvotes could possibly be worse than what you inflict on yourself by trying to use a mobile phone to browse the web.
It's a mistake to do anything with a mobile phone tbf. I wouldn't choose it if I had the call. Touch screens are a cute 2003 gimmick that stalled in 2007. Everything is so small an inaccessible, and the fact it's available all the time in your pocket dictates everything from how you use it to how do we function as a society.
That being written, from a phone, I feel like the phone is a catalysator to everything we have today in tech - and in large part the internet.
sorry, you're not allowed to have anything but the majority opinion on HN
While a downvote can be construed as a rejection of your opinion, it should not be construed as a rejection of your right to hold a contrarian opinion. It's ok to be downvoted. It's just others having an opinion about your opinion; which they are entitled to. This is just participating in a community.
falcor's got it right. It's OK to disagree, and downvotes harm no one.
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.
One must respect JS is disabled crowd.
I love how it's 2026 with engineering solved tm, let alone fronend coding/webmastering and yet such flaws are still the norm, it makes me think what kind of SI we need in order to solve those UX pains.
I think I understand less what VP ≠ VNP means after reading that than before
Most people are discussing the fallout of P=NP, like crypto dying. For me the real damage is never being able to tell my boss "that requirement is unreasonable and probably impossible" again. Once P=NP every requirement gets solved in polynomial time. There goes my excuse for slacking off. :(
Allow me to introduce you to galactic time algorithms (which I have only started hearing about in the past couple of days) :)
while definitely a 3 miniute read it's not a tl;dr or simplification, it still requires plenty of math and other background.
>You learned how to take a determinant in your linear algebra class:
Nope, I sure didn't.
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.
The simplest explanation would be that there are hard graph problems that can be reduced to computing the permanent of a matrix derived from the adjacency matrix of a graph, like counting the number of perfect matchings. And the permanent looks a lot like the determinant, which has easier algorithms.
I think people mostly care about the permanent since even if you restrict to matrices with just 0s and 1s then it is #P-complete. I.e. if you give me a function in P that accepts/rejects a given string then if I have a fast way to compute the permanent I can count how many strings are accepted by your function. This is much stronger than being NP-complete.
Thank you!
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.
This is knowledge based question rather than someone's opinion, perfect for an AI to answer.
This knowledge based question is one that many fellow readers may not have thought to ask, and asking it in public gives more people the opportunity to learn. Perfect for a HN comment.
What you’re saying isn’t wrong. But there’s a difference between questions asked to humans and questions asked to AI. Even when it comes to knowledge about the permanent, I already know the calculation method. The problem is why it’s used.
Actually, asking AI solves things to some extent, but the key is that asking humans gives you more keywords in addition to the answer. AI answers help you understand the problem in several ways, which is helpful, but they don’t explain the broader backdrop of those keywords very well—where they’re used, what similar things they’re used for, and so on. So the reason people usually ask questions here is that sometimes actual mathematicians or developers come and tell you where it’s used, recommend books, and make it easy to follow up. What you’re saying makes sense too.
I understand but I don't think you will get a better human rollout vs what an AI can provide already along with adjacent keywords and ability to take the conversation in any direction.
Of course, if you set a target and ask questions all the way to that destination, honestly, AI is better at that. However, I basically want to know the peripheral knowledge too, so that’s why. Of course, I don’t think what you said is wrong. Nevertheless, generally through communication you can come to learn better knowledge and books, so that’s the reason. Have a good day.
God forbid humans interact and ask each other questions. So outdated and inefficient.
Think Google dictionary results automatically served.
This rocks