An unofficial, read-only Hacker News reader.

VP ≠ VNP over Every Field (opens external site)

369 points by mikeryan52 5 days ago | github.com | 339 comments on HN

View full thread · View on Hacker News

Comment thread (31)

  1. My mind struggles to imagine what a world where P=NP would look like. Is there any speculative writing about this? Even if said polynomial time to prove something isn't practical, it would still probably have far-reaching consequences.
    Replies (7)
    1. It depends.

      If P=NP with a trivial algorithm? Unplug every internet connected device you own and live like it's the 70s again for at least a year.

      If P=NP but the algorithm has constants such that it is worse than brute force on equations where the number of variables has fewer than a million digits? Nothing tangibly changes.

      Replies (1)
      1. Nah. Even if P=NP with a trivial algorithm (unlikely) the impact would be temporary and limited. Leveraging that to break security first requires getting access to the underlying content, which isn't so easy. Like I can't crack your encrypted messages if I don't have the messages. Any many of the most sensitive systems have already moved on to algorithms which aren't vulnerable to such attacks. Such an eventuality would cause some disruption for a few months and then everyone would move on.
        Replies (2)
        1. You know there are very many people in the path of your messages who would love to know them though. Firstly your ISP, secondly the NSA, thirdly every ISP between you and the server (there's usually about 4 or 5). Imagine being AWS and seeing what everyone is doing all the time and selling that data for advertising
          Replies (3)
          1. I think the commercial-value of mass datamining for targeted advertisements is grossly overstated: Scummier ISPs were certainly doing this during the last few years before TLS became ubiquitous (thank you, LetsEncrypt/ACME) but I haven't seen anything to suggest they actually profited from it.

            ...but that's probably because personalized advertising gets it wrong more than it gets it right, at least that's my perception: there's the obvious case of when Amazon recommends you buy something that you are genuinely interested in, like a major home appliance, except that recommendation came-about because you purchased a competing company's product last week, and their recommendation engine thinks most people have a strong emotional need for redundant home laundry washing machines, apparently.

            Replies (1)
            1. Amazon deliberately injects a small percentage of very wrong recommendations to make it feel less creepy
          2. >Imagine being AWS and seeing what everyone is doing all the time and selling that data for advertising

            If Amazon wanted to they could simply not provide you with the ability to use customer managed external key stores and do this today. They don’t do this because it would be terrible brand management and they have multiple viable competitors.

            Replies (1)
            1. Imagine if they could have good brand management and still sell your data because all encryption gets broken
          3. AWS and the various ISPs aren't stupid enough to kill their businesses by doing that even if they could. As for the NSA, for commercial or individual purposes it doesn't really matter. I mean I don't want the government reading my messages as a matter of principle, but if they do then nothing much will happen.
        2. > Like I can't crack your encrypted messages if I don't have the messages.

          P=NP with manageable constants would break all public key authentication. You could crack anyone's ssh keys, use them to gain access to software update servers and forge the signatures to distribute updates to every machine. Every encrypted connection and hashed password would become equivalent to plaintext. Breaking into the networks of major ISPs would then be fairly straightforward, and they could MITM anyone from there.

          > Any many of the most sensitive systems have already moved on to algorithms which aren't vulnerable to such attacks.

          You're thinking of PQ. That's for if we ever get practical quantum computers. If P=NP then those algorithms are done too and so is the symmetric encryption quantum computers can't break.

          Quantum computers don't efficiently solve every problem in NP. P=NP would, and nobody is prepared for what would happen then.

    2. Replies (1)
      1. From the PDF

        > Thus, a computer could be taught to recognize and parse grammatically correct English just by having sufficiently many examples of correct and incorrect English statements, without needing any specialized knowledge of grammar or English.

        Huh. What an interesting example. (He does disclaim, basically, "not like neural nets" immediately after.)

    3. > My mind struggles to imagine what a world where P=NP would look like.

      I think a world with an O(n^1000) algorithm for an NP-complete problem would look pretty similar to our own.

      Replies (1)
      1. True, but experience teaches us that such exponents don’t really happen. There is some metaphysical property of the universe that ensures that the numbers governing its behavior are mostly very, very small.
        Replies (7)
        1. That's not quite true. For example: https://en.wikipedia.org/wiki/Monster_group

          And it appears out of basically nowhere. There's no _reason_ for it to be so large, yet it is.

          Replies (1)
          1. That number is tiny. The fact that we can write it down demonstrates that.
            Replies (1)
            1. Well, suppose that P=NP. But you need to do N^Monster operations. It's polynomial, but useless.

              BTW, it's not impossible for something like this to happen. The Monster group is deeply connected to fundamental group theory.

              Continue this thread (1 replies) →

        2. It could also be that the constants are extremely large, particularly for any reductions into the problem from other ones relevant for cryptography. O(n^4) with bad constants would be incredibly slow.
        3. Isn't there a survivor bias for this notion? Meaning, only the smallest exponent laws and phenomena are the ones we can sus out. But why not why can't the bigger things be massive untangle able exponents?
          Replies (1)
          1. It's possible, but it would be very weird for low power things to exist, and high power things to exist, but not any medium power things to exist.
            Replies (1)
            1. Maybe medium powers are really hard too in an exponential or sigmoidal cliff kind of way. Hm
        4. There are problems in P with very large exponents. And there may be more that we don't know about because the value of constructing O(n^100) algorithms is low.

          https://chatgpt.com/share/6b0509c8-ffac-83e8-9b0e-06160a7f7b...

          Replies (1)
          1. The "Constructing generalized picture-hanging arrangements" problem your chat references is O(n^43737)

            Or actually, from what I understand, https://arxiv.org/abs/1203.3602v1 gives O(n^43737), but https://arxiv.org/abs/1203.3602v2 revises it upwards somewhat – I'm not going to pretend I completely follow this.

        5. Doesn't selection bias mean we would almost never search for galactic algorithms (especially if it is difficult to discover) if a more practical algorithm exists?
        6. > True, but experience teaches us that such exponents don’t really happen

          This is absolutely not true, a ton of galactic algorithms exist that would be extremely useful if they weren't galactic. Also consider that we are not really searching for these algorithms because it's mostly just a waste of time. Sometimes we're able to shrink the exponents with some techniques, but not by that much.

        7. Did you already forget about the exponential time hypothesis?
    4. > Is there any speculative writing about this?

      look up "The golden ticket : P, NP, and the search for the impossible" book

    5. Here's some speculative writing:

      If P=NP, then once you know what the desired solution looks like, your solution isn't far away.

      "Ask, and it shall be given you; seek, and ye shall find; knock, and it shall be opened unto you" -- Matthew 7:7

      In fact, once you realize the "trouble" with NP problems is that they're discrete and combinatorial, meaning that there's no general way to "get closer" to a solution, unlike more continuous problems where you can simply look at the slopes and find a (local) minima easily -- these days we call this gradient descent.

      AI breakthroughs in the past decade were in a large part due to the realization that gradient descent goes a very long way if you get enough data and compute.

      If P=NP then perhaps even combinatoric problems would get a similar boost.

    6. I had a recent conversation on the Godel's incomplete, so it kinda gets a bit stuck on that at points, but it's still kinda fun.

      https://chatgpt.com/share/6b071792-4840-83e8-9c47-8bc2bc2ca7...