Schubert calculus and singularity theory