rigorous method to decide whether to rename a sub-formula