CHRIS HAY

IDEAS · SYSTEMS · OBJECTS / LONDON · 2026

Before the Punched Card: How Powerful Was Babbage’s Engine?

Before cards, Babbage’s engine was to be ordered by drums that ran a fixed cycle and recommenced. Proved in Lean for an idealised model with unbounded numbers and store: the March 1836 drums simulate any counter machine if repetition counts are read from the store (one ambiguous reading of 7 March 1836) and a failed operation ends the run (Model D, which no page states); universal by 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 a person should check, 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, unchecked by a person.

N-BABBAGE-DRUMSOPENRECORDED 2026-11-29PUBLISHED · V1.0CITE ↓FOLLOW ↓

01 / THE GREAT DRUM, 1835

Before the cards there was a drum. Babbage’s history of the engine gives it the top of a hierarchy: “Thus the large drum decided when any ⟨given⟩ operation was to be performed and what quantities were to be concerned … The small drum acting on the barrels decided the nature of the operation and which of the 4 variables …” On 24 July 1835 he wrote how it moved: “Each operation at its end tells the G.t Drum to move”, and “After all op.ns are done G.t Drum backs and recommences”. The history says the drums’ adjustments were “made from the operations required by the algebraic formula”, and on 6 November 1835 he wrote of “the danger of error in setting”. So the pages read give a fixed sequence of steps, one step per operation, taken when the operation ends, and after the last step a return to the first. They give no repetition of part of the sequence, no counted repetition, and no choice made by a result of the mill at the drum: not found, which is not the same as absent.

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

On 16 February 1836: “About this time I gave up the gr.t central Drum under the engine and substituted small drums governed by one great wheel … each of the 4 div.ns of Mill having one drum and each add.l ax to have a drum — This plan diminishes the [?ht] of the eng. and gives much greater extent to the drums —”. By 23 May: “Drums of Store only cause giving off or receiving from Central wh.l”, “Drums of Mill always indicate operations”, and “the great operations should be completed in the mill their results put in Store and all the numbers in mill rubbed out before proceeding to another operation”. Nothing in these pages changes what the drums order: no drum’s next step is found to depend on a result (the drums do wait on the end of an operation), and the zero of a counting wheel and the running up act on the mill’s barrels, inside an operation, not on a drum; the mill’s barrels already respond to results by November–December 1835, when division repeats a subtraction “untill a running up” (Vol II pp 14–15, 46–47). From 7 March 1836 an operation of the mill can be “terminated … after a given ⟨variable⟩ number of repetitions”, a mill ability a drum step can call. None of the five general arrangements of July 1835 to March 1836 read shows a drum; they are plans, seen from above, and a drum “under the engine” need not appear in one.

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

In June 1836, three to four weeks before the cards, Babbage sized the store drums on Vol II p 129: “Suppose each stud of Store [?surface] is one inch long / Sup. 200 operations on each variable / there are four vars on each [?axis] / 800 inches”. Laid round one circle, 800 inches of track is about 800 × 7 / 22 ≈ 255 inches across, some 6.5 metres: he first wrote “circumference”, struck it, and wrote “diameter”. He then, on a low-legibility reading, winds the track as a spiral, 64 turns on drums 4 inches across, and ends “Let Drums be 30 inches high”. The spiral half of the page is a reading of low-legibility lines and needs a person’s check. The page shows a program stored as mechanism, whose length sets the size of the part that holds it, and Babbage’s own answer to that in the same calculation. It does not say the size is why the drums were given up. Babbage draws no conclusion on the page; linking the size to the cards is this note’s interpretation, not his statement.

Vol II p 129, read with its uncertain words marked ↗The sizing as an illustration, not a cause (§5a) ↗

04 / THE CHANGE TO CARDS

On 30 June 1836: “Suggested Jacards loom as a substitute for the Drums”. The history lists what Babbage expected to gain: “It is easier to punch paste board than to screw on a multitude of studs”; “When once a formula has been made and verified it need never be made again untill worn out”; a quick change between formulae; “There will be no backing of the drums as the Jacard paste board will circulate”; “Every formula ever put into the engine will be preserved”; and “The ⟨extent⟩ of formulae is almost unbounded”. Every gain is of convenience, extent or keeping; no loss is stated. On 10 July the cards “direct a series of operations and then recommence with the first”: the drum’s cycle. The cards replaced the drums; the mill’s barrels stayed, under the cards.

Vol II p 146 and the history, image 86 ↗

05 / ENTRIES DATED A YEAR LATE

