AWM
← All games‹ s5i5sc25 ›

sb26

Fill board slots with colour bricks and guide rings so that, on submit, the read string matches the top.

8 levels · 16 rules · all levels replayed in Lean

Replay

The certified run that cleared every level, one action at a time. Beside each step: the rules of the model that explain it; they are also marked in the rule list below.

sb26, first frame of the certified run

Explained by

Press Play or step to load the run. Keys, while the player is on screen: ← → step, Space play / pause. A click is circled; cells that changed are outlined.

How it plays

The colours of the hollow frames in the top row, from left to right, are the string to be assembled. In the middle are several boards enclosed by coloured frames, each with a row of slots; the one with white corner marks at its four corners is the start board. The rack at the bottom holds materials: solid colour bricks, or hollow guide rings. Click one material to select it, then click an empty slot to move it there; two bricks on the board can swap colours. Press submit and the colours are read slot by slot starting from the start board; on reaching a guide ring, first read the whole board whose frame colour is the same as the ring colour, then come back and continue. If the string read out equals the top string, the level is cleared; if not, one cell of the counter is spent. The undo key goes back to the most recent move, and the restart key returns to the start of this level.

sb26, first frame of the certified run
Start
sb26, last frame of the certified run
After the winning move

Model

The final model: 6 object types and 16 rules. Each rule is a Python check against every recorded step; 12 of them are translated into Lean (the paper's per-game table). Code under a rule is the file of the same name in the agent's Lean project.

Object types

Rules

Code is shown with comments and the agent's notes removed; the files as written are in the archive under Check it yourself.

Proof

For every level, Lean starts from the level's first screen, applies the model's rules to the certified actions, and checks that every computed state agrees with the recorded frame on the components the model represents, and that the last one wins. Each theorem is closed by the Lean kernel and is a statement about the learned model.

Every level can be won

theorem L0_observed_win : (Replay.bySeq 309).obs = Replay.ObsIx.levelUp ∧
    step L0_layout (Replay.worldAt (Replay.bySeq 309).prev : World) (Replay.bySeq 309).act = Res.won := …
theorem L0_winnable : Winnable L0_layout (L0_start : World) := …
theorem L1_observed_win : (Replay.bySeq 324).obs = Replay.ObsIx.levelUp ∧
    step L1_layout (Replay.worldAt (Replay.bySeq 324).prev : World) (Replay.bySeq 324).act = Res.won := …
theorem L1_winnable : Winnable L1_layout (L1_start : World) := …
theorem L2_observed_win : (Replay.bySeq 339).obs = Replay.ObsIx.levelUp ∧
    step L2_layout (Replay.worldAt (Replay.bySeq 339).prev : World) (Replay.bySeq 339).act = Res.won := …
theorem L2_winnable : Winnable L2_layout (L2_start : World) := …
theorem L3_observed_win : (Replay.bySeq 354).obs = Replay.ObsIx.levelUp ∧
    step L3_layout (Replay.worldAt (Replay.bySeq 354).prev : World) (Replay.bySeq 354).act = Res.won := …
theorem L3_winnable : Winnable L3_layout (L3_start : World) := …
theorem L4_observed_win : (Replay.bySeq 371).obs = Replay.ObsIx.levelUp ∧
    step L4_layout (Replay.worldAt (Replay.bySeq 371).prev : World) (Replay.bySeq 371).act = Res.won := …
theorem L4_winnable : Winnable L4_layout (L4_start : World) := …
theorem L5_observed_win : (Replay.bySeq 390).obs = Replay.ObsIx.levelUp ∧
    step L5_layout (Replay.worldAt (Replay.bySeq 390).prev : World) (Replay.bySeq 390).act = Res.won := …
theorem L5_winnable : Winnable L5_layout (L5_start : World) := …
theorem L6_observed_win : (Replay.bySeq 407).obs = Replay.ObsIx.levelUp ∧
    step L6_layout (Replay.worldAt (Replay.bySeq 407).prev : World) (Replay.bySeq 407).act = Res.won := …
theorem L6_winnable : Winnable L6_layout (L6_start : World) := …
theorem L7_observed_win : (Replay.bySeq 424).obs = Replay.ObsIx.levelUp ∧
    step L7_layout (Replay.worldAt (Replay.bySeq 424).prev : World) (Replay.bySeq 424).act = Res.won := …
theorem L7_winnable : Winnable L7_layout (L7_start : World) := …
theorem sceneOK_winnable : Winnable sceneOK (sceneStart : World) := …

What cannot be won under the model

theorem no_root_no_win (L : Layout) :
    ∀ w a, NoSingleRoot L w → step L w a ≠ Res.won := …
theorem unsolvable_no_root (L : Layout) (w : World) (h : NoSingleRoot L w) : Unsolvable L w := …
theorem sceneStuck_unsolvable : Unsolvable sceneStuck (sceneStart : World) := …

Statements only; the proofs and the full Lean project are in the archive, with the steps to re-run them, under Check it yourself.

Check it yourself

Everything on this page comes from files you can download and check. The archive holds the agent's files: the recorded run, the concept book, the concept sources, the Lean project and the sealed model file, plus the record of our kernel check.

Download sb26.zip 0.5 MB · 56 files

Re-run the proof

Before you start: our run of this check took 359 s and 6.0 GB of memory at its peak (2026-10-24).

  1. Download sb26.zip and unpack it. The model and its theorems are in archive/sb26-20260907/formal/Game.lean. Before changing it, check that its SHA-256 is
    926b62d9c2e7eead1df35b06206d5f0a004fc7c8252e1bc64f921ce8417f657a
  2. Install Lean with elan, then the version named in the archive's lean-toolchain:
    elan toolchain install leanprover/lean4:v4.34.0
  3. Copy the model file to Check.lean and append these two lines to the copy:
    #print axioms consistent
    #print axioms faithful
  4. In the folder that holds Check.lean, run:
    lean +leanprover/lean4:v4.34.0 -M60000 Check.lean
  5. Lean should finish without errors and print:
    'consistent' depends on axioms: [propext]
    'faithful' depends on axioms: [propext]

What a pass establishes

consistent: for every recorded transition, as read by the agent's parser and with duplicates removed, every rule whose condition holds also has its effect hold. faithful: the certified run, recomputed step by step from the first screen of each level, matches the record and ends in a win. Axioms used: propext, all among Lean's standard ones.

What it does not establish: that the parser reads the screens correctly (that step runs in Python, outside Lean), or that a rule whose condition never occurs in the record is right. The Python file that produced the readings inside the model file is in the archive at meta/repair-20260928/lib/sb26-20260907/_lib.py.