nLab BHK interpretation

Redirected from "realizability interpretation".
Contents

Context

Type theory

natural deduction metalanguage, practical foundations

  1. type formation rule
  2. term introduction rule
  3. term elimination rule
  4. computation rule

type theory (dependent, intensional, observational type theory, homotopy type theory)

syntax object language

computational trinitarianism =
propositions as types +programs as proofs +relation type theory/category theory

logicset theory (internal logic of)category theorytype theory
propositionsetobjecttype
predicatefamily of setsdisplay morphismdependent type
proofelementgeneralized elementterm/program
cut rulecomposition of classifying morphisms / pullback of display mapssubstitution
introduction rule for implicationcounit for hom-tensor adjunctionlambda
elimination rule for implicationunit for hom-tensor adjunctionapplication
cut elimination for implicationone of the zigzag identities for hom-tensor adjunctionbeta reduction
identity elimination for implicationthe other zigzag identity for hom-tensor adjunctioneta conversion
truesingletonterminal object/(-2)-truncated objecth-level 0-type/unit type
falseempty setinitial objectempty type
proposition, truth valuesubsingletonsubterminal object/(-1)-truncated objecth-proposition, mere proposition
logical conjunctioncartesian productproductproduct type
disjunctiondisjoint union (support of)coproduct ((-1)-truncation of)sum type (bracket type of)
implicationfunction set (into subsingleton)internal hom (into subterminal object)function type (into h-proposition)
negationfunction set into empty setinternal hom into initial objectfunction type into empty type
universal quantificationindexed cartesian product (of family of subsingletons)dependent product (of family of subterminal objects)dependent product type (of family of h-propositions)
existential quantificationindexed disjoint union (support of)dependent sum ((-1)-truncation of)dependent sum type (bracket type of)
logical equivalencebijection setobject of isomorphismsequivalence type
support setsupport object/(-1)-truncationpropositional truncation/bracket type
n-image of morphism into terminal object/n-truncationn-truncation modality
equalitydiagonal function/diagonal subset/diagonal relationpath space objectidentity type/path type
completely presented setsetdiscrete object/0-truncated objecth-level 2-type/set/h-set
setset with equivalence relationinternal 0-groupoidBishop set/setoid with its pseudo-equivalence relation an actual equivalence relation
equivalence class/quotient setquotientquotient type
inductioncolimitinductive type, W-type, M-type
higher inductionhigher colimithigher inductive type
-0-truncated higher colimitquotient inductive type
coinductionlimitcoinductive type
presettype without identity types
set of truth valuessubobject classifiertype of propositions
domain of discourseuniverseobject classifiertype universe
modalityclosure operator, (idempotent) monadmodal type theory, monad (in computer science)
linear logic(symmetric, closed) monoidal categorylinear type theory/quantum computation
proof netstring diagramquantum circuit
(absence of) contraction rule(absence of) diagonalno-cloning theorem
synthetic mathematicsdomain specific embedded programming language

homotopy levels

semantics

Constructivism, Realizability, Computability

Contents

Idea

In constructive mathematics (originally: intuitionistic logic), the BHK interpretation of logical connectives (due to Kolmogorov (1932, p. 59), Troelstra (1969, §2), see the comments on attribution below) is such that the resulting proposition is regarded as true only if it is possible to construct a proof of its assertion.

For instance, to assert a logical conjunction (“and”) or a universal quantification (“for all”) is taken to mean to provide a proof of all the instances.

Dually but more notably, to assert a logical disjunction (“or”) or an existential quantification (“exists”) is taken to mean to prove one of the instances, so that there is no intuitionistic existence statement without construction of an example (the “disjunction property”, see there).

This constructive interpretation of logical truth is the crux of the rejection of the principle of excluded middle in intuitionism/constructive mathematics, for it implies that to prove P(¬P)P \vee (\not P) (which may superficially/classically seem tautologous) one must prove PP or one must prove ¬P\not P — but neither proof may be known (e.g. if PP = Riemann hypothesis).

(Here the classical mathematician is regarded as “idealistic” in their assumption that either case must hold, even if it is impossible to tell which one.)

In short this means that a proposition is regarded a true if there is an algorithm, hence a computable function, to realize its proof whence one also speaks of the realizability interpretation.

Closely related to the point of being synonymous is the paradigm of propositions as types and proofs as programs, also known as the Curry-Howard correspondence in type theory.

