Formalize the main theorems