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.