๐๐ผ๐ป๐ฎ๐น๐ฑ ๐๐ป๐๐๐ต ๐ถ๐ ๐๐ต๐ผ๐ฐ๐ธ๐ฒ๐ฑ ๐ฏ๐ ๐ต๐ผ๐ ๐ด๐ผ๐ผ๐ฑ ๐๐ ๐ต๐ฎ๐ ๐ฏ๐ฒ๐ฐ๐ผ๐บ๐ฒ ๐ฎ๐ ๐๐ผ๐น๐๐ถ๐ป๐ด ๐ฝ๐ฟ๐ผ๐ฏ๐น๐ฒ๐บ๐
Knuth is now 88 years old. He wrote The Art of Computer Programming starting in 1962, and won the Turing Award in 1974.
In his paper which talks about how AI helped him solve a problem, he wrote on the start: "Shock! Shock!"
Here is what happened:
๐ญ. ๐ง๐ต๐ฒ ๐ฝ๐ฟ๐ผ๐ฏ๐น๐ฒ๐บ
Knuth was stuck for weeks on an open graph theory problem he was preparing for a future volume of TAOCP. The problem involves a 3D grid of points, think of it as an mรmรm cube. Each point connects to three neighbors. The challenge is to find a single rule that traces three separate paths through the entire cube, where each path visits every point exactly once.
That kind of path is called a Hamiltonian cycle. Knuth had worked it out for a 3ร3ร3 cube. His friend Filip Stappers confirmed it worked up to a 16ร16ร16 cube by running it on a computer. But no one could find a general rule that worked for any size.
๐ฎ. ๐ง๐ต๐ฒ ๐๐ฒ๐๐๐ถ๐ผ๐ป
Stappers gave the problem to Claude Opus 4.6 with one strict rule: after every attempt, write down what you tried and what you learned before moving on. Claude worked through 31 explorations over about an hour. It tried simple formulas, brute-force search, geometric patterns, statistical methods. Most hit dead ends.
At attempt 25, it essentially told itself: "The search approach won't get us there. This needs actual mathematical reasoning." At attempt 31, it found a construction that worked.
๐ฏ. ๐ง๐ต๐ฒ ๐ฐ๐ผ๐ป๐๐๐ฟ๐๐ฐ๐๐ถ๐ผ๐ป
Claude found a surprisingly simple rule for navigating the cube. At each point, look at where you are and follow a small set of conditions to decide which direction to move next. That's it. No complex formula, no special cases beyond a handful of boundary checks. Stappers ran the resulting program against every odd cube size from 3 to 101. It produced perfect results every time.
Then, Knuth wrote a formal proof, generalized the construction, and showed that there are exactly 760 valid solutions of this type for all odd cube sizes. Claude found one of them. Knuth found all of them.
๐ฐ. ๐ช๐ต๐ฎ๐ ๐ต๐ฎ๐ฝ๐ฝ๐ฒ๐ป๐ฒ๐ฑ ๐ป๐ฒ๐
๐
The even-sized cubes were still unsolved. Then a friend fed that version of the problem to GPT-5.4 Pro and got back a 14-page proof that required no further work on it.
Then another researcher used GPT and Claude together as two collaborating agents and found an even better solution covering both cases. The problem that had been open for years, odd and even sizes, is now fully solved. Knuth's reaction was: "We are living in very interesting times indeed."
His closing line: "It seems I'll have to revise my opinions about generative AI one of these days."
From Donald Knuth, that sentence lands differently than it would from anyone else.
Paper: cs.stanford.edu/~knuth/โฆ