What it costs to know

Pruning on proofs alone

A search that discards a branch it cannot prove wrong is not a search. Deciding whether a periodic pattern's layer relations really contradict themselves is far dearer than the disc's one-pass test, so the cheap test is asked first — it is sufficient, so it settles almost everything — and the expensive one runs only on what the cheap one rejects. Five of nine steps on a small cell, fifty thousand of fifty-seven on a large one.

Assumes A loop that goes somewhere and Which choice the cost lives in.

A backtracking search has one rule it may not break. When it abandons a branch it must be certain the branch contains nothing, because everything it says afterwards — including this pattern has no consistent lettering, which is the most valuable thing it can say — rests on having looked everywhere it did not prove empty.

That rule is easy to keep when the test at each node is cheap and exact. Ask whether the letters so far contain a contradiction; if they do, the branch is empty and closing it is sound. This collection has done exactly that from its first search: the letters point one relation per crease, a cycle among those relations is a contradiction, and finding one costs a single pass — which is what makes it the only negative answer available on a pattern of any size.

On a sheet with no edge the test is no longer exact, and keeping the rule takes an arrangement.

What went wrong with the cheap test

The relations a lettering forces are a partial order in the making, and a cycle in them means the order is impossible — for a sheet with finitely many panels. A periodic pattern has infinitely many, arranged in copies of one period, and what can be written down is a quotient in which each relation carries the lattice step it takes. A closed walk in that quotient is a contradiction only if its steps add to nothing, and a walk that ends one cell over is a stack with no bottom rather than an impossibility.

So on a glued cell the one-pass test rejects letterings that are perfectly good. Used as a prune it breaks the rule above, and the consequence is exactly the one the rule exists to prevent: the search closes a tree that had an answer in it and reports a proof that there is none.

That happens in thirty-five steps on the two-period square cell, and the lettering it proves impossible turns out to fold on every finite patch it is written onto.

Two tests on a sheet with no edgeFor each tiling, one 2×2 glued cell searched twice. The middle column applies the collection's own rule that a cycle in the layer arcs is a contradiction, and it exhausts with nothing found. The right column asks instead whether a cycle's lattice steps add to zero, and finds a lettering.the same 2×2 glued cell, searched under two rulesa cycle is a contradictiona cycle whose steps add to zero isand what the loops dothe square gridnothing, in 359 nodesevery loop travels (2 directions)the triangular gridnothing, in 12,143455 nodesevery loop travels (2 directions)the honeycombnothing, in 9,6191,043 nodesevery loop travels (3 directions)the elongated triangular tilingnothing, in 9,123162 nodesevery loop travels (5 directions)the rhombille tilingunfinished at 200,000unfinished at 200,000“nothing, in n” is an exhausted search: a proof that the pattern has no consistent lettering, which is false
Fig. 1 The consequence of pruning on a test that is not a proof: on five tilings, a closed search tree and nothing in it.

The two tests

The correct test asks whether some closed walk’s lattice steps add to zero, and it is much dearer than one pass.

There is no single direction that settles it. The relations have to be taken apart: choose a direction in which no walk descends, discard the relations with room to spare under it — none of them can be part of a zero-summing walk — and ask the next direction of what is left, which has by then split into smaller pieces. Two or three directions empty every cell here, and each direction needs a shortest-path computation over the whole relation graph.

But the cheap test is sufficient. A lettering with no loop at all in its quotient has no loop in the pattern either, because a loop upstairs projects to a closed walk down here. So acyclic implies consistent, and only the converse fails.

That is the shape that makes the arrangement possible. Ask the cheap question first; if it says yes, the branch is fine and nothing more is needed. If it says no, the branch might still be fine, and the expensive question has to be asked.

One period of the square twist tessellation, with its edges joinedThe crease pattern of a single repeating cell of a twist tessellation on the square grid, drawn on the rectangle it repeats in. The rings mark where a crease meets a side of the cell: each one on the left is the same crease as one on the right, and each on the bottom the same as one on the top. Joined that way the 40 pieces are 32 creases, the 25 drawn panels are 16, and all 16 vertices are interior.one period of the square grid's twist tessellationa ring is where a crease leaves and returns on the far side40 crease pieces → 32 creases25 drawn panels → 16 panels16 vertices, every one interiorV − E + F = 0mountainvalleyraw edge
Fig. 2 The pattern the two tests disagree about: two periods of the square twist tessellation, whose eight ringed creases carry relations that wrap round rather than stopping at an edge.

