KITSOKI
Learn · Notebook

Order costs work: gates, leaks and construction

Add rules to make a system predictable and the forbidden behaviour escapes somewhere nobody named. Four old results explain why, and why construction is the way out.

Kitsoki·
Read the paper and learn more
Contents
  1. The observation
  2. Variety and the regulator
  3. The waterbed
  4. The demon's bill
  5. Levees and fill
  6. Essential and accidental variety
  7. Complexity and complication
  8. Two ways to order a system
  9. Compression is not refinement
  10. The frontier and its equation
  11. Three ways to land inside
  12. Construction in Kitsoki
  13. Gates hold what only the outside can vary
  14. A model is a heat source
  15. A model lowers the constant, not the class
  16. Build hot, operate cold
  17. Temper above the working heat
  18. A leak is a measurement
  19. Every wall leaks
  20. The pressure gauge
  21. Three results that agree
  22. Where the analogy stops
  23. References

Why each new rule makes a complex system leak somewhere else, what four results from cybernetics, control theory and physics say about it, and why Kitsoki orders itself by construction and gates only what the outside world can vary. A language model is the hottest part of such a system: its heat is spent to build and change the system's shape, and the system operates cold. Under all of it is entropy: order is bought locally with work, and the variety it displaces has to go somewhere.

Don't push harder on the piston. Take molecules out.

Companion papers: Kitsoki is a causet (the history as a causal order) and A closed world, proven (Kitlark and the verifiable-language tradition).

The observation

Make a complex system more deterministic by adding rules and gates and it behaves like a gas under a piston. Each rule closes one opening. The pressure rises, and the behaviour the rule forbade comes out through an opening nobody had named: an override flag, a copy kept by hand, a retry loop, a second path around the first. Each further degree of consistency costs more work than the one before.

The pattern is the shape of four established results, and together they say one thing precisely:

  1. Ashby's law of requisite variety: a regulator removes only as much variety as it has itself;
  2. Bode's sensitivity integral: suppression in one band is paid for by amplification in another;
  3. Landauer's principle: every bit of order is paid for in work, and the disorder is exported;
  4. Essential and accidental complexity: the variety a problem needs has a floor that no representation goes below, and everything above the floor is a choice.

A gate does not remove variety. It relocates it, and pays for every bit it holds, on every change, forever. Only a change of representation removes variety. Kitsoki is built on that distinction: it orders itself by construction, keeps gates for the variety that only the outside world supplies, and reads every leak as a measurement of a degree of freedom its model lacked.

Variety and the regulator

Variety is the number of distinguishable states a thing can be in; its logarithm is measured in bits. Ashby's law [1] says that if disturbances D reach a system and a regulator R acts on them, the variety left in the outcomes E is at least what the regulator could not match:

H(E) >= H(D) - H(R)

Only variety can destroy variety. A rule is a regulator. A rule written as a list that blocks four cases lets every other case through. And no regulator escapes the bound: twelve kinds of disturbance against four responses leave at least three outcomes, because log 12 − log 4 = log 3, whatever the rule's author intended.

Conant and Ashby [2] go further: every good regulator of a system must be a model of that system. A gate written as a list of prohibitions has the variety of the list. The system has the variety of its state space. The difference passes through, and it passes through the cases nobody listed, because those are the ones the list cannot see.

So the regulator Kitsoki trusts is the model itself: a Kitlark program checked whole by one checker, whose refusals are derived from the program's own types, stages and grants. A gate that is a list is reserved for what the model cannot contain, and it says what that is.

The waterbed

Control engineers know this effect as the waterbed. For a stable feedback loop whose open-loop gain falls off fast enough, Bode [3] showed that the sensitivity S of the closed loop obeys a conservation law:

integral from 0 to infinity of ln|S(jw)| dw  =  pi * sum of Re(p_k)  >=  0

Push sensitivity below one in one band of frequencies and it must rise above one in another. A loop cannot be made insensitive everywhere; a designer only chooses where it stays sensitive [4].

A software gate behaves the same way. It lowers sensitivity on the path it guards. The demand for the behaviour it forbids (the work someone needs done) is unchanged, so the behaviour shows up on a path the gate does not guard. Chemistry has the same law for equilibria: a system under a new constraint shifts to counteract it [14]. Economics has it for measures: a measure made a target ceases to be a good measure, because people route around it [12].

