Boolean logic before computers
布尔代数的历史
Read Boole’s class algebra and Shannon’s switching calculus without confusing their symbols, purposes or historical claims.
boolean-logic-historyAn algebra for choosing things
A library has books about mathematics and books available to borrow. Which books satisfy both descriptions? You can inspect them one by one, or describe the selection rule and combine it with other rules. The second approach turns a question about particular books into a question about operations.
George Boole’s An Investigation of the Laws of Thought appeared in 1854. Its preface, signed in Cork on November 30, 1853, says the work is more than a republication of his earlier Mathematical Analysis of Logic. His ambition included a calculus for reasoning and applications to probability. It was not an engineering manual for electronic computers. Boole, preface and chapter I
The book is public domain; the linked Project Gutenberg file is a modern typeset edition. Its digital release date should not be used as the date of Boole’s ideas. The goal of reading the original is to notice both the powerful bridge to algebra and the differences from today’s Boolean notation. Gutenberg publication record
Why selecting the same class twice changes nothing
Boole uses letters for classes, including the empty class and the universe of discourse. Applying two selections in succession gives the intersection. His can mean things that are both and . Selecting “mathematics books” twice yields the same class as selecting it once:
This is idempotence. It differs from ordinary real-number algebra, where squaring usually changes a value. Boole observes that the numbers 0 and 1 satisfy this equation and uses the correspondence to develop a symbolic calculus. Chapter II also explains why multiplying both sides of an equation by a class symbol does not license general cancellation. Boole, chapter II, pages 20–27
A concrete cancellation counterexample makes the restriction visible. Let be the books on one shelf. Let and agree on that shelf but differ elsewhere in the library. Then their intersections with are equal, but and are not equal. Knowing two classes agree inside one selected region tells us nothing about their differences outside it.
The universe also matters. If it is “books in this library,” the complement of mathematics books consists of the other books here. Change the universe to all published books and the complement changes. A complement is relative to a declared domain, not a free-standing category of everything imaginable.
Three meanings that a plus sign can hide
In chapter II, page 23, Boole introduces class addition for disjoint classes. If a book belongs to both categories, directly adding those categories violates that initial interpretation. Modern inclusive OR permits overlap. Ordinary integer addition counts twice. These are three different operations, even when a page prints + for more than one of them. Boole, chapter II, pages 23–24
Here is a modern indicator calculation, not a claim about a verbatim historical formula. Set when a book is mathematical and when it is available; otherwise use 0. Inclusive OR and exclusive OR can be written with ordinary arithmetic as
| Ordinary | Inclusive OR | XOR | ||
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 2 | 1 | 0 |
The final row is the quickest way to catch a notation error. If your “Boolean addition” returns 2 there, you have used ordinary addition without correcting for overlap. If it returns 0, you have used XOR rather than inclusive OR.
Claude Shannon’s 1938 paper A Symbolic Analysis of Relay and Switching Circuits makes a further bridge: equations can describe switching behavior and guide circuit construction. Its introductory footnote identifies it as an abstract of his MIT master’s thesis. The linked reprint has different pagination from the journal; the definitions appear on reprint pages 471–473. Shannon, introduction and fundamental definitions
There is a delightful trap in those definitions. Shannon defines hindrance as 0 for a closed circuit and 1 for an open circuit. In that convention, his sum joins circuits in series and his product joins them in parallel. A common modern classroom convention instead assigns 1 to a conducting path. Under that latter convention, series means AND and parallel means OR. Both can describe the same wiring; they encode opposite properties. Before comparing equations, ask what 1 represents. Shannon, reprint page 472
A true equation does not supply missing facts
For an original classroom example, imagine a lamp that lights when either of two parallel switches is closed. Encode “closed” as 1. Its output is . Put the switches in series and the output becomes . This assumes ideal contacts, an intact power supply and wiring, and no transient behavior. A truth table verifies the defined logical relation; it does not test a physical circuit’s contact resistance, timing or failure rate.
The distinction also matters for AI. Logic can preserve consequences of premises without establishing those premises. Suppose a rule says all items tagged “available” may be borrowed. A correct inference can still lead to an unsuccessful loan if the catalogue is stale. You must check the data, the rule’s scope and the inference separately.
Boole’s aspiration to study laws of thought should therefore be read as a historical research program. The success of class operations does not by itself establish a complete psychological theory. Similarly, Shannon’s switching correspondence does not mean Boole anticipated every feature of digital machines. The mathematical notation, electrical implementation and biological interpretation are separate contributions with separate evidence.
Translate before calculating
- A book is in both classes. Can their direct sum be interpreted using Boole’s initial disjoint-class rule? Answer: no. Split off the overlap or choose an explicitly different operation. Inclusive OR and disjoint addition must not be silently equated.
- Why can hold with ? Answer: the classes can agree within and differ outside it. Intersection can discard the evidence of their difference.
- Two switches are both closed. What is each switch’s value under Shannon’s hindrance convention, and under our conducting-path convention? Answer: 0 in the former, 1 in the latter. The physical state has not changed; its encoding has.
- A truth table matches a lamp circuit. Have we proved the hardware cannot fail? Answer: no. We have checked an ideal logical model, not the physical assumptions that make it applicable.
Follow the bridges without turning them into one invention
Read Boole’s chapter II with a small finite universe beside you. For each law, try actual subsets and ask whether the operation is defined. Then read Shannon’s definitions and translate every switch into its chosen 0/1 convention. This sequence connects symbolic reasoning to a physical design problem without treating all historical symbols as interchangeable.
The next bridge in this encyclopedia is the McCulloch–Pitts model. Its 1943 paper connects logical expressions with idealized neural activity under explicit timing and excitation assumptions. Read Turing’s computability work alongside it to separate what a circuit expresses from what an unrestricted computing procedure can decide. McCulloch and Pitts, 1943
The historical achievement is easier to appreciate once its boundaries are visible: operations on classes became a subject of calculation; a later switching calculus connected such reasoning to circuit synthesis. Neither achievement needs a story in which one person invented the entire future.
Make a prediction, then check
What hindrance value does Shannon’s1938 paper assign to a closed circuit?
Learning objectives
- Distinguish original disjoint-class addition,inclusive OR,XOR and integer addition using explicit sets.
- Translate switch states into two encodings and separately evaluate algebra,physical assumptions and historical attribution.
Prerequisites & connections
This article can be used as an entry point.
Explore related knowledge →References
- An Investigation of the Laws of Thought
George Boole · 1854 - A Symbolic Analysis of Relay and Switching Circuits — reprinted text
Claude E. Shannon · 1938 - A Logical Calculus of the Ideas Immanent in Nervous Activity
Warren S. McCulloch; Walter Pitts · 1943
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Codex · 2026-09-05 · Codex technical check: source and edition locations,full bilingual rereading,and verification of original logical and numerical examples; no independent human peer review.
- Compared bilingual tables,equations and four answers; checked cancellation counterexample,universe dependence,OR/XOR boundaries and both switch encodings.
- Group verification actually executed:101 unary inputs,4 OR/XOR and dual switch encodings,6 exact feedback sequences,60 delayed steps,512 class triples and finite regulator policies. Numerical checks validate teaching examples,not historical evidence.
Source locations checked:
- An Investigation of the Laws of Thought · Read preface signed1853-11-30,chapterI1–3 and chapterII20–27: classes,xy,x²=x,disjoint addition on23 and cancellation restriction on26; Gutenberg record distinguishes original1854 from digital issue.
- A Symbolic Analysis of Relay and Switching Circuits — reprinted text · Visually read PDF1–3,reprint471–473:1938 footnote/thesis abstract,0closed/1open hindrance,series sum,parallel product,duality and negation. Classified as reprint rather than original scan.
- A Logical Calculus of the Ideas Immanent in Nervous Activity · Previously inspected1943 original118–121; this article only links logical-expression/neural-network correspondence under explicit excitation and timing conditions.
Related topics