An Automated Approach to Theoretical Analysis of Difficult Problems