Theorem 19.24 (Exact depth-threshold profiles). Let Dk≥r be the balanced words over k bracket types whose stack height reaches at least r≥1. Then qk,r≥(N)=1+h=0∑Nkh+h=max(0,2r−N)∑r−1kh,ak,r≥(N)=max(2r,N). For the complementary balanced language Dk<r that stays below r, qk,r<(N)=1+h=0∑min(N,r−1)kh,ak,r<(N)=max(1,min(N,r−1)). The formulas remain unchanged when neutral letters are added.