The synthesis of Pseudopelletierine starts from glutardialdehyde, which reacts with methylamine and acetonedicarboxylic acid in a two-fold Mannich reaction.
This is the reaction:
I need to write the mechanism for this reaction. It needs to be under basic conditions also.
MY ANSWER SO FAR:
There will be a Mannich reaction followed by a second intramolecular Mannich reaction in order to form a ring by joining al three reagents together. Finally there will be a decarboxylation to remove the carboxylic acid groups.
This is the mechanism I have done:
Is this right? Any help would be appreciated.