C([O-])([O-])=O.[K+].[K+].[C:7]([CH2:9]P(=O)(OCC)OCC)#[N:8].[CH3:18][N:19]1[CH2:24][CH2:23][C:22](=O)[CH2:21][CH2:20]1.O>C1COCC1>[CH3:18][N:19]1[CH2:24][CH2:23][C:22](=[CH:9][C:7]#[N:8])[CH2:21][CH2:20]19.36 g of K2CO3 and 8.89 ml of diethyl (cyanomethyl)phosphonate are placed in 12 ml of THF in a round-bottomed flask equipped with a magnetic stirrer, and under a stream of nitrogen, and the mixture is left to react for 15 minutes at room temperature and then refluxed for 20 minutes. The resulting mixture is allowed to cool and 6.5 ml of 1-methyl-4-piperidone are added dropwise. This mixture is refluxed for 16 hours. The reaction mixture is then poured into water and extracted with ethyl acetate. The organic phase is dried over Na2SO4, filtered and evaporated under vacuum. 6.8 g of oil are obtained.