Mechanism of the Corey-Chaykovsky Reaction. The ylides are generated in situ by the deprotonation of sulfonium halides with strong bases.. Dimethyloxosulfonium methylide – known as the Corey-Chaykovsky Reagent – is a valuable alternative to dimethylsulfonium methylide and can be generated from trimethylsulfoxonium iodide.
https://www.organic-chemistry.org/namedreactions/corey-chaykovsky-reaction.shtm