← Back to Lean 4: Proofs a Computer Can Check

Capstone Project

This is the final step of the course. Build something real with what you learned, submit it, and get it graded.

What to build

Build a small Lean 4 project that proves at least six lemmas of your own: at least three about natural numbers and at least three about lists. Good starting points are facts like n + 0 = n proved by induction the long way, a closed formula for a sum you define yourself, length (xs ++ ys) = length xs + length ys, and reverse (reverse xs) = xs.

Write your own definitions where it helps, for example your own sum function or your own list reverse, and prove things about them. Keep it small and finished. Six honest lemmas that build beat thirty that end in sorry.

What to submit

Submit a public GitHub repo URL, plus a short writeup. The repo should be a Lake project with a lean-toolchain file, a lakefile, and your .lean files. The writeup should list your lemmas, say which one was hardest and why, and confirm that lake build passes with no sorry.

The grader reads your files. It does not run Lean, so it cannot see whether your project builds. Run lake build yourself before you submit, and do not leave sorry anywhere: a sorry in your code is treated as an unfinished proof.

How it is graded

An AI grader reads your repo and your writeup and scores it from 0 to 100 on five criteria. Each criterion is worth 20 points. The pass mark is 70 out of 100.

  • It is a complete Lean project. It has a lean-toolchain file, a lakefile, and .lean files, and nothing is left as sorry.
  • Lemmas about natural numbers. At least three real lemmas about Nat, with at least one proof by induction.
  • Lemmas about lists. At least three real lemmas about List, such as append, length or reverse facts.
  • Proof quality. Statements are stated clearly, proofs use the tactics from the course sensibly, and names are readable.
  • Documentation quality. The README explains what is proved, how to build it, and which Lean version it uses.

When do you get the certificate?

Your Certificate of Completion is issued only after you pass the final exam AND pass the capstone. Passing one of them is not enough. Finish both, and the certificate is yours.

Go to the final exam

Loading...