Kitsoki treats the second path as the important fact. Every failure past a gate is filed with the degree of freedom it used, so the waterbed's bulge is a finding with a name, not a surprise.

The demon's bill

Maxwell's demon sorts fast molecules from slow ones at a door and seems to make order for free. Szilard [7], Landauer [5] and Bennett [6] settled the account: to sort, the demon must record what it saw, and to keep sorting it must erase its record. Erasing one bit costs at least kT ln 2 of work, released as heat (about 2.9 × 10⁻²¹ joules at room temperature); measuring can in principle be free. Bérut and colleagues measured the bound in a single colloidal bit [32]. The demon's bill always exceeds its gain. Local order is bought by exporting disorder somewhere else.

In silicon the joules are negligible. The bill is paid in attention. Every gate decision that is not derived from the model costs a person or an agent reading, judging and recording, on every change. And the disorder the gate refused is exported as heat of its own kind: escape hatches.

Escape hatch The variety it carries
an override flag a case the gate cannot tell apart from a bad one
a known-red list a failure the gate cannot hold and the work cannot wait for
a ratchet allowance a form the representation still admits
a hand-kept copy of a derived fact a fact with two sources
a blind retry an outcome the caller cannot classify

Kitsoki keeps each escape hatch as a record naming the gate it bypasses, its owner and the freedom it carries, and counts them. Their count is the heat the gates export.

The bill also grows near the limit. In operations, each further nine of consistency is commonly reckoned at roughly ten times the cost of the last; that is a rule of thumb, not a law. Physics has the same shape: each step of cooling toward absolute zero achieves less than the one before, and no finite number of steps reaches it [16].

Relativity draws the same curve. A body's energy grows as γ = 1/√(1 − v²/c²), so each further nine of the speed of light (0.9c, 0.99c, 0.999c) costs about three times (a factor of √10) the energy of the one before, and reaching c would cost infinitely much [28]. The rates differ, roughly tenfold per nine of consistency against about threefold per nine of speed, but the shape is shared: the cost diverges at the limit, so the limit is approached and never bought.

Levees and fill

Underneath every picture on this page is one law. Entropy is the logarithm of how many states a system could be in, S = k ln W, and the same measure in bits is Shannon's measure of information [8]. It rises by itself. Work can lower it in one place, and that work raises it by more somewhere else (see The demon's bill). Order is local, paid for, and leaky.

Engineering against it looks like flood control. A levee keeps water off one field by confining the river, and confined water rises: the crest climbs, the next levee must be higher, and water that cannot spread goes over or around at the weakest place. Levees also invite building behind them, so the damage when one fails grows with the protection [29]. Each rule that confines a system's variety is a levee.

River engineering has two better moves, and it uses them together. The first gives the river room. The Dutch Room for the River programme lowered flood levels by lowering floodplains, setting dikes back and opening bypass channels, so the water spreads where spreading harms nothing [30]. The second lifts what must stay dry above the highest flood: a dwelling mound, a platform on piles, land reclaimed with a seawall and fill. After the 1900 hurricane, Galveston built a seawall and raised the ground of the city behind it by up to five metres [31]. The two compound: the more room the water has, the lower its crest, and the less anything has to be lifted.

Levees: confine the river over the weakest the crest climbs with every levee Room and fill the highest flood fill a lower crest needs less lift
Confined water climbs and finds the weakest levee. Water given room runs low, and what must stay dry sits on fill above the highest flood.
Flood control The system
a levee a gate that confines variety and raises the pressure behind it
room for the river a space where variety runs its course harmlessly: drafts, sessions, studies
fill above the highest flood a construction whose bad states cannot be written
the highest flood the outside variety the world supplies, the floor nothing removes
a lower crest less to lift: every harmless place to spread is a construction no one has to build

Kitsoki is built this way. Heat and change run freely where nothing bears load, which keeps the crest low. What bears load stands on fill, raised above the variety the world supplies. Gates stand only at the edge, where the water meets the fill.

Essential and accidental variety

