Type theory arose as a codification of Brouwer's program of intuitionism, which sought to develop a foundation for mathematics based on the idea of an effective construction, which we would today call ...