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 stand for a class of things and for things in both classes. Then , 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 then ", written , which is false only when is true and is false:
| 1 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 |
| 0 | 1 | 1 | 0 | 1 |
| 0 | 0 | 1 | 0 | 1 |
The last column is 1 in every row, so the formula is a tautology: true whatever and say. That formula is the rule modus ponens (if implies , and holds, then holds), and the table has just proved it valid by pure calculation, without knowing what and mean. A tempting fallacy fails the same test. "If then ; ; therefore " gets a 0 in the row , . 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 and 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.