r/reinforcementlearning • u/moschles • 2h ago
D Re-visiting the Gödel Machine in an age of automated Lean proofs.
Deductive Opacity Is Safe If $\mathcal{A}$ and $u$ Are Sound: In Schmidhuber's pure formalism, humans never need to understand a 50,000-line self-rewrite or its proof. Mechanical checking by a small trusted kernel guarantees that the rewrite strictly serves the original utility function $u$ (and cannot install a bogus utility function unless the old $u$ proves it beneficial).
Beltway mathematicians have been bemoaning the fact that the Lean-verified proofs are incomprehensible to human readers. But a Godel Machine doesn't concern itself with comprehensibility -- only optimal behavior under a utility function matters. Extremely long, dense symbolic proofs may be useless in traditional academia, but would be as valuable as gold to a recursive self-improver.
Schmidhuber's original paper on Godel Machines was written in 2006, now 20 years ago. It lacks some of the techniques and neologisms we have today. For example, there is no concept of a querying an LLM in a so-called "harness". Nor is there any verbiage going towards automated proofs with (automated) Lean verification. Instead Schmidhuber imagined at the time some kind of naive proof search.
Perhaps most striking contrast is the lack of trust in writing operationally sound software. Automated software writing is so powerful in late 2026 that it can be safely assumed by the reader. Schmidhuber's original 2006 conception imagined a computer that is able to re-write its own ISA. We likely need to relax that form of deep re-write and instead freeze the agent's architecture at the chip level. Today, re-writes should bottom out at the Operating System.
A Contemporary Gödel Machine
A contemporary redesign of a GM follows conventions for automated harness writing, and the querying of a frozen LLM as a kind of co-processor. The "environment" should be considered something like an ARC-AGI3 puzzle. Proof solver for determining advantageous re-writes would follow the same procedures for the production of Lean and its automated verification. The automatic generation of harnesses for task environments is a theme that takes center-stage.
An element-for-element map from the portions of the original GM to a "modern" variant is given in the table below.
An informal algorithm is proposed by Gemini Neon, below.
The "spirit" of the 2006 Gödel machine survives surprisingly intact, but its division of labor transforms: LLMs provide the universal creative prior for proposing harnesses and candidate world models, Lean provides the un-corruptible verification gate for algorithmic dominance, safety, and local-model soundness, and automated harness synthesis provides the self-referential mechanism by which an agent continuously engineers better agents—including better versions of its own design loop.
- Probe & Snapshot: An initial exploratory harness interacts with the puzzle, logging clean (x, y) state transitions and turning verified observations into formal facts via
state2theorem.
2. Online Local Formalization: The meta-harness uses the LLM to hypothesize a compact formal specification of the puzzle's local mechanics (essentially synthesizing temporary, task-local Environment Axioms 1c in Lean) and verifies that the hypothesized mechanics model is 100% consistent with all observed transitions so far.
3. Verified Child-Harness Synthesis: Conditioned on that locally consistent formal model, the meta-harness synthesizes a specialized child-agent harness (e.g., a verified planner or constraint solver, or a tightly constrained LLM-guided search loop) with a Lean proof that the child harness solves the modeled puzzle—or, if uncertainty remains, executes a maximally informative discriminating experiment to falsify competing models. If a live action later contradicts the local model, the system treats it as a probabilistic belief update (Section 6.3) rather than a fatal inconsistency, discards the falsified model, and re-enters synthesis.
Alien Querying
As said before, large, complex, symbolic proofs internal to the GM need not be comprehensible to humans. In the same vein, an improved harness need not query an LLM with proper , comprehensible English. In a one-way road to optimality, token budgets matter. It is expected that under self-improvement cycles, the GM will ditch English entirely. Future queries will transform into some kind of alien, formal syntax, tuned to maximize knowledge distillation from the LLM. Gemini Neon made the following analogies,
