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.
[ Parent
| on HN ]
easy, just add a line to the prompt to solve P=NP first
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.
>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.
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.
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.