Hacker News new | ask | show | jobs
by rcpt 13 days ago
P=NP doesn't do anything unless the algorithm is fast to compute.
1 comments

Heck, you could prove P=NP by contradiction and not even get an algorithm out of the deal.
Sort of.. intuitionistic logic is weird. In it, a statement is true when you have a proof of it and a proof is a construction.

A proof of X is some actual construction and a proof of ¬(X) is a function that accepts a proof of X and turns it into a contradiction.

A proof of ¬¬(X) is thus a function that accepts a proof of ¬(X) and turns it into a contradiction. It doesn't actually give you a proof of X.

In the case of P=NP, a proof would be an actual SAT algorithm plus its polynomial bound (and some kind of evidence the SAT algorithm meets the bound).

What you actually hold when you've proved ¬¬(P=NP) is a function whose input is a refutation of P=NP and whose output is ⊥. You can't actually get a proof of P=NP from that.

What you have shown is that any attempt to refute P=NP is doomed but you haven't actually proven it to be true. I know its weird...

> In the case of P=NP, a proof would be an actual SAT algorithm plus its polynomial bound

A proof just needs to be that some algorithm exists, it could take many forms.

Eg Jarden’s Proof proves that there are irrational a, b such that a^b is rational. But it does so without proving a particular a, b.

That is correct classically but not under intuitionism where a proof of "there exists an x" must give a specific x.
Yes, but Lean uses Init.Classical.

So yes it reasons intuitively, but it has access to classical methods, like the Axiom of Choice.

yes but classical axioms are postulated and not computable.
That's only if you assume intuitionistic logic. If you operate in classical logic you don't have this issue.
Lean is built on intuitionistic logic.

I guess you could say an intuitionistic proof of ¬¬(P=NP) is a classical proof of P=NP, but as you said it doesn't get you the algorithm.

You don't need Lean to prove stuff. As far as I understand, all of the big recent LLM proofs were produced in natural language and then auto-formalized into Lean as a verification step.
Sure but if you are going to formalize the proof in Lean then all this applies.
Lean as a proof system is intuitionistic, but the standard axioms allowed in proofs give you the law of excluded middle (proposition and function extensionality with axiom of choice).
yes but classical axioms are postulated and not computable.
Actually you do get an algorithm! Given an instance of 3-SAT, For N from 1 to infinity, for each Turing Machine with at most N states, run that machine on the 3-SAT instance for N steps and check if it outputs a correct solution. If any machine exists that solves 3-SAT problems in polynomial time, this algorithm is also polynomial, though with absurdly large constants.
Right, this algorithm may run until the heat death of the universe without finding the one true polynomial 3-SAT solver. We may have a proof that it exists but that is cold comfort to those of us who want to find it.

In the mean time, your approach may get hung up on lots of false positives which are simply algorithms overfit to the particular 3-SAT instance you chose in step 1.

No need to wait, the algorithm itself is already a true polynomial 3-SAT solver if P=NP. It's also not actually guaranteed it will ever use the output of a true polynomial 3-SAT solver, so you can't actually use it to search for other solvers like you suggested.
You mean proving that P /= NP is false?
Yes. Assume P /= NP and then arrive at a contradiction.
We already have the optimal algorithms, had them for a long long time. (It's just that no one can prove their runtime.)