Skip to content
LeanLearn

Cube Quest

A game for learning Lean, played on a 3×3×3 cube. Each world turns one step of formal work into something you do with your own hands: specify, formalize, mechanize, compute, solve, prove.

Open the cube sandbox

Human intuition
(practical algorithms)
The algebraic engine
(group theory)
Machine search
(computational solvers)

43,252,003,274,489,856,000 ≈ 4.33 × 10¹⁹ reachable positions

  1. World 1SpecifyOpen
  2. World 2Formalize🔒 Finish world 1 first
  3. World 3Mechanize🔒 Finish world 2 first
  4. World 4Compute🔒 Finish world 3 first
  5. World 5SolveSolve scrambles stage by stage: cross, F2L, OLL, PLL. Each stage's goal is a Lean predicate.Coming next
  6. World 6ProveCollect algorithm cards by proving what each algorithm does.Coming next
  7. World 7Group theoryThe boss: prove that a single twisted corner can never be solved.Coming next

The solving funnel

Each stage shrinks the set of states the cube can still be in, until only the solved cube {e} is left.

  1. G0every state
  2. G1cross
  3. G2first two layers (F2L)
  4. G3last layer oriented (OLL)
  5. G4last layer permuted (PLL)
  6. {e}solved