# Type Theory

# TYPE THEORY

Type theory, in one sense, is the view that some category of abstract entities—sets, in the simplest example, but there are analogous views of properties, relations, concepts, and functions—come in a hierarchy of levels, with an entity of one level applying to (having as members, or having as instances, or…) entities only of a lower level. Such a view gives an intuitively comprehensible picture of the universe of abstracta and provides a principled way of avoiding Bertrand Arthur William Russell's Paradox and its analogues. In a second sense, the term refers to any of a wide range of formal axiomatic systems embodying some form of the view. The present entry gives a short history of the view and a brief survey of the systems.

The systems are generally formulated in *many-sorted* quantificational logic, with a separate alphabet of quantified variables ranging over each type of entity. Axiomatically, they incorporate the rules of propositional logic (usually though not always classical) and of quantifier logic, the latter reduplicated for each alphabet of variables. Beyond this the most important axioms postulate the existence entities of the various types. For versions of Simple Type Theory, these are typically unrestricted comprehension principles: For any type, *t*, there is a set (or property, or …) of a higher type containing as members (or having as instances, or …) all the entities of type *t* satisfying an arbitrarily chosen formula of the language. For versions of Ramified Type Theory, this is restricted: Only such entities are postulated as can have their membership (or …) specified by formulas in which certain sorts of variables do not occur. References are given below to works in which precise formulations can be found; Alonzo Church is particularly helpful in this matter.

Type theory as a way of avoiding the set-theoretic paradoxes is one of Russell's great contributions to the study of the foundations of mathematics, but the idea of a hierarchy with sets (or set-like entities …) coming in levels is a bit older. Schroeder had presented a version of it, and Gödel Frege had based his foundational system on it. For Frege, the hierarchy of entities reflected the hierarchy of grammatical categories in an (idealized) language. At the bottom there were *objects*, the referents of singular terms. Predicates (either simple or complex) then stood for *concepts*, which he conceived of as so different from objects that it was an abuse of language to try to say anything of the two together (hence his avowedly nonsensical dictum about the concept horse not being a concept). Linguistic constructions with *blanks* that can be filled by simple or complex predicates—his prime examples were the first-order quantifiers "it holds of every object that it ___" and "it holds of at least one object that it ___"—he construed as a sort of second-level predicate and took to denote second-level concepts: entities as different from (first-level) concepts as they are from objects. And so (in principle; in practice he made little use of higher levels) on up. The grammar of his formal system reflected this: No term or variable for an item of one level was allowed to stand in the positions filled by terms or variables for items of other levels. Had he rested content with this machinery, his formal system would have been a version of (what later came to be called) the Simple Theory of Types and demonstrably consistent.

To carry out his project of giving a logicist foundation for arithmetic, however, he had to prove that there were infinitely many objects, and to do this, he postulated that every concept had an object—its *Werthverlauf* —as a kind of shadow. These objects functioned essentially as sets: Frege was able to define membership by saying that one object was a member of a second iff the second was the *Werthverlauf* of a concept holding of the first. Since a *Werthverlauf* could have any objects whatever—including *Werthverlaufs!* —as members, the derived set theory was untyped. Frege was able to prove in it the existence of an infinite set, and to interpret (a variant of) the Peano axioms for Arithmetic. Russell was able to derive in it his contradiction. (There is a readable account of the derivation of Arithmetic in the untyped set theory in Hatcher 1982.)

Russell was not initially attracted to Frege's linguistic hierarchy. He wanted to formulate a general metaphysical theory and to describe the differences between horses and concepts by denying of the one the very same predicates he affirmed of the other. During his period of experimentation after the discovery of the paradoxes, he toyed with and rejected versions of type theory, finally coming to it by an indirect route.

Sets (Russell said *classes* ) themselves—entities satisfying an axiom of extensionality—he was willing to give up as excess ontological baggage. A set is typically defined by giving an open formula that specifies its membership, and Russell preferred to think in terms of nonextensional entities designated by the formulas. He thought of sentences as standing for *propositions*, which he took to be complex entities built up out of the items designated by the words in a sentence in a way that paralleled the syntactic construction of the sentence. The items expressed by open formulas he called *propositional functions* : things which, when given some entity as argument, would yield the proposition that would be expressed by inserting a name of the argument in place of the free variable. Russell's Paradox, however, does not depend on the assumption of extensionality: A *naïve* theory of propositional functions is inconsistent in the same way as naïve set theory. If a consistent theory of propositional functions could be found, however, a theory of sets could be interpreted in it by contextual definition: Statements about sets would be interpreted as statements about propositional functions to which the differences between extensionally equivalent functions were irrelevant. Apparently almost immediately after seeing how to dispense with the strange entities he called *denoting concepts* —"On Denoting" eliminates them by giving a new analysis of the propositions he had thought of as containing them—he thought of what might be called a theory of *virtual* propositional functions, a theory in which, though neither classes nor propositional functions were postulated as entities, statements *apparently* referring to them could be formulated.

