natural deduction metalanguage, practical foundations
type theory (dependent, intensional, observational type theory, homotopy type theory)
computational trinitarianism =
propositions as types +programs as proofs +relation type theory/category theory
Kripke–Joyal semantics is a higher order generalization of the semantic interpretation proposed initially by Beth, Grzegorczyk, and Kripke for intuitionistic predicate logic (IPL). It provides a notion of ‘local truth’ or ‘validity at a stage’ in a topos.
Since it is closely related to Paul Cohen's forcing technique in set theory, a connection that was already observed by Grzegorczyk and Kripke, it is sometimes called forcing semantics. Other terms in use for it are external semantics, cover semantics or Beth–Kripke–Joyal semantics.
By giving a semantics to formulas written in the higher-order type theory used to express ordinary mathematics in a topos, the Kripke–Joyal semantics serves as semantic interface between the internal (syntactic) description of mathematical objects using the Mitchell–Bénabou language and the external description.
Kripke–Joyal semantics provides rules and prescriptions for semantic interpretation for general toposes but these prescriptions may simplify for special classes of toposes e.g. the rules resulting for presheaf toposes over posets (when restricted to first-order formulas) correspond to the original notion of model for IPL considered by Kripke et al.
There should be a version of Kripke–Joyal semantics for homotopy type theory, as claimed here.
Let $\mathcal{E}$ be an elementary topos. We will now specify the Kripke–Joyal semantics for formulas $\varphi$ in the Mitchell–Bénabou language of $\mathcal{E}$ restricting ourselves mainly to formulas $\varphi (x)$ with one free variable $x$ of type $X$. The straightforward generalization to the case with (less or) more free variables can be found in Johnstone (1977) or Borceux (1994).
Recall that such a formula $\varphi (x)$ is interpreted by a morphism $X\overset{\varphi(x)}{\to}\Omega$ and gets an extension $\{x|\varphi(x)\}$ assigned to by the pullback
Now a global element $1\overset{x_0}{\to} X$ satisfies $\varphi(x)$ if it is contained in $\{x|\varphi(x)\}$ in the sense that the following commutes:
Kripke–Joyal semantics results from the generalization of this satisfaction relation from global elements to generalized elements $U\overset{\alpha}{\to} X$.
A generalized element $U\overset{\alpha}{\to} X$ is said to satisfy the formula $\varphi(x)$ or more suggestively, $U$ forces $\varphi$, denoted $U\models \varphi (\alpha)$, when $\alpha$ factors through $\{x|\varphi(x)\}$ i.e. there exists a map $m$ making the following commute:
This is the same as to say that $im\,\alpha\subseteq \{x|\varphi(x)\}$ as subobjects of $X$.
Whereas $\{x|\varphi(x)\}$ represents the set of elements satisfying $\varphi$ internally, the collection of global elements has in general no such representation thereby motivating the terminology ‘external semantics’.
One can now unwind the forcing relation $U\models \varphi (\alpha)$ recursively over the syntactic composition of $\varphi$. This results in a collection of semantic rules that is commonly referred to as the Kripke–Joyal semantics and permits to make contact with the original rules proposed by Kripke for intuitionistic logic in 1965.
These rules are often useful for translating step by step an object defined by a formula of the Mitchell–Bénabou language into a concrete mathematical object in the topos.
First of all, the forcing relation is monotone and local :
If $f:V\to U$ and $U\models \varphi (\alpha)$ then $V\models \varphi (\alpha\circ f)$. Conversely, if $f:V\to U$ is epic and $V\models \varphi (\alpha\circ f)$ then $U\models \varphi (\alpha)$.
The short proof can be found in MacLane–Moerdijk (1994, p.304).
Note that the proposition gives a first hint of the importance of epimorphisms or covers in this semantics, testimony of its geometric underpinning.
Let $\mathcal{E}$ be an elementary topos and $\alpha:U\to X\,$ a generalized element of $X\in\mathcal{E}$ . The forcing relation $\models$ satisfies
$U\models \varphi(\alpha)\wedge \psi(\alpha)$ iff $U\models \varphi(\alpha)$ and $U\models \psi(\alpha)\,$.
$U\models \varphi(\alpha)\vee \psi(\alpha)$ iff there exists maps $g:U_1\to U$ and $g_2:U_2\to U$ with $g_1+g_2:U_1+U_2\to U$ epic and such that $U_1\models \varphi(\alpha\circ g_1)$ and $U_2\models \psi(\alpha\circ g_2)\,$.
$U\models \varphi(\alpha)\Rightarrow \psi(\alpha)$ iff for any $g:V\to U\,$, $V\models \varphi(\alpha\circ g)$ implies $V\models\psi(\alpha\circ g)\,$.
$U\models\neg \varphi(\alpha)$ iff for all $g:V\to U\,$, $V\models \varphi(\alpha\circ g)$ implies that $V\simeq 0$.
Let $\varphi(x,y)$ be a formula with free variables x,y of type $X$ and $Y$ respectively. Then
$U\models \exists y\varphi(\alpha, y)$ iff there exists $g:V\to U$ epic and a generalized element $h:V\to Y$ such that $V\models \varphi(\alpha\circ g,h)\,$.
$U\models \forall y\varphi(\alpha, y)$ iff for every object $V$ and all pairs of generalized elements $g:V\to U$ and $h:V\to Y\,$, $V\models \varphi(\alpha\circ g,h)\,$.
For a proof see MacLane–Moerdijk (1994, pp.305f).
To workers in algebraic geometry and analysis, it may appear somewhat excessive to detour through an elaborate Mitchell–Bénabou language which in turn requires a Kripke–Joyal semantics in order to get back at the mathematical content of a specific topos. (That sometimes-recommended procedure is strictly analogous to defining a group to be the quotient of the free group generated by itself, which analogously is sometimes useful). The key clause in that semantics was presupposed in the title ‘Quantifiers and Sheaves’, but the linear case was a theorem in Godement 1958 and indeed just expresses in terms of 20th century concepts the content of Volterra’s local existence theorem. Briefly,
a) the rule of inference for existential quantification is just a symbolic expression of the universal property enjoyed by the geometric image of any map (not only in the category of sets where the axiom of choice holds, but) in any topos,
b) a figure lying in such an image comes in fact only locally from figures in the domain of the map.
Lawvere (2000, pp.717f).
For the origins in the semantics of intuitionistic logic consult
E. W. Beth, Semantic construction of intuitionistic logic, Mededel. Kon. Ned. Akad. Wetensch. Afd. letterkunde N. S. 19 no.13 (1956) pp.357–388.
A. Grzegorczyk, A philosophically plausible formal interpretation of intuitionistic logic, Indagationes Mathematicae 26 (1964) pp.596–601.
S. A. Kripke, Semantical analysis of intuitionistic logic I, pp.92–130 in Crossley, Dummett (eds.), Formal Systems and Recursive Functions, North-Holland Amsterdam 1965.
H. C. M. de Swart, An intuitionistically plausible interpretation of intuitionistic logic, JSL 42 no. 4 (1977) pp.564–578.
W. Veldman, An intuitionistic completeness theorem for intuitionistic predicate calculus, JSL 41 no. 1 (1976) pp.159–166.
A categorical-constructive take on these completeness results is in
A (non-categorical) textbook presentation of the original Kripke semantics can be found in
A more recent overview is in
The topos-theoretic generalization is usually attributed to André Joyal who observed in the early 70s that this topos semantics subsumes various notions of forcing but his work was apparently not published. An early reference is
The first section of the following sums up a 1973 talk and gives an interesting informal overview of the basics involved emphazising sites
The following texts stress the connection to Cohen and Kripke’s work
F. William Lawvere, Variable sets etendu and variable structure in topoi, Lecture notes University of Chicago 1975.
F. William Lawvere, Variable quantities and variable structures in topoi, pp.101–131 in Heller, Tierney (eds.), Algebra, Topology and Category Theory, Academic Press New York 1976.
Most textbooks on topos theory have a section on Kripke–Joyal semantics. Particularly thorough are
Francis Borceux, Handbook of Categorical Algebra vol.3, Cambridge UP 1994. (section 6.6)
Saunders MacLane, Ieke Moerdijk, Sheaves in Geometry and Logic, Springer Heidelberg 1994. (section VI.6–7)
More concise are
Peter Johnstone, Topos Theory, Academic Press New York 1977. (Reprinted by Dover Mineola 2014; pp.157–161)
Colin McLarty, Elementary Categories, Elementary Toposes, Oxford UP 1992. (chapter 18)
Freely available online are
R. Goldblatt, Topoi – The Categorical Analysis of Logic, 2nd ed. North-Holland Amsterdam 1984. (Dover reprint New York 2006; project euclid, section XIV.6)
Ieke Moerdijk, Jaap van Oosten, Topos theory, lecture notes (2007). (pdf, page 58ff)
The above Lawvere quote stems from
For a philosophical assessment and comparison to ordinary Tarski semantics see
A generalization to quantales is in
Semantics via generalized elements in categories with pullbacks is studied in