Lean: Foundations
-
Foundations: what an inductive type gives you
Part 1 of Lean from the Inside. Almost everything in Lean, from
NattoAndtoEq, is an inductive type, and almost every function and proof about those types ends up as a call to a single function the kernel generates: the recursor. This post works out what that means. It covers whatinductiveadds to the environment, how universes andPropconstrain the recursor, and how amatchyou write becomes a recursor call.
