r/ProgrammerHumor • • 8d ago

Meme doesPEqualNp

Post image
1.4k Upvotes

42 comments sorted by

View all comments

301

u/[deleted] 8d ago

[removed] — view removed comment

91

u/Mewtwo2387 8d ago

does this disprove the axiom of choice

14

u/AZMPlay 8d ago

Congratulations, jackass!

The ZFC axioms are inconsistent because of you!

Now we gotta start math all over again...

I swear some people...

14

u/InvisibleMoonWalker 8d ago

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:

>>> exec("p = None; np = None; exec('print(bool(p == np))')")
True
>>> exec("p = None; np = None; exec('print(bool(p != np))')")
False

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.

26

u/itzjackybro 8d ago

congratulations, python is inconsistent

13

u/iggy14750 8d ago

Congratulations, Turing was wrong lol

3

u/Vallee-152 8d ago

Maybe == and != Don't mean what we think

6

u/SexyMonad 8d ago

But the OP is =, not ==.

He just fucking set P equal to NP like God.

1

u/mortalitylost 8d ago

If a language was parsing the string as an actual equal/neq expression, I'd be a lot more worried about using that language

3

u/WernerderChamp 8d ago

bool("False == True")

Congrats, the very fundamentals of logic are broken.

1

u/random314 8d ago

Also "p == np" returns true too!

1

u/chazzeromus 8d ago

this guy is everywhere!

1

u/facebrocolis 8d ago

Maybe it's an easter egg