Core logic of Slay the Spire implemented in Lean4 for formal verification proofs
A benchmark project that uses formal math proofs to verify infinite damage combos in the card game Slay the Spire, designed to test AI assistants on solving complex game logic puzzles.
How It Works
While playing Slay the Spire, you hear about a fun project that mathematically proves if your favorite card combos can loop forever and deal endless damage.
Download the project files to your computer and run a quick setup to prepare ready-to-solve puzzle challenges about game combos.
Hand the puzzles to a smart AI assistant, like Claude, and ask it to fill in the proofs showing the combos work perfectly.
Watch excitedly as the AI crafts detailed step-by-step proofs that confirm the combos loop back to the start while dealing damage every time.
Run the built-in grader to verify everything matches up, ensuring no cheating and all proofs are solid without shortcuts.
Celebrate as the results show which combos are truly infinite, even against tricky card shuffles, unlocking deeper game understanding.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.