What is actually pruned

The search discards a branch only when a closed walk with zero net step has been found — an explicit chain of relations returning to the panel it left, in the same copy of the period.

Anything else is kept. A lettering with loops that all travel is kept because it is fine. A lettering with loops that nothing proves either way is also kept, which is the conservative choice and the one that preserves the rule: pruning on an unproved contradiction would make the search incomplete again, in the other direction and for a subtler reason. It is the same discipline that makes an exhausted search worth more than a search that stopped, and that the order proving nothing exists depends on entirely.

So the prune is sound by construction. Every branch closed contains nothing, and a search that exhausts really has proved something.

What the arrangement costs

The expensive test runs only on what the cheap one rejects, and the proportion is worth reporting because it is not small.

On the one-period square cell, three steps and the expensive test is reached at all three. On the two-period cell, nine steps and five. On the three-period cell, six hundred and twenty-five steps and five hundred and sixty. On the four-period cell, fifty-six thousand seven hundred and seventy-two steps and fifty thousand five hundred and forty-six.

Eighty-nine per cent at four periods, and rising. The reason is structural: on a glued cell the relations wrap round, so almost every partial lettering has a loop somewhere, and the cheap test’s yes becomes rare as the cell grows.

What it costs to prove the wrong thingThe bar is how many nodes the collection's own consistency rule takes to exhaust its search of a glued cell — that is, to prove that no lettering of it is consistent. The note gives what the rule that reads each arc's lattice step cost instead, on the same cell, to find one.proving the glued square cell has no lettering1×1, 4 panels3proved there is none · the other test found one in 32×2, 16 panels35proved there is none · the other test found one in 93×3, 36 panels3,455proved there is none · the other test found one in 6254×4, 64 panels200,000still running at the budgeta bar at the budget is a search still running, not a proof
Fig. 3 The other half of the accounting: what the cheap test costs when it is used as a prune, which is a closed tree and a false conclusion.

The four numbers are worth reading as a curve rather than as four measurements. The fraction of steps needing the expensive test runs 100%, 56%, 90%, 89% — noisy at the smallest sizes, where three steps and nine steps are too few to mean much, and settling near nine-tenths.

Nine-tenths is a statement about glued cells and not about the arrangement, and it is the honest cost of being right on this object. A cell whose relations wrap is a cell most of whose partial letterings have a loop, and there is no cheap sound test that can tell those loops apart — which is why the expensive one exists.

Cutting a square tessellation out of the plane, and gluing it upSearch cost in nodes, on a logarithmic scale, against how many periods of the tessellation the rectangle holds. The lower line is the rectangle cut out of the plane in the ordinary way; the upper is the same rectangle with its opposite edges joined, so that no crease is divided. Both search the same drawing under the same rule at the same vertices.the same drawing, cut out of the plane and glued upnodes, log scale, against periods across the sheet10100100010⁴10⁵1×12×23×34×4glued upcut outan open mark is a search that ran out of budget rather than a cost
Fig. 4 The cost with the arrangement in place, against the same drawing cut out of the plane, where the expensive test is never reached at all.

Why the cheap test is worth asking anyway

Eighty-nine per cent sounds like a reason to drop it, and it is not, for two reasons.

The eleven per cent it settles are settled at a hundredth of the price, so the saving is real even at that ratio. And more importantly, the proportion is a measurement of the object rather than of the arrangement: it says that a glued cell is a pattern in which nearly every partial lettering has a loop in its quotient, which is precisely why the old test was so badly wrong here.

On an ordinary patch the proportion runs the other way. A cut sheet’s relations peter out at the rim rather than wrapping, so most partial letterings are acyclic and the cheap test answers nearly everything — which is why nobody had ever needed the expensive one.

The number is therefore worth printing next to the cost rather than hidden inside it, and every figure here that reports a search on a glued cell reports it.

