The rank of patterns is defined as follows: In a PL constructed for an array with k-segments, the number of constants in a pattern corresponds to its rank.
the null pattern at the top is always at rank 0.