AWM
← All games‹ sk48su15 ›

sp80

Move straight and corner pieces so launched water reaches every cup with no stream left on the board.

6 levels · 10 rules · all levels replayed in Lean

Replay

The certified run that cleared every level, one action at a time.

sp80, first frame of the certified run

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

Each launch port is a pink ball attached to one dark-grey launcher cell; the field also has cups, walls, and pieces the player can move: a straight piece is red when placed, a corner piece is purple, and the selected piece is blue. Click a piece to select it, and the arrow keys move it one cell. Press the launch key to release water: the water starts from the ball and flows away from the launcher; if the front is empty it falls forward, when it lands on a piece it flows along the piece face toward both ends, when it falls into the inner corner of a corner piece it shoots out sideways in the other direction, and when the sideways flow hits a piece it climbs up and down along the piece. The level is cleared when every cup mouth has received water and no stream of water is left standing on the board (landing on a wall, on a cup wall, or pooling on a piece); water flowing out over the board edge does not count. In some levels the water flows upward. Within one level the number of launches has a limit, and if the level is still not cleared when it is reached, the game is over.

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

Model

The final model: 3 object types and 10 rules. Each rule is a Python check against every recorded step; 6 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 (boardOf 0) (L0_start : World) := …
theorem L1_winnable : Winnable (boardOf 1) (L1_start : World) := …
theorem L2_winnable : Winnable (boardOf 2) (L2_start : World) := …
theorem L3_winnable : Winnable (boardOf 3) (L3_start : World) := …
theorem L4_winnable : Winnable (boardOf 4) (L4_start : World) := …
theorem L5_winnable : Winnable (boardOf 5) (L5_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 sp80.zip 0.7 MB · 73 files

Re-run the proof

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

  1. Download sp80.zip and unpack it. The model and its theorems are in archive/sp80-20260923/formal/Game.lean. Before changing it, check that its SHA-256 is
    f60c20bafd851f899971c0a20f0264cecbf41ef1831c5ecc8b71d4ba1780474e
  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 action1_moves_color9_up=475,action2_moves_color9_down=459,action3_moves_color9_left=588,action4_moves_color9_right=543,shift_blocked_is_exactly_the_no_move_condition=2065,pieces_do_not_block_pieces=258,pieces_overlap_no_blocking=586,piece_cells_conserved_under_moves=2066,action6_click_selects_that_piece=317,action6_click_selects_piece=313,action6_click_off_piece_inert=87,action5_noop=730,action5_never_moves_pieces=289,only_the_bar_ever_moves=358,level1_ball_and_cups_frozen=853,level5_ball_cups_frozen=1015,bar_arena_is_9x12=356,level1_inventory_at_most_11=853,level0_win_bar_at_row11_col6=340,color8_only_at_budget_end=340,reset_restores_level0_layout=18,action5_handoff_swaps_width=138,zero_deflection_never_levels_up=62,action5_handoff_goes_to_nearest=270
    '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/sp80-20260923/_lib.py.