Direct answer: A proof assistant called Aristotle certified a Celeste speedrun as optimal, meaning no faster route exists under the game's rules. The method is formal verification: encode the game's physics as mathematics, then let the machine check every case instead of sampling some.

Formal verification usually appears in serious places: flight software, chip designs, cryptographic protocols. Its newest demonstration is a video game run. The distance between those settings is smaller than it looks, because both come down to one question: can anyone prove that no better path exists at all?

The trending query Aristotle Formally Verifies Celeste Speedrun Optimality reached the Hacker News front page in late November 2026, which is why it earns a closer read here. A gaming headline is carrying a full lesson in verification technique, from state modelling to machine-checked proof. The durable part is the method, which transfers well beyond games.

What formal verification means

Formal verification encodes a system and its goal as mathematics, then hands the argument to a proof assistant such as Lean or Coq, software that checks every step of a derivation. Checked means checked: the assistant accepts a proof only when every case follows from the rules, and a single gap stops the whole file from being accepted.

That standard differs from testing. A test suite samples inputs, however thoroughly, and sampling leaves room for the case nobody wrote down. A machine-checked proof covers the whole space at once, which is why the technique gets trusted with flight software and chip designs.

A speedrun is a shortest-path problem

A game run maps cleanly onto graph search. Each state is a snapshot of position and velocity, each allowed move is an edge determined by the game's physics, and the target is the level exit. A speedrun is a shortest path through that graph, and optimality has a precise meaning: no shorter route exists in the rules as written.

Celeste suits the treatment because it is a precision platformer, a genre where movement is deterministic and inputs translate into exact velocities. Deterministic physics means the state space, though large, is enumerable, and enumerability is exactly what a proof assistant needs to work with.

  1. Model the game: define states as the position and velocity values the engine can reach.
  2. Encode the moves: each input maps to the physics the code actually implements.
  3. State the goal: a formula saying the target needs at least T seconds to reach.
  4. Prove the bound: show no sequence of legal moves beats the recorded run.
  5. Machine-check: the proof assistant verifies every case, or rejects the file.
missedyour Brain mapquiz yourselfmasteredWatch your weak spots turn green.

Drop in your PDF - it doesn't leave your device.
Every miss becomes a red node on your map.
Free plan: 21 nodes, no card, no countdown.

Open Brain - free

Why games make the friendliest demo

Speedruns live on exploited physics: movement quirks the code produces, whatever the designers intended. A formal model captures the actual behaviour of the program, quirks included, so the certified optimum covers the routes runners actually take. Deterministic game code hands verification a rare gift: model and reality line up exactly.

The stakes stay low and the audience arrives built in. A certified claim about a platformer can be watched, replayed and argued over by players, which makes it the clearest public demonstration formal verification has had in years.

startintended route: many movesglitch route: fewer moves, proven shortestgoal

The same machine checks aircraft and chips

Nothing about the technique is specific to games. Formal verification certifies flight software against its specification and checks that a chip design implements the logic it claims, at a scale no human reviewer can read line by line. The speedrun simply swaps the specification for a stopwatch.

DomainWhat gets modelledWhat gets certified
Game speedrunPhysics as states and legal movesNo faster route exists
Flight softwareControl code against its specificationThe specification always holds
Chip designLogic against its intended functionImplementation matches function

Key takeaways

  • Formal verification encodes a system and its goal as mathematics, and a proof assistant such as Lean or Coq checks every case.
  • Testing samples inputs, while a machine-checked proof covers the entire space, which is why critical software trusts it.
  • A speedrun is a shortest-path problem: states of position and velocity, moves as edges, optimality meaning no shorter legal route exists.
  • Games with deterministic, exploitable physics make ideal models, because the mathematics captures the code's actual behaviour, glitches included.
  • The identical technique certifies flight software and chip designs, with the speedrun as its most watchable demonstration.

Quick answers

What does it mean that the speedrun is optimal?
That no faster route exists under the game's rules as written, proven case by case.

What is a proof assistant?
Software such as Lean or Coq that mechanically checks every step of a mathematical argument.

Why model glitches?
The model follows the code, and the code produces the glitches, so the certified optimum includes the routes runners actually use.

Is this the same as testing?
No. Tests sample inputs, while a formal proof covers all cases the model allows.

Where else is this used?
Flight software and chip designs receive the same machine-checked treatment.

One thing to do tonight

Pick one routine in a game you play and describe it as a state machine: what counts as a state, what counts as a move, what counts as winning. Ten minutes of that exercise teaches the modelling step every formal verification starts from.