AWM
← All games‹ re86sb26 ›

s5i5

Click to extend, retract and rotate coloured bars; the level is cleared when all tips land on diamond target centres.

8 levels · 19 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.

s5i5, 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

There are several coloured long bars on the board, with a grey cap at one end and the other end able to extend and retract; the cap of one bar hangs on another bar, strung into an arm, and the bar at the end carries a dark-red tip. The panels in the lower row each govern one colour: click the left icon and every bar of this colour retracts by 3 cells, click the right one and it extends by 3 cells; the bar that would press on the panel stays in place, and the others move as usual; the bars or walls hanging on the extending/retracting end are pushed away or dragged back along. Clicking a legend frame in the upper row makes the bars of this colour, together with the whole arm hanging behind it, rotate counterclockwise about the joint. The level is cleared when all the tips land on the centres of the diamond targets. In many cases this step is voided entirely: two things fight for the same cell, pressing on a purple fixed wall, retracting until the body is not enough, a pushed-away wall has nowhere to land, being unable to rotate through (pressing on the panel while rotating also counts).

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

Model

The final model: 5 object types and 19 rules. Each rule is a Python check against every recorded step; 17 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_winnable : Winnable (L0_start : World) := …
theorem L1_winnable : Winnable (L1_start : World) := …
theorem L2_winnable : Winnable (L2_start : World) := …
theorem L3_winnable : Winnable (L3_start : World) := …
theorem L4_winnable : Winnable (L4_start : World) := …
theorem L5_winnable : Winnable (L5_start : World) := …
theorem L6_winnable : Winnable (L6_start : World) := …
theorem L7_winnable : Winnable (L7_start : 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 s5i5.zip 1.0 MB · 111 files

Re-run the proof

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

  1. Download s5i5.zip and unpack it. The model and its theorems are in archive/s5i5-20260910/formal/Game.lean. Before changing it, check that its SHA-256 is
    24d450734f2731684cf6e56ba60acaa6148fa05df9afecd0987f9ba4b69aaaa6
  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:
    GUARD_HITS counter_burns_monotone=1163,move_counter_row63=1163,counter_step_rate=1081,diamond_dots_immutable=1163,panels_static=1163,fixed_color_never_moves=1163,walls_immutable=1198,wall_size_constant_in_level=1163,segments_never_on_walls=1163,bar_free_end_moves=1026,every_blob_moves_on_its_own_axis=161,per_bar_adjudication=3,chain_drags_downstream=582,button_owns_one_bar=1026,bar_tip_follows=403,tip_bar_carries_nothing=293,shrink_drags_cap_contact=175,blocking_seg_is_pushed=407,wall_sticks_to_free_end=151,chain_push_drags_touching_bar=72,shrink_to_nothing_refuses=4,shrink_at_min_length_refuses=4,blocked_push_refuses=15,wedge_refuses_click=2,drag_into_obstacle_refuses=5,click_refused_when_seg_lands_on_wall=2,seg_landing_collides=26,same_color_bars_collide_refuses=3,push_chain_blocked_refuses=16,refused_says_it_exactly=1155,legend_click_rotates_chain_ccw=72,legend_rotates_bar_about_joint=72,rotation_preserves_visible_length=63,fixed_obstacle_blocks_rotation=3,levelup_when_all_home=20,no_levelup_unless_home=1163,frame_determines_next_off_counter=1158
    'consistent' depends on axioms: [propext]
    'faithful' depends on axioms: [propext]
    The first line is printed by the file itself: for each rule, how many recorded transitions meet its condition.

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/s5i5-20260910/_lib.py.