convert first-order formulas