Small type-checker for lambda-pi calculus (maybe, later, with side-conditions)