Out in the world

A rule of thumb has to stand still

A number that falls at every move of a won rook ending must take sixteen values, because the longest mate takes sixteen moves — so the distance table is already the smallest progress table there is. Every rule a player is taught is coarser, from six values to 168, and so must sometimes stand still. Used greedily, each of five rules can be held in a loop from more than 98 per cent of the won positions, and the best of them mates 241 games in 400.
14 min read 6 figures It has to endWhat a search costs

Assumes: A win is not a way of winning · Start at the end and work backwards

A win is not a way of winning handed the solved table of king and rook against king to a player who reads only one bit of it — does this move keep the win? — and watched that player never deliver mate in 400 games against a king that resists. Staying won is not progress. What wins is a second number, the distance to mate, and the essay left a gap between the two: a player needs some quantity that goes down along a winning line, and the distance is the most expensive one imaginable, a full table of 175,168 entries.

Every chess player has been taught cheaper ones. Shrink the box the rook confines the black king to. Bring the white king closer. Drive the black king to the edge. These are rules of thumb, and they are exactly the kind of quantity the gap asks about — a number computed from the position at a glance, used by choosing, among the moves that keep the win, one that makes the number smaller.

So the question has a precise form. How much information does progress take? And the first half of the answer needs no search at all.

Rules of thumb in the rook ending. Five rules of thumb for king and rook against king and the distance-to-mate table, with how many values each uses, from how many of 175,168 won positions it can be held for ever, and how many of 400 games it mates. The rules can be held from more than 98% of positions; the best mates 241 games.
Fig. 1 Five rules of thumb for the rook ending and the distance table, each used the same way: among the moves that keep the win, white plays one that makes the rule’s number smallest. Every rule can be held in a loop from more than 98 per cent of the won positions; the best mates 241 of 400 games, and only the distance table mates all of them.

Sixteen values is the floor

Call a number on positions a progress measure if, from every won position, white has a move after which, whatever black replies, the number is lower — or the game is over. A white who always makes such a move must mate, because the number cannot fall for ever. That is the property a player wants of a rule of thumb, and it is the same property the condition the recursion rests on asks of any game that is to have values: some measure that strictly descends along every line.

Now take a line of best play from one of the deepest positions — sixteen moves from mate, with black resisting as long as it can. Along that line white is never able to shorten the mate by more than a move at a time; that is what deepest means. A progress measure that falls at every one of those sixteen moves must take sixteen different values along the line. So any progress measure for the rook ending has at least sixteen classes, and the distance table, which has exactly sixteen, meets the floor.

Distance to mate, rook. A bar chart of how many won positions of king and rook against king lie at each distance from mate with best play, up to the longest, 16 moves.
Fig. 2 How the 175,168 won positions of the rook ending lie by distance to mate with best play. The longest mate is sixteen moves, so a number that falls at every move needs sixteen values — and the distance has exactly those sixteen.

That turns the obvious hope upside down. The hope was that a rule of thumb compresses the distance — that the essential information is a handful of classes and the table is padding. The argument says the table is not padded at all in the one respect that matters: a measure that is never allowed to stand still cannot be coarser than the distance. The smallest progress table is the distance table. Whatever compression a rule of thumb achieves, it achieves by giving up the property that made the distance work.

It is worth being precise about what the floor counts. It counts classes, not storage: the distance table needs sixteen labels but a label for every one of 175,168 positions, and a rule of thumb is attractive because it needs no storage — it is computed from the squares. The floor says that a rule computed from the squares with fewer than sixteen values must, somewhere, fail to fall. The question is what happens there.

Every rule stands still

The five rules are the ones players actually use. The box counts the squares of the rectangle the rook’s file and rank confine the black king to — 28 different values. King distance is the number of king steps between the two kings, six values in practice. The edge is how far the black king stands from the nearest two edges, seven values. And two combinations, read the way a player reads them: the box first and king distance to break ties, and king distance first with the box to break ties, 168 values each.

The two combinations have more classes than the floor and are still not progress measures. Having enough values is necessary, not sufficient; the values have to fall along the moves, and a rule that ranks positions sensibly can still leave white with no move that lowers it.

The distance and the king distance along a deepest mate. Along a line of best play from a position sixteen moves from mate in king and rook against king, the distance to mate falls by one every move while the distance between the kings stands still or rises at 12 of 15 moves.
Fig. 3 A line of best play from a deepest position, with the table’s distance and the distance between the kings at each white move. The distance falls by one every move; the king distance stands still or rises at twelve of fifteen moves of the very line that mates fastest.

The fastest winning line shows it plainly. From a deepest position, with white king a1, black king c3 and rook b2, white plays the table’s quickest mate and black resists as long as it can. The distance falls from sixteen to one, one step at a time. The king distance along the same line sits mostly at two, rises to three three times, and stands still or rises at twelve of the fifteen moves. The winning line does not read as progress to king distance, which is to say that a player steering by king distance alone would never have chosen most of it.

