The Development of Lean and the Type Theoretic Foundation of Theorem Provers