A riff on Cook-Levin Chapters

Chapter 18

Some history of the approach

This chapter is mostly story, and a reader in a hurry may skip it: the rest of the book reads the same. It says in what order Steve built the Python, and which view of the toy the order passed over.

The order of the work §

The virtual-machine log records the order. All of it came in four days of March 2023:

  1. 2023-03-11, 01:49: the machine, run_progam, and the search find_solutions, in the first commit (f01c1c3).
  2. 13:02 the same day: the analytical solution (d6bb78f), as “Programs as formal languages” tells.
  3. 15:47 the same day: the stepper (ba9388a), with its NOT, AND and OR already arithmetic on integers (NOT x was (x − 1)·(x − 1) then), and the assertion that the stepper accepts exactly the problem's inputs.
  4. 2023-03-12: mod2 and pass, today's nada (cad8e18), then the polynomial library from 14:35 (6bb7429).
  5. 2023-03-14: the step polynomials at 12:22 (a4e4765), and at 12:32 programs of six lines, with the assertion that every problem has a program (8646cbe).

The view the order passed over §

From the machine Steve went straight to polynomials: he wrote the machine's logic as arithmetic on integers, so that the machine's whole run could become one big polynomial. The plain Boolean view of the toy, its problems and its step written with ordinary logic gates, sits between the two, and the order passed over it. “The Boolean view” sets it out.

Why polynomials §

The polynomials were part of the point. Steve, on 2026-11-25, said that part of the project was "to generate obscenely large [polynomials] that actually mapped to a simple Nibble VM solving our 2-bit language". The second part of the book composes them, and “The polynomials, in full” prints them whole.