A combined experimental and theoretical study of the polar [3 + 2] cycloaddition of electrophilically activated carbonyl ylides with aldehydes and imines.