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.
Published manuscript · v1.2
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 ↗
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) ↗
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.
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 ↗
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.
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 ↗
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) ↗
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) ↗
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.
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.
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.
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.
Thematic notebook / Published record
Closing thought
On the pages read, Babbage’s great drum (1835), his store and mill drums (1836) and his first cards all run a fixed cycle and recommence; in models built from those pages they order the same programs (trace_equiv, a consequence of the reading). The July 1836 card sets shorten a program without adding power; the lever is shown separated only when the whole store is the input; December 1837 outgrows July 1836 schedules of a fixed number of passes only with the input on its wheels. Conditionally, for an idealised model — repetition counts read from the store, a failed operation read as the end (Model D, a project assumption), unbounded numbers and store, and Minsky’s theorem cited — the March 1836 drums simulate any counter machine (drum_trap_iff).

![Scribbling Book Vol. XIII (BAB/S/1/13), p 141 (image 75): Top of p 141, continuing p 140: "op.n" / "Then G.t Drum move another step —" / "G.t Drum calls into action ⟨for⟩ mult.n" / "Mult.n takes [?its] [illegible ~1 word] and at end as before" / "After all op.ns are done G.t Drum / backs and recommences —". The page number 141 is just outside the crop at top right; the date "24 July" is on p 140. The ruled line and the top of the "25 July" sketch show at the foot.](/media/notebook/babbage-drums/1835-07-24-great-drum-backs-and-recommences.jpg)
![Scribbling Book Vol. XIII (BAB/S/1/13), "Sketch of the history", image 89, left page (stored upside down): Region is in stored pixels; the crop is turned 180° to read. "Thus the large drum decided ~~[?]~~ when any ⟨given⟩ / operation was to be performed and what quantities / were to be concerned in the operation — The small / drum acting on the barrels decided the nature of / the operation and which of the 4 variables to which / they belonged were to be acted upon." At the foot, cut: "~~The first~~ ⟨The⟩ sketches ⟨in this book⟩ p. 14 & 15 …". The sentence before ("…called into action by a large drum with adjustable stops which advanced a tooth at each operation") is above this crop. The history is a retrospect written in 1836 about Feb–Mar 1835.](/media/notebook/babbage-drums/1835-history-large-drum-decided-when.jpg)
![Scribbling Book Vol. II (BAB/S/1/02), p 5 (image 3): "6 Nov 1835" / "If Eng. has on barrels and Drums all possible cases / the chief evil will be the danger of error in setting / but if the Drums are formed as at p. 14 ⟨Vol 1⟩ then / by inserting steps of brass any cases may be stopped [?out] and [cut at the page edge]". Page number "5" at top right.](/media/notebook/babbage-drums/1835-11-06-danger-of-error-in-setting.jpg)