On this theory reference to a propositional function (say, *X is a horse* ) would be replaced by reference to a pair of entities: one of the propositions that might have been taken as a value of the function (for example, *Bucephalus is a horse* ) along with one of the component entities of that proposition (Bucephalus, in this case). The key notion was one of the *substitution* of an entity for one of the constituents of a proposition: Rather than saying that Traveler, for example, satisfies the propositional function *X is a horse*, on the new theory, we will say that the proposition obtained from *Bucephalus is a horse* by substituting Traveler for Bucephalus in it is a true one. (Note that this notion of substitution is not a syntactic one: We are substituting one flesh-and-blood horse for another in a proposition, construed as a complex but nonlinguistic entity. The developed formalization of the theory, of course, has provisions for substitution of names in the sentences expressing propositions!)

Since the place of a variable for propositional functions is taken by two variables for entities (one for a proposition, one for a *designated argument* ), and a variable for a higher-level propositional function taking first-level propositional functions will similarly be replaced by three variables and so on, this theory gives the effect of a typed theory of propositional functions: When references to and quantifications over propositional functions are replaced with terms and variables for propositions and other entities recognized by the theory in the way sketched, it will be impossible to say that a higher-level item serves as an argument for a lower! (Russell described the theory in his 1906 essay, which he withdrew before publication. Remarkably, essentially the same system was developed again, apparently independently, several decades later. For discussions of Russell's theory and his reasons for abandoning it, see Peter Hylton [1980] and Gregory Landini [1998].)

Russell took propositions and propositional functions to be the objects of cognitive attitudes and the meanings of linguistic expressions as well as the fundamental objects of mathematics. In trying to formulate a general theory of entities that could serve all these functions, he confronted not only the set-theoretic paradoxes but also those now classed as *semantic* or *intentional*, and they drove him to an even more restrictive form of type theory. This was the *Ramified Theory of Types*, first presented in Russell (1908) (a paper largely recycled in the introduction to *Principia Mathematica* two years later). On this theory there is a kind of double hierarchy. Propositional functions are classified not only by the arguments they take but also by the conceptual resources that go into their definitions: A propositional function can only have arguments of certain lower levels, but two propositional functions taking exactly the same arguments may be of different types if in formulating them (it is best, here, to think of the functions as the meanings of open formulas) one quantifies over entities of a different level.

Start with a domain of nonabstract or nonconceptual entities as a bottom level. The level of a propositional function will be at least one higher than that of its argument (or, in the case of a relational function, the highest level of its arguments). It will only have this minimum level, however, if no quantified variables are used in its formulation that range over entities of a higher level than its arguments, and the general rule is that the level of a propositional function is one greater than the highest level of its arguments or of the entities quantified over in its formulation, whichever is higher. (Propositions, since they do not take arguments, formed a single type on his earlier approaches, but the Ramified Theory divides them into a hierarchy based on the quantifications involved in them. This makes possible a quick dissolution of many semantic paradoxes: When Epimenides says that every proposition asserted by a Cretan is false, he asserts a proposition of a higher level than those he quantifies over, and so his assertion does not cover the proposition he himself has asserted.)

The Ramified Theory, though notationally complicated, has a perspicuous semantic interpretation which make its ontological commitments seem fairly innocent: Kurt Gödel, in a note added to reprintings of his 1944 essay, speaks of it as embodying a strictly nominalistic (or strictly antirealistic) kind of constructivism about abstract entities. From a mathematical point of view, it is a very weak theory: When it is supplemented by an Axiom of Infinity (stating that there are infinitely many objects of the lowest level), it suffices to derive a certain portion of elementary number theory, but only a restricted portion. In order to provide a foundation for classical mathematics, Russell added the Axioms of Reducibility. These maintained the type distinctions of the Ramified Theory (allowing Russell to appeal to them in dealing with the semantic and intentional paradoxes) but postulated the existence of enough *predicative* propositional functions (functions, that is, of the lowest possible level for their arguments) to provide a model of the mathematically stronger Simple Theory of Types, and the mathematical work of *Principia Mathematica* is then essentially conducted in the Simple Theory. (The clearest account of Ramified Type Theory and its use in analyzing the paradoxes is in Church [1976], to which sections 58 and 59 of Church [1956] can serve as an introduction.)

In the early 1920s two alternatives to the Ramified Theory were proposed. One was described in the introduction and appendices Russell wrote for the second edition of *Principia Mathematica* (1925). It was noted by Gödel in 1944, but otherwise seems to have been ignored until the 1990s. On this theory the two factors in the Ramified Theory's classification are separated. Each function has a simple type depending only on the arguments it takes, and also a ramification level determined by what entities are quantified over in its formulation. A function of higher simple type (one, that is, that can take functions as arguments) can be affirmed of any argument of the appropriate simple type, even an argument whose ramification level is higher than its own. Each quantified variable for propositional functions, however, is restricted to range only over functions of a certain ramification level. Gödel (1944) noted that this system was acceptable to the same nominalistic constructivism as Ramified Type Theory. One way of making this precise is that, as shown in A. P. Hazen and J. M. Davoren (2001), the 1925 system, like the Ramified system, can be given a semantics on which quantification over objects other than the basic, bottom-level, ones is interpreted substitutionally.

In Appendix B to the second edition of *Principia Mathematica*, Russell gave what he claimed was a derivation of the principle of mathematical induction in his new system, but the proof contains an essential error. Landini (1996) gives a correct proof of induction but uses an additional extensionality axiom that is not valid on the nominalistic semantics. The exact mathematical strength of the 1925 system, supplemented by an Axiom of Infinity, is not clear: It will not suffice for the full strength of (first-order) Peano Arithmetic, but it may yield a richer fragment of it than the Ramified system.

At about the same time, F. P. Ramsey (1925) proposed abandoning ramification altogether, giving a formulation of the Simple Theory of Types. On this view, the basic objects, or *individuals*, form one type and the types of other entities are defined exclusively by the types of arguments they can take: Properties of individuals will form one type, properties of properties of individuals another, relations between individuals and properties of individuals a third, and so on. The theory need not be extensional: It can allow distinctions between properties holding of exactly the same objects, and both Aldo Bressan (1972) and Montague (cf. Daniel Gallin 1976) developed versions based on modal logic, the first seeking applications in the formalization of physical theory and the second a variety of semantic and conceptual analyses. For mathematical purposes Ramsey assumed extensionality; on this assumption, propositional functions of a single argument amount to sets, those of more than one to *relations-in-extension*. The resulting system is described (and compared with the Ramified Theory) in sections 34–36 of W. V. Quine (1969).

Obviously, Ramsey and those who have followed him have abandoned Russell's attempt to deal with the semantic and intentional paradoxes through type distinctions. Their view was that the set-theoretic paradoxes were adequately handled by the Simple Theory of Types, and the others essentially involved other concepts—semantic or cognitive/epistemological—and were so properly dealt with by separate theories. Alfred Tarski showed that the semantic paradoxes could be avoided by invoking a doctrine of levels of language (clearly foreshadowed by Russell at the end of his introduction to Ludwig Wittgenstein's essay [1921].) Russell seems to have thought the intentional paradoxes were best handled by assimilating them to semantic paradoxes through a kind of *language of thought* idea, which he discussed in Appendix C to the second edition of *Principia Mathematica*.

