Translate data types and typecheck theory with Alt-Ergo