Brooks [10] split a system's complexity in two: the essential, which the problem itself demands, and the accidental, which comes from how the solution is represented. Kolmogorov [9] gives the essential part a floor: the length of the shortest description of what the system must do. No representation goes below it. The floor is a bound, not a target one can certify: it depends on the description language up to a constant, and it cannot be computed, so no design proves it has reached the floor. Tesler's law of conservation of complexity [11] is the same floor stated for design: the essential part can be moved between the person and the system, never deleted.

Everything above the floor is variety the representation admits and the problem does not need: a state that can be written but means nothing, two forms of one concept, a fact kept in two places, a write that two owners can make. That is where gates spend almost all of their work, and it is the one kind of variety that can be removed outright.

The working rule has a short name in typed functional programming: make illegal states unrepresentable [13]. Kitsoki applies it to every fact it holds: each fact has one source, and everything else is derived from it, so a copy cannot drift because no copy is written by hand.

Complexity and complication

The two words name different things, and the difference decides which tool works. Complicated is from the Latin com-plicare, folded together: many parts, each knowable, whose behaviour is the sum of what they do. A complicated thing can be unfolded. Complex is from com-plexus, woven together: parts whose interactions produce behaviour no part has, known fully only after it happens [17]. A complex thing cannot be unfolded without unmaking it.

Complication Complexity
Where it comes from the representation the problem and the world it meets
Which variety it is accidental, above the floor essential, at the floor
The tool that removes or holds it a construction that unfolds it a regulator with a model and a feedback loop
What a list of rules does to it holds it, at a cost, on every change misses it, because the list cannot see what has not happened

Both mistakes are common. Treating complexity as complication writes more rules against behaviour that emerges, and each rule is another stroke of the piston. Treating complication as complexity watches and alerts on variety that a construction could remove outright, and the leak is never closed.

Kitsoki classifies every leak by that line. A freedom the representation admits is complication, and a construction unfolds it. A freedom the world supplies is complexity, and it is declared outside variety, regulated at the boundary where it enters and measured, so the loop learns from what actually happens.

Two ways to order a system

There are two ways to make a system more consistent, and they behave differently under every load.

The piston: gates Fewer molecules: construction override retry side copy pressure pressure only what the problem needs
Two ways to order a system. Left, a gate holds the same degrees of freedom under pressure and they escape through every seam. Right, a construction removes them, so there is nothing to hold.
The piston: a gate Fewer molecules: a construction
Where the order lives in a check that runs on each change in the representation itself
Cost per change a reading, a judgment, a record none: the bad state cannot be written
Under pressure the variety escapes through the next unguarded path there is nothing to escape
What a failure means a seam no one listed a defect in the construction, found once
As the system grows rules multiply with its paths constructions compose with its parts

Effort spent enforcing order is work done on the piston: each stroke holds a little more, and every stroke is paid again on the next change. A piston can only press on what the cylinder holds, and no wall holds everything (see Every wall leaks). A software system chooses its own degrees of freedom. Kitsoki spends its effort on the right-hand column, and when a construction excludes what a gate forbade, the gate and every rule that restates it are deleted in the same change: order is held once, by the representation, never twice.

Compression is not refinement

Pressing a mixture into a smaller space contains it; it does not purify it. Compress a volume of mixed gas and the wanted fraction takes less room, and so does the unwanted one. Every molecule, wanted or not, is hotter, and the mixture is exactly as mixed as before. More pressure on a stream of changes does the same: every change, good or bad, pays more to pass, and the share of bad ones is unchanged.

Refineries separate by a property that differs. A fractionating column heats crude oil at its base and lets the vapour expand and rise through trays that are cooler with height. Each fraction condenses at the tray where its boiling point is reached and is drawn off there. Heat with room to expand classifies, and no refinery sorts crude by pressing it.

Where pressure does separate, it needs something that tells the parts apart: a membrane, a sorbent or a phase change. Every method pays at least the free energy of unmixing. Reverse osmosis pushes seawater across a membrane that passes water and holds salt. It is the cheapest way to desalinate, and still only as good as its membrane: the pressure must exceed the osmotic pressure of the brine, which rises as the brine concentrates, so each further litre costs more than the last and recovery typically stops near half [26]. The membrane is a selective relief valve: a gate with a model of what may pass.

