Hörmander index in finite-dimensional case