Generator

What each machine can reach

A generator in the what it costs to know library, called 60 times across 14 essays. Below: what it draws with nothing specified and with the settings the essays give it, what it checked while drawing, and everywhere it is used.

machine-census is one function. Everything below was drawn by it when the site was last published, at settings taken from the essays rather than invented for this page — so a figure here is the same figure a reader meets in an essay, and when the generator changes, this page changes with it.

With nothing specified

What each machine can reachFor three one-dimensional crease patterns, the number of mountain-and-valley assignments that fold flat at all, and the number each kind of folding machine can actually reach. Every bar is a separate search: the top one over stackings, the next three over sequences of folds, the last over rewritings of the segment lengths.evenly spaced — 4 creasesany flat folding16 of 16some-layers16 of 16all-layers16 of 16one-layer2 of 16crimping only6 of 16one short segment — 4 creasesany flat folding4 of 16some-layers4 of 16all-layers0 of 16one-layer2 of 16crimping only4 of 16uneven — 4 creasesany flat folding8 of 16some-layers8 of 16all-layers0 of 16one-layer2 of 16crimping only0 of 16a machine that takes fewer layers is weaker, not more patientthe paper is joined, so what it declines to hold it also cannot move

view: "sequence"

How many folds each state takesFor evenly and unevenly creased strips, the fewest, mean and most folds in the shortest sequence that produces each folded state, with the crease count beside it. On uneven strips every state takes exactly one fold per crease; on even ones folds can take several creases at once and the fastest state takes the logarithm of the stamp count. The machine that takes every layer needs exactly as many folds for every state it reaches.the shortest sequence of folds to each state, for the machine that may choose its blockfewest, mean and most over every state of every marking; the last column compares the machine that takes everythingstripstatescreasesfewestmeanmostall layers4 equal stamps32322.753the same5 equal stamps100433.404the same6 equal stamps288534.045the samecreases at .20 .55 .708333.003reaches nonecreases at .15 .40 .50 .8516444.004reaches nonecreases at .13 .31 .62 .7824444.004reaches nonecreases at .40 .50 .62 .7212444.004reaches nonecreases at .08 .24 .28 .35 .7248555.005reaches nonea fold uses at least one crease, so no sequence is longer than the crease count

view: "reach-depth", family: "uneven"

Reach against the depth the machine may holdFor each strip, how many of its folded states a machine can produce when it may take at most one layer, at most two, and so on up to the whole pile. Every row reaches everything before the last column, so the move that takes the whole pile is never the one that completes it.states reached, against how many layers the machine may takethe heading is the block depth, always reaching the top or the bottom of the pilestrip123456creases at .20 .55 .704all 8all 8all 8creases at .15 .40 .50 .854all 16all 16all 16all 16creases at .13 .31 .62 .784820all 24all 24creases at .40 .50 .62 .7244all 12all 12all 12creases at .08 .24 .28 .35 .724162028all 48all 48the whole pile is the rightmost column of each row, and no row needs it

view: "reach-models", family: "even", upTo: 6

Three machines, asked what they can produceFor each strip and each of the three machine models, how many of the strip's folded states a sequence of that machine's folds can produce. The machine that may choose its block reaches all of them everywhere; the machine that takes one layer reaches four wherever it is asked; and the machine that takes everything is the only one whose answer depends on how the strip is creased.the pale bar is every folded state the strip has; the dark one is what the machine reachesthree machines on the same strips, and none of them is the flat-folding theorem3 equal stamps · takes every layerall 123 equal stamps · takes one layer4 of 123 equal stamps · takes any block reaching an edgeall 124 equal stamps · takes every layerall 324 equal stamps · takes one layer4 of 324 equal stamps · takes any block reaching an edgeall 325 equal stamps · takes every layerall 1005 equal stamps · takes one layer4 of 1005 equal stamps · takes any block reaching an edgeall 1006 equal stamps · takes every layerall 2886 equal stamps · takes one layer4 of 2886 equal stamps · takes any block reaching an edgeall 288counted over every marking of the strip that folds flat at all

What it checked while it drew

Collected while it drew, not written by hand. The count is how many separate times that claim was put to the test.

Where it is called

Every figure listed here is drawn by the same rule, so a mistake in the rule would be in all of them at once, and so would a correction.

A shallow machine pays in states, not folds

A machine allowed to take only a few layers of the pile at a time reaches fewer folded states, and the natural fear is that it also reaches the ones it does by much longer sequences. Walked breadth first, so that every state's shortest sequence is found, it does not. On unevenly creased strips every state takes exactly one fold per crease at every depth, because no two creases ever lie on one line. On strips of equal stamps a shallower machine needs one fold more for a minority of states and two more for eight of the 924 states at seven stamps — and never more than the crease count, which no machine can exceed.

An odd strip can hook its own ends