Compress smaller, hotter, still mixed Distil lightmiddleheavy heat and room to expand sort Membrane pressure plus a medium that tells apart
Pressing contains a mixture; it never sorts it. Heat with room to expand sorts by a property each part carries, and pressure sorts only through a medium that tells the parts apart.
Process What separates The system
compression nothing: everything is hotter and still mixed more rules on every change, paid by good and bad alike
distillation heat and room to expand, sorting by a property each part carries a model's heat in a draft space, each change settling at the stage its checks reach
reverse osmosis pressure across a medium that tells the parts apart a gate whose model names the variety it passes, at a cost per unit

Kitsoki refines; it does not compress. Heat is spent in drafts with room to try, the checker classifies by the program's own types, and a gate is kept only where a membrane earns its cost: at the boundary, naming the variety it passes.

The frontier and its equation

One line defines the Mandelbrot set: start at z = 0, repeat z → z² + c, and keep every c for which z stays bounded. The rule is short. The shape it encodes has a frontier of endless detail, so intricate that its dimension is two [22]. A system's valid states are the same kind of thing: a short rule, an intricate edge.

Shoot and test: a gate every shot pays to be tested; near the edge pays most Probe locally: a rulebook without the equation, each probe finds more frontier Index the inside: construction c = m/2 - m²/4 for |m| < 1: every point named is inside
One equation, z to z squared plus c, encodes a frontier of endless detail. Shooting pays to decide every point; probing without the equation never finishes; an index names only valid points.

Three ways to land inside

A set of valid states drawn by a short rule, like the Mandelbrot set drawn by z → z² + c, can be reached three ways. Whoever holds the equation can test any point without mapping the edge; whoever holds an index of the inside can name valid points without deciding anything.

  1. Shoot and test. Draw a point from the plane and iterate to test it. An outside point shows itself by escaping; an inside point is known only up to the bound you iterate, and the cost of deciding rises toward the frontier, where points take longest to escape. Every shot pays for its test, and membership in general is undecidable [35]. That is a gate.
  2. Probe locally. Without the equation, learn the frontier by sampling around points that passed and points that failed. The frontier has endless detail, so each probe finds more of it, and the search never finishes. That is a rulebook grown from leaks.
  3. Index the inside. The main body of the set has a constructor: every m with |m| < 1 names a point c = m/2 − m²/4 inside it [23]. Walk m and every point named is valid, with nothing to test. That is construction.

Kitsoki holds both the equation and the index. The checker is the equation: one rule, derived from the program's own types, stages and grants, decides the whole frontier, so no one maps it by hand. The constructors are the index: one owner per write, one form per concept, schemas derived from types, so the states a program can name are inside by construction. What an index cannot reach, the equation decides; only what comes from outside goes to a gate. A model shoots well, with a strong aim, and its shots are tested by the same equation.

Construction in Kitsoki

Each row is a rule a person would otherwise have to keep on every change, and the construction that makes its bad state unwritable.

The rule a gate would hold The construction that removes it
Two agents must not write the same shared thing at once. Every shared resource declares the one Process that owns its writes; a write outside it is refused.
Two pins of one application must not drop each other's work. A pin appends a change to a line; two concurrent pins both stay.
An operation's output must match its schema. The schema is derived from the type, so there is one source and nothing to match.
Code must not reach a power it was not granted. References are unforgeable, and a module's import section is exactly its grant.
One concept must be written one way. One form per concept, one checker, one answerer; a retired form is refused with its rewrite.
A story must declare what it needs to run. A program's capability needs are derived statically from the program.
A match must handle every case. The checker refuses a match that is not exhaustive before anything runs.

None of these is a check that someone remembers to run. Each is a shape the program cannot leave.

Gates hold what only the outside can vary

Some variety is essential and comes from outside every representation: a model's answer, a network's delay, a person's choice, a foreign system's data, a clock. No type makes a model's answer correct. Here Ashby's law holds in full: the regulator must have that variety, so a gate is the right tool, and it belongs where the variety enters.

