The fourth object of the present invention can be achieved by a method of reacting the above phosphonic acid ester of formula [II] with a carbonyl compound of formula [III] in the presence of a basic compound in accordance with the following reaction scheme: ##STR6## wherein R1, R2, Y, m and n are respectively the same as defined previously, and R4 is an alkyl group having 1 to 4 carbon atoms.