Formalisation of a type checker for the simply typed lambda calculus, in Coq