Naïve logical relations in synthetic Tait computability [000P]
- January 19, 2023
- Jon Sterling
Logical relations are the main tool for proving positive properties of logics, type theories, and programming languages: canonicity, decidability, conservativity, computational adequacy, and more. Logical relations combine pure syntax with non-syntactic objects that are parameretized in syntax in a somewhat complex way; the sophistication of possible parameterizations makes logical relations a tool that is primarily accessible to specialists. In the spirit of Halmos’ Naïve Set Theory, we advance a new viewpoint on logical relations based on synthetic Tait computability, an internal language for categories of logical relations. In synthetic Tait computability, logical relations are manipulated as if they were sets, making the essence of many complex logical relations arguments accessible to non-specialists.
Synthesis, analysis, and the axiomatic method [000I]
- January 19, 2023
- Jon Sterling
The axiomatic method in mathematics is a tug of war between analysis and synthesis: analysis studies an object by modeling it with some substance that reliably behaves like the object in question, whereas synthesis takes stock of the competing models for an object and proceeds from an axiomatization of their essential properties. Analysis is important because it allows scientists to distinguish between empty fantasies and concepts that are grounded in reality by proceeding from the general to the particular; synthesis is no less important because it sharpens our view of the objects we study by summating our historical (analytical) experience in the form of axioms.
Example Euclid’s synthetic plane geometry [000L]
- January 19, 2023
- Jon Sterling
The canonical example of the synthetic method is the ancient Greek mathematician Euclid’s plane geometry, which starts from an axiomatization of the properties of points, lines, circles, and angles as primitive notions. For instance:
- A straight line can be drawn between any two points.
- A line segment can be extended to a straight line.
- There exists a circle with any center and radius.
- All right angles are equal to each other.
The postulates above are descriptive of many different “models” for the concept of a line: this can be seen by considering the parallel postulate, whose affirmation and negation are both consistent with the four postulates above. The revolution in modern mathematics brought on by the introduction of analytic (coordinate-based) methods under Descartes and Fermat should be understood as affirming the need for a plurality of models given that useful axiomatic systems can almost never uniquely determine their subject matter.
Analytic methods have been utterly dominant in recent mathematics: today, almost no mathematics is done purely synthetically, i.e. without reference whatsoever to a model. The modern viewpoint however accommodates (and greatly relies upon) the summation of analytic experience in the form of axioms, e.g. the axioms of set theory, the axioms of abelian categories, or the axioms of homology theories.
The relationship between internal and external language [000K]
- January 19, 2023
- Jon Sterling
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.
Well-pointedness vs. function extensionality [000M]
- January 19, 2023
- Jon Sterling
One of the consequences of passing to an intuitionistic set theory is that we must deal with distinctions that did not have significance in the classical setting, such as the failure of well-pointedness. In classical set theory, well-pointedness means that a function f : A \to B is completely determined by its behavior on global elements x\in A (i.e. functions x : 1\to A), whereas in intuitionistic set theory this need not hold (indeed, well-pointedness in this sense implies the law of the excluded middle).
In an intuitionistic setting, we must instead consider the composition of f : A \to B with arbitrary functions a : I \to A in order to fully characterize its behavior. (In some cases, the domains I of these functions that we must probe by can be drawn from a more restricted class (or even a set) of distinguished set.) In such a setting, therefore, it is convenient to think of a function a : I \to A as a generalized element of A; then we are saying that f : A \to B is determined by its behavior on not only global elements but also generalized elements.
The new significance of generalized elements in intuitionistic set theories gives rise to a distinction between two kinds of language: internal and external language. External language is just ordinary mathematics, where we are explicit about the domains of generalized elements; external language thus allows us to distinguish between a global element and a parameterized element. In contrast, internal language expresses only that which applies to arbitrary generalized elements; internal statements can always be translated mechanically to external ones by explicitly reparameterizing all variable elements as generalized elements (this is called Kripke-Joyal semantics).
For example, even though the external statement of well-pointedness may not hold, the internal one does hold because its externalization is trivial:
Internal: for any functions f,g:A\to B, if for all x:A we have fx=gx, then f=g.
Externalization: for any set I and functions f,g:I\times A \to B, if for all i:J\to I and a:J\to A we have f \circ {\mathopen {}\left \langle i,a\right \rangle \mathclose {}} = g\circ {\mathopen {}\left \langle i,a\right \rangle \mathclose {}}, then f=g.
The two statements above are nothing more than the (equivalent) internal and external formulations of the function extensionality principle, which is always true in any adequate foundation for mathematics. If the internal statement is read directly as if it were external already, it would be exactly the statement of well-pointedness, which is much stronger than function extensionality.
Category theory vs. type theory [000N]
- January 19, 2023
- Jon Sterling
Category theory is the language that is best equipped to express external statements and arguments, because category theory is explicit about the “domain of definition” of a given (generalized) element. In contrast, type theory is the language of internal mathematics; in type theory one works naïvely with “elements” x:A, and the constraints of the language ensure that everything you do is compatible with these formal elements being realized by generalized elements x:I\to A.
Many aspects of synthetic mathematics are best realized in the internal / type theoretic manner, as it is natural for many objects to vary over a “domain of definition”; for instance, in computer science, a program \Gamma \vdash M : A can be thought of as a generalized element M:\Gamma \to A, but it is often useful to speak simply of “elements of type A” without intending to make any assumptions about whether these “elements” are closed or not.
Using synthetic methods to prove analytical facts [000O]
- January 19, 2023
- Jon Sterling
Today when synthetic methods are employed, it is usually with the intention of proving something about a concrete (analytically constituted) object. For instance, synthetic differential geometry is used to prove things about actual smooth manifolds; synthetic domain theory can be used to prove things about actual \omega -cpos. Likewise, synthetic Tait computability can be used to prove things about the actual syntax of actual programming languages!