Definition 1.2.13 (Height). The height function is the recursively defined map h:Π that maps a type variable to 0, and a function type στ to 1+max(h(σ),h(τ)).

We extend the height function from types to β-redexes by taking the height of its λ-abstraction.