Interactive theorem proving in Lean 4
Wheeler Hall 100, UC Berkeley
This is the homepage for M1697: Interactive theorem proving alongside computers in Lean 4, taught in Fall 2026 at UC Berkeley’s Splash program for high schoolers. If you are a prospective student, please register on the Splash at Berkeley website. The course is listed under Category: Math & Computer Science. The class is taught by me and Nicholas. I am also teaching another class on computability theory on the same day.
You can view the course notes here (under construction currently).
Syllabus
The course is on Sunday, November 15th, 10:10am–12:00pm, and intended for high schoolers in 9th–12th grade. We’ll learn about computer formalization of mathematics, and in particular, work with a programming language designed to formalize mathematical proofs called Lean. Such a system is known as an interactive theorem prover.
The expected background is someone who’s dipped their toes into fairly abstract mathematical reasoning, but the actual mathematical content of the course will be trivial, requiring nothing beyond grade school arithmetic. I would rate it at a 2/4 difficulty level, provided that the student is somewhat comfortable with logic and proof. Absolutely no programming experience is required, as Lean is known as a purely functional programming language, so experience in imperative languages like Java, C++, Python, etc is not too helpful beyond imparting a basic familiarity with code syntax and whatnot.
To learn Lean, we will be playing the Natural Number Game, an online game where the user tries to prove fundamental properties of the natural numbers and operations like addition, multiplication, etc. This may seem trite, but the nice part about it is that we don’t have to think about any new or difficult mathematics, and we can spend all our energy getting a hang of Lean.
We’ll try to get as far in the game as possible, and I expect us to reach around the boss level of Level 1 (Addition World). If time permits, we will play as far as we’d like.
Additionally, at the start of the course, I’ll briefly talk about the background and theory behind Lean, something called type theory, and a really cool result about mathematical proof and programming languages called the Curry-Howard correspondence.
At the end of the course, I’ll show off some real Lean code that verifies actual nontrivial mathematics, and also some fun computer programs written in Lean!