The extensional Simple Theory of Types, without an axiom of infinity, was proven consistent by Gerhard Gentzen (1936) (one of the successes of Hilbert's Program!). With an axiom asserting the existence of infinitely many individuals, it becomes a usable system of set theory, strong enough to derive most of the mathematics actually used in the natural sciences. As such it was taken as *standard* by many researchers between the publication of *Principia Mathematica* and the 1930s: Gödel (1931) and Tarski (1935) both assume it as their background system. Subsequent set theorists have preferred other axiomatizations, such as Zermelo-Fraenkel set theory, but (as described in sections 37–38 of Quine [1969]), they can be seen as natural generalizations of Simple Type Theory. To get from a system like Ramsey's to one like Zermelo's, one makes five changes:

(1) abandoning relational types (reducing relations to sets by using the Wiener-Kuratowski analysis of ordered pairs),

(2) abandoning the many-sorted formal language, with its separate alphabets of variables ranging over different types of entity, in favor of a description of the whole hierarchy in a first-order language with a single sort of variable,

(3) making the hierarchy cumulative, so a set can have members of any lower level rather than being restricted to members of the immediately preceding level,

(4) allowing sets of infinitely high level, which can have members of all finite levels,

(5) reformulate the axioms to give an elegant systematization of the new framework.

The first is just a simplification, adding nothing to the system. The second would be perverse if we still, like Russell in the first decade of the twentieth century, thought of the entities in the hierarchy as the meanings of expressions in our language, but is natural if we think of them in a Platonistic way as entities independent of our thought or language. The third can be shown to be harmless, and the fourth, though a significant enrichment of the system, is natural after the third. The fifth is not trivial: The resulting systems are stronger than the Type Theory we started with, and would be even if we left out the infinite types. Conceptually, however, the generalized type-theoretic way of thinking about set theory is very satisfying. The stages of George Boolos (1971) are very reminiscent of Russellian types.

Church (1940) makes a different generalization. As Russell's *propositional function* suggests, a property can be thought of as a function mapping arguments (of appropriate type) to propositions (or, assuming extensionality, to truth values). Church assumes two basic types, of individuals and truth values, and represents properties as functions from entities of some type to truth values, and then adds types for other kinds of function: Thus, there is a type of functions from individuals to individuals, a type of functions from individuals to (functions from individuals to individuals), and so on. The formal language embodying this conception is based on a typed version of Church's *lambda calculus*, an elegant notation for the representation of recursive functions. (Montague's intensional logic, mentioned above, is essentially a modal version of Church's system.)

All the type theories mentioned so far have been based on classical logic (or, in modal extensions thereof). The considerations that motivate *intuitionistic logic* are independent of those leading to type theories (recall that Russell's Paradox works in essentially the same way in intuitionistic as in classical logic!), and variants of all of these systems based on intuitionistic logic are possible. They have received some study under the name *theory of species*. Joachim Lambek and P. J. Scott (1986) present what is essentially an intuitionistic variant of the system of Church (1940), showing that it has natural connections with mathematical *category theory*. Per Martin-Löf (1984), with greater philosophical attention to intuitionistic concerns about the meaningfulness of mathematical assertions, has developed fragments of intuitionistic type theory in a series of publications, with Martin-Löf serving as a summary of his work to that point. Since intuitionistic proofs often provide information that can be used to define algorithms, there has been considerable interest in Martin-Löf's and similar systems among computer scientists; Thompson (1991) provides an introduction to the systems and their applications. The area is one of active research by logicians, and efforts to develop more powerful and general theories have encountered difficulties, as witnessed by Thierry Coquand (1994), of a kind that would have been familiar to early twentieth-century researchers in the foundations of mathematics.

** See also ** Epistemology; Frege, Gottlob; Gödel, Kurt; Intuitionism and Intuitionistic Logic; Mathematics, Foundations of; Russell, Bertrand Arthur William.

## Bibliography

Boolos, George. "The Iterative Conception of Set." *Journal of Philosophy* 68 (1971): 215–231.

Bressan, Aldo. *A General Interpreted Modal Calculus*. New Haven: Yale University Press, 1972.

Burgess, John, and A. P. Hazen. "Predicative logic and Formal Arithmetic." *Notre Dame Journal of Formal Logic* 39 (1998): 1–17.

Church, Alonzo. "A Formulation of the Simple Theory of Types." *Journal of Symbolic Logic* 5 (1940): 65–68.

Church, Alonzo. "Axioms for Functional Calculi of Higher Order." In *Logic and Art*. Edited by Richard Rudner and Israel Scheffler. Indianapolis, IN: Bobbs Merrill, 1972.

Church, Alonzo. "Comparison of Russell's Resolution of the Semantical Antinomies with That of Tarski." *Journal of Symbolic Logic* 41 (1976): 747–760. Reproduced with revisions in *Recent Essays on Truth and the Liar Paradox*. Edited by R. L. Martin. Oxford: Clarendon Press, 1984.

Church, Alonzo. *Introduction to Mathematical Logic*. Princeton, NJ: Princeton University Press, 1956.

Church, Alonzo. "Russellian Simple Type Theory." *Proceedings and Addresses of the American Philosophical Association* 47 (1974): 21–33.

Church, Alonzo. "Schroeder's Anticipation of the Simple Theory of Types." *Erkenntnis* 10 (1976): 407–411.

Coquand, Thierry. "A New Paradox in Type Theory." In *Logic, Methodology and Philosophy of Science IX*. Edited by Dag Prawitz, Brian Skyrms, and Dag Westerstahl. Amsterdam: North-Holland, 1994.

Fitch, Frederic B. "Propositions as the Only Realities." *American Philosophical Quarterly* 8 (1971): 99–103.

Gallin, Daniel. *Intensional and Higher-order Modal Logic*. Amsterdam: North-Holland, 1976.

Gentzen, Gerhard. "Widerspruchsfreiheit d. Stufenlogik." *Mathematische Zeitschrifft* 41 (1936): 357–366. English translation in *Collected Papers of Gerhard Gentzen*. Edited by M. E. Szabo. Amsterdam: North-Holland, 1969.

Gödel, Kurt. "Russell's Mathematical Logic." In *The Philosophy of Bertrand Russel*. Edited by P. A. Schilpp. Evanston: Northwestern University, 1944.

Gödel, Kurt. "Über formal unentscheidbare Sätze der *Principia Mathematica* und verwandter Systeme I." *Monatshefte für Mathematik und Physik* 38 (1931): 173–198.

Hatcher, William S. *The logical Foundations of Mathematics*. New York: Pergamon Press, 1982.

Hazen, A. P., and J. M. Davoren. "Russell's 1925 Logic." *Australasian Journal of Philosophy* 78 (2001): 534–556.

Hylton, Peter. "Russell's Substitutional Theory." *Synthese* 45 (1980): 1–31.

Lambek, Joachim, and P. J. Scott. *Introduction to Higher Order Categorical Logic*. Cambridge, U.K.: Cambridge University Press, 1986.

Landini, Gregory. "The Definability of the Set of Natural Numbers in the 1925 *Principia Mathematica*." *Journal of Philosophical Logic* 25 (1996): 597–615.

Landini, Gregory. *Russell's Hidden Substitutional Theory*. New York: Oxford University Press, 1998.

Linsky, Bernard. *Russell's Metaphysical Logic*. Stanford, CT: CSLI, 1999.

Martin-Löf, Per. *Intuitionistic Type Theory*. Naples: Bibliopolis, 1984.

Pelham, Judy, and Alasdair Urquhart. "Russellian Propositions." In *Logic, Methodology and Philosophy of Science IX*. Edited by Dag Prawitz, Brian Skyrms, and Dag Westerstahl. Amsterdam: North-Holland, 1994.

Quine, W. V. *Set Theory and its Logic*. Cambridge, MA: Harvard University Press, 1969.

Ramsey, F. P. "The Foundations of Mathematics." *Proceedings of the London Mathematical Society* 25 (1925): 338–384.

Russell, B. A. W. "Mathematical Logic as Based on the Theory of Types." *American Journal of Mathematics* 30 (1908): 222–262.

Russell, B. A. W. "On the Substitutional Theory of Classes and Relations."(Originally written 1906 but withdrawn from publication.) In *Essays in Analysis*. Edited by D. Lackey. London: Allen & Unwin, 1973.

Sambin, Giovanni, and Jan Smith. *Twenty-Five Years of Constructive Type Theory*. Oxford: Oxford University Press, 1998.

Tarski, Alfred. "Der Wahrheitsbegriff in den formalisierten Sprachen." *Studia Philosophica* 1 (1935): 261–405.

Thompson, Simon. *Type Theory and Functional Programming*. Wokingham, U.K.: Addison-Wesley, 1991.

Whitehead, Alfred North and Bertrand Russell. *Principia Mathematica*. Cambridge, U.K.: Cambridge University Press: 1910. Revised edition 1925.

Wittgenstein, Ludwig. "Logisch-Philosophische Abhandlung." *Annalen der Naturphilosophie* 14 (1921): 185–262. Reprinted in book form with facing English translation as *Tractatus-Logico Philosophicus*.

*Allen P. Hazen (2005)*

#### More From encyclopedia.com

#### You Might Also Like

#### NEARBY TERMS

**Type Theory**