Indeed, the fully formal version of the BHK interpretation may be understood as being the inference rules, specifically the term introduction rules, of intuitionistic type theory (as amplified in Girard (1989, §2) and Martin-Löf (1996, Lec 3)).

In mathematical foundations

 Dependent type theory

In dependent type theory, propositions are usually defined as subsingletons, types AA in which given x:Ax:A and y:Ay:A one can construct an identification p(x,y):Id A(x,y)p(x, y):\mathrm{Id}_A(x, y). Predicates on a type AA are families of subsingletons P(x)P(x) indexed by x:Ax:A.

The BHK interpretation of predicate logic is defined using basic type theoretic operations: Given two propositions PP and QQ, purely PP or QQ is given by an element of the binary sum type

P+QP + Q

and the pure existential quantifier of a predicate P(x)P(x) on a type AA is given by an element of the dependent sum type

x:AP(x)\sum_{x:A} P(x)

Also,

Set theory

The BHK interpretation of logic is also possible to express in set theory; in particular, in the internal logic of the resulting category of sets that arises from the set theory.

Propositions in the internal logic are given by the subsingletons, which are the sets AA in which for all xx and yy in AA, x=yx = y. Given any singleton {*}\{*\}, any external proposition PP can be turned into an subsingleton via the subset

{p{*}|(p=*)P}\{p \in \{*\} \vert (p = *) \wedge P\}

This means that one can use the set-theoretic operations to define the BHK interpretation of predicate logic: Given two propositions PP and QQ, purely PP or QQ is given by an element of the binary disjoint union

{p{*}|(p=*)P}{p{*}|(p=*)Q}\{p \in \{*\} \vert (p = *) \wedge P\} \uplus \{p \in \{*\} \vert (p = *) \wedge Q\}

and the pure existential quantifier of a predicate P(x)P(x) on a set AA is given by an element of the indexed disjoint union

xA{p{*}|(p=*)P(x)}\biguplus_{x \in A} \{p \in \{*\} \vert (p = *) \wedge P(x)\}

Also,

  • false is given by the empty set, which is isomorphic to

    {p{*}|(p=*)}\{p \in \{*\} \vert (p = *) \wedge \bot\}
  • true is given by any singleton, which is isomorphic to

    {p{*}|(p=*)}\{p \in \{*\} \vert (p = *) \wedge \top\}
  • implication is given by the function set

    {p{*}|(p=*)Q} {p{*}|(p=*)P}{\{p \in \{*\} \vert (p = *) \wedge Q\}}^{\{p \in \{*\} \vert (p = *) \wedge P\} }
  • conjunction is given by the binary Cartesian product

    {p{*}|(p=*)P}×{p{*}|(p=*)Q}\{p \in \{*\} \vert (p = *) \wedge P\} \times \{p \in \{*\} \vert (p = *) \wedge Q\}
  • and the universal quantification is given by the indexed Cartesian product

    xA{p{*}|(p=*)P(x)}\prod_{x \in A} \{p \in \{*\} \vert (p = *) \wedge P(x)\}

Using this one can translate any theorems and proofs of set-level mathematics done in dependent type theory using the BHK interpretation over to set theory.

Historical versions

The BHK interpretation evolved from a rather informal statement in Kolmogorov (1932, p. 59), over a more pronounced but still informal statement due to Troelstra (1969, p. 5), to the modern inference rules in intuitionistic type theory due to Martin-Löf 75 (gentle exposition in Martin-Löf (1996, Lec 3)):


From Kolmogorov (1932, p. 59):

From Heyting (1956, p. 97):

From Troelstra (1969, p. 5):

From Troelstra (1977, p. 977):

From Troelstra & van Dalen (1988):

From Bridges (1999), p. 96:

The analogous discussion for inference rules in intuitionistic type theory is then given in Martin-Löf (1975), reviewed in Girard (1989, §2) and with more emphasis in Martin-Löf (1996, Lec 3).

Attribution

The idea of the interpretation is clearly expressed in Kolmogorov (1932, p. 59), though rather briefly and in unusual terminology: Instead of propositions, Kolmogorov speaks of Aufgaben (Deutsch for “tasks”, but here in the sense used in math classes where it means “exercises” or “mathematical problems”) in order to amplify the constructive aspects (he expands it out to Konstruktionsaufgabe, meaning “construction task”).

While Arend Heyting may have been speaking of the idea of the “proof interpretation” of propositions since the 1930s, the first recognizable statement of what later was called the BHK interpretation is given in Heyting (1956, §7.1.1).

