# Mechanism of ring opening of amine combined with formylation

What is the mechanism for this reaction? The tertiary amine is converted into an amide and the ring gains a double bond. I can't figure out how the C-O double bond would be formed.

• Oh, that's the easy part, but can you figure out what happens earlier? That's more interesting part. – Mithoron Feb 15 at 1:32
• Find the nucleophile. Find the electrophile. Combine. – Zhe Feb 15 at 2:24
• Hint. The amide is a formyl amide. Where does the H attached to the carbonyl come from? – Zhe Feb 15 at 2:25
• Can chloroform react with sodium hydroxide? – Waylander Feb 15 at 7:53

This reaction is very similar to Reimer-Tiemann reaction which also consists of the reagent $$CHCl_{3}$$ + $$NaOH$$. The mechanism of that reaction is believed to have dichlorocarbene intermediate too. A good point to remember is that the dichlorocarbene intermediate is often used to form cyclopropane or carbonyl groups.