Formalize all basic loop transformations