The use of aldehydes and ketones in the acetylacetic or malonic synthesis allows obtaining ketones or a,b -unsaturated acids.
Stage 1. Formation of the ketoester enolate
Step 2. Nucleophilic attack of the ketoester enolate on the carbonyl
Stage 3. Hydrolysis of the ester
Stage 4. Decarboxylation