Lean 4 · Interactive course

Learn Lean by writing code and proofs.

Work through 67 lessons covering the language, tactics, induction, verified programs and proof terms. The built-in editor shows Lean’s goals and errors as you work.

  • 21 lessons free
  • 67 exercises
  • Lean 4.30 compiler
  • Browser based no setup
01

Write

Syntax highlighting, tactic completion and Lean’s Unicode abbreviations in a focused editor.

02

Inspect

Open goals, compiler errors and output stay beside the exercise that produced them.

03

Understand

Short explanations, worked examples, hints and questions connect each proof step to the idea behind it.

Course sequence

From syntax to proof terms

Follow the order or begin with the topic you need.

  1. 01Lean foundations3 courses · FreeCore syntax, proof goals and propositional logic.
  2. 02Proof techniques3 courses · PassQuantifiers, rewriting, automation and induction.
  3. 03Programs and data3 courses · PassFunctions, recursive programs, structures and specifications.
  4. 04Proof terms1 course · PassProofs as terms and the Curry–Howard correspondence.

Beginner

No experience needed. 3 full courses are free.

01Free

Lean foundations

Meet Lean as a language, learn its core types, and build your first programs.

  • 7 lessons
  • 67 min
  • 7 checked exercises

Intermediate

The tactics and techniques used in real developments.

Advanced

See the terms behind the tactics.

Academy Pass

Keep the complete course.

Begin with 21 free lessons. A one-time purchase opens all 10 courses, removes ads and includes 500 compiler checks.

25one payment
Permanent access · No subscription

Questions

Do I need to install Lean?

No. The course editor runs in the browser and sends checks to Lean 4.30. You can install Lean locally later without changing the language or tactics you learned here.

Is this Mathlib?

The exercises use Lean’s core library so that they run fast and teach the language itself. Every tactic covered (rw, simp, omega, induction, obtain, calc …) is the same one you will use with Mathlib.

When is an exercise complete?

The proof must compile without errors or sorry. Completion is then saved to your account.

What happened to the previous Lean 4 course?

Its material now belongs to the Academy sequence. Lean foundations contains the free introduction; Functional programming patterns contains the later programming, recursion and type-class lessons.