CHRIS HAY

IDEAS · SYSTEMS · OBJECTS / LONDON · 2026

Reconstructing Babbage’s 1836 Arithmetic Processor

In one week of January 1836 Babbage charted a multiplication, a division and a square root. Figure-wheel primitives give the states he wrote; Lean models of the controllers are correct, division and root given H-OD. Whether his mill decided overshoots this way is not known.

ABOUT THIS NOTE +

A note about three of Babbage’s mechanical notations of January 1836 at the Science Museum: multiplication without table (BAB/F/018–020, 11 January, 1028 × 201), division without table (F/021–024, 13 January, 9889 ÷ 49) and square root (F/026–029, 15 January, √40601). Built from a handful of primitives — give off and retain, subtraction or addition with or without carriage, a step of one cage, a counter that runs up — one controller regenerates the multiplication’s bands and products, and one subtract / test / carry-or-restore loop regenerates the 11 compared states of the division and the 11 of the square root, the two differing only in what is subtracted and how it moves. Lean models of the controllers are proved correct and terminating: multiplication within capacity; division and square root conditional on H-OD, this project’s rule for deciding an overshoot before the borrows are made. The charts write “Carriage prevented” on exactly the overshooting subtractions, and their intermediate states are those of subtraction without carriage; set beside Babbage’s 1834 proposal to compare the numbers first and his late-1835 practice of subtracting until a running up and adding back, only that reading writes every compared state on the sheets. The arithmetic is established for the models. The mechanism of January 1836 is not.

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

01 / THREE CHARTS IN ONE WEEK

On 11, 13 and 15 January 1836 Babbage drew timing charts of three operations of the mill, each without a table of multiples. Multiplication: “1028 × 201” on the cover, six bands, the product written after each, ending 206628. Division: “Divide 9889 by 49” on the cover, twelve bands across four sheets, the remainder reaching 04000 — 40, standing two places up — and the quotient 2, 0, 1, before a last band steps both up a cage. Square root: no radicand on the cover; the table starts from 040601 and ends with the root 2, 0, 1 and the remainder 020000, which is 200. Every number on the division and root sheets is a correct result. The number columns of the division sheets and the first root sheet, read at full resolution, are a clean fair copy: operands at the head, results at the band ends, no working.

BAB/F/018, Multiplication without table (Science Museum Group) ↗BAB/F/021, Division without table, sheet 1 of 4 (Science Museum Group) ↗The division sheets decoded ↗The square root sheets decoded ↗

02 / A FEW PRIMITIVES

Nothing in the reconstruction adds, multiplies or divides numbers. Figure wheels turn one tooth at a time. Giving off turns a wheel back to zero while another receives the teeth; retaining keeps a copy on a second wheel. A wheel passing from 9 to 0 (or 0 to 9 in subtraction) leaves a warning, and carriage acts on the warnings afterwards — or is prevented. A step moves every figure one cage up, multiplying by ten. A counter turned back a tooth before each repetition ends it by running up. Multiplication uses give off and retain, addition with carriage, the step and the counter. Division and square root use subtraction with or without carriage, addition without carriage, and the step. The same primitives, at tooth level, are in the earlier note on multiplication.

The wheel rules, committed before the multiplication run ↗The division rules ↗

03 / ONE LOOP FOR DIVISION AND SQUARE ROOT

For each figure of the result: subtract, test, and either carry the borrows and count one more, or undo the subtraction and step up. Division subtracts the divisor, 49, set at a fixed cage while the remainder steps up beneath it. Square root subtracts an odd number that grows by two after each success — 1, 3, 5, then 41, then 401, 403 on the sheets — and comes down one cage at each new figure as the remainder steps up one, taking two figures of the radicand per figure of the root. With nothing else changed, the loop writes the 11 states of F/021–024 up to the last restore (the twelfth band, a final step, is not compared) and the 11 scored states of F/026–029, in order, and on 3,000 random dividends and radicands, checked afterwards, gives the right quotient or root and exact remainder every time. The number of figures and the first alignment are told to it, not found; Babbage’s notebooks describe a digit-counting apparatus for that, which is not rebuilt.

The shared loop, band by band, with its audit ↗The controller (scripts/f_srt.py) ↗

04 / “CARRIAGE PREVENTED”

In the division and root charts, six subtractions overshoot: the divisor or odd number is larger than what remains. On exactly those six, and on none of the other six, Babbage wrote “Carriage prevented”, and the next band returns the subtrahend without carriage. A mill that prevents carriage there must know the subtraction has overshot before the borrows are made. This project’s rule for that, H-OD, reads it from the wheels after a subtraction without carriage: a borrow would leave the top exactly when some warned cage has only unwarned zeros above it. It chooses as the charts do in 12 of 12, and is proved equal to the comparison of the two numbers. But it is a hypothesis, not a reading. Apart from Babbage’s 1834–35 plans to compare first or to try the subtraction on a copy, which the charts do not follow (05), every source of 1834 to early 1836 read learns of an overshoot from the running up — the borrow leaving the top — and repairs it afterwards. How the charts could write “Carriage prevented” in the same band is not explained.

H-OD, its checks, and the archive readings ↗Overshoot detection in the sources, 1834 – early 1836 ↗

05 / THREE WAYS TO STOP A FIGURE

