Theorems mostly implemented

inf. loop in theorem applyTo