What every tile does, how to read a world, and how to read every symbol on the page. The math is real Lean. This is the same thing in plain words.
Jump to , or .
About Escapable
Escapable is a puzzle game built on Lean 4, the proof assistant mathematicians use to have a computer check their proofs.
Each maze is a theorem, Escapable maze start: from the start square there is a way out. The mark in front of the name, ⊢, is how Lean writes “to prove”. Each tile is a Lean tactic, and the line of tiles is the proof. The page on the right shows the same proof the way Lean reads it. Open in Lean loads it into the official web editor, where Lean checks it for real.
The says what every tile does, how to read a world, and how to read every symbol. It is in the top bar while you play.
Under each map the game says in words what that world knows and what is left to prove. The switch below the maps shows the same lines as Lean writes them.
How the line runs
The line runs by itself every time you change it, and Run plays it again. Tiles run left to right. A tile that fails breaks the line there. When you stand in a gap in the outer wall after a tile, you are out. After a split, every tile runs in every world that is still open, and under each tile the line says where it ran.
Keys
←↑↓→place that moveRFplace a repeat or first box and step inside itTN2–9place a try, a not, or the iterate with that numberhold a box key + arrowsfill the box, and close it when you let goShift + arrowplace a repeat with that move already in itCXplace cases or contradictionEnterclose the box you are inBackspacetake back the tile before the cursorSpacewatch the line run againLshow the lines under a map in words, or as Lean writes themGopen the Guide
Or use the mouse or your finger. Drag tiles to the line, into boxes, and back. A tap on a tile in your hand puts it at the cursor. A tap on a tile on the line takes it back.
Thanks
The maze you escape by proving a theorem comes from David Renshaw’s lean4-maze, which credits an earlier maze game by Kevin Buzzard. The Natural Number Game showed that Lean could be played.
Lean source
Copy this into a Lean 4 file, or into the editor at live.lean-lang.org.