SmartDataAI Lab Notes: Roller Chain Sizes — The Eighth-Inch Code
The most honest spelling in our register is the one that says least about the chain. We built a 300-row register of nine roller chains, each recorded...
The most honest spelling in our register is the one that says least about the chain. We built a 300-row register of nine roller chains, each recorded by its ANSI number and its pitch — the distance between roller centres, the one dimension that decides whether a chain fits a sprocket. The ANSI number turns out to be an exact code: its tens part counts eighths of an inch of pitch, so #40 decodes to four eighths, a half inch, 12.7 mm, and the decode checks out for all nine chains in the table. And yet the register's pitch spellings — the pitch stated truly, in millimetres, in inch fractions, in decimal inches — each lost rows, while the bare code lost almost none of its own kind. The reason is the code's last digit. In #41, the 1 is a width variant: a narrower chain on the same 12.7 mm pitch as #40. Every spelling that states the pitch truly files the narrow chain under its wider sibling, because pitch is the one thing the two chains share.
How the register was built and read
Three hundred rows were drawn, with replacement, from a nine-chain table in which each ANSI number carries its pitch in millimetres: #25 is 6.35 mm, #50 is 15.875 mm, #120 is 38.1 mm. Five spellings were applied to every row, sixty rows apiece: the ANSI number; the pitch in millimetres, filed by first match; the pitch as an inch fraction, first match; the bare number read by a millimetre reader that files it under the nearest pitch in the table; and the pitch in decimal inches at three decimals, first match. Three readings were taken: the ANSI number by itself; the millimetre pitch alongside it; then the complete set of five spellings. The program that read them, the counts it returned and the notes setting out the design are filed with this batch's evidence.
The first reading returns 60 of the 300 rows; with the pitch admitted, the second stage returns 116; and the full parse closes at 233.
| Spelling | Stage added | Rows recovered of 60 | Wrong chain returned |
|---|---|---|---|
| ANSI number | 1 | 60 | 0 |
| Pitch in mm | 2 | 56 | 4 |
| Pitch as inch fraction | 3 | 54 | 6 |
| Bare number, mm reader | 3 | 7 | 53 |
| Pitch in decimal inches | 3 | 56 | 4 |
The Eighth-Inch Code, defined
The Eighth-Inch Code is the condition of a designation that encodes its object's deciding dimension exactly — recoverable by a stated rule, with no table required — while carrying one further digit that the encoded dimension cannot express, so that any record which converts the designation into the dimension, however accurately, destroys the digit's information and merges two objects into one. The concept is distinct from The Multiplier Digit, an earlier register's finding about resistor codes, whose final digit counted zeros and multiplied the value the other digits stated. A multiplier digit is part of the value's own arithmetic, and converting the code keeps it. The chain code's units digit is not part of the pitch at all: it is a second, quieter fact — width — riding inside a number that appears to be entirely about pitch, and it survives only as long as nobody helpfully decodes the number into the measurement it so exactly encodes.
The worked example: two chains
The register's example row is the #50 chain, pitch 15.875 mm. Its ANSI number returns it; so do all three pitch spellings — 15.875 mm, 5/8 in, 0.625 in — because no other chain in the table shares its pitch. Its bare number is the register's purest failure: "50", read as millimetres, files under the nearest pitch in the table, 38.1 mm — the #120, the heaviest chain in the register, two and a half times the #50's true pitch. The showcase row is the #25, the lightest chain at 6.35 mm: its number and pitches all return it, and its bare "25" files under 25.4 mm, the #80 — wrong by a factor of four. Between the two rows the bare form's character is plain: it recovered 7 of its 60 rows, and those 7 were all #120s, the one chain whose number a millimetre reader still files nearest its own pitch, because 120 is closest to 38.1's neighbourhood by the only logic the reader has. A code this exact deserves a reader that decodes it; given a reader that merely measures it, the code's precision is wasted in both directions.
Decoding a chain number: the steps, with their pass criteria
This finding dictates a step guide for the register's intake: one goal, two prerequisites, four steps, each step carrying its own pass criterion. The goal: every chain filed under its full ANSI number, with its pitch available as a derived field and never as the key. The prerequisites: the decode rule — tens count eighths of an inch, units give the width variant — and a table of the nine numbers with their pitches for verification. Step one: record the ANSI number exactly as stamped, hash and all — pass criterion, the entry's key is the number, the one spelling that recovered 60 of 60. Step two: derive the pitch from the tens part and check it against the table — pass criterion, the derived pitch matches the table's for the number's tens family (4 for both #40 and #41), so a mismatch signals a misread stamp, not a new chain. Step three: preserve the units digit as the width variant in its own field — pass criterion, #40 and #41 exist as separate entries with the same derived pitch, the separation every pitch spelling in this register failed to keep, misfiling 4 to 6 rows apiece. Step four: refuse bare numbers from outside documents a pitch until the code is confirmed — pass criterion, zero entries whose pitch came from reading the number as millimetres, the form that misfiled 53 of 60. The completion check is the register's own stage count: kept this way, the register returns 300 of 300 at the first stage, because its key spelling never failed.
The closing red line
The red line for chain records is a conversion that looks like an improvement: replacing the ANSI number with its pitch, in the name of storing measurements rather than codes. Cross it, and the register has traded a key that distinguishes nine chains for a measurement that distinguishes eight — the #41 ceases to exist as a separate stock line, its inventory folded into the #40's, its narrower width unrecorded anywhere. Orders will still be filled; they will be filled with the wider chain, which fits the sprocket and binds on everything the width was chosen for. A code that decodes exactly tempts exactly this error, because the decode feels like understanding. It is half of understanding. The other half is the digit the decode throws away.
FAQ
How does the decode rule run, exactly? Take the number's tens part as a count of eighths of an inch: #25 gives 2 eighths (1/4 in, 6.35 mm), #40 gives 4 (1/2 in, 12.7 mm), #120 gives 12 (1 1/2 in, 38.1 mm). The register verified the rule against all nine rows' pitches without an exception. The units digit is the width variant and plays no part in the pitch.
Are #40 and #41 interchangeable? They share a pitch, so they fit the same sprockets; they differ in width, which is the variant the units digit carries. The register's finding is narrower than the workshop question: whatever the answer in metal, a record system that keeps only pitch cannot even ask it, having merged the two chains into one row.
Which spelling should a register standardise on? The ANSI number itself — 60 of 60, no wrong returns. The pitch spellings are its proper derived fields; the millimetre pitch, the fraction and the decimal inch each misfiled the #41 rows and nothing else, which makes them excellent checks and unacceptable keys.
Why did the bare number recover any rows at all? Only the #120's: read as 120 mm, it files under the nearest pitch, 38.1 mm, which happens to be its own. The other eight numbers all sit closer, in millimetres, to some other chain's pitch — the #25 lands four times too large, on the #80.
Sources: this batch's harness (evidence/sd-harness-batch36.py) made the measurement; the counts in full are sd-results-batch36.json, the design sd-run-notes-batch36.md. The roller-chain register's recovery by spelling is shown in the original chart above.