__NOTOC__
Categorical logic is the branch of
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
in which tools and concepts from
category theory
Category theory is a general theory of mathematical structures and their relations. It was introduced by Samuel Eilenberg and Saunders Mac Lane in the middle of the 20th century in their foundational work on algebraic topology. Category theory ...
are applied to the study of
mathematical logic
Mathematical logic is the study of Logic#Formal logic, formal logic within mathematics. Major subareas include model theory, proof theory, set theory, and recursion theory (also known as computability theory). Research in mathematical logic com ...
. It is also notable for its connections to
theoretical computer science
Theoretical computer science is a subfield of computer science and mathematics that focuses on the Abstraction, abstract and mathematical foundations of computation.
It is difficult to circumscribe the theoretical areas precisely. The Associati ...
.
In broad terms, categorical logic represents both syntax and semantics by a
category
Category, plural categories, may refer to:
General uses
*Classification, the general act of allocating things to classes/categories Philosophy
* Category of being
* ''Categories'' (Aristotle)
* Category (Kant)
* Categories (Peirce)
* Category ( ...
, and an
interpretation by a
functor
In mathematics, specifically category theory, a functor is a Map (mathematics), mapping between Category (mathematics), categories. Functors were first considered in algebraic topology, where algebraic objects (such as the fundamental group) ar ...
. The categorical framework provides a rich conceptual background for logical and
type-theoretic constructions. The subject has been recognisable in these terms since around 1970.
Overview
There are three important themes in the categorical approach to logic:
;Categorical semantics: Categorical logic introduces the notion of ''structure valued in a category'' C with the classical
model theoretic notion of a structure appearing in the particular case where C is the
category of sets and functions. This notion has proven useful when the
set-theoretic notion of a model lacks generality and/or is inconvenient.
R.A.G. Seely's modeling of various
impredicative theories, such as
System F
System F (also polymorphic lambda calculus or second-order lambda calculus) is a typed lambda calculus that introduces, to simply typed lambda calculus, a mechanism of universal quantification over types. System F formalizes parametric polymorph ...
, is an example of the usefulness of categorical semantics.
:It was found that the
connectives of pre-categorical logic were more clearly understood using the concept of
adjoint functor, and that the
quantifiers were also best understood using adjoint functors.
;Internal languages: This can be seen as a formalization and generalization of proof by
diagram chasing
350px, The commutative diagram used in the proof of the five lemma
In mathematics, and especially in category theory, a commutative diagram is a diagram such that all directed paths in the diagram with the same start and endpoints lead to the s ...
. One defines a suitable internal language naming relevant constituents of a category, and then applies categorical semantics to turn assertions in a logic over the internal language into corresponding categorical statements. This has been most successful in the theory of
topos
In mathematics, a topos (, ; plural topoi or , or toposes) is a category that behaves like the category of sheaves of sets on a topological space (or more generally, on a site). Topoi behave much like the category of sets and possess a notio ...
es, where the internal language of a topos together with the semantics of
intuitionistic higher-order logic
In mathematics and logic, a higher-order logic (abbreviated HOL) is a form of logic that is distinguished from first-order logic by additional quantifiers and, sometimes, stronger semantics. Higher-order logics with their standard semantics are m ...
in a topos enables one to reason about the objects and morphisms of a topos as if they were sets and functions.
This has been successful in dealing with toposes that have "sets" with properties incompatible with
classical logic
Classical logic (or standard logic) or Frege–Russell logic is the intensively studied and most widely used class of deductive logic. Classical logic has had much influence on analytic philosophy.
Characteristics
Each logical system in this c ...
. A prime example is
Dana Scott
Dana Stewart Scott (born October 11, 1932) is an American logician who is the emeritus Hillman University Professor of Computer Science, Philosophy, and Mathematical Logic at Carnegie Mellon University; he is now retired and lives in Berkeley, C ...
's model of
untyped lambda calculus
In mathematical logic, the lambda calculus (also written as ''λ''-calculus) is a formal system for expressing computation based on function abstraction and application using variable binding and substitution. Untyped lambda calculus, the topic ...
in terms of objects that
retract onto their own
function space
In mathematics, a function space is a set of functions between two fixed sets. Often, the domain and/or codomain will have additional structure which is inherited by the function space. For example, the set of functions from any set into a ve ...
. Another is the
Moggi–Hyland model of
system F
System F (also polymorphic lambda calculus or second-order lambda calculus) is a typed lambda calculus that introduces, to simply typed lambda calculus, a mechanism of universal quantification over types. System F formalizes parametric polymorph ...
by an internal
full subcategory
In mathematics, specifically category theory, a subcategory of a category ''C'' is a category ''S'' whose objects are objects in ''C'' and whose morphisms are morphisms in ''C'' with the same identities and composition of morphisms. Intuitivel ...
of the
effective topos In mathematics, the effective topos introduced by captures the mathematical idea of effectivity within the category theoretical framework.
Definition Preliminaries Kleene realizability
The topos is based on the partial combinatory algebra give ...
of
Martin Hyland
(John) Martin Elliott Hyland is professor of mathematical logic at the University of Cambridge and a fellow of King's College, Cambridge. His interests include mathematical logic, category theory, and theoretical computer science.
Education
Hy ...
.
;Term model constructions: In many cases, the categorical semantics of a logic provide a basis for establishing a correspondence between
theories in the logic and instances of an appropriate kind of category. A classic example is the correspondence between theories of
βη-
equational logic over
simply typed lambda calculus
The simply typed lambda calculus (), a form
of type theory, is a typed interpretation of the lambda calculus with only one type constructor () that builds function types. It is the canonical and simplest example of a typed lambda calculus. The ...
and
Cartesian closed categories. Categories arising from theories via term model constructions can usually be characterized up to
equivalence by a suitable
universal property
In mathematics, more specifically in category theory, a universal property is a property that characterizes up to an isomorphism the result of some constructions. Thus, universal properties can be used for defining some objects independently fro ...
. This has enabled proofs of
meta-theoretical properties of some logics by means of an appropriate
categorical algebra. For instance,
Freyd gave a proof of the
disjunction and existence properties of
intuitionistic logic
Intuitionistic logic, sometimes more generally called constructive logic, refers to systems of symbolic logic that differ from the systems used for classical logic by more closely mirroring the notion of constructive proof. In particular, systems ...
this way.
These three themes are related. The categorical semantics of a logic consists in describing a category of structured categories that is related to the category of theories in that logic by an adjunction, where the two functors in the adjunction give the internal language of a structured category on the one hand, and the term model of a theory on the other.
See also
*
History of topos theory
*
Coherent topos
Notes
References
;Books
*
*
*
*
*
*
*
*
Seminal papers
*
*
*
Further reading
*
* Fairly accessible introduction, but somewhat dated. The categorical approach to higher-order logics over polymorphic and dependent types was developed largely after this book was published.
* A comprehensive monograph written by a computer scientist; it covers both first-order and higher-order logics, and also polymorphic and dependent types. The focus is on
fibred category as universal tool in categorical logic, which is necessary in dealing with polymorphic and dependent types.
* Version availabl
onlinea
John Bell's homepage.*
A preliminar
version
*
*
{{refend
Systems of formal logic
Theoretical computer science