Advertisement
Data Processing

SmartDataAI Lab Notes: Beer Keg Sizes — The Same Quarter

Two kegs in the register hold exactly the same beer. The Quarter Barrel and the Slim Quarter both carry 7.75 US gallons, 29.34 litres — the same volum...

Two kegs in the register hold exactly the same beer. The Quarter Barrel and the Slim Quarter both carry 7.75 US gallons, 29.34 litres — the same volume to two decimals in one unit and one decimal in the other, because the volumes are not close, they are identical. What differs is the shape: one is short and wide, the other tall and narrow, built for different shelves and different taps. A register keyed on volume cannot tell them apart at any precision, and a register keyed on the trade's own fraction language cannot tell them apart either — both are, literally, a quarter barrel. We built a 540-row register of nine keg sizes and spelled each six ways. The name returned every keg. Every volume spelling merged the quarter pair, whole gallons merged two further triples, and the fraction spelling simply does not exist for five of the nine kegs.

How the register was built and read

The register holds nine kegs with their volumes in US gallons and litres: Half Barrel 15.5 / 58.67, Quarter Barrel 7.75 / 29.34, Slim Quarter 7.75 / 29.34, Sixth Barrel 5.16 / 19.53, Cornelius 5.0 / 18.93, Mini Keg 1.32 / 5.0, Euro 50 13.21 / 50.0, Euro 30 7.93 / 30.0 and Euro 20 5.28 / 20.0. Four of them — the US barrel family — also carry a barrel fraction: a half, two quarters and a sixth. Each keg was written six ways, ten times each: its name; gallons at two decimals; gallons rounded whole; litres at one decimal; litres rounded whole; and its barrel fraction, or, for the five kegs that have none, a note that the keg carries no barrel fraction. A spelling is exact when it returns its own keg alone, merged when it returns more, refused when it returns none. Every count below is the harness's measured output, recorded in this batch's result JSON.

The Same Quarter, defined

The Same Quarter is what a register meets when two distinct products share one capacity exactly: not a rounding collision but an identity, so no increase in decimal precision can separate them, and the only spellings that work are the ones that carry the products' names or shapes. It is distinct from The Quarter Bottle, the batch 33 wine-bottle concept, defined there as "what a named size ladder loses at its small end" when sizes are rewritten in one decimal unit. The wine ladder's losses happen at its foot, where a decimal step is wider than the gaps between small bottles, and they are losses of precision — keep more decimals and the Piccolo survives. The keg pair survives every precision and still merges, because there is no gap to resolve: 7.75 gallons is not an approximation of either keg's volume, it is both kegs' volume, and the difference between them lives in a dimension — height against diameter — that a volume register never records. The resource-list discipline this article is named for is to stock the register with that dimension before it is needed: name and form factor as first-class fields, not as notes.

One keg, six ways, worked in full

Take the Cornelius keg, 5.0 gallons, 18.93 litres, the soda keg of homebrew service. Written by name, it returns itself. Written "5.00 gal", it returns itself — no other keg formats to that figure. Written "19 L", litres rounded whole from 18.93, it still returns itself. Written "5 gal", whole gallons, it collapses into a triple: the Sixth Barrel at 5.16 and the Euro 20 at 5.28 round to the same whole gallon, and the register can no longer say which of the three a delivery note means. Written for its barrel fraction, it returns nothing at all — the Cornelius is not a fraction of a barrel in this register, and neither are the Mini Keg or any of the three Euro kegs, so the fraction spelling is refused for five of the nine. One keg, six spellings: three exact, one merged, one refused, and one exact only because two decimals of a gallon happen to be a finer sieve than the register's spacing at that point — luck the quarter pair does not share, since its spacing is zero.

What the six spellings returned

SpellingExactMergedRefused
Name9000
Gallons, two decimals70200
Gallons, rounded whole30600
Litres, one decimal70200
Litres, rounded whole50400
Barrel fraction202050
All 540 rows33016050

The whole-gallon merges repay a look. "8 gal" returns three kegs — Quarter Barrel, Slim Quarter and the Euro 30 at 7.93 gallons — so a whole-gallon register confuses a European keg with two American ones. "20 L" returns the Sixth Barrel (19.53 litres) beside the Euro 20 that actually holds 20.0, the register's one case of a rounded spelling naming a keg that does not hold the rounded volume. And the fraction spelling, the trade's oldest language for these sizes, is the register's weakest: exact only for the Half Barrel and the Sixth, merged on the quarters it cannot separate, and silent for the five kegs the barrel family never named.

Short answers

What is the same quarter? Two different kegs — Quarter Barrel and Slim Quarter — holding one identical volume, 7.75 gallons / 29.34 litres, so every volume spelling merges them at any precision.

Which spelling separates them? Only the name. Gallons at two decimals and litres at one decimal both merge the pair, because the volumes are equal, not merely close.

What do whole gallons merge? "8 gal" returns the two quarters plus the Euro 30; "5 gal" returns the Sixth Barrel, the Cornelius and the Euro 20 — 60 of 90 whole-gallon rows merge.

Why is the fraction spelling refused so often? Five of the nine kegs — Cornelius, Mini Keg and the three Euro sizes — carry no barrel fraction in this register, so their fraction spelling parses to nothing: 50 refused rows.

FAQ

Are the two quarter kegs interchangeable in service?

Not on the register's evidence: they share a volume and nothing else — the Slim Quarter's tall, narrow form exists for shelves and kegerators the short Quarter Barrel does not fit. A volume-only register records them as one product; a stockroom would not.

Does keeping more decimals fix the pair?

No. The merge is exact at two decimals of a gallon and one decimal of a litre, and it persists at any precision, because the underlying volumes are the same number. Precision fixes rounding collisions; this is an identity.

Which keg does "20 L" mean?

Two: the Euro 20, which holds exactly 20.0 litres, and the Sixth Barrel, whose 19.53 litres rounds to 20. A litre register rounded whole cannot distinguish a keg that holds the volume from one that merely rounds to it.

What fields should a keg register carry?

Name, volume in both units at full printed precision, and form — the register's own lesson is that the name is the only spelling that returned all 90 rows, and form is the field that explains why the merged pair exists.

Next action: before the next stock count, add a form field to the keg register and backfill it for the two quarters — the pair is the register's only exact-volume identity, and it is invisible until the day a delivery swaps one shape for the other.

Source: SmartDataAI cleaning run, batch 67 — nine keg sizes carrying 540 rows across six spellings. All counts quoted here are the harness's measured output, kept with this batch's evidence files. !How the six spellings scored on exact returns, per the results table

Know someone who needs this? Share it.

Advertisement