| ▲ | ComplexSystems 2 hours ago |
| Isn't this dangerous? If it succeeds in proving P=NP, it could break the internet. EDIT: from what I can tell, the answer is no, as long as we have faith in this very specific scenario where it turns out technically to be polynomial time, but the constants and exponents are huge. I don't have such faith :) Of course maybe P≠NP and so there's no risk. |
|
| ▲ | JoshTriplett 2 hours ago | parent | next [-] |
| Consider the falsification of the Exponential Time Hypothesis. A counterexample demonstrated that that class of problems could be solved in less than exponential time, but "less than exponential" was still absurdly long, worse than any practical algorithms used today. If we had a proof that P=NP because NP problems can be solved in O(n^(log*⁻¹ 100)) time ( https://en.wikipedia.org/wiki/Iterated_logarithm ), that would still be an astounding logarithmic result, but would not be a practical threat to current systems that rely on NP-hard problems. |
| |
| ▲ | cowlevel 2 hours ago | parent | next [-] | | Other surprising results that still didn't change the course of computing forever: anything that can be computed in O(f(n)) time can also be computed in O(√f(n)) memory (but more time): https://blog.computationalcomplexity.org/2025/02/you-need-mu... Proven by a human, too. | |
| ▲ | gregdeon 2 hours ago | parent | prev [-] | | In particular, the algorithm that falsified the Exponential Time Hypothesis started something like this: > First, if the number of variables has less than a million digits, solve the problem by brute force. Otherwise, ... There is absolutely no chance an algorithm like this has any immediately practical consequences. | | |
| ▲ | eru 6 minutes ago | parent [-] | | I agree with your general point, however your specific point doesn't hold up: The algorithm was formulated like that for conveniences of the proof. That's because the statement only cares about the asymptotic behaviour (in the limit towards infinity) and doesn't care about constant factors or constant offsets in the time. That doesn't mean that an implementation of the algorithm needs to be so cavalier. Nor that the algorithm they found can't lead to better and more practical algorithms in the future. |
|
|
|
| ▲ | eru 8 minutes ago | parent | prev | next [-] |
| Funnily enough, we already have the optimal algorithms (up to constant factors) to solve any NP hard problem. We just can't prove their running times. > If it succeeds in proving P=NP, it could break the internet. You can be pretty sure, that people are already trying this in private. So adding a public attempt doesn't change much. Another wrinkle: the problems cryptography depends on are largely in the intersection of NP and co-NP, and they are not NP-hard. So you don't even need to collapse NP down to P to potentially break cryptography. |
|
| ▲ | bluGill an hour ago | parent | prev | next [-] |
| Let's assume the worst case: We prove P=NP, and it's a constructive proof that turns out to have a almost trivial algorithm. Those are two huge assumptions, but it's all the more important in that case to prove it quickly. The important part is, how we handle the proof. The correct way is to inform mathematicians who will verify your proof and then announce it to the world in the form of stop all e-commerce immediately. In six months, the algorithm needs to be published. Even six months is really pushing it. Because as soon as someone knows that this has been proved, there's a constant risk that someone else will figure out the proof separately, independently, and they're evil. An evil person won't be releasing their proof. There may even be an evil person out there right now that already has the proof in hand and the algorithm and they're silently sitting in their little hideout decrypting everyone's traffic and dealing with it in ways that enrich them and bring about their new world order. Which is why if p equals np with a trivial algorithm - it's very important that we all know because the rest of us need to change the way we are living our life immediately. Of course, that's worst case as you point out P may not equal NP or maybe it does but the algorithms turn out to be so bloody complex that brute force is still more practical for typical problem sizes. And not all encryption would fall if P equals NP. |
| |
| ▲ | eru 4 minutes ago | parent [-] | | > Let's assume the worst case: We prove P=NP, and it's a constructive proof that turns out to have a almost trivial algorithm. It's doesn't need to be a constructive proof: we already have constructed the optimal algorithms for solving NP hard problems. So in a sense, any proof immediately gives you a construction via this well known result. (These optimal algorithms are known and proven to be optimal, but no one knows their runtime. And, yes, the constant factors are abysmal.) |
|
|
| ▲ | rcpt 2 hours ago | parent | prev | next [-] |
| P=NP doesn't do anything unless the algorithm is fast to compute. |
| |
| ▲ | 2 hours ago | parent | next [-] | | [deleted] | |
| ▲ | tarsierscripter 2 hours ago | parent | prev [-] | | Heck, you could prove P=NP by contradiction and not even get an algorithm out of the deal. | | |
| ▲ | solomonb 39 minutes ago | parent | next [-] | | Sort of.. intuitionistic logic is weird. In it, a statement is true when you have a proof of it and a proof is a construction. A proof of X is some actual construction and a proof of ¬(X) is a function that accepts a proof of X and turns it into a contradiction. A proof of ¬¬(X) is thus a function that accepts a proof of ¬(X) and turns it into a contradiction. It doesn't actually give you a proof of X. In the case of P=NP, a proof would be an actual SAT algorithm plus its polynomial bound (and some kind of evidence the SAT algorithm meets the bound). What you actually hold when you've proved ¬¬(P=NP) is a function whose input is a refutation of P=NP and whose output is ⊥. You can't actually get a proof of P=NP from that. What you have shown is that any attempt to refute P=NP is doomed but you haven't actually proven it to be true. I know its weird... | | |
| ▲ | tarsierscripter 25 minutes ago | parent | next [-] | | That's only if you assume intuitionistic logic. If you operate in classical logic you don't have this issue. | | |
| ▲ | solomonb 24 minutes ago | parent [-] | | Lean is built on intuitionistic logic. I guess you could say an intuitionistic proof of ¬¬(P=NP) is a classical proof of P=NP, but as you said it doesn't get you the algorithm. | | |
| ▲ | tarsierscripter 7 minutes ago | parent [-] | | You don't need Lean to prove stuff. As far as I understand, all of the big recent LLM proofs were produced in natural language and then auto-formalized into Lean as a verification step. |
|
| |
| ▲ | paulddraper 12 minutes ago | parent | prev [-] | | > In the case of P=NP, a proof would be an actual SAT algorithm plus its polynomial bound A proof just needs to be that some algorithm exists, it could take many forms. |
| |
| ▲ | stingraycharles an hour ago | parent | prev | next [-] | | You mean proving that P /= NP is false? | | | |
| ▲ | eru 4 minutes ago | parent | prev | next [-] | | We already have the optimal algorithms, had them for a long long time. (It's just that no one can prove their runtime.) | |
| ▲ | an hour ago | parent | prev [-] | | [deleted] |
|
|
|
| ▲ | aw1621107 2 hours ago | parent | prev | next [-] |
| That would depend a lot on what exactly the proof shows. The consequences of a non-constructive proof that P=NP would probably be different than a constructive one that shows a specific low-order/low-constant-factor algorithm suffices. And even then, it's probably better in the long run to secure the foundations of our tech. |
| |
| ▲ | eru 2 minutes ago | parent [-] | | You don't need a constructive proof. We've already constructed the necessary algorithms and proven them optimal (up to constant factors). We just haven't managed to prove their runtimes. |
|
|
| ▲ | jerf 2 hours ago | parent | prev | next [-] |
| There are several entities who would like to "break the internet" with the resources to run a lot more than 96 bots against this question. I doubt the world intelligence agencies are burning a lot of tokens against the Riemann Hypothesis, but I would bet a lot more tokens have been burned on this already than is publicly known about, and there's a non-trivial chance someone already has the answer to this question and just hasn't shared yet because they have no motivation to reveal capabilities. Bear in mind P = NP doesn't instantly break the internet. NP being in P would be shocking enough on its own terms, but "nondeterminism is also of no practical value in solving a problem" would be yet again even another more shocking result. Really? NP is so thoroughly in P that even what is more-or-less psychic knowledge of the right answer isn't worth at least an O(n^3) factor of complexity reduction, if not more? If the reduction is anything less than O(n^2 and some logs here) I will be even more shocked than I would be to hear P = NP (since I'm on team P != NP), and that's the rough edge of where it would actually change the world. O(n^3) is already getting to be infeasible for a lot of real world problems; there's a reason we spend a lot of time talking about O(1) and O(n) and O(n^2) and rarely venture much farther beyond that, and even O(n^2) gets its own "accidentally quadratic" meme because of how often that is impractical too. |
| |
| ▲ | cowlevel 2 hours ago | parent [-] | | > P being in NP would be shocking enough on its own terms P is definitely, trivially, in NP. You may have confused them for each other. If any NP-complete problem is in P, then so is all of NP, because they can all be reduced to it. Out of the non-NP-complete problems, many of them are in NP but not in P, because it would immediately follow that P != NP and I would've heard about that. If we proved that one was in P, that would just mean that problem was in P. So the only interesting proofs are either that some NP-complete problem is in P (proves P==NP) or that some NP problem, whether NP-complete or not, isn't in P (proves P!=NP). And yes, everyone sane expects P!=NP, the alternative doesn't make much sense. It just hasn't been proven. | | |
| ▲ | dlubarov 2 hours ago | parent | next [-] | | I think your last sentence is a bit strong. Knuth for example suspects P = NP, and has some fairly reasonable arguments against the notion that if all these well-known problems had polynomial-time solutions, we would have found one by now. | | |
| ▲ | cowlevel an hour ago | parent [-] | | I have about as much reason to think P=NP as I do to think PSPACE=NPSPACE (which is true and doesn't take long to see why) and to think PSPACE=LOGSPACE (which is proven false and also a pretty stupid thing to even suspect) |
| |
| ▲ | jerf 2 hours ago | parent | prev [-] | | Thinko. I got it right later in the post. Many sane people think P = NP. I am not aware of a survey that asks them how complicated the reduction might be, though. I do think a number of them believe and/or are concerned that we could end up with a non-constructive proof that NP is in P, which at least mathematically is arguably the worst possible outcome. I think a lot of people would agree that naively it is obvious that P != NP. But if you spend time in the algorithms would you see your intuition about what the lower bound of some problem must be shattered over and over again, and the naive confidence gets shaken. |
|
|
|
| ▲ | zarzavat an hour ago | parent | prev | next [-] |
| Polynomial time doesn't mean easy to compute and super-polynomial time doesn't mean hard to compute. They merely describe the behaviour of algorithms in the limit to infinity. In the real world we care about how algorithms behave with small values. |
|
| ▲ | loloquwowndueo 2 hours ago | parent | prev | next [-] |
| Isn’t this like saying you’d rather not get bloodwork done because if it turns out you have leukemia, you could die? |
|
| ▲ | drdrey 2 hours ago | parent | prev | next [-] |
| don't wait for a proof, just assume that P=NP and break the internet |
| |
| ▲ | cowlevel 2 hours ago | parent | next [-] | | The assumption is that a proof will be constructive - that it will contain a description of a method to solve NP problems in P time. Knowing what it is breaks the internet. You can't just assume it exists, still not know what it is, and execute it anyway. | | |
| ▲ | dlubarov an hour ago | parent | next [-] | | If we knew P = NP, in principle we could write a trivial "universal witness search" program that enumerates all programs, simulating each one a bit at a time. For a fixed problem, the winning program string is at a constant position in the enumeration, so the difficulty of reaching it is technically a constant factor. It wouldn't give us "no" answers in polynomial time, but if we already know that e.g. Satoshi's wallet has a private key, then we'd be guaranteed to find it in polynomial time. | |
| ▲ | empath75 2 hours ago | parent | prev [-] | | Even if it is constructive it still might not be a practical algorithm. |
| |
| ▲ | bravoetch 2 hours ago | parent | prev [-] | | I told Claude to assume P=NP and asked it to write a python script to deliver me everyone's Bitcoin. It didn't work. | | |
|
|
| ▲ | therealpygon 2 hours ago | parent | prev | next [-] |
| Obscurity only provides a false sense of security. |
| |
|
| ▲ | CamperBob2 2 hours ago | parent | prev | next [-] |
| Wir müssen wissen Wir werden wissen |
|
| ▲ | hemlock4593 2 hours ago | parent | prev | next [-] |
| Even if, this shouldn't stop you researching it, no matter by human or AI. |
|
| ▲ | perching_aix 2 hours ago | parent | prev | next [-] |
| The danger was already accepted once systems started relying on it en masse, despite it not being proven nor disproven. Avoiding to try figuring it out is the risk, not the mitigation of risk. |
|
| ▲ | whattheheckheck 2 hours ago | parent | prev [-] |
| This is like setting up an automatic object wall slammer because there's a quantum chance of phasing through it |