A machine that folds every layer at once has smallest misses by the thousand on strips of an odd number of equal stamps and by the hundred on even ones, and the alternation had no explanation. Most of it is one arrangement. On an odd strip each end stamp's free edge faces the crease at the other end, so an end can lie inside the far end's fold with its edge pointing in: a hook. Nine in ten of the odd strips' smallest misses carry one, an even strip cannot carry one at all, and the misses without a hook — 12, 12, 82, 116, 442 and 740 from nine stamps to fourteen — stop jumping by a factor of a hundred between neighbouring lengths.

Deciding is not making

Four earlier essays here ask which machines can flatten a strip at all, and the answer sorts them into a lattice with one column full and three with holes in it. Asked instead what each machine can produce, the three sort completely differently: the machine that may choose its block reaches every folded state of every strip tried, the machine that takes one layer reaches exactly four whatever the strip is and however long, and the machine that takes the whole pile is the only one whose answer depends on the spacing at all.

Four questions about one sheet

Deciding, counting, listing and optimising are not four difficulties of one problem. They are four problems, and folding is the subject that proves it: a ruled map is trivial to decide and unsolved to count, while a general crease pattern is the other way round.

Fourteen states are one pile

A machine that folds every layer at once reaches every folded state of a strip of six equal stamps and misses fourteen piles at seven. The fourteen are not fourteen things. Taking a pile's bottom stamp and putting it on top maps foldings to foldings, so the 462 piles of seven stamps fall into 33 classes of exactly fourteen, and the missed piles are one whole class: the pile 0 6 1 2 3 4 5 — an accordion of five stamps with the last stamp wrapped round it and slid into the fold that holds the first — seen from each of its seven stamps. At eight stamps the machine misses 64 piles, and they are exactly the piles that leave that one when an end stamp is removed.

Hardness is about the worst one

Flat-foldability is NP-hard, and every crease pattern on this site is decided in under a second. Both are true, and holding them together is the difference between using the result and repeating it: hardness is a statement about the worst instance a family contains, and nobody folds the worst one.

Nine stamps have piles of their own

A machine that folds every layer at once reaches every folding of six equal stamps, misses one class of fourteen piles at seven, and at eight misses exactly the piles that shrink to that class when an end stamp is taken off. The prediction was that nine would do the same. Counted directly, nine equal stamps have 4,536 foldings and the machine reaches 4,052. Of the 484 it misses, 324 are inherited from eight and 160 are new — among them the nine-stamp tucked pile. And the symmetry that made the misses whole classes breaks: at nine stamps, turning a pile's bottom stamp to the top takes 52 piles the machine reaches to piles it cannot.

Publishing the pattern instead of the sequence

A diagram sequence is one picture per step and a crease pattern is one picture. When designers began releasing patterns rather than diagrams, the cost of publishing a model fell by two orders of magnitude and the difficulty moved onto the reader — which is what made the complex era possible and what made most of it unfoldable.

The crease that stops in the middle

A sheet folded flat at random writes a crease pattern that satisfies every condition in the subject, everywhere. Leave one layer behind on each fold — one layer out of a dozen — and it stops writing crease patterns at all: the creases stop in the middle of the paper, and a crease with a loose end is a thing no flat folded sheet can have.

The easiest strip needs the deepest reach

The patient machine and the machine that may choose are the two ends of one number: how many layers of the pile a machine is allowed to hold. At one it reaches four states whatever the strip; at the pile's full depth it reaches everything. In between it is a machine nobody has defined, and measuring where completeness arrives inverts these essays' own ordering — the evenly creased strip, which the machine that takes everything folds perfectly, needs the deepest reach of all, and one uneven strip is complete at two.

The machine that may choose

Three restricted machines lose patterns that fold perfectly well. Give one of them a choice — any block of layers, top or bottom — and the loss vanishes: over a hundred and seventeen spacings, every flat folding of every strip became reachable. Being forced was the whole problem.

The machine's misses have no short list

A machine that folds every layer at once misses fourteen piles of seven equal stamps, sixty-four of eight and 484 of nine, and the question left at nine was whether its failures could be described by a short list of forbidden piles. Counted to twelve stamps, and to thirteen by the same method, they cannot. What the machine reaches is closed under taking an end stamp away, for a reason that fits in a sentence, so every miss contains a smallest one, and the smallest ones keep arriving: 14, 0, 160, 12, 1,194, 116 and 7,786 from seven stamps to thirteen, the tucked pile among them at every odd length. Meanwhile the machine's reach grows by just under three a stamp and the foldings by more, so the share it can make falls from all of them at six stamps to under two thirds at thirteen.

The patient machine is the weak one

A machine that folds one layer at a time sounds like a machine with more freedom, not less. It has less, and the reason is the most ordinary fact about paper there is: it is joined, so whatever a machine declines to hold it also cannot move.

Where the machine catches up

The weakest machine in the subject folds every layer at once and is stopped by a strip with two creases in it. On a strip of equal stamps it is stopped by almost nothing: every one of the 288 folded states a six-stamp strip has is reachable by a sequence of all-layers folds, and on every unevenly creased strip tried it reaches none of them. At seven stamps the completeness ends, and finding out where it ended is what checking it past six was for.

All the figures · The what it costs to know field · The patterns a reader can fold