Kitsoki places its gates on that boundary and shapes them like a pressure vessel, not a sealed can:

A model is a heat source

A language model has more degrees of freedom than any other part of a system: its output space is all text. The word temperature in its sampling is Boltzmann's. A model picks each token from a Boltzmann distribution over its scores, the same form statistical mechanics gives the states of a gas [19], in units of score rather than kelvin:

p_i = exp(z_i / T) / sum over j of exp(z_j / T)

So a model adds heat to whatever it touches, and heat is useful. Hot metal is ductile: it can be forged into a shape it could not take cold. Annealing uses heat to let a material, or a search, climb out of a poor arrangement and settle into a better one [18]. A model's freedom is what lets a system change shape: draft the code no one has written, find the path no rule anticipated, propose the design that the rules could not express.

Heat also leaves stress. Steel forged hot and cooled too fast traps residual stress, and the part is hard, brittle and cracks under load [20]. The software form is a model's output put to work before it has cooled: an answer wired into control flow, generated code served unchecked, a prompt standing in for a contract. Each holds a stress no one can see until a load finds it.

Kitsoki cools what a model makes the way a smith tempers a blade, by a schedule. A model-authored change lands as a private draft revision. It passes the same checker, flows and journeys as a hand-made change, and it ships only through the gate. A failure on the way reheats one rung, never the whole part.

A model lowers the constant, not the class

A model works by perturbing a system and keeping what passes: it proposes, a check tests, and the proposal is kept or thrown away. That is generate and test, the method of Borel's monkeys at typewriters [21], with an education. The education is a strong prior: it puts the likely answers first, so the expected number of attempts falls by a large factor, and so does the time to a passing answer.

It does not change the shape of the search. The space a proposal is drawn from still grows exponentially in the freedoms the representation admits, and each attempt still costs one run of the check:

expected cost  =  attempts(prior, 2^F)  ×  cost of one check

A better prior lowers the constant in front of that cost: an eightfold prior buys back three on/off freedoms, and so does removing three of them once. Only a construction that removes a freedom for every part, or narrows the choices each freedom has, lowers the exponent, and that gap grows with the system, for every model and every person.

So the two tools compound, in a fixed order. Construction shrinks the space; the model searches what is left; the check is the cheapest one the representation allows, because it runs once per attempt. A system that adds model calls to a large space buys speed at the same complexity, and pays for it in checks.

Build hot, operate cold

A smith forges hot and the part is used cold; a part kept at forging heat creeps and fails. Kitsoki spends a model's heat to build the system and change its shape, and runs the system on what that heat produced, cooled.

Stage Temperature What it holds
Explore hot a session: names rebound freely, a model drafting and trying
Fix cooling a script: each name bound once, every type known before it runs
Operate cold a module and its stories: checked whole, answers replayed from records

