The untyped lambda calculus is inconsistent as a logic, hence you need some notion of types.
Type theory is indeed building mathematics from lambdas, though.
Type theory is indeed building mathematics from lambdas, though.
better question: any references to a type-based construction of set theory?
But to answer your question, there’s one here: https://arxiv.org/abs/1305.3835