![Scribbling Book Vol. II (BAB/S/1/02), p 129 (image 69): "Suppose each stud of Store [?surface] is one / inch long" / "Sup. 200 operations on each variable" / "4 there are four vars on each [?axis]" / "800 inches", then ×7, ÷2, ÷11: "255 inches of ~~circumference~~ diameter"; ÷4: "64 [?rings] each 4 inches diam = one [?ring] 255 [?in]"; ÷4: "16 = inch [?ht] of spiral" / "Let Drums be 30 inches high". The 64 and 16 lines are uncertain readings. "June" is at the head of the page (companion crop).](/media/notebook/babbage-drums/1836-06-store-drum-sizing.jpg)
![Scribbling Book Vol. II (BAB/S/1/02), p 129 (image 69), head: Head of p 129: "June"; a ruled rectangle crossed by sloping lines, labelled "N.o 4, N.o 3, N.o 2, N.o 1" at the left (read, as an inference not stated on the page, as four variables' stud tracks wound as spirals on one drum); a small wedge sketch; "one set of studs for giving off / one — — receiving / both are short time operations"; a sketch of an arc with studs or levers; "App. to throw out sectors / of Store acting at end / of" [unfinished]. Page number "129" at top right.](/media/notebook/babbage-drums/1836-06-four-bands-and-studs.jpg)
![Scribbling Book Vol. II (BAB/S/1/02), p 146 (image 78): "30 June — Suggested Jacards loom as a substitute for / the Drums —"; at the right, the foot of a sum ("0 1 4 4" [?]).](/media/notebook/babbage-engine/1836-06-30-jacquard-loom-for-drums.jpg)
![Scribbling Book Vol. II (BAB/S/1/02), p 150 (image 80): "9 July 1836 Sunday" ⟨"[?this was] 10 July"⟩ / "This day I had for the first time a general but / very indistinct conception of the possibility of making an / engine work out algebraic developments ⟨I mean without any reference to the value of the letters⟩ / My notion is that as the cards (Jaquards) of / the Calc. engine direct a series of operations and / then recommence with the first so it might / perhaps be possible to cause the same cards to / punch others equivalent to any given number / of repetitions. But these hole[s] might perhaps" (the next line cut at the foot).](/media/notebook/babbage-drums/1836-07-10-cards-recommence-with-the-first.jpg)
![BAB/N/003, history sheet for 1836, column "Barrels, Drums & Cards" [?], row Oct: One cell of the 1836 history sheet: "Plan to prevent incompatible / Motions in Barrels 24". The month and column labels are outside this crop (row Oct, column "Barrels"). The Vol XIII history has "24 Oct 1st Plan to prevent incompatible cases in barrels" under 1835, so this entry is probably an 1835 entry copied a year late. Shown at full resolution (not enlarged).](/media/notebook/babbage-drums/1836-n003-oct-barrels-incompatible-motions.jpg)
![BAB/F/061x (catalogued under BAB/F/061), opened sheet, top left corner: A small note: "40 × 4" above, and "40 × 39 / 2 = 780 [?×] 4 = 3120". The sign before the second 4 looks like "+" or "×"; × fits the arithmetic. Shown at full resolution (not enlarged). That 3120 is a count of cards is an inference, not stated on the sheet.](/media/notebook/babbage-drums/1836-07-26-f061x-card-count.jpg)
![BAB/F/064x (catalogued under BAB/F/064), opened sheet, top right corner: "31 July 18[?3]6" / "To page 178" / "No 5"; column heads "Comp" and "Mult". Shown at full resolution (not enlarged). "To page 178" ties this notation to Vol II p 178's "see No 5 Not.n 31 July".](/media/notebook/babbage-drums/1836-07-31-no5-corner-title.jpg)
![BAB/F/064x (catalogued under BAB/F/064), opened sheet, right half: notation "No 5", group 2 (rows 1–18, two passes of 9 cards): The whole width of the No 5 notation for its second group: row numbers 1–18 at both edges; vertical strokes "|" in the narrow first column at rows 5 and 9; in the great-letter columns, "A⌐" at row 1 (G2), "0" rows 3, 4 and "Ba" row 5 (G1), "0" row 12 (G2), "0" row 13 and "C" row 14 (G1), a faint [?0] row 14 and "B" row 15 (G2); Comp "C.a" row 2, "0" row 9, "C.b" row 11, "0" row 18; small-letter columns "0"/"a" (a, rows 2, 9) and "0"/"b" (b, rows 11, 18); at right C.A "0" row 1, "C.B" row 8, "0" row 15, "C.A" row 17; the unlabelled column "B" row 7, "0" row 8, "A" row 16, "0" row 17; Comp "C.B" row 3, "0" row 7, "C.A" row 12, "0" row 16; Mult "a, B, +a, 0" rows 2–5 and "b, A, +a, 0" rows 11–14. Column heads (the hole bar, "Comp", "a b c d e", "C.A", "Mult") are above this crop.](/media/notebook/babbage-drums/1836-07-31-no5-group-2.jpg)
![Scribbling Book Vol. II (BAB/S/1/02), p 179 (image 94): "The first set passes ~~[?]~~ once and backs — / It then passes twice / —— thrice times / four" ("once" written over another word; the long rule stands for "It then passes"). Edge of a sketch of cards at the left.](/media/notebook/babbage-engine/1836-07-31-first-set-passes-once-and-backs.jpg)
![Scribbling Book Vol. II (BAB/S/1/02), p 178 (image 94): "31 July 36" / "In backing cards for Dev.n of series the first card / or rather the plate with holes which pushes the card / must have a lever behind it which at each backing / advances laterally one hole whenever the first card / acts this lever must advance with it thus (see No 5 Not.n / 31 July) making it [?be] alternately received on each variable in the / [?first] appropriated to the great letters"; below, cut: "The same effect might be had by throwing two cards at certain …". At left, a sketch of a ladder-like strip (a chain of cards [?]) curving round a guide.](/media/notebook/babbage-drums/1836-07-31-lever-advances-one-hole.jpg)
![Scribbling Book Vol. II (BAB/S/1/02), p 84 (image 45; page unnumbered): "7 March" / "When any operation is to be terminated / ~~or at~~ after a given ⟨variable⟩ number of repetitions / let the number of rep.ns be put on an axis / having a carriage connected with it"; the interlineation "[?b]y a register axis" and "previous" are partly visible at the foot. The paragraph continues below the crop.](/media/notebook/babbage-engine/1836-03-07-terminated-after-variable-repetitions.jpg)