That is not a defect of king distance in particular. Over a full move — white’s move and black’s reply — every rule’s number does something other than fall most of the time.

What a rule's number does over a full move. For five rules of thumb in king and rook against king, the share of full moves in play-outs over which the rule's number falls, stays level and rises. Every rule rises nearly as often as it falls.
Fig. 4 Over each full move of the rook ending’s play-outs, how often the rule’s number falls, stays level and rises. The single rules rise almost exactly as often as they fall; king distance first, then the box, stands still on 85 per cent of moves.

The single rules are close to symmetric. The box falls on 31.6 per cent of full moves and rises on 31.5. The edge falls and rises on 27.0 per cent each. King distance stands still on 76.8 per cent and moves either way on 11.6 per cent each. The combination that does best in play, king distance first, stands still on 85.2 per cent of full moves. None of these is a number being driven down; they are numbers wandering, with the rule’s choice nudging them at white’s turn and black’s reply nudging them back.

A loop with the king never moving

A rule that can stand still can be held still, and the way it is held is worth seeing, because it is not subtle.

A rule of thumb held in a two-move cycle. Two chessboards of king and rook against king, white king a1. The black king attacks the rook; the rule's best move retreats it, the king follows and attacks it again, and the rook returns. Both positions are 16 moves from mate, and the cycle never ends.
Fig. 5 King distance first, then the box, held in a cycle of two moves. The black king attacks the rook; the rule’s best move retreats it along the file; the king follows and attacks it again; the rook returns. Both positions are sixteen moves from mate and the white king on a1 never moves.

White king a1, black king e4, rook f3. The black king attacks the rook, so every move that keeps the win moves the rook or defends it, and the white king is too far away to defend it. Among the rook moves, the rule’s best is f6, which keeps king distance at four and leaves a box of 25 squares. Black steps to e5 and attacks the rook again. The rule’s best move is now f3. Black steps back to e4, and the position has repeated.

The rule is not wrong at any single move. Each rook move is safe, keeps the win, and is the best by the rule’s own ranking; each black move is legal and resisting. Both positions are sixteen moves from mate — they are among the deepest positions there are — and the cycle can run for ever. A player taught to bring the king closer has not been taught what to do when the rook is attacked, and the rule supplies no answer that leads anywhere. A coach would add the missing clause — keep the rook far from the king — and every clause added is a tie-break the rule did not have.

The exact count of such positions is the third column of the table. With white’s ties chosen against it, each of the five rules can be held from 98.5 to 99.1 per cent of the won positions: from 172,512 positions for king distance first, from 173,656 for the edge. The set is computed exactly, as a greatest fixed point — repeatedly delete any position from which every one of the rule’s best moves lets black reach a position outside the set, until nothing more goes — the same construction a win is not a way of winning used for the player who reads only the outcome, and with nearly the same answer. The rules of thumb, used greedily, are barely better at forcing progress than no rule at all.

In play they are better than that

The adversarial count is the worst case: black resisting and white’s ties broken against it. With white’s ties broken at random, a rule of thumb does mate sometimes, and the play-outs measure how often. Each starts from a position at least ten moves from mate, chosen at random among those, with black resisting by the table and a cap of 2,000 moves.

The box mates 30 of 400 games, king distance 10 and the edge none. Box first, then kings, mates 71. King distance first, then the box, mates 241 — six games in ten — with a median of 22 moves against the distance table’s 12. That is the best of the five, and its losses are not slow wins; a game it fails to mate in a few dozen moves it fails to mate in 2,000.

The ranking is instructive. The rules that do worst are the ones that look most like a measure of how near the end is — the edge and the box. The one that does best leads with the white king, which is the piece the cycle above shows idle. In the rook ending the black king cannot be mated without the white king’s help, and a rule that does not bring it up has nothing driving the game forward; a rule that does, still loops whenever the rook is harassed, and random tie-breaking is often enough to get out.

Looking one reply ahead makes it worse

An obvious repair is to let the rule see black’s answer. Instead of scoring the position black faces, score each candidate move by the worst position black can reply into — the rule’s number after the full move, maximised over black’s replies — and play the move whose worst case is best. That is a one-move lookahead, the smallest search a player could add, and it is exactly the step the cycle above seems to call for, since what goes wrong there is black’s reply.

Run on the same 400 starts with the same seed, it does not help. The box mates 40 games instead of 30. Box first, then kings, falls from 71 to 32. King distance first, then the box, falls from 241 to none, and king distance alone from 10 to none. Looking ahead makes the best rule the worst.

The reason is the floor again, seen from another side. A lookahead rule chooses moves that keep the worst case of its number low, and the move that keeps a coarse number’s worst case lowest is very often a move that keeps it where it is — a quiet rook move, a king step sideways. The lookahead rule is more cautious about letting its number rise and therefore more content to let it stand still, which is the one behaviour the floor says a coarse rule cannot afford. Greedy play at least moves the pieces; careful play with a coarse number does not.

