CHRIS HAY

IDEAS · SYSTEMS · OBJECTS / LONDON · 2026

Two readings of Ada Lovelace’s Note G both make Babbage’s engine a general machine.

In Note G, Ada Lovelace says a result of Babbage’s engine chooses between two courses. Read either of two ways (the second with a backing card Babbage described in 1837), that 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.

N-BABBAGE-NOTE-GOPENRECORDED 2026-11-27PUBLISHED · V1.2CITE ↓FOLLOW ↓

01 / THE ONE PLACE A RESULT CHOOSES

Could Babbage’s engine make a decision? Could a result it had just worked out change what it did next?

In the Sketch Books and drawings read here, up to April 1842, no sign of it was found. No result of the mill, the part of the engine that does the arithmetic, chooses which cards act next.

The published accounts change that. Menabrea’s account of the engine, in 1842, states it as a principle. In 1843, in Note G, one of the notes to her translation of it, Ada Lovelace works an example: 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 actually 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

Note G is clear that a test chooses between two courses. What the two courses are is a matter of reading.

Lovelace’s program repeats one group of operations, 13 to 23. The question is what stops the repetition.

Under Reading A, it goes on until a column of the store called V₁₀ comes to zero. The result ends the loop. In the engine’s terms, it is a backing, turning the cards back to run a group again, that a result makes effective.

Under Reading B, the repetition is counted, as Lovelace’s Σ(+1)ⁿ⁻² suggests. 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: 25 operations that compute B₇, a Bernoulli number in her numbering, whose value is −1/30.

The table was transcribed from the original camera image of the plate in the Natural History Museum’s copy. The Wikisource transcription turned out to be wrong in several cells.

Run as printed, with the repetition of Operations 13 to 23 done under Reading A, the table 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 turn −95/126 into −1/30. They are not three errors by Lovelace. Each is a different kind of change.

Operation 4 divides the wrong way round. That is an error in the printed table, and it has been reported before.

Operation 21 must take B₅ from V₂₃ the second time round, as the text says. This machine cannot advance a variable card, the card that names which column an operation uses, so six cards not in the table do it. That is an adaptation.

Operation 24 adds where B₇ is minus the sum, and the table leaves signs aside. That is 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. The difference is inside the run.

Under Reading B, the tests at Operations 7 and 12 are the forward courses the text describes for n = 1 and n = 2. 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

Now the bigger question: is the test Note G describes enough to make the engine a general machine?

The yardstick is the counter machine, a very simple model of a computer that only adds to, subtracts from and tests a few counters. Minsky showed that two counters are enough to compute every partial computable function, with the inputs suitably coded.

Under Reading A, add one card to Babbage’s arrangement of 30 May 1838: a backing made effective while a column holds a number greater than zero.

It is then proved in Lean, a language in which a computer checks every step of a proof, that every counter machine translates into a deck that halts, by passing its last card, exactly when the machine halts. The deck uses nothing else, and every older deck runs as before.

So, given Minsky’s theorem, which is 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. With every backing counted, the limits 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 that a result ends. With it, 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). He used a test for zero that backs by amounts punched on cards, and built on it, in prose, indirect addressing and a Turing machine with a finite tape. That result is his.

What this note adds is narrower. It takes the primitive from one passage of Note G and reads it two ways, proves both translations in Lean, and runs Lovelace’s program on the same machine.

09 / HOW IT WAS CHECKED

Each theorem is in Lean 4, using only its core library. The proofs are checked on every change and use only the standard axioms.

Some operations, like Lovelace’s first, write several columns at once. It is proved that such an operation is equal to one that writes the first column and copies it.

The Lean model and the Rust machine, a second version of the engine written in the Rust programming language, were run on the same decks and compared. The decks: 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. All 3,720 runs agreed.

The random decks found one 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 did find a reading stated as fact, and other places where the prose said more than the work. All were corrected.

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.

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

    MANUSCRIPT JSON ↗ · BIBTEX ↗ · CSL JSON ↗

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

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

PUBLISHED 27 NOV 2026 · REVISED 2 DEC 2026 · VERSION 1.2

CITE

CITE THIS

Research note · 1.2

Hay, C. (2026). Two readings of Ada Lovelace’s Note G both make Babbage’s engine a general machine. (Version 1.2). Chris Hay. https://chrishayuk.com/records/N-BABBAGE-NOTE-G/1.2