Babbage’s own papers give two other ways. His history records that in November–December 1834 he proposed “that feelers should try the 1st fig. both of Div.r and dividend if the former were smallest subtract … if the latter advance one fig to the right … If the 1st fig of each are equal feel the 2nd and so on untill an inequality take place” — comparing before subtracting. On 13 March 1835 he wrote a “History of contrivances for Division”: five methods in turn, among them feelers that, when the first figures were equal, “caused much loss of time by making in many cases 10 subtr.ns instead of one”, and a trial subtraction on a subsidiary axis that would tell an overshoot before the dividend was touched. The method he kept subtracts from the dividend itself and learns of the overshoot from “the running up of 999 &c”; its stated advantage is that it needs only the two axes and “only two carriage”, “therefore two divisions or even three might be carried on together”. In his own words, then, less machinery per division meant several divisions at once: a trade-off between method, mechanism and concurrent working, stated in 1835. Whether it is discussed in earlier scholarship was not checked. The trial on a subsidiary axis is a fourth strategy, not modelled here. His notebook of 30 November 1835 still subtracts “untill a running up when add complement”. Run on the same wheels, all three give correct quotients and roots on 3,000 random operands, if equal numbers are subtracted; read strictly, “if the former were smallest subtract” gets 83 of them wrong, every case where a remainder equals the subtrahend, so the passage needs an equality rule it does not state. Only the carriage-prevented reading writes every compared state on the January charts, 11 of 11: subtracting with carriage leaves tens’ complements such as 95189 where the chart writes 06189, 8 of 11; comparing first never makes the failed subtraction, 5 of 11. Measured in this model, comparing first writes 30% fewer states and turns 34% fewer teeth, at the cost of reading two axes against each other at every try; subtract-and-restore makes 2.4 times the carriage turns of carriage prevented. These are properties of the model, not Babbage’s reasons; his own stated criterion in March 1835 was axes and carriages, and what fewer of them allowed. The order of the documents is not shown to be a line of development.

The three ways, run side by side ↗The 1834 passage, read on the image ↗The “History of contrivances for Division”, 13 March 1835 ↗

06 / WHAT IS PROVED

Lean models of the three controllers, accepted at commit 1809fcc with no unfinished proofs and only Lean’s standard axioms. Multiplication: giving off and retaining keeps the number, an addition band is exact, a step multiplies by ten, a counter set to d gives d additions, and the controller ends with the product in as many bands as the multiplier’s figures plus their sum. Subtraction and addition without carriage restore every wheel exactly. H-OD equals the comparison, and executing the borrows gives the exact difference or, after an overshoot, the tens’ complement. Division and square root: modelled as the actual band loop with the overshoot decision as a parameter; given H-OD and a valid alignment, each figure ends within ten subtractions and is at most 9, the figures read as the quotient or integer root, and the remainder stands exactly as the charts write it. The warnings the decision reads are derived from individual tooth turns. The chart cases 9889 ÷ 49 and √40601 are computed in Lean.

The milestone: what is proved and what it is evidence of ↗Multiplication (formal/Babbage/Mill.lean) ↗Overshoot (formal/Babbage/Overshoot.lean) ↗Division and square root (formal/Babbage/SRT.lean) ↗

07 / CORRECTNESS IS NOT IMPLEMENTATION

The proofs say the models compute correctly. They do not say Babbage’s mill did. Division and square root are proved conditional on H-OD, which no source supports as his mechanism. The Lean and Python controllers are not proved equivalent: Lean takes each row cage by cage, Python in sequence, and the match is argued, not checked by a run. The bolting that chooses which wheel gives off, and the gearing, are not in the proofs. The number of figures of a quotient or root is supplied. And the transcriptions every comparison rests on are readings by a coding agent (an AI model) from the Science Museum Group’s images, not verified by a person.

WHAT THIS DOES NOT SHOW

  • That Babbage’s mill of January 1836 decided overshoots by H-OD, or by any mechanism acting before the borrows. The charts write the decision; the sources read do not say how it was made.
  • Why Babbage moved from comparing first in 1834 to subtracting and restoring in 1835–36, beyond his March 1835 note that the method kept needed fewer axes and carriages. The measured trade-offs belong to this model.
  • That the Python and Lean controllers are the same program.
  • That the transcriptions are final. They are readings by a coding agent (an AI model) from the Science Museum Group’s images; no person has verified them against the images or the originals.

Prove what the model computes; say separately what the machine was.

OPEN

How did the January 1836 charts know, in the band itself, that a subtraction had overshot?

Open here: a detection mechanism of late 1835 not yet found (the trial on a copy of March 1835 was passed over); a running up felt before the borrows were all made; or charts written knowing the arithmetic, as specifications of machinery still to be designed. The carriage drawings of 1834–35 read so far show none.

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 against analytical-engine 7d8e681: division's 12 bands (11 compared), the remainder two places up, H-OD named wherever division and root are said to be proved, the 1834-35 compare-first and trial-on-a-copy plans excepted, Babbage's March 1835 history of contrivances for division OPEN

    MANUSCRIPT JSON ↗ · BIBTEX ↗ · CSL JSON ↗

  2. V1.1 · 2026-12-01 ↗

    Visual re-edit, no change of result: every chapter opens with Babbage's page (14 crops of the Science Museum Group's scans, 10 of them new, read by an AI agent, unchecked), the question it raises and something to try — the three charts of the week checked afterwards, the nine rows of teeth and carriage, the division and root charts state by state beside the reconstructed run under each of three ways to stop a figure, H-OD against all twelve subtractions and on any two numbers, and a ladder from wheels to the mill saying what each result rests on — then a shorter account and RECORD, MODEL, PROOF and OPEN strips that carry every condition of 1.0; independently fact-checked (12 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). Reconstructing Babbage’s 1836 Arithmetic Processor (Version 1.0). Chris Hay. https://chrishayuk.com/records/N-BABBAGE-ARITHMETIC/1.0