Skip to content

Lean 4: Proofs a Machine Can Check, Chapter 8, 10 min read, updated 2026-12-06

Sets, functions and structures

Sets and functions are the language of most of mathematics. In Lean they are ordinary definitions. So the proofs look much like paper proofs, as long as you know how Lean unfolds them.

This chapter is in the full book

Enter the license key from your purchase email to read every chapter on this browser.

See editions