The statement of the interpretation close to its modern formulation (but clearly of the same conceptual content as previously expressed in Kolmogorov (1932, p. 59) and Heyting (1956, §7.1.1)) was then made explicit in Troelstra (1969, §2), where it is not attributed to anyone but presented as if the author’s invention.

Later, Troelstra (1977, §2) credits the idea to “Brouwer-Heyting-Kreisel (BHK)”, not mentioning Kolmogorov — indeed Kreisel (1965) is the only reference that Troelstra (1969, §2) makes explicit use of. (While this is the origin of the term “BHK interpretation”, the adjustment/correction of its expanded version by exchanging “Kreisel” for “Kolmogorov” seems to be due to Troelstra (1990, §2.1).)

Still later, Girard (1989, §1.2.2) presents the same idea as “Heyting’s semantics” (not mentioning anyone else, nor actually citing Heyting).

More discussion of this history is in SEP: “The Development of Intuitionistic Logic”.

Notice that Brouwer never explicitly formulated any interpretation of the kind that Troelstra (1977, §2) attributes to him, and in fact remained against all formalism his entire life. (His role in this history is to provide motivation and inspiration for Heyting and Kolmogorov.) Moreover, Escardo & Xu (2015) have shown that Brouwer’s famous intuitionistic theorem “all functions \mathbb{N}^{\mathbb{N}} \to \mathbb{N} are continuous” is actually inconsistent under a literal version of this interpretation (i.e. without including propositional truncation).

Thus, perhaps it should be called the “Heyting-Kolmogorov” interpretation.

References

Original articles on intuitionism and, eventually, on intuitionistic logic:

Early monographs:

  • Arend Heyting, Intuitionism: An introduction, Studies in Logic and the Foundations of Mathematics, North-Holland (1956, 1971) [ISBN:978-0720422399]

  • Georg Kreisel, Section 2 of: Mathematical Logic, in T. Saaty et al. (ed.), Lectures on Modern Mathematics III, Wiley New York (1965) 95-195

  • Anne Sjerp Troelstra, Dirk van Dalen, Section 3.1 of: Constructivism in Mathematics – An introduction, Vol 1, Studies in Logic and the Foundations of Mathematics 121, North Holland (1988) [ISBN:9780444702661]

Early historical review:

Recognizable formulation of the so-called “BHK interretation” first appears in:

*

Kolmogorov (1932, p. 59)

(who however speaks not of propositions but of Aufgaben, i.e. “tasks”, here in the sense of: “mathematical problems”)

(who is maybe the first to speak of the “meaning of logical connectives”) and then

(where it is presented as if the author’s invention) and then recalled in

(where the same is now called the “Brouwer-Heyting-Kreisel (BHK) explanation” — not mentioning Kolmogorov).

and later recalled in the context of constructive analysis:

This lead to the formulation of intuitionistic type theory in

  • Per Martin-Löf, An intuitionistic theory of types: predicative part, in: H. E. Rose, J. C. Shepherdson (eds.), Logic Colloquium ‘73, Proceedings of the Logic Colloquium, Studies in Logic and the Foundations of Mathematics 80, Elsevier (1975) 73-118 [doi:10.1016/S0049-237X(08)71945-1, CiteSeer]

reviewed in

(where it is called Heyting semantics) and then in

  • Per Martin-Löf, Lecture 3 of: On the Meanings of the Logical Constants and the Justifications of the Logical Laws, Nordic Journal of Philosophical Logic, 1 1 (1996) 11-60 [pdf, pdf]

See also:

  • Wikipedia, BHK interpretation

  • Stanford Encyclopedia of Philosophy, The Development of Intuitionistic Logic

  • Wouter Pieter Stekelenburg, Realizability Categories, (arXiv:1301.2134).

  • Martin Escardo, Chuangjie Xu, The inconsistency of a Brouwerian continuity principle with the Curry–Howard interpretation, 13th International Conference on Typed Lambda Calculi and Applications (TLCA 2015), Leibniz International Proceedings in Informatics (LIPIcs) 38 (2015) [doi:10.4230/LIPIcs.TLCA.2015.153, pdf]

  • E. G. F. Díez, Five observations concerning the intended meaning of the intuitionistic logical constants , J. Phil. Logic 29 no. 4 (2000) pp.409–424 . (preprint)

Links to many papers on realizability and related topics may be found here.

For a comment see also

Last revised on September 26, 2024 at 19:45:42. See the history of this page for a list of all contributions to it.