Aristotle, a formal-verification system, proved that a computer-assisted Celeste Classic speedrun takes the minimum possible 2,843 frames. The game has 30 nearly independent rooms, and its movement depends on frame-by-frame inputs. A simple bound on how quickly Madeline can climb established only that a complete run must take roughly 1,800 frames, far short of proving the record optimal. To rule out every faster route, Aristotle translated the game into Lean and combined techniques that shrink the search: merging similar subpixel positions, eliminating states dominated by others, using room-specific tables, and applying climb bounds repeatedly. In the hardest room, this reduced an otherwise astronomical search to about 224 million states. Aristotle also set a PICO-8 record in a separate category and proved that time optimal.
The proof concerns a C port of the game, not the original cartridge; a separate verification establishes that the port behaves identically to the PICO-8 console running the cartridge. That distinction matters because arithmetic differs between PICO-8’s fixed-point numbers and Celia’s default floating point. Tiny gravity and rounding differences can alter movement, ledge contact, dash resets, and whether a runner survives. The account traces one sequence where those differences produce divergent paths: one version reaches the exit, while the other hits spikes. The result demonstrates how formal verification can establish optimality across all possible inputs without testing every run - and how exact implementation details can shape what a speedrun record means.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.