The history sheets for 1835 and 1836 (BAB/N/002, N/003), whose authorship is not established, are a source for the order of events. Checked against dated pages, six N/003 entries are 1835 events copied onto the 1836 sheet a year late: Barrels in May (racks and central wheels; 21 May and 18 June 1835), August (“Each variable to have a barrel”; late July 1835, placed by its position in the Vol XIII history between entries of 27 and 31 July), October (preventing incompatible cases; 24 October 1835), Selectors in June (the adjustable snail, “snail” a probable reading on N/003; 23 June 1835), the others from dated passages of the Vol XIII history; Carriage in July (superposition of motion; 18 June – 24 July 1835, Vol XIII p 119); and Carriage in June (a circular chain; June 1835, probable, from the order of the history’s carriage notes). General Plans in April is undetermined: it needs the sheet A/033, of 21 April 1836, read in full. In the other direction three N/002 entries are 1836 events, one citing Vol II p 105, a volume that did not exist in April 1835. A ringed correction signed “C.B.”, “This must be 1835”, beside an entry headed 21 May 1836, points the same way. So the plan of one barrel per variable is of July 1835, under the great drum, not of August 1836. No date the models rely on changes.

The dating check ↗The corrections, with evidence and certainty (§5b) ↗

06 / JULY 1836: ONE SERIES, FOUR SHEETS

A month after the cards, Babbage worked one problem four ways: the development of a series, B = Aa, C = Ba + Ab, D = Ca + Bb + Ac, and so on. F/061x (26 July) and F/063x (29 July) work it straight through with two mills, with no passes; F/061x is headed “40 × 39 / 2 = 780 × 4 = 3120”, read as written (that it counts cards for 40 coefficients is an uncertain inference). F/062x, marked “1” (read as No 1), of 29 July, has a 5-card head and a 9-card unit written out k − 1 times in group k: the passes appear here first. Which of the two 29 July sheets came first is not established. F/064x, “No 5”, of 31 July, “To page 178”, has one pass of 9 cards written once, twice and three times, with a fourth group cut off at row 24 by the foot of the sheet. On p 179 the same day: “The first set passes once and backs — It then passes twice / thrice times / four”. On p 178 he gives three ways to do it: a plate that “must have a lever behind it which at each backing advances laterally one hole”; “The same effect might be had by throwing two cards at certain variable intervals but the first seems ⟨best⟩”, so that the lever is preferred to throwing two cards; and, in a later, smaller addition written on a slant at the foot, “⟨Two sets of cards one before the other with different times of movement would do the same thing⟩”. No mark on F/061x–F/063x, nor No 5’s strokes, decides between the sets, the lever, and a third alternative (a revolving barrel of studs); No 5 alone draws a plate with holes. The choice is unresolved, so both are modelled and kept apart; the barrel is not built.

The card sets of 30–31 July 1836 ↗F/061x–F/063x, read ↗The two configurations and their rules ↗

07 / THE SAME PROGRAM ON TWO MEDIA

I built the drums as a machine with only what the pages give: a fixed list of steps (an operation with its variables, the repeated operation of March 1836, or a result), one step per operation, and after the last a return to the first. The first cards are the card machine of the earlier notes on the same steps, followed by one card that backs to the first. Four dated media are kept apart: the great drum of July 1835, the drums of February 1836, the drums from 7 March 1836 (with the repeated operation), and the first cards. In Lean, for every list of steps, every store and every n, the cards after n + ⌊n / L⌋ cards stand where the drum stands after n steps, with the same store and the same results in the same order, or both have failed (trace_equiv). The proof makes the equality general for these two models. It is not an independent historical finding: the two models are the same because the pages describe the same cycle, and a drum ability no page read describes would not be in either.

The drum machine (src/drum.rs) ↗The proof (formal/Babbage/Drum.lean) ↗

08 / AN INSTRUCTION THAT CHANGES ITS ADDRESS