The running system repeats its steps (routes, gate decisions, classifications, retry choices) by executing code, records and derived rules. A journey plays back the answers its recording holds, so a replay is the same every time. A model on an operating path is reserved for variety that is genuinely outside (a person's free text, a foreign document), each call names that variety, and its answer arrives as typed data checked at the boundary. An answer that recurs is turned into a construction, so the heat that found it is spent once.

The ladder runs both ways. A study that passes its checks is what the operating system reads, and a failure in operation opens the rung below, where heat is allowed again, at the exact point that failed.

Temper above the working heat

Annealing is the picture for the whole build, and it carries one more rule. A part is relieved of stress by staged cooling, and then it works at some temperature. If that working heat reaches the temperature the part was tempered at, the part keeps tempering in service: its hardness drifts, it creeps, and it changes shape in ways no drawing shows. So a part is tempered above the highest temperature it works at, from an alloy chosen for that heat [20].

Software keeps the same rule. The staged cooling is the ladder from session to script to module (see Build hot, operate cold). The working heat is the variety the running system meets: the outside inputs it reads and the model calls it still makes. A part proven colder than it works keeps changing in service: an answer its proof never applied reshapes its behaviour, and the drift shows as failures no change explains. So every operating path is proven at its working heat. Each model call it makes in operation is exercised in its proof, refusals and malformed answers included, and a path proven with no model call makes none in operation.

Some parts must work hot: the ones that read a person's free text or a foreign document. Here the picture is the turbine blade. The first blades of a jet engine run in gas hotter than their alloy's melting point. They survive because each is cast as a single crystal, with no grain boundaries for creep to run along, cooled from inside through channels, and sheathed in a ceramic coat that holds the heat at the surface [27].

Metallurgy The system
staged cooling session, then script, then module
tempering above the working temperature a proof at least as hot as operation
creep in service behaviour drifting under variety the proof never applied
a single crystal one form and one owner for each value: no seam for drift to run along
a ceramic coat and cooling channels the model's answer typed at the boundary, the core behind it cold

A hot boundary in Kitsoki is built like the blade: what it produces has one form and one owner, the model's answer is typed data from the surface inward, and everything behind the boundary operates cold.

A leak is a measurement

A leak past a gate tells the system something it did not know: there is a degree of freedom its model lacked. There are two ways to answer. One is another gate on the new path, which is another stroke of the piston and moves the bulge again. The other is a question: why can this state be written at all?

Leak Finding Construction Gate deleted outside variety: declared and gated the next leak names a new freedom, never the same one
A leak is read, not plugged. The finding names the degree of freedom; a construction removes it, or it is declared outside variety and gated where it enters.

Kitsoki answers with the question. A failure past a gate is a leak finding that names the gate and the degree of freedom. The finding closes in one of two ways: a construction removes the freedom, or the freedom is declared outside variety with a gate at the boundary where it enters. Either way the gates that the answer makes redundant are deleted, so the rulebook shrinks as the system learns. A second leak through a freedom on file counts on the first finding, because it means the first answer was a gate.

This is the checker's rule read as physics: a failure the checker could have caught is a defect in the checker, and the cheapest checker is a representation with no room for the failure.

Every wall leaks

The gas under a piston understates the case. Physics says more than that a pressed gas finds the next opening: it says confinement itself leaks, at every scale, and that the smallest and least reactive things leak most.

Helium passes walls. A helium atom is small, neutral and reacts with nothing, so no wall holds it by force: it diffuses through glass, rubber and the seams of steel, and a sealed helium vessel loses its gas through the material itself. Cooling does not tame it either. Helium stays liquid down to absolute zero at ordinary pressure, because its zero-point motion outweighs the weak forces that would lock it into a lattice; it solidifies only when pressed above about 25 atmospheres [24].

Squeezed matter tunnels. Confine a particle to a box of width L and its lowest energy rises as 1/L²: halving the box quadruples the cost of holding it. Past a barrier of thickness d the particle is found with probability about exp(-2κd), falling exponentially but never to zero, and higher for lighter particles. The transistor's own gate meets this. Once its insulating layer thinned to a few atoms, electrons tunnelled through it, and the answer that worked was a different material and shape, not a harder push on the old one [25].

Walls are tuned. A wall blocks some wavelengths and passes others. A pane of germanium is black to the eye and clear to infrared, so a wall that stops every visible ray from a source can still pass its heat, and it does so even when the wall itself absorbs nothing and re-emits nothing. An observer who checks only the light sees a perfect wall and a room that keeps warming. A gate is tuned the same way: it removes only the variety it can tell apart (see Variety and the regulator), and the rest crosses in a band it never measures.

thin wall: a single check thick wall: more of the same check
A wall is a barrier, not a removal. What passes falls exponentially with its thickness and never reaches zero.

Each has a reading in a software system.

Physics The system
helium a value with no type a gate can grip: a bare string, an untyped map, a blob of JSON
zero-point motion the variety no amount of checking settles, because the world keeps supplying it
confinement energy rising as 1/L² each further rule costing more than the last as the allowed space narrows
tunnelling through a thin barrier a failure that passes a single check by a path the check never sees
infrared through a wall opaque to light variety in a band the gate cannot tell apart, felt as heat no blocked source explains
a new material for the gate a new representation, which changes what states exist

So Kitsoki does not trust walls to hold small, neutral values. It gives them a charge: each value has a declared type and one owner, so the representation holds it where no check could. What still passes is counted as an escape hatch and filed as a leak, which is how the exponential tail is kept in view.

The pressure gauge

A rulebook that keeps growing is a pressure gauge: the representation admits more than the problem needs, and the rules are absorbing the difference. Kitsoki reads the gauge from records, not from impressions.

Reading What a rise means
Rules held only by a gate variety the representation could exclude and does not
Coordination rules with no enforcing check a rule held by memory alone
Escape hatches in use refused variety the work still needs to express
Repeat leaks a freedom answered with a gate, not a construction
Model calls on operating paths heat applied where nothing should change shape

All five point down and aim at zero. The response to a rising reading is never a harder piston. It is the next construction, chosen by which freedom leaks most.

Three results that agree

Three further results point the same way, and each says why construction pays where gates do not.

Structure makes nines cheap. Shannon's coding theorem [8] says that below a channel's capacity the error rate can be made as small as wanted, and with good codes it falls exponentially as redundancy grows. Repeating a message buys little; structuring it buys a great deal. The rule of thumb that each nine costs ten times the last describes unstructured protection. A representation with structure in it makes further nines cheap.

No checker sees everything. Rice's theorem [36] says every non-trivial property of what a program does is undecidable for programs in general. A gate that inspects arbitrary programs is therefore always partial, which is why it leaks. A type system restricts which programs can be written at all, so its checker decides a smaller language completely. That is construction in its plainest form.

Robust here, fragile there. Carlson and Doyle [34] showed that systems tuned against the disturbances they expect become robust to those and fragile to the ones they did not expect, and read this as a conservation of fragility: it can be moved, not removed. Martins and Dahleh [33] carried Bode's limit to controllers that act through noisy channels. Together with Bode's area these are the senses in which something is conserved, and they are why a gate pushed down in one place shows up in another.

Where the analogy stops

The gas is a picture, and the picture has limits worth stating.

Shape, not magnitude. Shannon's entropy [8] and the thermodynamic kind share their mathematics, and Jaynes [15] showed that statistical mechanics can be read as inference. So the shape carries over: only variety removes variety, suppressed variety relocates, and the marginal cost of order rises near the limit. Strictly, nothing here is conserved except Bode's area and, in Carlson and Doyle's reading, fragility (see Three results that agree). The magnitudes do not: the physical cost of a bit is negligible, and the real cost is attention.

Walls against states. The physics agrees further than the piston suggests: every wall leaks, and the answer that works at the limit is a change of material or shape, not a harder push (see Every wall leaks). A software system has that answer on every change, because it chooses its own representation, and a state the representation cannot write needs no wall. That is why construction works at all.

Outside variety is real. Removing accidental variety never removes the essential kind. The outside world keeps supplying it, and Ashby's law keeps applying to it. Construction shrinks the job of the gates to its true size; it does not abolish gates.

Heat and search are pictures too. A model's sampling temperature is the Boltzmann form exactly; the stress a hot change leaves is a picture of hidden coupling, not a measured quantity. And the class of a search is a statement about its worst case: a strong prior can make the typical search short in practice, while the space it draws from, and the work of checking each draw, stay as large as the representation makes them.

References

  1. Ashby, W. R. (1956). An Introduction to Cybernetics, ch. 11. Chapman & Hall.
  2. Conant, R. C., & Ashby, W. R. (1970). Every good regulator of a system must be a model of that system. International Journal of Systems Science, 1(2), 89–97.
  3. Bode, H. W. (1945). Network Analysis and Feedback Amplifier Design. Van Nostrand.
  4. Stein, G. (2003). Respect the unstable. IEEE Control Systems Magazine, 23(4), 12–25.
  5. Landauer, R. (1961). Irreversibility and heat generation in the computing process. IBM Journal of Research and Development, 5(3), 183–191.
  6. Bennett, C. H. (1982). The thermodynamics of computation: a review. International Journal of Theoretical Physics, 21(12), 905–940.
  7. Szilard, L. (1929). Über die Entropieverminderung in einem thermodynamischen System bei Eingriffen intelligenter Wesen. Zeitschrift für Physik, 53, 840–856.
  8. Shannon, C. E. (1948). A mathematical theory of communication. Bell System Technical Journal, 27, 379–423 and 623–656.
  9. Kolmogorov, A. N. (1965). Three approaches to the quantitative definition of information. Problems of Information Transmission, 1(1), 1–7.
  10. Brooks, F. P. (1987). No silver bullet: essence and accidents of software engineering. Computer, 20(4), 10–19.
  11. Saffer, D. (2009). Designing for Interaction, 2nd ed. New Riders (Tesler's law of conservation of complexity).
  12. Goodhart, C. A. E. (1975). Problems of monetary management: the U.K. experience. Papers in Monetary Economics, Reserve Bank of Australia.
  13. Minsky, Y. (2011). OCaml for the masses. Communications of the ACM, 54(11), 53–58.
  14. Le Chatelier, H. (1884). Sur un énoncé général des lois des équilibres chimiques. Comptes Rendus, 99, 786–789.
  15. Jaynes, E. T. (1957). Information theory and statistical mechanics. Physical Review, 106(4), 620–630.
  16. Masanes, L., & Oppenheim, J. (2017). A general derivation and quantification of the third law of thermodynamics. Nature Communications, 8, 14538.
  17. Snowden, D. J., & Boone, M. E. (2007). A leader's framework for decision making. Harvard Business Review, 85(11), 68–76.
  18. Kirkpatrick, S., Gelatt, C. D., & Vecchi, M. P. (1983). Optimization by simulated annealing. Science, 220(4598), 671–680.
  19. Ackley, D. H., Hinton, G. E., & Sejnowski, T. J. (1985). A learning algorithm for Boltzmann machines. Cognitive Science, 9(1), 147–169.
  20. Totten, G. E. (Ed.) (2006). Steel Heat Treatment Handbook, 2nd ed. CRC Press (quench cracking and tempering).
  21. Borel, É. (1913). Mécanique statistique et irréversibilité. Journal de Physique Théorique et Appliquée, 3, 189–196.
  22. Shishikura, M. (1998). The Hausdorff dimension of the boundary of the Mandelbrot set and Julia sets. Annals of Mathematics, 147(2), 225–267.
  23. Douady, A., & Hubbard, J. H. (1984). Étude dynamique des polynômes complexes, part I. Publications Mathématiques d'Orsay.
  24. Keesom, W. H. (1926). Solidification of helium. Nature, 118, 81.
  25. Robertson, J. (2006). High dielectric constant gate oxides for metal oxide Si transistors. Reports on Progress in Physics, 69(2), 327–396.
  26. Elimelech, M., & Phillip, W. A. (2011). The future of seawater desalination: energy, technology, and the environment. Science, 333(6043), 712–717.
  27. Reed, R. C. (2006). The Superalloys: Fundamentals and Applications. Cambridge University Press.
  28. Einstein, A. (1905). Zur Elektrodynamik bewegter Körper. Annalen der Physik, 17, 891–921.
  29. White, G. F. (1945). Human Adjustment to Floods. Research Paper 29, Department of Geography, University of Chicago.
  30. Rijke, J., van Herk, S., Zevenbergen, C., & Ashley, R. (2012). Room for the River: delivering integrated river basin management in the Netherlands. International Journal of River Basin Management, 10(4), 369–382.
  31. Bixel, P. B., & Turner, E. H. (2000). Galveston and the 1900 Storm. University of Texas Press.
  32. Bérut, A., Arakelyan, A., Petrosyan, A., Ciliberto, S., Dillenschneider, R., & Lutz, E. (2012). Experimental verification of Landauer's principle linking information and thermodynamics. Nature, 483, 187–189.
  33. Martins, N. C., & Dahleh, M. A. (2008). Feedback control in the presence of noisy channels: Bode-like fundamental limitations of performance. IEEE Transactions on Automatic Control, 53(7), 1604–1615.
  34. Carlson, J. M., & Doyle, J. (2002). Complexity and robustness. Proceedings of the National Academy of Sciences, 99(suppl. 1), 2538–2545.
  35. Blum, L., Cucker, F., Shub, M., & Smale, S. (1998). Complexity and Real Computation. Springer.
  36. Rice, H. G. (1953). Classes of recursively enumerable sets and their decision problems. Transactions of the American Mathematical Society, 74(2), 358–366.
← All of Learn