Automated theorem proving for dependent typed theories via a translation to higher-order logic