News for hackers. Stuff that matters.
Re:Yes, 17M lines of Lean is a lot by brian-armstrong on Monday November 23, 2026 @02:12AM (#50608468)
I think what you're describing is NP-hard, at least naively.
Re:Yes, 17M lines of Lean is a lot by lllllm on Monday November 23, 2026 @02:41AM (#50608620)
easy, just add a line to the prompt to solve P=NP first
Re:Yes, 17M lines of Lean is a lot by dyauspitr on Monday November 23, 2026 @03:56AM (#50609117)
Re:Yes, 17M lines of Lean is a lot by fc417fc802 on Monday November 23, 2026 @02:48AM (#50608663)
Isn't what LLMs do also NP-hard (at minimum)?
Re:Yes, 17M lines of Lean is a lot by brian-armstrong on Monday November 23, 2026 @03:12AM (#50608838)
No. What LLMs do is stochastic inference of pre-computed matrices. It is decidedly polynomial.
Re:Yes, 17M lines of Lean is a lot by panstromek on Monday November 23, 2026 @03:46AM (#50609042)
This is what they do in practice, but the point of that is to approximate NP hard problem.
Re:Yes, 17M lines of Lean is a lot by viccis on Monday November 23, 2026 @09:39AM (#50612451)
>approximate NP hard problem

Ok, so decidedly not NP hard.

Re:Yes, 17M lines of Lean is a lot by fc417fc802 on Monday November 23, 2026 @10:37AM (#50613613)
And neither is extracting structure from code in order to remove redundancies. In practice at least.
Re:Yes, 17M lines of Lean is a lot by arnaudsm on Monday November 23, 2026 @05:02AM (#50609645)
You're mixing the means and the end. The human brain interactions are polynomial yet we can solve many NP-hard problems.
Re:Yes, 17M lines of Lean is a lot by brian-armstrong on Monday November 23, 2026 @05:30AM (#50609877)
You're anthropomorphizing LLMs. They do not "try" to do anything. They are simply a roulette wheel that generates natural language tokens, which you have confused for intelligence. A common mistake.
Re:Yes, 17M lines of Lean is a lot by arnaudsm on Monday November 23, 2026 @05:45AM (#50609982)
That was just a counterexample, of course humans and LLMs are entirely different.
Re:Yes, 17M lines of Lean is a lot by marcosdumay on Monday November 23, 2026 @07:57AM (#50610958)
> NP-hard

Well, it for sure is NP, but IDK if it's NP-complete.