1200 × 1500
Before the Punched Card: How Powerful Was Babbage’s Engine?
Before punched cards, Babbage’s engine was to be ordered by drums that ran one fixed cycle and started again. Could a drum that never makes a choice still be a general machine? Proved in Lean for an idealised model with unbounded numbers and store: yes, if repetition counts come from the store and a failed operation ends the run (Model D, which no page states), with Minsky’s theorem cited — not a claim that Babbage designed a universal computer.
ABOUT THIS NOTE +
A note about the drums that were to order Charles Babbage’s Analytical Engine in 1835 and 1836, before he proposed Jacquard’s cards on 30 June 1836, and about the card sets and the lever he worked out a month later. The pages read give the great drum of 1835 a fixed cycle that “backs and recommences”; nothing in the pages of February to June 1836 changes it for the store and mill drums; and the first cards run that cycle again. In models built only from those pages, drums and first cards order the same programs, a theorem in Lean that follows from the reading. A sizing of June 1836 shows a long formula needing 800 inches of studs, and what is read, in low-legibility lines, as Babbage’s own answer to it: a spiral. The July 1836 sets shorten a program without adding power; the lever, read one way, makes an address depend on the pass, and is shown separated only when the whole store is the input; for fixed-column inputs none is shown. December 1837 outgrows every July 1836 schedule run for a number of passes fixed by the deck, with normal halting, but this is proved only with the input on the wheels; with empty wheels these bounds do not separate. The central result is conditional, and about an idealised model with unbounded numbers and store: with repetition counts read from the store (one historically ambiguous reading of a page of 7 March 1836, rule 3a), a failed operation read as the end of the run (Model D, a project assumption no page states), and, for universality, Minsky’s theorem (cited), a drum of March 1836 is ended by a trap exactly when a given counter machine halts, with its counters in the store (drum_trap_iff). It is a theorem about an idealised reconstruction, not a claim that Babbage designed or saw a universal computer in March 1836. The manuscript readings are an AI agent’s.
01 / THE GREAT DRUM, 1835
Before the cards, there was a drum.
In July 1835 Babbage wrote down how it moved. Each time an operation finished, the great drum stepped on to the next. After the last operation it “backs and recommences”: back to the start, and round again.
So a program was a fixed sequence of steps, set by hand, one step per operation.
What the pages do not show matters as much. They give no repeating of part of the sequence, no counted repetition, and no point where a result decides what the drum does next.
Not finding them is not the same as their being absent. But on the pages read, the drum simply goes round.
Scribbling Book Vol. XIII, Science Museum Group ↗The first survey of the drums ↗What the sources say, finding by finding ↗
02 / STORE AND MILL DRUMS, FEBRUARY – JUNE 1836
In February 1836 Babbage gave up the great drum for small drums governed by one great wheel: drums for the store, where numbers were kept, and for the mill, where the arithmetic was done.
Nothing in these pages changes what the drums order. Results already steered the mill’s own barrels inside an operation, by November–December 1835, but no drum is found to respond to one.
In March 1836 a drum step can call for an operation repeated a given number of times. The page does not say where the number comes from, and much of this note turns on it.
No general plan of the engine read shows a drum, which is weak evidence.
Scribbling Book Vol. II, Science Museum Group ↗The second survey (Vol II pp 64–67, 120–121, 146–148) ↗The third survey (Vol II pp 68–145) ↗The general arrangements, July 1835 – March 1836 ↗
03 / 800 INCHES OF STUDS
If a program is made of studs on a drum, how big does the drum get?
In June 1836 Babbage worked it out. One inch a stud, 200 operations on each of four variables: 800 inches of studs. Laid round a single circle, that is a drum about 255 inches across.
On a part of the page that is hard to read, he seems to wind the track into a spiral instead, on drums 4 inches across, and to end by making them 30 inches high.
The point is plain. When a program is stored as mechanism, the program sets the size of the part that holds it.
Three or four weeks later, he proposed cards. Babbage draws no conclusion on the page; linking the size to the change is this note’s interpretation.
Vol II p 129, read with its uncertain words marked ↗The sizing as an illustration, not a cause (§5a) ↗
04 / THE CHANGE TO CARDS, AND THE SAME PROGRAM ON TWO MEDIA
At the end of June 1836 Babbage suggested Jacquard’s loom, which wove from chains of punched cards, “as a substitute for the Drums”. Every gain he lists is of convenience, extent or keeping; no loss is stated.
Did cards change what the engine could do? Ten days later he has them direct a series of operations and start again from the first: the drum’s cycle.
Built only from these pages, the drums and the first cards order the same programs, step for step, with one extra card per cycle to go back to the first.
The Lean proof makes that general for the two models. It follows from the reading; it is not an independent historical finding.
Vol II p 146 and the history, image 86 ↗The drum machine (src/drum.rs) ↗The proof (formal/Babbage/Drum.lean) ↗
05 / ENTRIES DATED A YEAR LATE
To put the events in order, there are history sheets for 1835 and 1836, whose author is not established. Can they be trusted?
Checked against dated pages, several entries are a year out. Six entries on the 1836 sheet are events of 1835, and three on the 1835 sheet are events of 1836. A ringed note signed “C.B.” points the same way: “This must be 1835”.
One consequence: the plan of one barrel for each variable belongs to July 1835, under the great drum.
One entry can only be placed by reading another sheet in full. No date the models rely on changes.
The dating check ↗The corrections, with evidence and certainty (§5b) ↗
06 / JULY 1836: ONCE, TWICE, THREE TIMES
A month after the cards, Babbage was working out how to run the same cards more than once. On 31 July, on a sheet headed No 5, one pass of nine cards is written once, twice and three times.
Page 178 gives a lever that moves along one hole each time the cards go back, and two sets of cards that “would do the same thing”. Both are built here.
Run for a fixed number of passes, the sets shorten a program without adding power.
The lever makes the column a card reads depend on how far the run has got — a forerunner of indexed addressing, stepping through memory by position. It reads an ever wider window of the store, which no fixed deck does for every store, but only with the whole store as the input.
Which Babbage meant is unresolved.
The card sets of 30–31 July 1836 ↗F/061x–F/063x, read ↗The two configurations and their rules ↗Program size and the three questions (§3.2) ↗The proofs (formal/Babbage/CardSets.lean) ↗The lever with fixed-column inputs (formal/Babbage/LeverFixed.lean) ↗
07 / GENERAL, UNDER FOUR CONDITIONS
Can a drum that never makes a choice still be a general machine?
A drum of March 1836 can be made to compute anything a counter machine can — an idealised computer that only counts up, counts down and tests for zero — under three conditions. Repetition counts are read from the store, one reading of an ambiguous page. A failed operation ends the run: Model D, a project assumption no page states. And numbers, store and drum are unbounded.
With Minsky’s theorem, cited, that makes it universal.
Without Model D the drum never ends of itself. With counts from number cards the question is open.
It is not a claim that Babbage designed, or saw, a universal computer in March 1836.
The theorem and its assumptions (formal/Babbage/DrumTrap.lean) ↗The counter-machine translation (src/minsky.rs) ↗Rule 3a, and why it is open ↗
08 / HOW A RUN ENDS
That raises a question that sounds obvious: what counts as the end of a run?
This note keeps five kinds of ending apart, from passing the last card, which a drum never does, to the model simply stopping watching, which is not a mechanism at all. The figure above sets them side by side.
How Babbage’s own runs stopped has not been found.
Endings, in three kinds (§5) ↗drum_never_halts, cards_not_halts (formal/Babbage/Drum.lean) ↗
09 / DECEMBER 1837, AND WHERE THE INPUT STANDS
December 1837 adds wheels that count how often the cards go back to the first.
Does it compute more than the July 1836 schedules, run for a fixed number of passes, with normal halting? It depends on where the input n stands at the start.
With n in the store and on the wheels, on both sides of the comparison, it pulls ahead: 2ⁿ with counts from number cards, and a tower of 2s n high with counts from the store (the lever not covered).
With n in the store alone, these bounds do not separate it; with counts from number cards it cannot give 2ⁿ.
Switch the conventions above to see each result and its theorem.
Fixed schedules against December 1837 (§3.6) ↗The proofs (formal/Babbage/Straight.lean) ↗tower_halts (formal/Babbage/Tower.lean) ↗lever_no_two_pow (formal/Babbage/LeverFixed.lean) ↗
10 / NOT ONE QUESTION BUT SEVERAL
So was the engine universal? That is the wrong single question.
The dated designs differ in several independent ways, from how a program is stored to how a run ends. The table below takes them one at a time.
Under the conditional theorem, with all four of its conditions, it is argued, not proved, that no later design computes a function of fixed-width inputs the drums cannot. On that reading, what the later developments add is size, convenience, uniform addressing, and growth under other conventions.
The argument rests on the theorem, on Minsky’s theorem, and on the later designs being simulable by a counter machine, which is not formalised. Under the other readings the designs fall in different classes, and some comparisons are open.
The separations, summarised (§3.5) ↗The dated card configurations, 1836–1843 ↗
11 / BROMLEY’S SUPER BARRELS
This story has been told before. In 1990 Allan Bromley wrote that “super” barrels directed the engine, that they included looping and branching, and that in mid-1836 they were replaced by Jacquard cards.
If his super barrels are the drums as a system, which is a working assumption, the first and last of those fit the pages.
The looping and branching do not. On the pages read, they are found only in the mill’s barrels, not at drum level.
Bromley cites no sheet, so his account is not shown wrong. His reading stays open.
12 / HOW IT WAS CHECKED
Every theorem named here is in Lean 4 core only (the project’s lake-manifest lists no packages), and no proof is left unfinished.
The theorems deck_drum37, drum37_count_from_store, drum37_never_halts, the theorems of Drum.lean and CardSets.lean, lever_in_1836, empty37_le_pow, empty37_le_tw, dbl_halts and tower_halts use only the standard axioms propext and Quot.sound. Classical.choice also enters drum_trap_iff, through cards_to_dtrap, and the whole-number separation theorems of Straight.lean and LeverFixed.lean.
The Rust machines run the decks in the repository’s tests: the drum decks under every medium, No 5 by sets and by lever against the rows of the sheet, and the unrolled decks under the drums and the first cards. The Lean models are not proved to be the Rust machines.
Every run on this page is produced by the Rust code and shipped as data. The page computes no run; only the p 129 sizing figure does arithmetic in the page. A test re-runs the drum traces with a small interpreter of its own.
The manuscript readings, and every quotation of Babbage here, are an AI agent’s readings of the Science Museum Group’s images, with the decisive passages compared in a second AI reading.
The sources, the machines, the decks and the proofs are in the repository. Every run on this page can be stepped through above.
FOLLOW THIS IDEA — Source: the machines, the decks, the Lean proofs →FOLLOW THIS IDEA — The drums: sources, readings, model, proofs →FOLLOW THIS IDEA — The card sets and the lever of July 1836 →FOLLOW THIS IDEA — Prior work, and what is not claimed (C8) →FOLLOW THIS IDEA — Every run on this page, as data →FOLLOW THIS IDEA — The earlier note: where the 1836 count comes from →
WHAT THIS DOES NOT SHOW
- That Babbage designed, or saw, a universal computer in March 1836. drum_trap_iff is about an idealised model, and needs the store reading of rule 3a, Model D (which no page states), unbounded numbers and store, and Minsky’s theorem (cited). Without Model D the drum never ends; with counts from number cards the question is open.
- That the drums and the cards were historically equivalent. Their models are the same because the pages read describe the same cycle; a drum ability on a page not read, or in a drawing not found, would be outside both. Bromley’s looping and branching at drum level are unfound, not refuted.
- That the size of the drums caused the change to cards. Babbage’s sizing on p 129 ends, on a low-legibility reading, in a spiral and draws no conclusion; the link is an interpretation.
- Which of the sets, the lever or the barrel Babbage meant, or which of the two 29 July sheets came first. The lever is shown separated only when the whole store is the input; for fixed-column inputs none is shown. The December 1837 separations are proved only with the input on the wheels; with empty wheels these bounds do not separate.
- Historical priority. Unrolling, locality, growth bounds of the Meyer–Ritchie kind and Rojas’s trap are standard techniques; their application to these dated designs was not located in the literature read, which is not proof that it is new. Bromley 1987 and his 1980 reports were not read.
- That the readings are final. They are an AI agent’s, from the Science Museum Group’s images.
Say which page, which reading, and which ending. The answer changes with each.
OPEN
Were the March 1836 drums universal without Model D, or with repetition counts from number cards only?
Still open here: universality of drums with number-card counts under Model D; the lever’s endless tables from fixed-column inputs against a drum’s; whether the sets, the lever or the barrel was meant; the N/003 April entry, which needs A/033; an elevation of the engine, or a drawing of a drum, if one exists; and whether a person reading the manuscripts agrees with the readings this rests on.
PUBLICATION HISTORY
Each version preserves its manuscript, claims and source references. Research status is recorded separately from publication.
- V1.0 · 2026-11-29 ↗
First edition after an independent fact-check and a formal-reference audit against analytical-engine aec7f6c: conditional universality of the March 1836 drum model with its four conditions wherever summarised; the 2↑↑n separation re-proved with n in v0 and on the wheels for both sides and independently reviewed, the earlier form kept as an input-access result; three input conventions kept apart; p 178's three ways; No 5's fourth group cut off; interactive panels replay repository-generated traces OPEN
- V1.1 · 2026-11-30 ↗
Visual re-edit, no change of result: every chapter opens with Babbage's page (crops of the Science Museum Group's scans, read by an AI agent, unchecked), the question it raises and something to try — the great drum turning through a repository run, the p 129 sizing to change, the five endings, where the input stands, the N/003 entries moved a year, No 5's card counts — then a shorter account and RECORD, MODEL, PROOF and OPEN strips that carry every condition of 1.0; independently fact-checked (19 findings applied) OPEN
- V1.2 · 2026-12-02 ↗
Rewritten for readability with no change of result: each act now opens with a question or observation and reads as a short narrative, with technical terms explained on first use; dates, quotations, theorem names and qualifications stay in the strips and sources. A repeated disclaimer about review of the readings is removed; the readings are still attributed to an AI agent OPEN
SOURCES & PROVENANCE
- C. Babbage, Scribbling Book Vol. XIII (BAB/S/1/13), pp 138–141 (23–24 July 1835), and the history of the engine, images 86–90, the Babbage Papers, Science Museum Group ↗
The great drum; “backs and recommences”; the gains of cards. Read in sources/notes/super-barrels-1834-1836.md and super-barrels-2-1835-1836.md.
- C. Babbage, Scribbling Book Vol. II (BAB/S/1/02, 1835–1837), pp 5, 65, 120, 128–129, 146–150, 178–179, the Babbage Papers, Science Museum Group ↗
The drums of 1836, the sizing of p 129, the cards, the lever and the sets. Read in the three surveys and sources/notes/card-sets-july-1836.md.
- C. Babbage, notations BAB/F/061x (26 July 1836), F/062x (marked “1”, read as No 1) and F/063x (29 July 1836), F/064x “No 5” (31 July 1836), the Babbage Papers, Science Museum Group
Read in sources/notes/f061-063-july-1836.md and card-sets-july-1836.md. That F/064x is the “No 5 Not.n” of p 178 is this project’s identification.
- C. Babbage, history sheets BAB/N/002 and N/003, and the general arrangements A/018–A/020, A/026, A/027, the Babbage Papers, Science Museum Group
Read in sources/notes/n003-dating-check.md and general-arrangements-drums-1835-1836.md.
- A. G. Bromley, “Difference and Analytical Engines”, in W. Aspray (ed.), Computing Before Computers, 1990, p 76
The “super barrels”. Bromley 1987 and his 1980 reports were not read.
- M. L. Minsky, Computation: Finite and Infinite Machines, Prentice-Hall, 1967
Counter machines are universal. Cited, not formalised.
- R. Rojas, “How to make Zuse’s Z3 a universal computer”, IEEE Annals of the History of Computing 20(3), 1998, pp 51–54 ↗
The technique: one loop of arithmetic ended by an operation the machine cannot do.
- chrishayuk/analytical-engine, commit aec7f6c ↗
src/drum.rs, src/cardsets.rs, src/minsky.rs, control/drum/, control/cardsets/, formal/Babbage/ (Drum, DrumTrap, CardSets, Straight, LeverFixed, Tower, Trap), docs/super-barrels.md, docs/card-sets-1836.md, docs/priority-register.md (C8).
AUTHOR / Chris Hay · VERSION / 1.2
PUBLISHED 29 NOV 2026 · REVISED 2 DEC 2026 · VERSION 1.2
CITECITE THIS
Research note · 1.2
Hay, C. (2026). Before the Punched Card: How Powerful Was Babbage’s Engine? (Version 1.2). Chris Hay. https://chrishayuk.com/records/N-BABBAGE-DRUMS/1.2
FOLLOW THE WORK
New notebook entries and recorded work, as they appear. Point a feed reader — or an agent of your own — at an address below. No account, no email address, nothing for this site to keep.
The notebook
New ideas, experiments and essays, as they are recorded. Includes labelled working drafts.
OPEN FEEDhttps://chrishayuk.com/notebook/feed.xmlThe record
Everything published to the Chris Hay record.
OPEN FEEDhttps://chrishayuk.com/record/feed.xml
FOR PROGRAMS · follow.json · JSON Feed