Documentation

PfsProgs25.Unit04.ShortAnswer

Inductive Types #

The main type construction in Lean is the inductive type. We will see how to define inductive types and how to define functions by recursion on these types.

We have already seen one special case of inductive types: structures. We will now see two other special cases before the general case. Thus, we see:

inductive ShortAnswer :
Instances For
    Equations
    Equations
    Instances For