Formalization of Eff in Twelf