A stereocontrolled synthesis of trans-allylic amines