Playground

Try Lean and Mathlib in Your Browser

Natural Number Game

The Natural Number Game builds up the theory of the natural numbers from the axioms in a series of puzzles, each solved by proving a theorem in Lean. It is one of several games on the Lean Game Server, with others on logic, set theory and analysis.

Lean Playground

live.lean-lang.org runs Lean with Mathlib in the browser.

Primality Certificates

The primality certificate generator takes a prime and prints a Lean proof that it is prime, checked by Mathlib's primality tactic.