The window, and what it does not prove

There is one more piece of honesty owed about the prune, and it concerns how a zero-summing walk is looked for.

The relations, lifted back to the pattern, live on the panels of every period; a walk that returns to its starting panel in its starting copy is what the prune wants. Searching all of them is searching an infinite graph, so the search inside the tree looks within a bounded window — the copies within one step of the origin in each direction — and reports a walk if it finds one there.

That is sound: a walk found in the window is a walk. It is not complete: a walk wandering further before returning would be missed, and the branch would be kept rather than pruned. Which is the right side to err on. A missed contradiction costs a branch that is explored and turns out empty; a false one costs an answer.

The verdict on a finished lettering uses a wider window and the full direction-by-direction argument, because there the answer matters and the cost does not.

The other order, and why it is wrong

There is an obvious alternative arrangement and it fails in an instructive way: ask only the expensive test, and skip the cheap one.

It gives the same answers. It is sound, complete, and slower by whatever the cheap test would have saved — but the real objection is different. The expensive test’s answer is three-valued: a zero-summing walk found, a certificate that none exists, or neither, which is a statement about the procedure rather than about the pattern. A search whose prune sometimes returns unknown has to decide what to do with it, and every choice is bad. Treat unknown as a contradiction and the search is incomplete; treat it as fine and the search may return a lettering that does not fold.

Asking acyclicity first removes most of the occasions on which the question comes up at all, and makes the remaining ones visible as a count. That is a better arrangement than one which is simpler to describe.

The cheap test, kept honest

There is a second reason for the ordering that has nothing to do with cost.

The cheap test is the collection’s own, unchanged. It is the same one-pass reader that proves a pattern has no folded state in one sweep and that every essay about a disc relies on. Keeping it in place, in front of the new machinery, means that on any pattern where the old reasoning is valid the search behaves exactly as it always did — the expensive test is never reached, because acyclicity never fails on a lettering that is fine.

So the arrangement is not a replacement. It is the old test with a second opinion attached, consulted only where the old test’s hypothesis does not hold, and that is the shape a correction of this kind should have.

The certificate for the square cell's loopsEach row is one step of the argument that no closed walk in this lettering's layer arcs has its lattice steps adding to zero. A direction on which no loop descends removes every arc with slack to spare; what remains splits into smaller strongly connected pieces and the next direction is asked of those. 2 directions empty it.ruling out the square cell's loops, one direction at a timewhat is left splits248 arcs go, 24 remaindirection (1, 0)102 arcs go, 10 remainwhat is left splits010 arcs go, 0 remaindirection (-1, 0)102 arcs go, 10 remainwhat is left splits010 arcs go, 0 remainthe bar is how many arcs are still in play after the step
Fig. 5 The second opinion, on the two-period square cell: the directions in which the relations are taken apart until nothing is left that a zero-summing walk could use.

Where the search still stops

The arrangement makes the search correct and does not make it cheap, and two of the five tilings say so.

The triangular and honeycomb cells at three periods, and the rhombille at two, do not finish inside two hundred thousand steps under either test. The counts of expensive calls on those runs are a hundred and eighty-eight thousand, a hundred and ninety-four thousand and a hundred and eighty-six thousand — so nearly every step is paying full price, and the search is exploring rather than reading.

Those are reported as unfinished rather than as costs. A search that hits its budget has learned nothing about the pattern, and the distinction between that and an exhausted tree is the whole subject of this thread.

What joining the edges does to the countsOne row per glued cell: how many panels the drawing shows and how many the sheet has, how many crease pieces are drawn and how many creases those are, how many vertices there are, and Euler's number. Every one of the 9 cells gives V − E + F = 0, which is what a torus gives.gluing a cell's opposite edges, on five tilingspiecespanelsdrawncreasesverticesV−E+Fsquare ×19412840square ×225164032160square ×349368472360triangular ×123123424120triangular ×2694811696480triangular ×31391082462161080hexagonal ×123123424120hexagonal ×2694811696480hexagonal ×31391082462161080a torus has V − E + F = 0, and these three counts are made three different ways
Fig. 6 The objects the two tests run on, counted: nine glued cells whose relations wrap in both directions, which is why the cheap test rejects almost everything it is shown.

