On simplifying truth-functional formulas