Rewrite type theory section