What a wrong prune actually looks like

It is worth being precise about the failure this arrangement prevents, because it does not look like a failure from inside.

A search pruning on the cheap test on a glued cell does not crash, does not slow down, and does not report anything unusual. It runs quickly — thirty-five steps rather than nine — closes every branch, and returns the strongest kind of negative result the collection knows how to produce. Every intermediate state it passes through is a state some correct search could also have been in. The only thing wrong is the conclusion.

That is why the rule is a rule rather than a preference. A prune that is merely usually right produces answers that are usually right, and usually right is exactly the property an exhausted search is supposed not to have. The whole value of a closed tree is that it is not a sample.

And the failure is not detectable from within the search at any cost. Nothing about a branch says whether the thing that closed it was a proof; that is a property of the test, established once, outside. Which makes the argument that acyclicity implies consistency load-bearing in a way no amount of testing could replace.

The certificate for the triangular cell's loopsEach row is one step of the argument that no closed walk in this lettering's layer arcs has its lattice steps adding to zero. A direction on which no loop descends removes every arc with slack to spare; what remains splits into smaller strongly connected pieces and the next direction is asked of those. 3 directions empty it.ruling out the triangular cell's loops, one direction at a timedirection (-1, 0)186 arcs go, 18 remainwhat is left splits126 arcs go, 12 remaindirection (0, 1)31 arcs go, 3 remainwhat is left splits03 arcs go, 0 remaindirection (0, -1)71 arcs go, 7 remainwhat is left splits07 arcs go, 0 remainthe bar is how many arcs are still in play after the step
Fig. 7 The expensive test on the triangular tiling’s smallest cell, which needs three directions before nothing is left that a zero-summing walk could use.

What this is an instance of

The general shape is worth naming because it recurs whenever a test is corrected rather than replaced.

An old test AA is cheap and sound in a restricted setting. A new test BB is correct everywhere and expensive. If AA implies BB — if everything AA accepts is genuinely fine — then AA can be kept as a fast path and BB used only where AA objects, and the combination is exactly as correct as BB and nearly as fast as AA wherever AA’s setting holds.

The condition is the implication, and it has to be argued rather than hoped. Here it is one line: a loop in the pattern projects to a closed walk in the quotient, so no loops in the quotient means no loops in the pattern. If the implication had gone the other way, or neither way, the two tests would have had to be run independently and compared, which is the arrangement the collection uses where two instruments genuinely disagree.

The variable order, which is untouched

One thing this arrangement deliberately does not change, and it is worth saying so because the two questions are easy to confuse.

A backtracking search makes two choices at every node: which crease to decide next, and which letter to try first. Both have been examined here, and the second turned out to be where a heavy tail was manufactured. Neither is what this essay is about.

The prune is a third thing entirely: given a partial lettering, is this branch empty? The two order questions decide how the tree is walked and the prune decides how much of it exists, and a change to the prune leaves both orders alone. Every number here is measured under the same fixed letter order the rest of the collection uses, precisely so that the comparison between the two prunes is a comparison of prunes.

That separation matters because the wrong prune is faster. Thirty-five steps against nine on the two-period cell, and a search that closed its tree quickly would look, on any measurement of speed alone, like the better arrangement.

Which theorem was checked, and how

The soundness of the prune is checked by construction rather than by measurement: the only thing that closes a branch is an explicit closed walk with zero net step, found by walking the relations, and such a walk is a contradiction by definition.

The completeness is checked by the witness. A search that pruned wrongly would return a lettering that does not fold, or exhaust a tree that had one in it, and both would show on the ordinary patches the periodic lettering gets written onto: every vertex condition holds and no patch has a loop, on four tilings at three sizes — and would have shown at once, since a wrongly pruned search on a glued cell exhausts rather than returning anything at all, which is the failure mode that started this thread.

And the machinery is fed something it must refuse. Two panels with one relation each way, neither leaving its own copy of the period, is a loop that genuinely closes; the decision has to call it a contradiction, and it does. Without that, every verdict came back fine would be a statement about a function that says fine to everything.

A second thing the arrangement makes measurable

