Propositional formula generation for common arithmetic operations