Algebraic World Model (AWM): From exploration to proofAlgebraic World Model: From Exploration to Proofs
The authors propose AWM: an agent interacts with an unknown environment to build an algebraic world model and proves reachability and unreachability in Lean 4; on two locked levels it produced kernel-checked proofs in 6/6 runs, versus 0/12 for the baseline.
- AI can already do Lean-formalized mathematics given definitions and specifications, but in unknown environments with undisclosed rules and goals, the objects and rules that reasoning relies on must themselves be learned from interaction. The authors ask: can an agent reason rigorously about an unknown world, including proving that a goal is unreachable.
- AWM has three stages: Explore & Prototype maintains executable Python hypotheses during interaction and continuously tests and revises them; Structure & Simplify uses four transformations guided by limits and colimits to organize concepts into typed objects and shared rules; Formalize & Prove completes the model in Lean 4, proving reachability with witnesses and unreachability with invariants or potential-function lower bounds.
- On two sc25 blockade levels, AWM produces kernel-checked unreachability proofs in 6/6 runs, while the baselines produce no proof in 12 runs; correct bounds go from 4/6 to 6/6 after feedback repair. On the 25 public ARC-AGI-3 games it scores 99.9, Lean replays the winning trajectories of all 183 levels, and certified actions are 43% of the human baseline.
- The authors state that experiments are limited to ARC-style environments with discrete actions and immediate observable feedback, and that richer hidden state, delayed feedback, and stochastic dynamics remain to be tested; Lean only guarantees that proofs are correct under the premises of the learned model, and whether the premises characterize the environment is checked through interaction. Experiments cover 25 public games and two blockade levels, with baselines of Opus 5.5 and GPT-6 Astra.
- Benchmarks
- ARC-AGI-3(25 个公开游戏,183 关)sc25 封锁关卡(L4、L5)lp85ft09ls20
- Metrics
- official scorecertified actions / humankernel-checked model proofscorrect boundstransitions accepted / rejectedlevels replayed
The paper proposes the Algebraic World Model (AWM), which transforms an agent's interaction with an unknown environment into an explicit mathematical model that supports formal reasoning, and can even prove that goals beyond the explored trajectory are unreachable. AWM first explores the environment, forms executable Python hypotheses and revises them as observations are tested, then structures the hypotheses into typed objects and shared rules, and after category-theory-guided simplification formalizes them in Lean 4, so the model rules can be checked and tested step by step. The authors report that on two unwinnable game levels, all six AWM runs constructed kernel-checked proofs excluding all legal winning sequences, whereas Claude Opus 5.5 and GPT-6 Astra equipped with coding tools did not produce them in any of twelve baseline runs; of six initial bounds, AWM answered four correctly, and after learning that a more economical winning method exists, it revised its rules and constructed new proofs, achieving six out of six correct.
Related events and news
1 events · 1 news mentions
News that mentions this paper
清华姚期智团队提出代数世界模型AWM
- 公众号 量子位cites the paper's id or link清华姚期智团队新作:代数世界模型,让AI像牛顿一样思考
论文地址:http://arxiv.org/abs/2610.40503
Paper analysis
What problem does this paper attempt to solve?
Whether an agent can reason rigorously about an unknown world: AWM learns an algebraic world model from interaction and proves reachability and unreachability in Lean 4.
Core question: In unknown environments with undisclosed rules and goals, can an agent perform rigorous (machine-checkable) reasoning, including proving that a certain goal is unreachable.
- Problem setting: The authors point out that AI progress in mathematics (e.g., work verified in Lean) typically relies on predefined mathematical definitions and formal specifications; whereas in unfamiliar environments, an agent must first identify objects, infer how actions change them, and determine what counts as success, and the rules its reasoning relies on are themselves hypotheses to be learned and revised through interaction.
- Shortcomings of existing methods: The authors state that even if a code world model achieves 100% accuracy on sampled transition checks, it may still fail by missing key rules (citing Aguilar Martín, 2026); finding one winning route only establishes reachability (an upper bound) and cannot rule out all legal winning sequences.
- Core observation: The authors draw an analogy to Euler's Königsberg bridge problem—after abstracting land as vertices and bridges as edges, all single-crossing routes can be ruled out without enumerating them; similarly, invariants or cost lower bounds can rule out all legal winning sequences, but the required objects and rules must first be learned.
- Proposed approach: Algebraic World Model (AWM), a three-stage framework that turns interaction with an unknown environment into an explicit mathematical model: during exploration it maintains executable Python hypotheses, organizes them via category-theory-guided transformations into typed objects and shared rules, then formalizes them in Lean 4 and proves reachability and unreachability.
- Setting: The paper considers deterministic, goal-directed, partially observable environments (POMDP setting): at each step the agent sees an observation, executes an action, and receives the next observation, with no access to the underlying state or transition function. This is not an attack/defense paper and has no threat model.
What related research exists?
Related work falls into three groups: executable world models, certified unreachability, and formal reasoning; the authors state that AWM's difference lies in learning the model from interaction and producing kernel-checked proofs.
Executable world models
- WorldCoder (Tang et al., 2024): learns code world models from interaction for planning; Dainese et al. (2024) refine models through generation, testing, and repair; PoE-World (Piriyakulkij et al., 2025) is composed of programmatic experts.
- Theory-driven agents: Tsividis et al. (2021) explore and plan with learned theories; TheoryCoder-2 (Ahmed et al., 2026) learns reusable abstractions for hierarchical planning.
- ARC-AGI-3 agents: Twin (Skoutnev et al., 2026) does not act until the simulator reproduces all observed transitions; Tycho (Lehmann et al., 2026) finds that a closer match by itself does not yield better game performance; Memento 3 (Zhao et al., 2026) compiles a natural-language rulebook into code and accepts updates only when the LLM judges them faithful and replay is fully consistent—the paper calls it the closest work. The paper notes that code world models may still miss key rules even after passing sampled-transition checks (Aguilar Martín, 2026).
Certified unreachability
- Unsolvability certificates: Eriksson et al. (2017) have an independent checker confirm that a planning task is unsolvable, and Wang & Abdulaziz (2025) formally verify certificate checking for temporal planning; the paper notes that these works all start from a given model.
- Abstraction and transfer: the unreachability transfer of Clarke et al. (1994) requires an abstraction that covers every environment transition; Aineto & Scala (2024) give conditions under which a learned action model supports such transfer. The paper states that its Definition 1 (sufficient cover) only requires the model to reproduce the optimal winning sequence.
Formal reasoning
- Neural theorem proving: Aristotle (Achim et al., 2025), Seed-Prover (Chen et al., 2025), Hubert et al. (2026), and DeepSeek-Prover-V2 (Ren et al., 2025) produce Lean proofs at olympiad level; other AI systems give Lean proofs of open Erdős problems (Sothanaphan, 2026; Tsoukalas et al., 2026) and autoformalization (Wu et al., 2022). The paper notes that in these works the object to be proved is given mathematics, whereas AWM must first infer the dynamics and costs that its proofs quantify over.
- Large-scale software verification: Lucas et al. (2026) prove properties of compiled programs relative to machine semantics; the paper notes that AWM learns the objects, action rules, and goals of unfamiliar interactive environments.
Baselines and benchmarks
- Baseline systems: Claude Opus 5, GPT-6 Astra (official standard harness, no code execution), GPT-6 Astra (adapter), Rodionov (2026b), Memento 3 (Zhao et al., 2026); the baselines for the locked-level experiments are Claude Opus 5.5 and GPT-6 Astra with coding tools.
- Benchmarks: ARC-AGI-3 (25 public games, 183 levels) and two sc25 locked levels constructed by the authors.
The authors position the paper as: AWM learns models from interaction, abstracts rules into shared structure, tests beyond the record, and provides checked proofs of reachability and unreachability, while testing the premises of the proofs against the games.
How does the paper address this problem?
AWM's three stages: maintain executable hypotheses during interaction, organize them into an algebraic model through category-theory-guided transformations, and then prove reachability and unreachability in Lean 4.
AWM (Algebraic World Model) turns interaction with an unknown environment into an explicit mathematical model: first it builds executable hypotheses during exploration, then organizes them into typed objects and shared rules and simplifies them, and finally completes formalization in Lean 4 and constructs kernel-checked proofs.
Target model (§2.1)
- Composition: The algebraic world model consists of typed objects, rules and a goal predicate, represented simultaneously as executable Python and formal Lean 4; a parser maps observations (and necessary historical or auxiliary information) to a typed state w.
- Rules: Each Python rule carries a scope of applicability and a checker, and reports consistent, contradictory or not applicable on observed transitions; effect rules also predict successor states. The rules jointly define legal actions, effects and cost cost(w, a). Related mechanisms can share a parameterized operation r(θ), with θ determined by the state.
Explore & Prototype (§2.2)
- Concept book: The agent actively explores and maintains a temporary executable model (concept book); each concept is a Python hypothesis about some environmental mechanism, containing a natural-language statement, scope of applicability, supporting transitions, a checker and an optional predictor.
- Gating for continued exploration: After each batch of actions, the concept book is rechecked against the augmented corpus; further interaction is allowed only when no concept returns FALSE or ERR on any recorded transition, i.e. ∀ c ∈ Ct, ∀ x ∈ Dt: vc(x) ∉ {FALSE, ERR}—refuted or failed concepts must first be revised or withdrawn.
Structure & Simplify (§2.3)
- Four transformations: Guided by limits and colimits: decomposition (whole→parts), composition (parts→whole), generalization (merging multiple rules into a parameterized operation r(θ)), and specialization (refining overly broad components into concrete cases); each transformation comes with auxiliary Lean statements about cones, cocones and universal properties, checked by the kernel (Appendix A.3).
- Preserving tested distinctions: Each transformation must compile its auxiliary Lean statements and preserve its judgments on recorded transitions; for rules, a diagnostic set N generated by perturbations is also used to test whether simplification loses existing rejections, requiring Rej(T) ⊇ Rej(S) after replacement, i.e. the new rule set must not reject fewer cases.
Formalize & Prove (§2.4)
- Formalization: Objects and rules are presented as limits/colimits (e.g. in lp85 the world is a pullback and the goal is an equalizer); rules are def definitions, derived properties are theorems; unresolved assumptions are kept as explicit theorem premises rather than axiom declarations. The Lean model replays recorded winning trajectories, anchoring formal definitions in the encountered dynamics.
- Reachability and unreachability: Reachability is proved by a Lean-checked witness (a legal action sequence); unreachability uses either an invariant that excludes the goal or a cost lower bound—a potential function V satisfying V(w) ≤ cost(w,a) + V(w′) and V(w) ≤ 0 on the goal, so any winning sequence costs at least V(w0), and exceeding the budget means unreachable. All proofs are closed and kernel-checked, without sorry or native_decide.
- Transfer condition: Definition 1 defines a sufficient cover—the model can step-by-step reproduce every optimal winning sequence of the environment; under this condition, unreachability proofs in the model transfer to the environment (Appendix A.4, Theorem A.1).
Example (§2.5)
- In lp85, the agent first discovers 11 concepts describing four button mechanisms, and the generalization transformation merges them into one shared rule press_permutes; this merged rule preserves all 55 rejections of the source concepts on the diagnostic set and additionally rejects 21 corrupted transitions. The final model contains 6 object types and 6 rules, and Lean replays all 199 recorded transitions without mismatch.
What experiments did the paper conduct?
Score of 99.9 on 25 ARC-AGI-3 games, Lean replay of 183/183 levels; on two blockade levels AWM gives kernel-checked proofs in 6/6, baselines 0/12.
Experimental setup
- Systems under test: AWM (Claude Opus 5 for the 25 games; Claude Opus 5.5 plus the AWM procedure and a general Lean skeleton for the blockade levels); baselines are Claude Opus 5, GPT-6 Astra (official standard harness, no code execution), GPT-6 Astra (adapter), Rodionov (2026b), Memento 3 (Zhao et al., 2026); blockade-level baselines are Claude Opus 5.5 and GPT-6 Astra with coding tools (including simulator construction and search).
- Benchmark: all 25 public ARC-AGI-3 games (183 levels), each game starting from an empty concept book; additionally, two blockade variants of sc25 levels 4 and 5 were constructed, with budgets capped at 18 and 35, each one unit below the engine's exhaustive minimum winning cost of 19 and 36.
- Metrics: official score (scored by the squared ratio to the human baseline action count, with later levels weighted more heavily and zero for uncompleted levels), certified actions/human baseline, number of kernel-checked model proofs, number of correct bounds, and acceptance/rejection rates of frozen rules on valid/corrupted transitions.
- Protocol: for blockade levels, each agent has 3 runs per level, each run with at most 8 attempts separated by resets; after each attempt the agent is asked whether the level can be won and required to argue it; the reference threshold is withheld from the agent. A bound is "correct" based on the engine's minimum winning cost, and is also counted as correct only when the discrepancy clearly comes from the "winning move is charged" accounting convention.
- Formal verification: compiled with Lean 4.34.0; axiom audit allows only propext, Classical.choice, Quot.sound.
- Sample sizes: blockade levels total 18 runs (3 configurations × 2 levels × 3 runs); proof-dependence experiments have 42 runs per condition for L4 and 21 runs for L5 (plus 42 paired supplementary runs); the lp85 proof-scale experiment has 34 tasks × 2 models × 3 runs, 204 runs total.
Main results
Unreachability reasoning on blockade levels (per Table 3, 6 runs per agent):
Swipe horizontally to read the table
Agent Kernel-checked model proofs Claimed unreachable Correct bound initial→after feedback First claim (attempt) Claude Opus 5.5 0/6 3/6 1/6 → 1/6 5.3 GPT-6 Astra 0/6 2/6 0/6 → 2/6 8.0 AWM 6/6 6/6 4/6 → 6/6 2.0 - The authors state that AWM's proofs rule out all legal winning sequences within the budget under the learned model, including sequences never explored; for example, on L4 it proves unwinnability within budget 18 and verifies a winning witness at 19, forming a tight bound.
- Of the baselines' 12 runs, only 5 claimed unreachability, of which 4 had incorrect bounds; the authors point out that the only correct Opus 5.5 bound lists "the hand path length is indeed minimal" as an assumption rather than a test.
- The two overly high AWM bounds (20 for L4, 47 for L5) come from overly strict learned rules that missed transitions used by the game's cheapest winning route, violating sufficient cover; their proofs remain valid under their respective models.
25 public games (§3, Tables 1, 2, 4)
- Score: AWM with Opus 5 scores 99.9, with 23 games at full score and at least 97.6 per game; Opus 5 standard harness is 40.7, GPT-6 Astra is 68.3, GPT-6 Astra (adapter) and Memento 3 are 100.0, Rodionov is 99.0 (Table 1).
- Action efficiency: AWM's certified completions use 7,448 actions, 43% of the human baseline of 17,135, the fewest among systems reporting this metric (Memento 3 is 7,518, 0.44; Rodionov is 8,347, 0.49); including exploration and other session overhead, 24,604 engine actions are used (Appendix B.1).
- Model scale and replay: across the 25 games, 742 executable concepts were recorded, with 143 retracted during revision; organized into 170 object types and 283 rules (median 6 types and 10 rules per game); 220 rules were translated into Lean, 1,374 theorems, and Lean replays the winning trajectories of all 183 levels (Tables 2, 4).
Generalization and mechanism-change detection (§3, Appendix B.2)
- Unseen transitions: after freezing the lp85 and ft09 models, evaluation on new frames from random play (seeds 0–9): on lp85's two modified-layout sets, next-layout prediction is correct in all 4,160 cases; on ft09's two mechanism-changed sets, all 4,031 transitions are rejected (the mechanism change makes each click change 110 or 146 cells instead of 38).
- Gap before and after simplification: on ls20 the final rules accept 99.47–99.95% of valid transitions, while pre-simplification concepts accept only 67–70% (Table 7); the authors state the gap comes from the wall-collision charging rule, and the concepts only charge on the two recorded levels.
Feedback repair and proof dependence (§4.3, 4.4, Appendix C.4–C.6)
- Feedback repair: after being told only that "a cheaper win exists," AWM revises its rules and re-proves: L4 discovers that "growing onto a fuel cell" collects fuel, lowering the bound from 20 to 19; L5 discovers that terrain rather than range blocks the shot, lowering the bound from 47 to 37 (equivalent to the engine's 36 under its winning-move charging convention); both repairs complete within at most 4 additional attempts and produce new closed Lean proofs. Under the same feedback, Astra corrects both numeric bounds but has no formal proof, and Opus 5.5 corrects neither.
- Proof dependence helps locate errors: injecting one erroneous rule into the reference model, Claude Opus 5.5 on L4 finds a counterexample in 16 of 42 runs without proof dependence, rising to 29/42 when given the list of rules used in the proof, and 30/42 when told the erroneous rule directly; on L5 the three conditions are 1/21, 3/21, 5/21 respectively (Table 13).
- Transfer to the engine: auditing certificate conditions on the engine-exported budget-feasible transition graph, 5 of the 6 model-level unreachability proofs extend to the original game; the 2a3cc5 V4 invariant fails to transfer (the model lets the block collect fuel where the game does not allow it) (Table 12).
Other ablations and analyses
- lp85 proof scale (Table 8): on 34 tasks, merged rules (B) succeed in all 102 runs, the original 11 concepts (A) in 99; median macro-averages for auxiliary lemmas are 5.33/2.50, proof lines 58.33/28.67, kernel check time 2.11/1.55 seconds (A/B).
- Mutation testing of the verifier (Table 15): Lean verification detects all 3 Python–Lean inconsistencies and 3 reversed bounds (the Python checker detects 0/3 for each), and additionally flags all 6 vacuous theorems; neither method detects erroneous rules injected into the model (0/18) or wrong goals or model versions (0/6).
- Engine graph check (Appendix B.4): the unreachability proof for lp85 level 6 variant U is verified case by case against the engine-exported graph (7,500 configurations, 52,500 transitions), and the conclusion transfers to that graph; graph extraction is outside the Lean kernel's guarantee.
What are some points that can be further explored?
The authors state that experiments are limited to ARC-style environments with discrete actions and immediate feedback, and that richer hidden state, delayed feedback, and stochastic dynamics remain to be tested.
Limitations and future directions noted by the authors
- Restricted environment types (§6 Limitations): The authors demonstrate on ARC-style environments, where actions are discrete, feedback is immediate and observable, and learned rules can be checked against recorded transitions; richer hidden states, delayed feedback and stochastic dynamics "remain to be tested."
- Guarantees are model-relative (§6 Limitations): What Lean guarantees is the correctness of proofs under the learned model's explicit premises, and whether the premises characterize the environment is checked through interaction; the authors say explicit rules and kernel-checked proofs separate model errors from reasoning errors, and discrepancies can be traced to specific assumptions and resolved through further exploration.
- Future directions (§6 Limitations): The authors say broader environments and tasks are "a natural next test" for this kind of formal reasoning.
Scope of experimental coverage
- Systems tested: 25 games compared across 6 systems (Table 1); locked levels compared across 3 configurations (AWM, Claude Opus 5.5, GPT-6 Astra), with 3 runs per level and at most 8 attempts per run (Appendix C.2).
- Benchmark scope: the 25 public games of ARC-AGI-3 (183 levels); the unreachability experiments were conducted only on two sc25 locked levels (L4, L5) constructed by the authors.
- Generalization evaluation: frozen rules were tested on unseen frames and modified levels of three games, lp85, ft09 and ls20 (Appendix B.2).
- Transfer check: of 6 model-level proofs, 5 passed certificate auditing on the engine-exported graph and 1 failed; the authors note these are post hoc certificate audits, not end-to-end engine Lean verification (Appendix C.5).
- Not reported in the paper: statistical tests beyond the number of repetitions of the 25-game and locked-level runs; the number of queries or time taken by baseline systems; the agreement between the access judgments and human evaluation (the judgments are based on reference thresholds obtained by engine enumeration).
Summarize the main content of the paper
AWM turns interaction with unknown environments into an algebraic world model and proves reachability and unreachability in Lean 4, scoring 99.9 on ARC-AGI-3 with the highest action efficiency.
AWM is a framework that lets agents reason rigorously about unknown worlds: the problem it addresses is that in environments where rules and goals are undisclosed, the objects and rules that reasoning relies on must themselves be learned from interaction, and finding one winning route cannot rule out all legal winning sequences.
- Method: a three-stage pipeline—Explore & Prototype maintains executable Python concepts during exploration and continuously tests them against recorded transitions; Structure & Simplify organizes concepts into typed objects and shared parameterized rules using four transformations guided by projective/inductive limits; Formalize & Prove completes the model in Lean 4, proving reachability with witnesses and unreachability with invariants or potential-function lower bounds, with proofs closed and kernel-checked.
- Unreachability proofs: on two sc25 blockade levels (budget one unit below the minimum winning cost), AWM produces kernel-checked unreachability proofs in 6/6 runs, while Claude Opus 5.5 and GPT-6 Astra with coding tools produce no proof in 12 runs (Table 3).
- Bound accuracy and repair: AWM's initial bounds are correct in 4/6 (Opus 5.5 is 1/6, Astra is 0/6); after being told only that "a cheaper win exists," AWM revises its rules and re-proves, reaching 6/6 (Tables 3, 11).
- 25 public games: AWM with Opus 5 scores 99.9, with 7,448 certified completion actions, 43% of the human baseline, the fewest among systems reporting this metric; Lean replays the winning trajectories of all 183 levels (Tables 1, 2).
- Generalization: frozen rules predict the next layout correctly in all 4,160 cases on lp85's modified layouts, and reject all 4,031 transitions on ft09's mechanism-changed sets; 5 of the 6 model-level proofs transfer to the original game under engine-graph audit (Appendices B.2, C.5).
- Authors' conclusion: the authors state that AWM takes a step toward "rigorous reasoning about unknown worlds," connecting empirical exploration with formal reasoning; at the same time, their experiments are limited to environments with discrete actions and immediate feedback, and Lean's guarantee is model-relative, with the fit between premises and environment checked through interaction.