
The substance produce by ants is formic acid, which is the product of oxidation of "a", means 'a' should be formaldehyde. Now, formaldehyde and ketons are prepared by reductive ozonolysis of alkenes. And by oxidation in presence of strong oxidising agents alkenes give ketons and acids.
