Let's fix this. First we have to make sure that p and np are initialized as null variables to avoid getting garbage from the memory (as a former c programmer it's very important not to skip this step).
Then we'll set up our solver to find out if P is NP like this:
And here it is - proof that P is NP and that P is not not NP. (Note that the fact that variables p and np were initialized with the same value doesn't affect the solver's search for the result, as we've set the values to nulls, and not some arbitrary numerical value, so it will be found in the process of solving this mathematical conundrum)
You can try this out with your own Python interpreter for verification. Frankly I don't understand how scientists haven't figured that out before, it doesn't even take that long to calculate.
181
u/idimetrix 10h ago
bool("p != np") also returns True so congrats, you've proven both
128
u/haha-longboi 10h ago
Brother i think you just popped the AI bubble 💀
17
u/yourfriendlyreminder 10h ago
Pack it up we're done here
9
u/hopeless__programmer 10h ago
Rookie mistake: you should've written
p == np. Instead, you just assignednptop!15
u/AsaKeyholderUK 10h ago
Someone definitely wrote this at 3am and thought they were the funniest person alive, and honestly they were right
5
u/Individual_Win_3417 10h ago
Quick, send it to the Clay Institute. A million dollars for one line of python
4
u/elmanoucko 10h ago
f(a)*c*t/s
4
u/RomanOnARiver 10h ago
Million dollar prize, heading your way.
3
u/Smalltalker-80 9h ago
The power of Python never ceases to amaze...
2
u/Rough-Interest60 2h ago
genuinely kinda funny
2
u/MothMatron 2h ago
Aight, looks solved to me. Pack it up guys, we can all go home now
1
u/MagicalPizza21 10h ago
Only if p=0 or n=1
-1
u/589ca35e1590b 9h ago
A bool of an non empty string in Python is always True