Three questions are kept apart. Schedule compression: No 5’s schedule, every product by the same nine cards, takes 90 card times for four coefficients; written with sets it is a deck of 19 cards, with the lever of 9, and written out straight 74 (the sets and the lever both reproduce No 5 card for card; the 74-card unrolled deck leaves out the blanks). Minimum program size: a different algorithm, a 12-card recommencing cycle that the great drum of 1835 accepts, gives the same table while the small letters beyond d are zero, in 12 cards a coefficient; it is not shown that no shorter drum deck exists. Expressiveness: the sets add none. Every run of a fixed number of passes unrolls into a fixed sequence of cards, under both readings of where a repetition count comes from (unroll_equiv, sets_unroll); every configuration of the Lean machine accepts it (unroll_accepted), and that the drums accept it is tested, not proved. That a set run ends when its sets are used up is a modelling choice. The lever is different. It makes the column a card addresses depend on the progress of the run: a forerunner of indexed addressing, not indirect addressing, since the address is set by the mechanism’s position, not by a number in the store. One lever deck of one card reads out an ever wider window of the store (window_computed, lever_reaches); a fixed deck reads only the columns it names (run_local), so no deck of the drums, the first cards, December 1837 or 30 May 1838 gives that table for every store (window_not_drum for the drums; window_not_computed for the card configurations of the Lean machine). That is a formal separation in addressing uniformity between alternative reconstructions of Babbage’s July 1836 designs, and it holds only with the whole unbounded store taken as the input. For inputs in fixed columns none is shown: stopped after a number of passes fixed by the deck, the lever adds nothing (lever_in_1836), and its endless tables against a drum’s are open.

Program size and the three questions (§3.2) ↗The proofs (formal/Babbage/CardSets.lean) ↗The lever with fixed-column inputs (formal/Babbage/LeverFixed.lean) ↗

09 / GENERAL, UNDER FOUR CONDITIONS

A drum of March 1836 can be made to compute anything a counter machine can, under four conditions: two readings and two idealisations. (1) The store reading of rule 3a: the drum’s repeated operations take their count from a column of the store. The page of 7 March 1836 says an operation is “terminated … after a given ⟨variable⟩ number of repetitions” and does not say where the number comes from; this reading is historically ambiguous. (2) Model D: an operation the mill cannot do, here 1 ÷ 0, is read as the end of the run, with the store as its result. That is a project assumption which no page of Babbage’s states. (3) Unbounded whole numbers and store, and a drum of any length. (4) Minsky’s theorem that counter machines are universal, cited, not formalised. (1)–(3) are used by the construction, and (4) is needed to read it as universality. Under these, a counter machine is compiled into drum steps that are only operations and repeated operations, with no conditional instruction: each test of a counter for zero is one multiplication repeated as many times as the counter, and each pass ends 1 ÷ W, where W is 0 only once the machine has halted. Then, for every well-formed counter machine and every input, the drum is ended by a trap exactly when the machine halts, with the machine’s counters in its store (drum_trap_iff; deck_drum37 shows the December 1837 trap deck is exactly such a drum, and cards_to_dtrap and dtrap_to_cards that the drum and that deck stop at a trap together, in the same state). Without Model D the drum never ends of itself and computes nothing by ending (drum37_never_halts). With counts from number cards only the construction is unavailable, and whether drums are then universal under Model D is open. It is a theorem about an idealised reconstruction. 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 ↗

10 / HOW A RUN ENDS

Five things are kept apart. (1) Normal halting is passing the last card: a drum never does it, nor its first-card deck (drum_never_halts, cards_not_halts); a deck of December 1837 with no backing card does, after one pass, which is one pass and not the answer of the machine it stands for. (2) A trap is Model D: a failed operation read as the end, a hypothetical termination. (3) An error is a failure without Model D: what the run gave off before it is kept, and the store at the failure is not a result. (4) An endless table is output computation: a drum that never halts is not thereby incapable, because the job of the 1835 and 1836 pages is a table (x³ by differences, x′ = a + bx iterated), and its results are what it gives off. (5) An observation limit: to show a table at all, the model stops a run from outside after so many results or steps: an observation limit of the model, not a mechanism, since how Babbage’s runs stopped is not found. The card sets of July 1836 end when their sets are used up, which is a modelling choice; no page says how a run ended.

Endings, in three kinds (§5) ↗drum_never_halts, cards_not_halts (formal/Babbage/Drum.lean) ↗

11 / DECEMBER 1837, AND WHERE THE INPUT STANDS

