Skip to the content.
← Setup Table of contents Ch. 2: Functions & Structures →

Learning objectives. By the end of this chapter, read a Lean term’s type with #check, distinguish #check from #eval, write basic defs with implicit arguments, understand what makes a type dependent (via Fin/Vec), and state precisely how Π-types, Σ-types, and Prop irrelevance fit into Lean’s underlying calculus.

Sections

  1. Everything has a type
  2. def, let, implicit arguments
  3. Dependent types, with examples
  4. Terminology encountered before it is fully explained
  5. Π/Σ-types and the calculus of constructions
  6. Exercises

← Setup Table of contents Ch. 2: Functions & Structures →
Try Lean
Lean playground · v1.4.18