The letterings the corrected prune lets through are worth one more question, and it is one only the finished witness can answer.

A patch of the pattern has a bottom layer — some panel with nothing under it — and the pattern itself has none, because every loop in its relations travels. So on a patch the minimal panels ought to be at the rim and nowhere else, and that is a prediction the prune’s own reasoning makes about paper.

On twelve patches over four tilings, from twenty-five panels to seven hundred and ninety-three, every panel with nothing below it touches the paper’s edge. A single one in the interior would mean either the transfer put a letter somewhere it does not belong or the loops do not all travel after all, and neither shows.

The bottom of the stack sits at the paper's edgeFor each patch carrying a periodic lettering, the bar counts the panels with nothing below them in the order the letters force — the bottom of the stack. The note gives the panel count, how many panels touch the paper's edge, and where the minimal ones are. On all 10 patches every one of them is at the edge.panels with nothing below them, and where they aresquare ×1125 panels, 16 of them touching the edge · all 1 at the edgesquare ×2281 panels, 32 of them touching the edge · all 2 at the edgesquare ×33169 panels, 48 of them touching the edge · all 3 at the edgetriangular ×1369 panels, 39 of them touching the edge · all 3 at the edgetriangular ×25233 panels, 79 of them touching the edge · all 5 at the edgehexagonal ×1469 panels, 39 of them touching the edge · all 4 at the edgehexagonal ×27233 panels, 79 of them touching the edge · all 7 at the edgehexagonal ×310493 panels, 119 of them touching the edge · all 10 at the edgeelongated ×12105 panels, 48 of them touching the edge · all 2 at the edgeelongated ×23369 panels, 96 of them touching the edge · all 3 at the edgethe sheet these letters belong to has no such panel at all
Fig. 8 What the prune’s reasoning predicts about paper, checked: panels with nothing below them, all of them at the rim.

What the picture cannot show

A count of how often the expensive test was reached is a count of calls, not of time, and the two are not proportional: an early call on a nearly-empty relation graph is much cheaper than a late one on a full one. So the eighty-nine per cent is the right number for what fraction of the search’s decisions needed the second opinion, and the wrong number for what fraction of the seconds went to it.

Nor does any figure here show a branch that was kept because nothing could prove it wrong. Those are invisible by construction — a branch the search declines to close simply continues — and the only trace they leave is a search that costs more than a bolder one would.

The lettering that was proved impossible, checked on paper with an edgeEach bar is one clipped patch carrying the periodic lettering, its length the number of creases. Every patch passes all four vertex conditions and has no forced loop in its layer order, on 4 tilings and at 3 sizes.the impossible lettering, on ordinary patchessquare ×140 creases16 vertices · every condition holds · no forced loopsquare ×2144 creases64 vertices · every condition holds · no forced loopsquare ×3312 creases144 vertices · every condition holds · no forced looptriangular ×1116 creases48 vertices · every condition holds · no forced looptriangular ×2424 creases192 vertices · every condition holds · no forced loophexagonal ×1116 creases48 vertices · every condition holds · no forced loophexagonal ×2424 creases192 vertices · every condition holds · no forced loophexagonal ×3924 creases432 vertices · every condition holds · no forced loopelongated ×1184 creases80 vertices · every condition holds · no forced loopelongated ×2688 creases320 vertices · every condition holds · no forced loopthe bar is the crease count; the note is what the ordinary checks said
Fig. 9 What the arrangement is for: the letterings it returns, checked on ordinary patches by machinery that knows nothing about any of it.

And no picture distinguishes a search that is correct from one that merely got the right answer. The two runs on a two-period square cell differ in nine steps against thirty-five, and the cheaper of them is the wrong one — a fact no drawing of either search would reveal, and one that only shows when the answers are taken outside and checked.

What this makes readable

Essays that name this one as a prerequisite.

Named alongside this one

Essays reaching for the same objects. Nobody chose these; they are what the concept index makes visible.

What links here

Every essay whose body links to this one.

The objects this essay names

Each one links to every other essay that touches it.

AssignmentConstraintConstraint propagationExhaustive searchLayer orderPanelPeriodicitySearchSearch costTessellation