Skip to content
Field Atlas

Atlas / Mathematics / The Foundations Thread

Field · Emerged 1847 – 1930

Mathematical Logic

What makes an argument valid, and can reasoning itself be turned into calculation?

4 chapters4 min read5 turning points1 open problem

Branched from
Root of the thread
Branched into
Metamathematics + Set Theory
Figures
Aristotle, George Boole, Gottlob Frege, Charles Sanders Peirce, Bertrand Russell, Alfred North Whitehead, Kurt Gödel

In brief

Mathematical logic studies reasoning with the precision of mathematics. It gives exact languages for stating claims, exact rules for deriving one claim from others, and exact definitions of what it means for a claim to be true. With those in hand, questions about proof itself, such as what can be proved and whether proofs can be checked by machine, become mathematical questions.

For two thousand years logic meant Aristotle's syllogisms. In the nineteenth century Boole turned it into algebra and Frege into a formal language rich enough for all of mathematics. The result became the foundation of computer science, and every digital circuit is Boole's algebra built in silicon.

Key ideas

ValidityEnters c. 350 BCE

An argument is valid if its conclusion must be true whenever its premises are, whatever the premises are about. Validity is a matter of form, not content.

Boolean algebraEnters 1847 – 1854

Logic as arithmetic on two values, true and false (1 and 0), with operations AND, OR and NOT. It is the mathematics of every digital circuit.

QuantifiersEnters 1879

"For all" (∀\forall) and "there exists" (∃\exists). With them, statements like "every number has a larger prime" can be written exactly, which syllogisms could never do.

Formal systemEnters 1910 – 1913

A precise language, a set of axioms and rules of inference that can be applied mechanically. A proof is a finite sequence of steps each justified by a rule, and it can be checked without any understanding.

Completeness (of first-order logic)Enters 1929 – 1930

Gödel's 1929 theorem: every statement true in all models of some axioms can be proved from them. The rules of first-order logic miss nothing.

Chapter I

From Syllogisms to Algebra

For two thousand years, logic was Aristotle's. His Prior Analytics catalogued valid forms of argument, the syllogisms, and it remained the core of logic teaching from Athens through Baghdad to Oxford. Kant thought it complete. But it could not express the reasoning mathematicians actually used: "for every number there is a larger prime" has a structure no syllogism captures.

The change began in 1847. George Boole, a self-taught schoolmaster in Lincoln, showed that logical reasoning follows algebraic laws. Let xx stand for a class of things and x⋅yx \cdot y for things in both classes. Then x⋅x=xx \cdot x = x, and logical deduction becomes calculation with only two values, 0 and 1. It was ninety years before anyone found a practical use. Then Claude Shannon noticed that electrical switches obey exactly these laws, and every digital circuit since is Boolean algebra.

Chapter II

A Language for Mathematics

Gottlob Frege, a mathematician at Jena, wanted more: a language in which all of mathematics could be written and checked. His Begriffsschrift (1879) introduced variables and the quantifiers "for all" and "there exists". With them any mathematical statement could be written with complete precision, and any proof broken into steps a machine could verify. Charles Sanders Peirce, in America, reached quantifiers independently, and it was his notation, not Frege's, that others adopted.

Frege then tried to derive arithmetic from logic alone. In 1902, as the second volume went to press, he received a letter from Bertrand Russell showing that his system contained a contradiction. That paradox and its consequences belong to set theory.

Chapter III

A Closer Look: Checking an Argument by Calculation

Boole's idea was that logic can be computed. Treat "true" as 1 and "false" as 0, and define each connective by a table. The trickiest is "if pp then qq", written p→qp \to q, which is false only when pp is true and qq is false:

ppqqp→qp \to q(p→q)∧p(p \to q) \wedge p((p→q)∧p)→q\big((p \to q) \wedge p\big) \to q
11111
10001
01101
00101

