The Safe Lambda Calculus (Logical Methods in Computer Science, 2009)