That is a small and specific instance of a general fact about loopy games, where a position’s value can depend on lines that never end. Searching deeper with a measure that does not descend does not find a descent; it finds the loops more reliably. What breaks a loop is a measure that strictly falls, and depth of search is no substitute for one.

The same rules with a queen

The rook ending is the hard case for these rules, and the queen ending shows why.

The same rules with a queen. The five rules of thumb and the distance table on king and queen against king: classes used, positions they can be held in for ever, and games mated of 400. The rules mate far more games than with a rook, and are still holdable from most positions.
Fig. 6 The same five rules on king and queen against king. Box first, then kings, mates 330 of 400 games with a median of ten moves, against the distance table’s seven, and king distance alone mates 363 — but every rule can still be held in a loop from most won positions.

With a queen, the same rules mate far more often. King distance alone mates 363 games of 400. Box first, then kings, mates 330 with a median of ten moves — close to the distance table’s seven, whose longest mate is ten. The queen confines more than the box says, covering diagonals the rule does not count, and a queen attacked by the king has more squares to retreat to than a rook does, so the harassment in the cycle above is harder to arrange. And still the adversarial column does not empty. Every rule can be held from 83 to 98 per cent of the queen ending’s won positions, because the floor argument applies here too: the longest mate is ten moves, so a progress measure needs ten classes, and the rules that have more than ten still do not fall at every move.

That separates two things the word works runs together. A rule of thumb can work in practice — mate most games against a resisting king with ties broken by chance — without being a progress measure. The queen’s rules work in that sense; the rook’s mostly do not. Neither is a guarantee, and the difference between them is a fact about how much slack the piece leaves, not about the rule.

A progress measure is a termination proof

The argument at the start connects this question to one the theory of games meets far from chess. A progress measure is a quantity that strictly decreases along every line white can choose — which is exactly a termination measure for the game white is steering, the same object which games end at which level classifies by how strong an induction it needs. For finite games like Nim the measure is the number of counters left and nobody notices it. It ends, and nothing says when is the hydra, where a measure exists but lives in the ordinals and no number will do.

The rook ending is the opposite extreme in one respect: the measure is a plain integer below sixteen, and the difficulty is not its size but its computability from the squares. Every rule of thumb is an attempt to write down a termination measure in a formula a player can evaluate, and each falls short in the same way — it is a measure that holds on most moves and is silent on the rest. The tie-breaks that players add, clause by clause, are attempts to fill that silence. A formula with every clause added would be a progress measure, and by the floor it would have at least sixteen classes, which means that the right rule of thumb is not a coarse number at all. It is a short program that computes a number as fine as the distance.

The model, and what each count depends on

No fifty-move rule and no repetition rule, as in a win is not a way of winning: white either forces mate or does not, and a black capture of the piece ends white’s hopes. A rule is applied after white’s move, to the position black then faces; white plays among the moves that keep the win, takes a mate when one is available, and otherwise takes a move of least value. The box is the product of the number of files and ranks on the black king’s side of the piece’s file and rank, eight when the king stands on that line; for the queen it is read off the queen’s rank and file alone. Held means that, with white’s ties chosen against it and black choosing its replies, the game never reaches mate. The play-outs use 400 starts drawn uniformly from positions at least ten moves from mate, a seeded random-number sequence, black’s longest resistance by the table, and a cap of 2,000 moves.

What the rules cannot show

That a rule with the right tie-breaks exists in a few lines. The floor says such a rule needs sixteen classes and nothing about how short its formula can be. Textbook procedures for the rook ending are a handful of sentences long and are believed to mate; none of them was encoded and tested here, and whether one of them is a progress measure in the exact sense — falls at every move from every won position — is the measurement this does not make.

That the play-out percentages are properties of the rules. They depend on the random tie-breaking and on starting from deep positions; a white who breaks ties by habit rather than chance could do much better or much worse with the same rule.

And what the bishop and knight need. Its longest mate is thirty-three moves, so a progress measure needs thirty-three classes, and the procedure players learn for it is known to be hard. How many of those classes its sentences actually distinguish is a number this table could produce, and has not.

Still open: the shortest rule that cannot be held

Every rule tried can be held from nearly every won position, which leaves the constructive question. Take king distance first, then the box, and add one clause at a time — keep the rook out of the black king’s reach, keep it on the far side, move the king when the rook is safe — and after each clause recompute the held set. If it empties after two or three clauses, a progress measure for the rook ending fits in a sentence a player can remember, and the number of clauses is a measure of how much progress takes, in the units a person uses. If it does not empty until the clauses describe the table, then the paper was about how long in a stronger sense than its title meant: the length of the mate is not merely information a solved game carries, it is information that does not compress.

Part 6 of 9

One argument about Chess. The parts either side of it:

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down.

What this makes readable

Essays that declare this one a prerequisite.

The objects named here

The third axis, after the field and the series: the games, values and theorems themselves, and every essay that touches each one.

ChessDistance to mateEndgameExhaustive searchHeuristicLoopyPosition graphTermination