December 1837 adds combinatorial wheels and backing cards to the first card. Set against every July 1836 schedule run for a number of passes fixed by the deck, with normal halting and whole numbers, what is proved depends on where the input n stands, and three conventions are kept apart. (a) Store only: started with empty wheels and n in store columns, December 1837 obeys the same bounds as the straight-line decks (empty37_le_pow, empty37_le_tw). Its combinatorial card cannot stand before a counted backing, so a counted backing meets empty wheels and fails, and a halting run passes no backing card. That is a result about the design, not only a caveat: under this convention these bounds do not separate December 1837 from July 1836, and no December 1837 deck with counts from number cards gives 2ⁿ from n in v0 alone (no_two_pow_1837_empty). These bounds rest on normal halting; under Model D, with counts from the store, December 1837 is general (trap37_halts). (b) Store and wheels, n in v0 and on the combinatorial wheels, for both sides: with repetition counts from number cards in both, a three-card deck halts with 2ⁿ, and no straight-line deck, no fixed run of the sets and no fixed run of the lever gives 2ⁿ for every n (sep_numcards, dbl_halts, no_two_pow_1836, sets_no_two_pow, lever_no_two_pow); with counts from the store in both, December 1837 gives 2↑↑n and no straight-line deck or fixed run of the sets does (sep_store, tower_halts_dbl, no_tet_1836, sets_no_tet). The 1836 side reads n in v0; December 1837 reaches these functions through n on its wheels, which by (a) is what separates them. The lever is not covered by the 2↑↑n result. (c) Wheels only, n on the wheels and not in the store: with counts from the store, December 1837 gives 2↑↑n (tower_halts) and no straight-line deck or fixed run of the sets does (sep_wheels_only, no_tet_1836_wheels_only, sets_no_tet_wheels_only: the earlier form of the 2↑↑n theorem). That is a weaker result, about access to the input: the 1836 side never sees n.

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) ↗

12 / NOT ONE QUESTION BUT SEVERAL

“Was it universal?” is the wrong single question. The dated designs differ along dimensions that are independent: how a program is represented, how long it can be, whether instructions are reused, how addresses are formed, what repeats, whether a result chooses the next card, which formal class each model is in under which assumptions, and how a run ends. Each development of 1836 and 1837 adds something along one of them. Under the conditional theorem, with all four of its conditions (repetition counts read from the store, one historically ambiguous reading of 7 March 1836; a failed operation read as the end of the run, Model D, which no page states; unbounded numbers and store; and Minsky’s theorem, cited), the drums of March 1836 already simulate any counter machine on inputs in fixed columns. On that reading it is argued, not proved, that no later configuration computes a function of fixed-width inputs that the drums cannot: the argument rests on drum_trap_iff and Minsky’s theorem, and on the later configurations being simulable by a counter machine, which is not formalised. What the later developments add, on that reading, is program size, convenience, addressing uniformity and growth under other conventions, not new computable functions of fixed-width inputs. Under the other readings the classes differ, and some comparisons are open.

The separations, summarised (§3.5) ↗The dated card configurations, 1836–1843 ↗

13 / BROMLEY’S SUPER BARRELS

Allan Bromley wrote in 1990 that the engine was “directed by ‘super’ barrels that initiated transfers … and started the sequences of operations of the subsidiary barrels”, that “the super barrels also included looping and branching capabilities”, and that “in mid-1836 the super barrels were replaced by strings of Jacquard punched cards”. The first and third fit the drums, read as the drums as a system from 1835 to June 1836 (the word “super” is in no page read, so the identification is a working assumption). The looping and branching are not found at drum level: the drum steps once per operation and recommences, which is a loop only in that sense, and the looping and branching found in these pages are in the mill’s barrels, which stayed under the cards. Bromley cites no sheet, so his account is not shown wrong: what he describes may rest on pages not yet read, or include the barrels. His reading stays open.

Against Bromley (§2) ↗

14 / HOW IT WAS CHECKED

Every theorem named is in Lean 4 core only (the project’s lake-manifest lists no packages), and no proof is left unfinished. Classical.choice enters drum_trap_iff, through cards_to_dtrap, and the whole-number separation theorems of Straight.lean and LeverFixed.lean. 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. 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, 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 nothing, and 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, the decisive passages compared in a second AI reading. No person has checked them.

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, and no person has checked them against the images or the originals.

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.

  1. 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

    MANUSCRIPT JSON ↗ · BIBTEX ↗ · CSL JSON ↗

  2. 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

    MANUSCRIPT JSON ↗ · BIBTEX ↗ · CSL JSON ↗

  3. 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

    MANUSCRIPT JSON ↗ · BIBTEX ↗ · CSL JSON ↗

MACHINE-READABLE HISTORY ↗

SOURCES & PROVENANCE

AUTHOR / Chris Hay · VERSION / 1.0

PUBLISHED 29 NOV 2026 · VERSION 1.0

CITE

CITE THIS

Research note · 1.0

Hay, C. (2026). Before the Punched Card: How Powerful Was Babbage’s Engine? (Version 1.0). Chris Hay. https://chrishayuk.com/records/N-BABBAGE-DRUMS/1.0