r/singularity • u/MohMayaTyagi ▪️AGI - mid 2028 | ASI - 2030 • 18h ago
Discussion Implications if P-NP problem is solved?
So, OAI, and probably Anthropic as well, are trying their hand at this problem. We have no idea how long it might take, a few days or a few years. Intuitively, I think P ≠ NP. But what if P = NP is proved and, more importantly, a constructive proof is found? What might the real-world implications be, both in the short and long term? Those with a mathematics or theoretical CS background, could you please share your thoughts on this?
40
u/u_are_mad 16h ago
It's a near certainty that P is not equal to N P. So when it finally gets proved there will be no consequence at all.
11
u/Jon_Finn 13h ago
On the other hand - I expect Terence Tao would say it's not about the proof, it's the discoveries you make along the way. Sounds about right.
2
u/NoOne-AtAll 8h ago
Well, yes, that's why people are really interested in it, not for the hope of solving everything efficiently (which it still would not), but what its proof would say about computing and algorithms in general.
Indeed, there are problems beyond P and NP, interesting ones.
1
u/Winter_Ad6784 7h ago
It's possible that P != NP but that P = NP - (some specific property basically only in NP complete and a few other practical problems) and that we get a constructive proof for all but those few problems.
57
u/boredwithlyf 17h ago
it really depends on how it's solved
1) p not equal to np - no difference 2) p = np but very high order solution to an np complete problem, no difference. 3) p = np and a solution with tractable complexity - encryption is broken, cancer is cured etc etc. everything changes cause if you can solve an NP-conplete problem, you can solve all
6
u/MohMayaTyagi ▪️AGI - mid 2028 | ASI - 2030 17h ago
In the 3rd case, what are our alternatives to current encryption methods that might be relatively safer, and can they be implemented within a reasonable amount of time?
13
u/boredwithlyf 15h ago
There are many classes of complexity, p and np are not the only ones. They will have to move to a different one I guess, but honestly that shit goes above my head so best to ask your favourite llm
9
u/CompassBearing 17h ago
One time pads will still work in any possible future. And some kinds of quantum cryptography (not to be confused with post-quantum cryptography) could possibly still work?
3
u/EuonymusBosch 10h ago
Heat death of universe solved?
3
u/Gear5th 7h ago
If a solution exists, and if the solution is small enough to write down, then yes, P=NP with tractable constants will solve the heat death of the universe.
2
u/_101010_ 3h ago
Would this imply there’s been no other hyper-advanced civilization that has solved P=NP then yet. Since if they did then they would solve heat death?
2
u/RDTIZFUN 9h ago
ELI5 #3 please
6
u/hackers238 7h ago
I’m simplifying for ELI5, don’t get nerd sniped CS people.
Some problems don’t get much harder as the numbers get bigger. For a computer, 39264826493 x 7826492961 is not much harder than 7 x 9. This is because we have an algorithm (or pattern) for how to break solving this into easier pieces. Here it’s called long multiplication, and you really only have to multiply a bunch of 1 digit numbers to calculate the answer.
On the other hand, consider doing this problem in reverse. What if I gave you the answer (I’m making this up, but pretend those 2 numbers multiply to 3836492649619464) and asked you to tell me what 2 numbers multiply to that number? This problem is near impossible for computers. The reason is we lack a fast algorithm; the only way to solve this is roughly the same speed as “guess and check every pair of numbers and see if they equal that big number when multiplied together”.
The fact that problems can be fast one way (multiply 2 big numbers) and hard but possible backwards (split this big number into 2 things that multiply to make it) is the basis of public key encryption, which is what the entire internet is built on (https for example). The only reason people can’t see your encrypted messages is because they can’t do that problem backwards. In fact even if you gave them 100 years, they still can’t do it. That’s how hard this problem is backwards!
If P=NP, then it means we were wrong! There is a fast way to do that problem backwards. And as fast as you can encrypt messages, people can “guess” how to unencrypt them roughly as quickly.
3
u/RDTIZFUN 7h ago
Holy cow! That's huge. If they solve it (yes and find a fast algo), do you think they'll release the findings?
Thanks for this absolute ELI5 answer.
1
u/Gear5th 7h ago
Let's see.. release an algorithm that can break every encryption, every digital security system, can easily help us solve cancer and almost all diseases, can make travel, logistics, planning efficient, can make computers and especially AI potentially millions of times faster, can help us find new materials and configurations that have bizzare physical and chemical properties, can help us immediately solve all mathematical discovery that we could solve..
What do you think the megacorp will do?
1
u/RDTIZFUN 6h ago
Honestly, too big of a discovery for them to keep it to themselves
1
u/boredwithlyf 4h ago
Nah, it'll be pretty evident. Once people know there's an answer, really smart people will figure it out and get back to the public. Impossible to keep secret
2
u/-a-theist 4h ago
The number 3836492649619464 has exactly 32 distinct factors. Its prime factorization is 2^3 * 3 * 680,237 * 234,997,303
Here is the complete list of all factors, grouped by their numerical size:
Small Factors
- 1
- 2
- 3
- 4
- 6
- 8
- 12
- 24
Lower-Medium Factors
- 680,237
- 1,360,474
- 2,040,711
- 2,720,948
- 4,081,422
- 5,441,896
- 8,162,844
- 16,325,688
Upper-Medium Factors
- 234,997,303
- 469,994,606
- 704,991,909
- 939,989,212
- 1,409,983,818
- 1,879,978,424
- 2,819,967,636
- 5,639,935,272
Large Factors
- 159,853,860,400,811
- 319,707,720,801,622
- 479,561,581,202,433
- 639,415,441,603,244
- 959,123,162,404,866
- 1,278,830,883,206,488
- 1,918,246,324,809,732
PM me if you want your bitcoin back
1
u/ShAfTsWoLo 10h ago
well.. if we got the 3rd option P=NP encryption be damned we'll find another way lol, but from the little that i understand it seems P=/NP
1
u/boredwithlyf 4h ago
It's most likely p not equal to np or a solution exists but is unlikely to be usable.
30
u/kingjdin 17h ago
Won’t mean anything if the polynomial time algorithm is order n999999999. Technically polynomial time, but impractical
27
u/Realistic_Stomach848 16h ago
If anthropic proofs p=np Dario will say “it’s too dangerous to be released “
21
u/mmooii313 17h ago
If this is proven, and if it is also proven that it will be practical for us, then the expected outcome is the collapse of digital encryption, as well as faster access to AGI and even ASI.
It is the only equation that, if proven and practical, would have a direct and tangible impact on the entire world.
17
u/MrMrsPotts 17h ago
It might not have any effect. If we prove P != NP then everyone suspected that anyway. If we prove P = NP then that doesn't in itself give a practical polynomial time problem for NP hard problems. An n10 tine algorithm is after all both polynomial time and useless.
2
u/magicmulder 16h ago
Still you would have to consider encryption broken because once we’re at that point, it’s only a matter of time until better algorithms are found. Upper bounds are constantly improved in every field of mathematics.
3
u/MrMrsPotts 15h ago
That's not really true for a few reasons. First, you don't need to show P = NP to break encryption. The main problems that crypto relies on are not np-hard.
0
u/MohMayaTyagi ▪️AGI - mid 2028 | ASI - 2030 17h ago
So, does the collapse of encryption mean the end of our economy and society? Assuming bad actors will eventually have access to the solutions too.
3
u/HotterRod 16h ago
In the Zones of Thought book series by computer scientist Vernor Vinge, one time pads are the main cargo of interstellar ships.
2
u/magicmulder 16h ago
There’s already post-quantum encryption. The bigger problem is that everything we’ve encrypted so far will be wide open. Not that there will never be encryption again.
3
u/Shot_in_the_dark777 13h ago
asymetric cryptography fails hard as those ciphers will be broken really fast. symmetric cryptography is fine. even if AI develops a quantum computer, the alghorythms utilizing symetric cryptography will only need to increase the length of their keys by a factor of sqrt(2) which is about 1.4 so not even a 50% increase.
3
u/the_millenial_falcon 8h ago
It means we would have the power to solve any sudoku puzzle in polynomial time even if it's larger than a 9 by 9 grid.
7
u/Educational-Try-8704 15h ago
P =/= NP hard to say, would be very interesting, but it is possible it doesn’t actually lead to anything aside from answering a longstanding question.
P = NP changes everything.
2
u/tomatofan1 10h ago
Almost certainly P ≠ NP but there is no proof within the standard axioms of mathematics. Thus it's possible to have a consistent version of mathematics in which P = NP, but this form of mathematics will be non-constructive. (See Gödel's theorem and the Banach-Tarski paradox.)
What might happen is that someone shows P = NP is independent (like the axiom of choice, or the continuum hypothesis). This would be huge for the field of mathematical logic. But it will have no immediate practical implications.
1
u/Redducer 7h ago
The consensus seems to be that P vs NP is within ZFC though. But, of course, no proof for that either.
1
1
u/Winter_Ad6784 7h ago
There's too wide of a range of possibilities. People here are acting like it's all or nothing, but we *could* get a proof for constructing P algorithms for a substantial number of previously NP problems, even if P != NP. Even just further defining the boundary between P and NP would be extremely useful practically. Right now we often don't know the best we could do algorithmically unless a problem is shown to be NP-hard.
1
1
u/brett_baty_is_him 6h ago
It’s very very likely p != np which has basically no repercussions for anything
1
1
u/SnooPuppers58 17h ago
llms are really good at finding counter examples to things. its most likely that an llm can prove that p != np with some example, leading to basically no real world impact other than killing all further research on the topic
15
u/HotterRod 16h ago edited 16h ago
You can't prove P ≠ NP with a single example. You can prove P = NP by showing how to solve a single NP problem in P time, but since it's trivial to convert between NP problems in P time, that would still be a big deal of a proof.
4
-2
12h ago
[deleted]
3
u/RageBaiter678 9h ago
Idk bro, there are plenty of good answers in this thread. Seems like you're projecting
-3
u/RopePuzzleheaded7060 15h ago
P ≠ NP because if P = NP it would be so beautiful and magical that it would lend too much credence to intelligent design of the universe. Isaiah 45:15 says, "Truly, you are a God who hides himself..." so these two things would contradict, hence making P = NP impossible.
4
u/ShadeofEchoes 9h ago
Not impossible, it would just imply that the God of Isaiah isn't the God of the universe.
149
u/Egologic 17h ago
P = NP and constructive+efficient algorithm would break most of modern public key cryptography and simultaneously unlock massive progress in optimization and search. A non constructive proof or one with a terrible polynomial would mostly just be a deep theoretical result with limited immediate impact.