The last column is 1 in every row, so the formula is a tautology: true whatever pp and qq say. That formula is the rule modus ponens (if pp implies qq, and pp holds, then qq holds), and the table has just proved it valid by pure calculation, without knowing what pp and qq mean. A tempting fallacy fails the same test. "If pp then qq; qq; therefore pp" gets a 0 in the row p=0p = 0, q=1q = 1. It rains, the street is wet. The street is wet, so it rained? Not if someone washed it.

The same tables built the digital world. Adding two one-bit numbers pp and qq needs a sum bit, which is 1 when exactly one of them is 1 ("exclusive or"), and a carry bit, which is 1 when both are ("and"). Wire a gate for each and you have a half adder. Chain adders together and you can add numbers of any length. Every processor is built from such circuits, which is Shannon's discovery that Boole's algebra and switching circuits are the same thing.

Truth tables cannot handle "for all" and "there exists" over infinite domains, where there are too many rows to check. That is where Frege's quantifiers, Gödel's completeness theorem and, eventually, undecidability come in.

Chapter IV

Principia and Completeness

Bertrand Russell and Alfred North Whitehead took up the project anyway. Principia Mathematica (1910–13) rebuilt mathematics from logic with a theory of "types" to block the paradoxes. Its sheer bulk made a point: all of mathematics could be formalised, at least in principle.

Did formal rules capture every logical truth? In 1929 Kurt Gödel, a 23-year-old in Vienna, proved that for first-order logic they do. Any statement true in every model of some axioms can be derived from those axioms. It seemed the formalist dream was within reach. Two years later, the same young man showed that it was not. That story is metamathematics.

Applications

Where it is used

  • Electronics

    Every digital circuit is Boolean algebra

    In his 1937 master's thesis, Claude Shannon showed that circuits of switches obey Boole's algebra, so logic could design circuits and circuits could compute logic. Every processor is built from gates that implement AND, OR and NOT.

    › Sources (1)
    • Shannon, C. E. (1938). A symbolic analysis of relay and switching circuits. Transactions of the American Institute of Electrical Engineers 57(12): 713–723.
  • Databases

    Querying data with logic

    Edgar Codd's relational model (1970) treats a database as a collection of relations and a query as a formula of first-order logic. SQL, the language of most databases in the world, descends from it.

    › Sources (1)
    • Codd, E. F. (1970). A relational model of data for large shared data banks. Communications of the ACM 13(6): 377–387.

Open problems

Where the map runs out

Open

Is the theory of the real numbers with exponentiation decidable?

Decidable if Schanuel's conjecture holds (Macintyre–Wilkie, 1996); open unconditionally as of 2026.

Alfred Tarski proved in the 1930s–40s that every statement about real numbers built from addition, multiplication and quantifiers can be decided by an algorithm. He asked whether the same holds once the exponential function exe^x is added.

Why it is hard

Deciding such statements means controlling how exponentials and polynomials can coincide, which touches deep, unproved questions in number theory about the algebraic independence of values like ee and π\pi. The best result is conditional on Schanuel's conjecture, itself far out of reach.

What resolving it unlocks

A decision procedure for a large part of real analysis, and progress on transcendental number theory.

› Sources (1)
  • Macintyre, A. & Wilkie, A. J. (1996). On the decidability of the real exponential field. In P. Odifreddi (ed.), Kreiseliana: About and Around Georg Kreisel: 441–467. A K Peters.

Further reading

  1. Doxiadis, A. & Papadimitriou, C. H. (2009). Logicomix: An Epic Search for Truth. Bloomsbury.

    A graphic novel following Russell through the foundational quest. Unexpectedly faithful to the ideas.

  2. Davis, M. (2000). The Universal Computer: The Road from Leibniz to Turing. W. W. Norton.

    How the logicians' dream of mechanised reasoning led to the computer.

  3. Enderton, H. B. (2001). A Mathematical Introduction to Logic (2nd ed.). Academic Press.

    A standard rigorous textbook.