The relationship between internal and external language [000K]
The development of axiomatic set theory followed by the discovery of sheaves and forcing has led to a new style of synthetic mathematics that differs somewhat from Euclid’s. In the new synthetic method, we start from a concrete domain concept (such as topological spaces, smooth manifolds, computational datatypes, homotopy types, etc.) and summon as if from the void a new kind of set theory in which instances of the original domain concept are treated naïvely as though they were just special sets.
The advantage of this approach is that we can completely do away with the complexities of checking the well-definedness (e.g. continuity, computability, etc.) of functions between domain objects, because these become just ordinary functions between sets. For instance, in ordinary topology we must be careful to ensure that functions are continuous; a special case of this arises in computer science, where we must constantly check that a function between domains (e.g. directed-complete partial orders, \omega -cpos, Scott domains, etc.) preserves the appropriate directed suprema, an essentially bureaucratic task whose derilication can nonetheless lead to serious mistakes. Likewise in the context of theory of computation, we likewise have to check that a function between datatypes is tracked by a Turing machine.
In contrast, when (spaces, domains, datatypes, etc.) are viewed synthetically as if they were simply sets, any function between them will do. Obviously this sounds too good to be true, so there must be something that we have to give up in return for this simplicity; indeed, we must give up in many cases the unrestricted use of classical logic, in particular the law of the excluded middle and the axiom of choice. Thus the “set theory” generated by a given domain concept must be in general an intuitionistic set theory.