Handbook of automated reasoning