Karlin-Rubin theorem