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 (148)

  1. It’s pretty obvious that they are throwing the kitchen sink at the Holy Grail (P vs NP), and that this was a partial result they judged to be worth publishing along the way.
    Replies (11)
    1. Indeed. This was one of the first things I threw at GPT3. P vs NP is one of those rarer results where while everyone assumes they aren't equal, actually proving it will likely be practically important.
      Replies (2)
      1. Can you explain why? Without a heavy CS/math background, it's more intuitive to me that P≠NP unless proven otherwise, such that a P=NP proof would be an incredible discovery, but a P≠NP proof would merely reinforce what is already the status quo. What is it that I'm missing?
        Replies (4)
        1. There are significant no-go theorems about what a proof of P≠NP can look like, such that we didn't (at least as of a few years ago) know what a proof would even look like: all the known techniques were proven to be insufficient; generally in forms like “if this technique worked to prove P≠NP, then the technique could also be used as part of an algorithm to solve NP-hard instances in P time.” See Relativization and Algebrization.

          As such, any proof would necessarily involve new breakthroughs rather than merely the exhaustive application of existing techniques.

          Replies (2)
          1. > if this technique worked to prove P≠NP, then the technique could also be used as part of an algorithm to solve NP-hard instances in P time

            Wait, what? I'm confused. How could something prove P != NP and also prove you can solve NP-hard in P? Wouldn't that just make it a self-contradiction?

            Replies (3)
            1. Probably precisely how they show that technique is insufficient for proving P!=NP if I’m reading it correctly
            2. No, that’s exactly why this is a proof that these techniques can’t work. If they worked, they could be used to contradict their conclusions. Therefore they can’t work.

              Continue this thread (1 replies) →

            3. From the survey paper I linked in a different reply:

              No-go for naturalizing proofs: “But now, twisting the knife, Razborov and Rudich point out that any natural lower bound proof against a powerful enough complexity class would be self-defeating, in that it would yield an efficient algorithm to solve some of the same problems that we’d set out to prove were hard.” --https://www.scottaaronson.com/papers/pnp.pdf

              No-go for relativizing proofs: “Alas, Baker, Gill, and Solovay then observed that no relativizing technique can possibly resolve the P ? = NP question. For, unlike (say) P ? = EXP or the unsolvability of the halting problem, P ? = NP admits “contradictory relativizations”: there are some oracle worlds where P = NP, and others where P̸ = NP. For that reason, any proof of P̸ = NP will need to “notice,” at some point, that there are no oracles in “our” world: it will have to use techniques that fail relative to certain oracles”

          2. do you have any pointers to papers/explainers of that flavor? I'm always pretty fascinated with these sort of roundabout proofs that end up being a bit "meta"
            Replies (1)
            1. Scott Aaronson's Algebrization paper is pretty approachable: https://www.scottaaronson.com/papers/alg.pdf

              And his broad survey article on P?=NP covers other barriers: https://www.scottaaronson.com/papers/pnp.pdf

        2. One of the things I'm excited about is seeing what proof techniques would get used in a P != NP result.

          There are a bunch of results that show that you can't separate P and NP using certain classes of proof techniques, and so seeing how an eventual proof tiptoes around that would be interesting.

        3. It can be equal, but have something like O(n*10000*10) complexity(still polynomial). Or there must be an algorithm for all the problems, but no algorithm to find it :)
          Replies (2)
          1. > It can be equal, but have something like O(n1000010) complexity(still polynomial). Or there must be an algorithm for all the problems, but no algorithm to find it :)

            Finding an algorithm for any NP-complete problem would solve all of them at once. Finding an algorithm for any NP-incomplete problem would just prove that specific problem is actually in P.

          2. It could be, but i think having it be a huge exponent polynomial would actually be the most shocking and most interesting of all possibilities (esp. if constructive).
            Replies (1)
            1. The big question would be “why does it stop at that exponent?” followed by “can it go lower?”

              Continue this thread (1 replies) →

        4. It's worth noting that it may or may not even be provable, even if it's true. From Gödel's first incompleteness theorem, there are always some things that are true within a consistent system that can't be proven.
          Replies (2)
          1. That would just push the goal to an independence proof
            Replies (2)
            1. How would that work? If it's true but unprovable, it can't be independent - its falsity would be inconsistent.

              Continue this thread (2 replies) →

            2. "How would that work? If it's true but unprovable, it can't be independent - its falsity would be inconsistent." –thaumasiotes

              If X is unprovable, its falsity isn't inconsistent. Being inconsistent isn't the same as being incorrect.

          2. >From Gödel's first incompleteness theorem, there are always some things that are true within a consistent system that can't be proven.

            But they're a very specific species of self referential statements, not anything pertaining to the heartland of usual operations using ordinary terms that would be used to build out the proof.

            Replies (2)
            1. Well, there's also the halting problem, right? There are some important mathematical conjectures (like the Riemann Hypothesis!) that are equivalent to determining whether a particular Turing machine halts. It's not unthinkable that there could be true theorems that would be useful yet are unprovable by any usual operations, and aren't contrived to be so.

              Continue this thread (1 replies) →

            2. No. We've had "natural" statements that turn out to be unprovable too, like the continuum hypothesis.
      2. > This was one of the first things I threw at GPT3. P vs NP is one of those rarer results

        Interesting you pursued it. From what I remember, GPT 3.x had a hard time counting number of Rs in "Strawberry".

        Replies (2)
        1. That type of task is unlikely to be present in any proof
          Replies (2)
          1. ???

            "We have narrowed the problem space down to three cases. We shall call them Case 1 and Case 2."

            Replies (2)
            1. No one's answered your question seriously yet, so here goes: "Case 1" and "Case 2" are different sets of tokens an LLM would have no trouble counting. "Strawberry" reduces to just a token or three, which obfuscates the count of each individual letter.
            2. The strawberries thing was more like asking someone who has only ever seen Chinese characters (tokens of word chunks etc.) and not the letters to count the letters. There were some ways it had seen the letters for some words, like if it had seen strawberry = ["s", "t", "r", ...] in Python somewhere, but probably didn't have full coverage of lots of words like that, or it possibly could see from some multimodal image stuff.

              Could you do good at counting letters in words without ever seeing them?

              I agree GPT-3 was way too weak for this math problem though.

              Continue this thread (1 replies) →

          2. Replying to the sibling comment: even gpt 3 could write python to count the Rs in strawberry. The model's confusion counting them directly is an artifact of the way tokenization works. Working toward a proof it would not be likely to encounter a similar task where the pre-tokenization form of the tokenized string matters.
        2. Did you ever wonder why that is the case?
          Replies (1)
          1. > why that is the case?

            You mean was? Some indeed have.

              ... a neural net can certainly notice the kinds of regularities in the natural world that we might also readily notice with "unaided human thinking". But if we want to work out things that are in the purview of mathematical or computational science the neural net isn't going to be able to do it—unless it effectively "uses as a tool" an "ordinary" computational system.
            
            https://writings.stephenwolfram.com/2023/02/what-is-chatgpt-...
            Replies (1)
            1. I meant why GPT3 had trouble with counting the number of letters in a word.

              Continue this thread (1 replies) →

    2. That describes a whole lot of work prior to LLMs too
    3. To me, the takeaway is that they're really what they say they are: dorky scientists trying to do their best with an unimaginable power. There is no world where proving P!=NP matters on a practical level for Anthropic as a corporation; this is for the love of the ~~game~~ math. If they were really the scheming bond villians Le Cunn thinks them to be, they'd be spending these millions USD on something more practical. (Oh and, y'know, not pausing for weeks and counting before pursuing RSI...)

      Well, I guess that assumes they don't have any P==NP truthers in house. Seems unlikely, but I guess anything's possible!

      That makes me wonder: obviously their math work has involved renowned mathematicians. Does anyone know if they've brought on big names in CS? And if so, who? How many Turing award winners are in SF right now?

      Replies (5)
      1. "There is no world where proving P!=NP matters on a practical level for Anthropic as a corporation;"

        It's great marketing for them

        Replies (4)
        1. 3SAT, Travelling salesman problem, knapsack problem

          Even just for better gpu scheduling of AI workloads. Worth a shot for getting directly compounding results.

          Replies (4)
          1. Considering all the human effort that's already gone into it, it seems likely that any P = NP result will involve a galactic algorithm with no practical use.
            Replies (1)
            1. Turns out the entire Universe is just a big calculator, but instead of computing 42, God is just a crypto edgelord trying to crack some other crypto edgelord's Bitcoin keys in polynomial time, but with infinite storage.
          2. Proving that P != NP doesn't help you solve any of those. Proving that they are equal could help, but proving they are different doesn't.

            That said, yes, it's obvious they are doing that for the marketing.

          3. Just imagine all the really ai applicable math results they're hoarding
          4. Relatively few expect them to be equal, vanishingly few expect that if they are equal it will imply anything about practical speedups.

            That's not to argue the answer will have no value in computer science, just Anthropic isn't holding their breath to see if it helps with any of the things you listed as a reason for doing this.

            Replies (1)
            1. Little downside. High upside.
        2. Or not. RH is massive historically, but look at ANT, the market doesn't seem to care the slightest.
          Replies (1)
          1. The stock market might seem like it cares more for their balance sheet at the moment, but their target market does care - they have to show that they are the best at the moment and to imply that their models can achieve anything.
        3. Its good marketing for their recent IPO, since (to some minds) it enhances the completely specious argument that they're going to cure cancer, mental illness and heart disease in the next 10 years.

          Proving that they can prove the improvable (in maths, kinda) suggests that they can solve the unsolvable in chemistry, biology and physical chemistry. Unrealistic, because the latter are experimental sciences and the former rely on trainable/testable things like lean (verifiable proofs) and coding (generate code and run lots of tests).

          Replies (1)
          1. We rely on humans for designing experiments and guiding research to find breakthroughs. Having superhuman agents that can draw on a breadth of knowledge far beyond what any human could learn in a single lifetime is probably going result in more impactful research and more breakthroughs in general.
        4. They proved the Riemann Theorem. They don't need this kind of marketing.
          Replies (1)
          1. I'm not sure, I watched videos of a guy blending iphones as a teenager and bought a blender from that same company when I got older. You'd think putting an iPhone in a blender isn't good business sense but people aren't rational
      2. Jelani Nelson comes to mind - he is a rather popular ALgorithms researcher
      3. Anthropic is a big enough company that they can walk and chew bubblegum at the same time. Funding a "brave new world" narrative pads out their unsubstantiated fearmongering and gives them a de-facto seat at the discussion table for regulation, which is what they've wanted.

        What one half of a company does is not an indication of their goals or the innocence of their leadership. People should have learned that after Tesla, Google, Apple, Microsoft, Oracle, Facebook and TikTok have all played both sides of the "public resource" table, ultimately for their own gain.

        Replies (1)
        1. But now they're a public company, not just a research lab. PROFITABILITY is the metric going forward. No more hopey-changey stuff. Bottom line dollars. Cure cancer in 10 years? Gotta have LOTS of stuff in the clinical pipeline in 3 years. Mental illness? Heart disease. Gotta fill up those pipelines now.
          Replies (1)
          1. Given that they are a public benefit corporation, there's arguably still plenty of room for hopey-changey stuff.
            Replies (1)
            1. Ok. Not holding my breath. A 1.5t company growing by, what, maybe 4x in the next few years? There are surely better investments.
      4. Donald Knuth is an “P=NP truther”, so I'm not sure the disparaging term is really appropriate. It's not like flat-earthers or young-earth creationism.
        Replies (3)
        1. Ita the same argument for aliens existing. Too much time and space for them not to exist
        2. Knuth only suggested that this was possible. Hopcroft often said that he spent 2 days/week trying to prove P=NP and 3 days/week on P!=NP. Its always smart to question your assumptions, because even disproving those can point you towards a correct solution.
          Replies (1)
          1. I interpreted the comment I replied to as suggesting “questioning the assumption that P≠NP” is being a truther. After all, such a person would just be asking questions, right?
        3. Sorry, intended that in a humorous tone -- no disrespect meant! I myself have argued for that stance being more reasonable than it seems, even.

          But in terms of raw numbers of experts, my understanding is that it's extremely lopsided, and often looked down upon if utterred in a serious context rather than around the dinner table. Thus "truther".

      5. > To me, the takeaway is that they're really what they say they are: dorky scientists trying to do their best with an unimaginable power.

        I get that. I would do the same. It just irritates me slightly that they aren't putting as much focus into solving problems with more immediate, significant impact on the world. Again, there is nothing wrong with this one, but I would love to have a few months of protected research time and access to Anthropic's resource.

        Replies (1)
        1. I promise that you have no idea what you’re talking about.
          Replies (1)
          1. Yeah, thanks, oh the enlightened one. You could try to educate me.
    4. >this was a partial result they judged to be worth publishing along the way.

      It's Valiant's hypothesis. What a world we've built that anything less than a millennium problem is a "partial result"

      Replies (1)
      1. I meant that it is pretty likely that they didn't set out their agents to prove the Valiant's hypothesis - it probably fell out of one of the lines of inquiry into the millennium problem. This was a potentially promising line of attack because VP = VNP would have implied P = NP
    5. This little sidequest is a historic breakthrough in its own right
      Replies (1)
      1. It is a very old problem, nearly as old as P vs NP, but IIUC most of the geometric complexity theory approach to P vs NP has been proven to be a dead end. I guess this is the final nail in that coffin.
    6. I would also expect that by providing the Lean for this result, if they come up with a P vs NP solution later, they don't need to refer to this derivation from the ground up which would increase the however millions of lines the proof for that ends up being.

      VP=VNP implies P=NP, but this result doesn't imply P != NP. So this is a dead end for that investigation they can peel off and not need to hold onto for the big fish.

      If they are trying for this hard, I expect an announcement on P vs PSPACE before we hear about a P vs NP solution.

      Replies (3)
      1. They still do, if they want the P=NP Lean to build by itself.
      2. > VP=VNP implies P=NP, but this result doesn't imply P != NP.

        For those unfamiliar with the subject, a constructive proof of P=NP would be a very weird universe, because it would essentially allow fully automated discovery of proofs for any theorem that has a polynomial-time checkable proof. (And almost anything you'd call a "proof" would be checkable in polynomial time. So basically, fully automated mathematical discovery.)

        See the discussion of P and NP by Scott Aaronson part way down this page : https://www.scottaaronson.com/democritus/lec9.html

        So if your AI proves P!=NP, your AI is very clever. (There several different proofs that rule out common proof techniques being able to prove P!=NP.) But if your AI instead proves P=NP, the future just got weird on a level that's hard to even describe. Cracking cryptography wide open is the least weird thing you should expect.

        Replies (7)
        1. No. Given P=NP, in all likelihood, NOTHING about the world would change.

          We can have P=NP with the polynomial being something enormous like 10^100 n^100 + 10^100, which is the 2nd most likely resolution to P vs NP, with P != NP being the most likely one.

          Your scenario is much stronger than P=NP alone and is far less likely.

          Having P=NP with atrocious coefficients would have no immediate practical impact - and maybe wouldn't even be THAT surprising. What it would do is destroy many of theoretical computer science's sky-castles.

        2. Fascinating. So you're saying the proof itself would unwind... everything??
          Replies (1)
          1. Trivial brute force guessing of passwords and biometrics, with the obvious application being all of the worlds digital bank accounts. Scheduling of calendars, route selection, silicon chip layout design and manufacturing demand all optimally decidable automatically. All optimization problems are just what to an outside observer look like is magically done with P=NP. The base act of creativity becomes a literal search space, not a discovery process. War scenarios and application of strategy becomes a tic-tac-toe calculation. Business decisions, execution and stock trading have an optimal answer.

            The world becomes unrecognizable, not in a week, but in hours. You will know P=NP by the discoverer being able to rework the world how they deem it should be, particularly if they are sitting on buckets of compute already.

            For my sanity P!=NP has to be the end result and is why if there is caveats in the eventual solution people say P vs NP where it's technically true but not actionable. Because if it isn't and is just straight equals, well by the time I've processed that information, I won't have the luxury of being able worry about it any more due to the asymmetric information disparity to be waged on us all in the gap of time that someone knows how the do it, but the rest of the world doesn't.

            Replies (1)
            1. Say a researcher privately proved P = NP, what would you suggest they do with it?

              Continue this thread (1 replies) →

        3. 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.

              Continue this thread (2 replies) →

          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.

              Continue this thread (7 replies) →

          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...

        4. NP means polynomial-time checkable proofs, but it is polynomial in the length of the problem instance, not in the length of the proof. That works for combinatoric problems, where proofs can be bounded, but not for math theorems, where proof length are generally unbounded.
          Replies (1)
          1. A lot of interesting theorems should have proofs/counterexamples shorter than say.. 20 million lines of Lean?
            Replies (2)
            1. “Interesting” is doing a lot of heavy lifting there, but where do you get that figure from?

              Continue this thread (1 replies) →

            2. Is there any reason to believe this

              Continue this thread (1 replies) →

        5. Note this doomsday scenario doesn't happen with "just" s constructive proof of P=NP. The algorithm must also be practical to run ç
        6. > For those unfamiliar with the subject, a constructive proof of P=NP would be a very weird universe, because it would essentially allow fully automated discovery of proofs for any theorem that has a polynomial-time checkable proof.

          What's weird about that? We can already do exponential search in the same way, can't we?

          People need to stop conflating "P" with "fast". P can be very slow.

          Replies (1)
          1. The converse is also true - a superpolynomial algorithm, even in case of P/=NP, can be quite fast.

            The bound from the paper is a good example: m^(c (log m)^(1/3)). If it is already tight, and c is reasonably small, it would mean there is a somewhat practical algorithm for counting (and correct me if wrong, it would also imply somewhat practical algorithm for NP).

        7. I think this is overselling the impact just a little bit. even if P==NP, the algorithm for, say, 3-SAT could be astronomical (e.g. O(n^10000), or even O(n^2) with an enormous constant); conversely, even if P!=NP, there might be a efficient quasi-polynomial algorithm that grows slowly enough for the size of problems we care about. personally I believe the latter is very probable.
      3. I don't think the implication that VP = VNP implies P = NP is right. Indeed, if VP = VNP and assuming the Generalized Riemann Hypothesis, it would only say that P/poly = NP/poly which is much weaker than claiming that P = NP.
    7. One might speculate as to why we’re seeing less fanfare with respect to quadratic-time matrix multiplication attempts.
      Replies (2)
      1. Because these algorithms don't improve performance in practice when your matrices are less than galactic in size. Not a speculation.
        Replies (1)
        1. Until someone proves that quadratic-time matrix multiplication exists and exists only as a galactic algorithm, that would be a conjecture / speculation.
      2. Well. The headline within hours of this comment was certainly relevant to this question.
    8. Am I the only one who thinks that the hardness of ECDLP on which cryptocurrencies and encryption is based is the real Holy Grail?

      It may be something they even would want to keep secret.

      Replies (4)
      1. Well it's almost certain that P != NP, and so if and when that is proven, everyone can breathe slightly easier.
      2. We already know that ECDLP is quantumly easy. Why would it suddenly become the new big deal? (I say this as a cryptographer)
        Replies (1)
        1. Because it breaks a multi-trillion dollar crypto economy.

          Also we havent moved to post-quantum encryption, as far as I know even non-crypto applications have moved to hybrid: there's no mathematical proof that the new algorithms are not weaker on current working machines than ECDLP.

      3. Modern post-quantum crypto is moving off of ECDLP...
        Replies (1)
        1. Can you tell an example of a modern software not using ECDLP in practice?
          Replies (1)
          1. TLS 1.3 uses hybrid ML-KEM. It is a hybrid approach (ECDLP + PQC) but that is the nature of migration.
      4. It's not a holy grail, at least not anymore. Software today (e.g. web browsers) is rapidly moving away from ECDLP and towards post-quantum-secure cryptography, e.g. lattices.
    9. Crowdsourced attempt here just started yesterday http://www.pequalnp.com
      Replies (1)
      1. If it's crowdsourced, that implies that this is just using the publicly available models, then? It seems very unlikely that this will ever go anywhere considering Anthropic (and other labs probably) are almost certainly throwing FAR more resources on their internal models to solve the problem.
    10. Proving (or disproving) P = NP would be a monumental achievement in human history, but my sense (and the sense of many) is if a model can generate a proof, it likely includes constant or the polynomial exponent of something like 10^googol, and thus impractical for the computers of our time.
      Replies (1)
      1. Hence would not be monumental. It could be true but the complexity would be galactic. FWIW there are already quite usable probabilistic and approximation algorithms for instances of practical interest.

        (The most challenging, though, would be factorization, which could upend current cryptographic protocols. For which there are better algorithms, but not good enough feasibly to break current standards. E.g. differential cryptanalysis.)

        Replies (1)
        1. If the proof is galactic (like the recent ETH) then the theorem remains an open question for, say Earth-sized problem instances? Isn't that the general technicality with galactic proofs?
    11. The other thing now obvious is for all of us who were like "couldn't you just...?", no, you couldn't.