1200 × 1500
Two readings of Ada Lovelace’s Note G both make Babbage’s engine a general machine.
In Note G a result of the engine chooses between two courses. Read as repeating a cycle, or as a step forward past a backing card Babbage described in 1837, it makes his machine general. Her program runs both ways, and as printed.
ABOUT THIS NOTE +
A note about the control of Babbage’s Analytical Engine as Menabrea’s account of 1842 and Lovelace’s Notes of 1843 describe it, and about her program for the Bernoulli numbers in Note G, run on a reconstruction of the engine’s control. Note G is explicit that a result, zero or greater than zero, chooses between two courses. That the test ends the repetition of Operations 13 to 23 is a reading (A); that the repetition is counted and the test only chooses a step forward is another (B). Proved in Lean: under Reading A, one card, a backing made effective by a result, is enough for every counter machine to run, halting by passing its last card exactly when the machine halts; under Reading B, a forward course is enough together with the unconditional backing card of Babbage’s Sketch Book of December 1837. With Minsky’s theorem, cited, the machine is general under either reading. Lovelace’s table, transcribed from a camera image of the plate, gives −95/126 as printed where B₇ is −1/30; with three changes of three different kinds it gives −1/30, and 1/42 and 5/66 for the neighbouring Numbers. Under Reading B the test variable V₁₀ ends at zero for every n tried, which Reading A does not manage for the two smallest. That the engine is general from a conditional backing is Rojas’s; what is added here is the tie to Note G, both readings, the proofs, and the program run.
01 / THE ONE PLACE A RESULT CHOOSES
In the pages of Babbage’s Sketch Books and drawings read here, up to April 1842, no result of the engine’s mill chooses which cards act next. The published accounts change that. Menabrea, in 1842, states it as a principle; in Note G of 1843 Lovelace works a case: Operation 7 brings out zero or a number greater than zero, and “the engine follows the one or the other of the two courses”. How the engine would do it is not described until Babbage’s autobiography of 1864.
Menabrea and Lovelace, the control passages read ↗Sketch of the Analytical Engine, with Lovelace’s Notes (Fourmilab) ↗
02 / TWO READINGS OF ONE SENTENCE
What is explicit is a test that chooses between two courses. What the courses are is a reading. Under Reading A, the repetition of Operations 13 to 23 goes on until V₁₀ comes to zero: a backing that a result makes effective. Under Reading B, the repetition is counted, as Lovelace’s Σ(+1)ⁿ⁻² suggests, and the test only steps forward when a Number is finished. The text supports both; the archive reading judges Reading A the closer fit.
03 / LOVELACE’S TABLE, AS PRINTED
Note G comes with a table of 25 operations that computes B₇, a Bernoulli number in her numbering (−1/30). I transcribed it from the original camera image of the plate in the Natural History Museum’s copy, and found the Wikisource transcription wrong in several cells. Run as printed, with the repetition of Operations 13 to 23 done under Reading A, it gives −95/126. Two cells could not be read with certainty, and only one printed copy of the plate has been read.
04 / THREE CHANGES OF THREE KINDS
Three changes give −1/30, and they are not three errors by Lovelace. Operation 4 divides the wrong way round: an error in the printed table, already reported. Operation 21 must take B₅ from V₂₃ the second time round, as the text says; this machine cannot advance a variable card, so six cards not in the table do it: an adaptation. Operation 24 adds where B₇ is minus the sum, and the table leaves signs aside: a convention. With all three, n = 3, 4 and 5 give 1/42, −1/30 and 5/66.
05 / READING B FITS THE SMALLEST CASES
Both readings give the right Number for n = 1 to 5. They differ inside. Under Reading B the tests at Operations 7 and 12 are the forward courses the text describes for n = 1 and n = 2, and V₁₀ ends at zero every time. Under Reading A there is no way to step forward, so for n = 1 and 2 the deck runs operations the engine would skip, and V₁₀ ends at −2 and −1. That makes Reading B the more faithful for the two smallest cases. It does not settle which reading is right.
06 / READING A: ONE CARD IS ENOUGH
Under Reading A, add one card to the arrangement of 30 May 1838: a backing made effective while a column holds a number greater than zero. Then every counter machine translates into a deck that halts, by passing its last card, exactly when the machine halts, and the deck uses nothing else; every older deck runs as before. With Minsky’s theorem, cited, this machine is general with only the test Note G describes.
07 / READING B: WITH THE BACKING OF 1837
Under Reading B the test only steps forward, and with every backing counted the bounds of the counted arrangements still hold; that is argued, not proved. But Babbage’s Sketch Book of December 1837 has a backing card that “always orders the backing”. A step forward past that card is a loop a result ends, and every counter machine runs again. So the conclusion holds under either reading; what differs is the older card it needs.
08 / WHAT ROJAS ALREADY SHOWED
That the Analytical Engine is general given a conditional backing is not new. Rojas argued it in 2024, after Bromley (2000), with a test for zero that backs by amounts punched on cards, building indirect addressing and a Turing machine with a finite tape on it, in prose. That result is his. What this note adds is narrower: the primitive taken from one passage of Note G and read two ways, both translations proved in Lean, and Lovelace’s program run on the same machine.
09 / HOW IT WAS CHECKED
Each theorem is in Lean 4, with only its core library, checked on every change and using only the standard axioms. An operation that writes several columns, as Lovelace’s first does, is proved equal to one that writes the first and copies it. The Lean model and the Rust machine are run on the same decks and compared: random decks with each of the new cards, one counter machine (add), on two inputs, under each reading, and Lovelace’s program as printed, corrected and under Reading B, on exact fractions: 3,720 runs, all agreeing. The random decks found a real bug, an overflow in the Rust fractions, now fixed. Two independent reviews (commits 15d045d and 5cba933) found no error in the mathematics or in the numbers; they found a reading stated as fact and other places where the prose said more than the work, all corrected.
Every deck in this note runs in the browser under every arrangement. Choose a reading and a Number and run Lovelace’s program yourself.
FOLLOW THIS IDEA — The 1842–1843 configuration, both readings, and what follows →FOLLOW THIS IDEA — The Note G table, transcribed row by row →FOLLOW THIS IDEA — The Lean proofs for both readings →FOLLOW THIS IDEA — The plate of Note G (Wikimedia Commons) →FOLLOW THIS IDEA — The earlier note: what the Sketch Books’ control could compute →
WHAT THIS DOES NOT SHOW
- Which reading of Note G is right. Both are worked out; the text supports both, Reading B fits the two smallest cases better, and the archive reading judges Reading A the closer fit overall.
- That the engine was built, or designed in 1843, to do this. The texts state the conditional course as a principle with one worked case; the mechanism is first described in Babbage’s Passages from the Life of a Philosopher (1864).
- That Lovelace’s program is correct for every n. It is run for n = 1 to 5, and the adaptation of Operation 21 works only up to n = 5; nothing is proved about the program itself.
- That the Lean model and the Rust machine agree on every deck. They agree on the 3,720 runs compared, Lovelace’s program among them; that is a test, not a proof. The general theorems are over whole numbers.
- The plate was read from one printed copy; two cells are uncertain. The general result is Rojas’s, and his source, Bromley (2000), could not be read. Nothing here is claimed as first.
When a sentence can be read two ways, build both, and say what each needs.
OPEN
If a program survives only as a printed table and a few sentences, how much of the machine it ran on can be recovered from the program?
Open here: a proof that Lovelace’s program, corrected, computes every Bernoulli number it is given; advancing variable cards without the adaptation; a formal proof that a forward course without the unconditional backing leaves the machine bounded; and whether a person reading the plate and the text agrees with the readings this all rests on.
PUBLICATION HISTORY
Each version preserves its manuscript, claims and source references. Research status is recorded separately from publication.
- V1.0 · 2026-11-27 ↗
First publication, after a fact-check against analytical-engine a9a0b50: the title names Note G and the engine, not the program; the archive's judgement that Reading A fits the text better is given; the Reading B count's source marked as an encoding choice; December 1837 accepts the deck only with the forward course added; the comparison's coverage and the plate's resolution stated exactly; corrections described by kind with their sources. OPEN
- V1.1 · 2026-12-02 ↗
A visual re-edit with no change of result: every chapter opens with the printed page (twelve new crops of the plate and pp 728 and 730 from the original camera images of the copy transcribed, the Natural History Museum copy digitised by the Biodiversity Heritage Library; readings by an AI agent), the question it raises and something to try (Lovelace's table stepped through as printed, the three changes applied as the repository ran them, the two readings' arrangements of the cards and the groups each passes against her own lists on p 730), then a shorter account and RECORD, MODEL, PROOF and OPEN strips carrying every figure and condition of 1.0, Lean links pinned to a9a0b50. One quotation corrected: Card 23 'has the office of Cards 11 and 7', as printed, where 1.0 gave it with the slip for 12 already corrected 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
- L. F. Menabrea, “Sketch of the Analytical Engine invented by Charles Babbage”, trans. and with notes by A. A. Lovelace, Scientific Memoirs 3 (1843), pp. 666–731 ↗
“the mill will order other cards” (p. 687); Note G, the two courses (p. 728) and V₁₀ (pp. 730–731). Read in sources/notes/menabrea-lovelace-1843-control.md.
- A. A. Lovelace, Note G, “Diagram for the computation by the Engine of the Numbers of Bernoulli”, folding plate after p. 722, Scientific Memoirs 3 (1843) ↗
Transcribed from the Natural History Museum copy on archive.org (scientificmemoir03memo), leaf 0754; sources/notes/note-g-table.md. Since 1.1 the crops in this note are from that copy’s original camera images (leaves 754, 760 and 762: the plate, pp 728 and 730); 1.0 showed the public-domain scan on Wikimedia Commons, not the copy transcribed.
- C. Babbage, Scribbling Book Vol. III, p. 162 (December 1837), the Babbage Papers, Science Museum Group
The card that “always orders the backing”, which Reading B needs. Transcribed in sources/notes/codesign-L023.md §1.2.
- R. Rojas, “Unconventional universal computation in Babbage’s Analytical Engine”, arXiv:2408.03334, 2024 ↗
Universality from a conditional backing, after Bromley (2000). The general result is his.
- A. G. Bromley, “Babbage’s Analytical Engine plans 28 and 28a: the programmer’s interface”, IEEE Annals of the History of Computing 22(4), 2000
Not read (paywalled); known only through Rojas (2024) and Wikipedia.
- M. L. Minsky, Computation: Finite and Infinite Machines, Prentice-Hall, 1967
Two counters suffice. Cited, not formalised.
- Note G, “Error”, Wikipedia ↗
Secondary: reports the swapped division of Operation 4. Its figure for the uncorrected program, −25621/630, was not reproduced.
- chrishayuk/analytical-engine, commit a9a0b50 ↗
src/sketch.rs (the machine, configurations 1843 and 1843-B), control/note-g-*.txt, tests/note_g.rs, formal/Babbage/Note43.lean and Multi.lean, scripts/lean-diff.sh, docs/published-control-1843.md.
AUTHOR / Chris Hay · VERSION / 1.1
PUBLISHED 27 NOV 2026 · REVISED 2 DEC 2026 · VERSION 1.1
CITECITE THIS
Research note · 1.1
Hay, C. (2026). Two readings of Ada Lovelace’s Note G both make Babbage’s engine a general machine. (Version 1.1). Chris Hay. https://chrishayuk.com/records/N-BABBAGE-NOTE-G/1.1
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