Difference between revisions of "Theory of ladder escapes"

From HexWiki
Jump to: navigation, search
(Examples: Verified (and fixed) minimality of 3-to-5 switchback templates.)
m (typo)
Line 884: Line 884:
  
 
This is the same ladder as defined in the section of second-row ladders above; only this time, Red's goal will be slightly different. To explain Red's goal, we show a slightly larger area around L2:
 
This is the same ladder as defined in the section of second-row ladders above; only this time, Red's goal will be slightly different. To explain Red's goal, we show a slightly larger area around L2:
L2: <hexboard size="4x3"
+
<hexboard size="4x3"
 
   coords="hide"
 
   coords="hide"
 
   contents="R a3 E *:a1 *:a2 *:b1 *:b3 *:b4 *:c2 *:c3 *:c4 a:c1 b:b2 b:b1"
 
   contents="R a3 E *:a1 *:a2 *:b1 *:b3 *:b4 *:c2 *:c3 *:c4 a:c1 b:b2 b:b1"

Revision as of 01:34, 31 August 2020

The object of this page is to formalise precisely what it means for a pattern to be a ladder escape. To do this, we first formalise what it means to be a ladder.

Informally, a ladder escape (say, a 4th row ladder escape) is supposed to give the attacker a guarantee that their 4th row ladder will be able to connect to the edge, no matter how far away from the ladder escape the ladder starts. So strictly speaking, to check that a pattern is a 4th row ladder escape, we must check that the attacker can connect to the edge from an infinite set of positions. This raises the issue of how one can check in a finite time whether a given pattern is a 4th row ladder escape.

This issue is resolved on this page for 2nd, 3rd, 4th, and 5th row ladders. It might be possible to resolve it for 6th row ladders but this has not yet been done, partly because such ladders are of little practical use. For 7th row ladders we run into a new difficulty – Blue can simply ignore the ladder and play near the escape, because no appropriate 6th row edge template seems to be known which will connect an ignored 7th row ladder to the edge. This presents a theoretical obstruction which is currently unresolved. It may in theory be that there are no 7th row ladders at all.

For the purpose of our analysis, we assume that all ladders move from left to right along the red bottom edge, with Red being the attacker. Of course, the analogous analysis also applies to ladders moving in the opposite direction or along different edges.

The analysis of 2nd–4th row ladders on this page was originally contributed by the user Wccanard in 2016.

Second row ladders

Definition of ladder

There is no issue at all with defining a 2nd row ladder. Informally, a 2nd row ladder looks like this:

2413

Note that at each point in the ladder, Blue's move is forced. Red can choose to continue pushing the ladder as long as she wants to. We formally define a second row ladder as follows:

Definition. A second row ladder is a pattern like this:

L2:

Here, the red stone is on the second row, and we call it the ladder stone. Red's goal is to connect the ladder stone to the bottom edge. The cell immediately below and to the right of the ladder stone is empty. We denote this pattern by L2.

Definition of ladder escape

Before we give the formal definition of a second row ladder escape, let us consider an example. The following pattern is an example of a second row ladder escape.

Of course directly underneath the pattern is the bottom (red) edge. The cells marked "+" indicate where the ladder connects. The reason this is a second row ladder escape is that however far away the ladder is,

1

Red can guarantee a connection from the ladder stone (marked 1) to the bottom edge. Note that the cells marked "*" can be of any color; but since the ladder escape must be valid regardless of the color of these cells, we may as well assume the worst case, i.e., all cells marked "*" can be thought of as blue stones.

Let us clarify what the hexes marked "+" in the ladder escape pattern mean. They indicate the last point where the 2nd row ladder is allowed to start. So for example, saying that the pattern above is a second row ladder escape means (among other things) that Red must win the following position:

1

Here, Red's ladder stone is marked "1", and the claim (easily verified) is that even with Blue to play, Red can connect the ladder stone to the bottom:

51432

The reason that the pattern is a second row ladder escape is that this escape sequence works even if the ladder is a long way away:

1

Even here, Red can force a connection to the edge, even if it is Blue's move, because Blue must keep defending on the first row and Red keeps attacking on the second row,

135792466

and now we are back at the previous position with the ladder right next to the escape, where we have already seen that Red can break through to the edge. We can now give a more formal definition of a second row ladder escape.

Definition. A second row ladder escape template (or simply second row ladder escape) is given by the following data. It is a pattern, plus two hexes marked "+", such that one of the hexes marked "+" is on the first row, the other is on the second row up and directly to the left of the first one, and such that neither of the hexes marked "+", nor any hex to their left, are in the pattern. This data is subject to the following axiom: any position consisting of a second row ladder,

1

followed directly to the right by an arbitrary number (zero or more) of pairs of vacant hexes on the first and second rows,

followed by the second row ladder escape pattern (where the ladder slots into the escape by putting the ladder or rightmost column of vacant hexes onto the hexes marked "+") is an edge template, in the sense that even if it is Blue's turn to move, Red can guarantee a connection from the ladder stone marked 1 to the edge.

Terminology and notation: If we have a pattern with two cells marked "+" that is of the shape required for a second row ladder escape, but we are not sure whether it satisfies the axiom of a second row ladder escape, then we refer to it as a candidate for a second row ladder escape (or simply candidate if the rest is clear from the context). A candidate is valid if it is actually a ladder escape.

If P is a candidate for a second row ladder escape and n ≥ 0 is an integer, we write n+P for the result of shifting the cells marked "+" to the left by n positions, filling the gap with n columns of two empty hexes each. Similarly, we write L2+n for the result of appending n columns of two empty hexes to the right of a second row ladder L2. Finally, we write L2+n+P for a 2nd row ladder, followed by n columns of empty hexes, followed by an escape candidate P. We call this a "second row ladder at distance n". When n = 0, we sometimes just write L2+P. With this notation, we can rephrase the definition of a 2nd row ladder escape as follows: a candidate P is a 2nd row ladder escape if and only if L2+n+P is a template connecting the ladder stone to the edge, for all n ≥ 0.

We also define what it means for a ladder escape template to be minimal.

Definition. A 2nd row ladder escape template is minimal if the following two things are true. First, removing any hex from the pattern, or removing a red stone from the pattern (and replacing it with an empty hex) gives a new pattern which is not a 2nd row ladder escape template any more. And second, if the two hexes directly to the right of the two cells marked "+" are both vacant hexes in the pattern, then moving the cells marked "+" one hex to the right results in a new pattern which is not a 2nd row ladder escape.

Below, we will use analogous terminology and notations for ladders and ladder escapes on the 3rd and higher rows.

Characterization of ladder escapes

The definition of a 2nd row ladder escape allows the ladder to be an arbitrary distance away from the escape, which is of course what we want in practice; there is no reason that the escape should be right next to the ladder. However, this means that we cannot directly use the definition to check that something is a 2nd row ladder escape, because this would require checking that infinitely many patterns are edge templates. Can we find some finite criterion for checking 2nd row ladder escapes? Fortunately, as every Hex player knows, the answer is yes. We have the following theorem:

Theorem 1. Consider a candidate P for a 2nd row ladder escape. Schematically:

(Here the asterisks can indicate any stones at all.) Then P is a valid 2nd row ladder escape if and only if L2+P is an edge template for Red.

Proof. If the ladder escape is valid, then by definition, L2+n+P is an edge template for all n ≥ 0, and in particular for n = 0. This proves the left-to-right implication.

To go the other way we actually have to play some Hex, but it's pretty trivial. We must show that L2+n+P is an edge template for all n. This is an easy induction on n. For n = 0, the claim is true by assumption. If n > 0, then Blue must play directly below Red's ladder stone (or else Red will connect to the edge immediately), and now Red can play a ladder stone at distance n−1 on the second row, which is an edge template by induction hypothesis. □

Examples

We can use Theorem 1 to prove that all of the following patterns are minimal second row ladder escapes. Most of these templates are taken from David King's website, and there are several more there. Cells marked "*" are not part of the ladder escape template. For several of the templates, the corresponding pattern on David King's site is not minimal by our definition; for these templates, we have moved the cells marked "+" to the right to make the template minimal.

In the below templates, the stone marked 10 indicates a stone connected to the bottom edge, but the connection is not shown. The connection from 10 to the edge must not use any of the empty hexes in the pattern.

10
10
10

Third row ladders

Definition of ladder

There is a minor issue with defining 3rd and higher row ladders. We want a definition that is useful in practice and not too restrictive. For example, we surely want this to be a third row ladder:

2413

even though there are a few blue stones on the first row. It is intuitively clear (and also provably true) that these blue stones cannot be of any help to Blue (they can never play a crucial role in any blue connection). So although we want a 3rd row ladder to have no stones on the first three rows to the right of the ladder (until we reach the escape), we do not want to also guarantee that there are no stones on the first row to the left of the ladder. We formally define third row ladders as follows.

Definition. A third row ladder is a pattern like this:

L3:

The red stone is again called the ladder stone, and Red's goal is to connect the ladder stone to the bottom edge. The cells marked "*" are not part of the pattern, and may be of any color or even outside the board. These cells can be assumed to be blue, although this is not required. We denote this pattern by L3.

The key part of the definition is that we are guaranteeing the triangle of three empty hexes under the red ladder stone. This is a minimal requirement, because for example if one of these cells were filled,

then in reality the game could look like this,

and Blue can block the ladder with this move.

1

Definition of ladder escape

We have seen a lot of the formalism of ladder escapes in the above section on second row escapes. However there is a new twist with third row ladder escapes, because Blue can defend against a third row ladder in more than one way: Blue can at some stage decide to yield to the second row. The following definition is unsurprising.

Definition. A third row ladder escape is given by the following data. It consists of a pattern, and three hexes marked "+" (none of these hexes marked "+" are part of the pattern) going from the first to the third row, up and left as in the below picture, which is sitting on the bottom edge:

Here, the hexes marked "*" can be anything, they are just part of a general pattern, which could certainly go above the third row, and to the left above the hexes marked "+", and to the right, if necessary. The pattern must have the property that no hex directly to the left of any of the hexes marked "+" can be part of the pattern. To be a third row ladder escape, the pattern must satisfy the property that for all n ≥ 0, if we insert a third row ladder at distance n into the pattern at the three hexes marked "+", the resulting position is an edge template connecting the Red ladder stone to the bottom edge, with Blue to move. Or equivalently in symbols, it must satisfy that for all n ≥ 0, L3+n+P is an edge template connecting the ladder stone to the bottom edge.

Like for second row escapes, a pattern that has the required shape for a ladder escape, but it is not (yet) known to be a valid ladder escape, is called a candidate.

In pictures, for our pattern above (still marked with stars) to be a 3rd row ladder escape, it must give rise to an edge template when we attach a 3rd row ladder at distance 0,

1

or at distance 1,

or at distance 6,

or at any other distance.

Characterization of ladder escapes

Just like for second row ladder escapes, we again find ourselves in the situation that trying to use the definition to check that something is a 3rd row ladder escape involves checking that infinitely many positions are edge templates. Once again, we have a theorem that allows us to replace this by a finite condition.

Definition. If P is a candidate for a kth row ladder escape, then P′ denotes the candidate for a (k−1)st row ladder escape obtained by removing the topmost "+" from P. The cell that formerly contained the topmost "+" is not part of the pattern P′.

Theorem 2. Consider a candidate P for a 3rd row ladder escape. Assume that (a) L2+P′ is an edge template and (b) L3+P is an edge template, each such template connecting the ladder stone to the bottom edge. Then P is a valid third row ladder escape.

Proof. First note that by Theorem 1, because L2+P′ is an edge template, P′ escapes all 2nd row ladders. Now under the assumptions of the theorem, we must show that L3+n+P is an edge template for all n ≥ 0. We prove this by induction on n. For n = 0, the claim is true by assumption (b). Now suppose the claim is true for some n. To show the claim for n+1, consider the position L3+(n+1)+P. The first three columns of this position look like this:

1

(This is followed by n more columns of three empty hexes and by the pattern P). Blue has three possible moves in a triangle under stone 1, and Blue needs to play one of these or he will lose instantly. We analyze all three moves in turn.

For the first, Red pushes the ladder and will connect to the edge because by induction hypothesis, L3+n+P connects to the edge, so stone 3 connects to the edge, and so stone 1 does too.

132

For the second, Red just wins outright, i.e., we do not need to use the induction hypothesis.

132

And for the third, Red responds like this. Since stone 3 is a 2nd row ladder stone, it is connected to the edge because, as we noted above, P′ is a 2nd row ladder escape. Therefore stone 1 is also connected.

132

The induction is now complete, showing that P is a 3rd row ladder escape. □

Remark: in more concrete terms, Theorem 2 states that a pattern P is a 3rd row ladder escape if the pattern becomes an edge template (connecting the ladder stone to the edge) when we attach each of the following two patterns to it at the cells marked "+":

A:

1

B:

1

In contrast to the situation with 2nd row ladders, while Theorem 2 is sufficient to show that a position is a 3rd row ladder escape, it is not necessary. For example, consider the following third row ladder escape template P:

One can check directly that L3+2+P and L2+(2+P)′ are both edge templates, so that 2+P is a 3rd row ladder escape by Theorem 2. In particular, L3+n+P is an edge template for all n ≥ 2. Moreover, one can check that L3+P and L3+1+P are also edge templates, so that P is a valid 3rd row ladder escape.

It is, however, not a valid 2nd row ladder escape for ladders at distance 0, because in the position L2+P′,

1

the ladder stone marked "1" cannot connect to the edge.

Theorem 2 is therefore not sufficient to check that a given pattern is a 3rd row ladder escape. We need to work a little harder to get a necessary and sufficient condition for 3rd row ladder escapes.

Lemma 3 (2nd to 3rd row jump). Any 3rd row ladder escape also escapes 2nd row ladders that start at distance 2 or greater. More specifically, if L3+P is an edge template, then so is L2+(2+P)′.

The lemma is perhaps easier understood in pictures: given any 3rd row ladder escape, replacing the three cells marked "+"

by the pattern

yields a 2nd row ladder escape.

Proof. Assume L3+P is an edge template. We must show that L2+(2+P)′ is an edge template. It looks as follows, with P added to it:

1

But Blue must play 2, and Red can jump to 3. Then 3 is a 3rd row ladder stone, and is connected to the edge because L3+P is an edge template by assumption. Therefore, 1 is also connected.

312

We now finally get a necessary and sufficient condition for 3rd row ladder escapes in the following theorem.

Theorem 4. Consider a candidate P for a 3rd row ladder escape. Then P is a valid 3rd row ladder escape if and only if L3+P, L3+1+P, and L3+2+P are edge templates.

Proof. The left-to-right implication is trivial, since by definition, if P is valid then L3+n+P is an edge template for all n, including n = 0, 1, 2. For the opposite implication, assume that L3+P, L3+1+P, and L3+2+P are edge templates. By Lemma 3, L2+(2+P)′ is an edge template. By Theorem 2 and the assumption about L3+(2+P), 2+P is a 3rd row ladder escape. It follows that L3+n+P is an edge template for all n ≥ 2. Since we additionally assumed this to be the case for n = 0 and n = 1, P is a valid third row ladder escape. □

As a matter of fact, Theorem 4 is not tight. We can get the following better result. However, the proof of Theorem 4 generalizes more easily to 4th row and higher ladders, which is why it is of interest.

Theorem 5. Consider a candidate P for a 3rd row ladder escape. Then P is a valid 3rd row ladder escape if and only if L3+P and L3+1+P are edge templates.

Proof. The left-to-right implication is trivial. For the right-to-left implication, by Theorem 4, it suffices to show that L3+2+P is an edge template. Indeed, consider Blue's options in the position L3+2+P:

1

As usual, there are only two possible moves for Blue to avoid losing immediately. If Blue moves at 2, then Red can respond at 3, which connects to the edge because L3+1+P is an edge template by assumption.

132

If Blue instead moves at 2, then Red responds as follows, which connects to the edge because L3+P is an edge template by assumption.

15342

Examples

Here are some examples of third row ladder escapes. Again most of these are taken from David King's website. For several of the ladder escape templates, the version shown on David King's website is not minimal by our definition; in these cases, we have moved the cells marked "+" to the right to make the template minimal. All of the templates in this section have been proven to be third row ladder escapes using Theorem 5. All of them are minimal. As before, a stone marked "10" is assumed to be connected to the bottom row, but the connection is not shown.

The following third row ladder escapes also escape 2nd row ladders at distance 0 or greater:

10
10

The following third row ladder escape also escapes 2nd row ladders at distance 1 or greater (but not at distance 0):

The following third row ladder escapes also escape 2nd row ladders at distance 2 or greater (but not at distance 0 or 1):

The version of this last pattern on David King's website has the cells marked "+" (he uses arrows) sloping in the other direction; the location that is shown here makes the template minimal.

The following is a rather strange example of a third row ladder escape:

1010

All of the cells marked "*" (and especially those that appear to the left of the cells marked "+") are not part of the template. One of the reasons this example is strange is that if the ladder starts at distance 1 or greater, the pattern is no longer minimal. Since the ladder must come from the left, this template therefore does not come up in practice. Nevertheless, it satisfies our formal definition of a 3rd row ladder escape. This template also escapes 2nd row ladders at distance 2 or greater (but not at distance 0 or 1).

2nd row escapes from 3rd row escapes

One may ask whether all 3rd row ladder escapes are also 2nd row ladder escapes. To some extent, this is true: we have already seen in Lemma 3 that every 3rd row ladder escape is also a 2nd row ladder escape, provided that the 2nd row ladder starts at distance 2 or greater, and provided that there is enough room on the 3rd row – specifically, we require the topmost "+" of the 3rd row ladder escape, and the cell immediately to its left, to be empty.

While many 3rd row ladder escapes also happen to work for 2nd row ladders at distance 0 and 1, not all of them do. The examples above show that Lemma 3 is tight, in the sense that there exist some 3rd row ladder escapes that do not escape 2nd row ladders starting at distance 0 and/or 1.

Fourth row ladders

Definition of ladder

Definition. A fourth row ladder is a pattern like this:

L4:

Again, the red stone is called the ladder stone and Red wants to connect the ladder stone to the bottom edge. The cells marked "*" are not part of the pattern and may be assumed to be blue. We denote this pattern by L4.

The key part of the definition is that the 6 hexes forming a triangle below the ladder stone are all vacant. Note that even filling in one of these can break the ladder: even if we fill in the bottom left corner of the triangle,

then Blue has this move,

1

which is easily seen to stop the ladder. To establish the ladder, Red needs at a minimum those 6 vacant hexes under her ladder stone.

Definition of ladder escape

The definition of a 4th row ladder escape is entirely analogous to that of 2nd and 3rd row ladder escapes.

Definition. A fourth row ladder escape is a pattern, plus four hexes marked "+" (not part of the pattern) going up and left from the first to the fourth row, such that there is no hex in the pattern to the left of any hex marked "+". This data must satisfy the following axiom: adding a 4th row ladder at distance n, for any n ≥ 0, connects the red ladder stone to the bottom edge, with Blue to move.

As before, a candidate is a pattern that has the correct shape, but is not (yet) known to be a valid escape.

Characterization of ladder escapes

We have already encountered all of the relevant ideas. If you have worked through the ideas in the second and third row escapes then this will be relatively easy, other than the actual Hex, which this time is quite fun!

Theorem 6. Consider a candidate P for a 4th row ladder escape. If L2+P′′, L3+P′, L4+P, and L4+1+P are valid edge templates, then P is a 4th row ladder escape.

Proof. The idea of the proof is the same as for 3rd row ladders. First observe that by Theorems 1 and 2, since L2+P′′ and L3+P′ are edge templates, P′ escapes all 3rd row ladders and P′′ escapes all 2nd row ladders. We must prove that L4+n+P is an edge template for all n ≥ 0. We proceed by induction on n. The base cases n = 0 and n = 1 hold by assumption. For the induction step, assume the claim is true for n ≥ 1. We need to prove the claim for n+1.

Consider the position L4+(n+1)+P. It looks like this, with n−1 additional columns of four vacant hexes and the pattern P attached on the right:

1

We need to prove that the ladder stone 1 is connected to the edge.

The five moves marked 2 below all lose instantly to Red 3:

1223222

The two moves marked 2 below also lose instantly:

1322

The move marked 2 below can be answered by Red 3, moving us to position L4+n+P, which is an edge template by the induction hypothesis.

132

Move 2 below leads us to a 2nd row ladder, which P′′ escapes, so 5 (and therefore 1) is connected to the edge:

13254

Both moves marked 2 below lead us to a 3rd row ladder, which P′ escapes, so 3 (and therefore 1) is connected to the edge:

1322

Move 2 below also leads to a 3rd row ladder (note Blue 4 must be in the triangle left and below from Red 3; Blue can also play out the bridge between 1 and 3 but this doesn't help):

13542

Move 2 below leads us to a 2nd row ladder:

13542

The final choice for move 2 below also gives a 2nd row ladder.

1357462

This completes the induction, so P is a 4th row ladder escape. □

Remark: In more concrete terms, Theorem 6 states that P is a 4th row ladder escape if adding each of the following patterns to P gives an edge template.

A:
1
B:
1
C:
1
D:
1

Remark: Theorem 6 is analogous to Theorem 2. It gives a sufficient, but not a necessary condition for a candidate to be a 4th row ladder escape. Once again, the criterion in Theorem 6 can be checked in a finite amount of time. To get a theorem with a necessary and sufficient condition, we need another "jump lemma":

Lemma 7 (3rd to 4th row jump). Any 4th row ladder escape also escapes 3rd row ladders that start at distance 3 or greater. More specifically, if L4+P and L4+1+P are an edge templates, then so is L3+(3+P)′.

Proof. Consider the position L3+(3+P)′, which looks as follows, with P added to it:

1

There are only two possible moves for Blue that don't lose immediately. If Blue moves at 2, then Red can respond at 3, which is a 4th row ladder stone and connects to the edge because L4+1+P is an edge template by assumption.

312

In Blue moves instead at 2 in the following diagram, then Red can respond as shown.

791836542

Now Red's stone 9 is a 4th row ladder stone. Although the additional red stone 5 does not belong in the L4 template, this stone can only help Red. By assumpion, L4+P is an edge template, and so stone 9, and therefore stone 1, is connected to the edge. □

We then arrive at a necessary and sufficient condition for fourth row ladder escapes.

Theorem 8. Given a candiate P for a 4th row ladder escape. Then P is a valid 4rd row ladder escape if and only if L4+P, L4+1+P, L4+2+P, ..., L4+6+P are edge templates.

Proof. The proof is similar to that of Theorem 4. Again, the left-to-right implication is trivial. For the right-to-left implication, assume that L4+P, L4+1+P, L4+2+P, ..., L4+6+P are edge templates. By Lemma 7 applied to P and 2+P, we know that L3+(3+P)′ and L3+(5+P)′ are edge templates. By Lemma 3 applied to (3+P)′, we know that L2+(2+(3+P)′)′ is an edge template, and therefore also L2+(5+P)′′, which differs from L2+(2+(3+P)′)′ only in that it contains two additional empty hexes. Since L2+(5+P)′′, L3+(5+P)′, L4+(5+P), and L4+(6+P) are edge templates, we know by Theorem 6 that 5+P is a valid 4th row ladder escape. Therefore, L4+n+P is an edge template for all n ≥ 5. Since we assumed this to be also true for n = 0, 1, 2, 3, 4, it follows that P is a valid 4th row ladder escape. □

Remark: Like Theorem 4, it is likely that Theorem 8 is not tight, in the sense that there probably exists an even simpler condition that is necessary and sufficient for 4th row ladder escapes (perhaps analogous to Theorem 5). Also, in practice, Theorem 6 is often easier to check since it involves fewer conditions.

Examples

Here are some examples of fourth row ladder escapes. Most are taken from David King's website. In each case we have moved the column of "+"s as far as possible to the right to yield a minimal template. The validity of all of these escapes has been proved using Theorem 8.

The following fourth row ladder escape templates also escape 2nd and 3rd row ladders at distance 0 or greater:

The following fourth row ladder escape template also escapes 2nd row ladders at distance 2 and greater, as well as 3rd row ladders at distance 1 or greater.

The following fourth row ladder escape templates also escape 2nd row ladders at distance 1 and greater, as well as 3rd row ladders at distance 0 or greater.

The following fourth row ladder escape template also escapes 2nd row ladders at distance 2 and greater, as well as 3rd row ladders at distance 0 or greater.

Fifth row ladders

Definition of ladder

Definition. A fifth row ladder is a pattern like this:

L5:

As usual, the red stone is called the ladder stone and Red's goal is to connect it to the bottom edge. The cells marked "*" are not part of the pattern. We denote this pattern by L5.

Unlike in the case of 2nd, 3rd, and 4th row ladders, this time it is not sufficient for a triangle of cells below and to the right of the ladder stone to be empty. We also need three additional empty cells to the left of this triangle. This is a minimal requirement; if even one of these cells is occupied by Blue, for example like this:

then Blue can block the ladder with this move:

1

The main line is complex; see for example this Little Golem discussion thread. Therefore, to establish the ladder, Red needs at minimum the specified 13 vacant hexes under the ladder stone.

Definition of ladder escape

The definition of a 5th row ladder escape is as expected.

Definition. A fifth row ladder escape is a pattern, plus five hexes marked "+" (not part of the pattern) going up and left from the first to the fifth row, such that there is no hex in the pattern to the left of any hex marked "+". This data must satisfy the following axiom: adding a 5th row ladder at any distance n ≥ 0 connects the red ladder stone to the bottom edge, with Blue to move. As usual, a candiate is such a pattern that satisfies everything except perhaps the axiom.


Characterization of ladder escapes

Theorem 9. Consider a candiate P for a fifth row ladder escape. Assume L5+P, L5+1+P, L5+2+P, L4+P′, L4+(1+P)′, L3+P′′, and L2+P′′′ are all edge templates. Then P is a 5th row ladder escape.

Proof. The proof idea is the same as for 3rd and 4th row ladders, but there are a lot more cases to consider. First, note that by previous theorems, P′ escapes all 4th row ladders, P′′ escapes all 3rd row ladders, and P′′′ escapes all 2nd row ladders. We prove by induction on n that L5+n+P is an edge template for all n ≥ 0. The base cases n = 0, 1, 2 are true by assumption. For the induction step, assume the claim is true for n ≥ 2. We need to prove the claim for n+1.

Consider the position L5+(n+1)+P, which looks like this (followed by an additional n−2 columns of five empty hexes and the pattern P):

1

The eight moves marked 2 below all lose instantly to Red 3 by edge template IV-1-a:

1222322222

The three moves marked 2 below also lose instantly by edge template IV-1-a:

13222

The six moves marked 2 below give a 4th row ladder, which P′ escapes.

13222222

This leaves us with 11 more moves to consider. If Blue pushes the ladder by making the move marked 2 below, Red can answer 3, moving us to position L5+n+P, which is an edge template by the induction hypothesis.

132

Move 2 below gives a 3rd row ladder, which P′′ escapes.

13254

If Blue plays move 2 below, Red can answer 3, forcing Blue to respond in the ziggurat below and to the left of stone 3. If Blue plays in any of the cells marked 4, Red plays 5 and gets a 4th row ladder, which P′ escapes. Blue could have also first intruded upon the bridge between 1 and 3, but this does not help. From now on, we tacitly ignore bridge intrusions that are not helpful to Blue.

135442444444

If, on the other hand, Blue plays 4 below, then Red gets a 2nd row ladder, which P′′′ escapes.

135267984

If Blue plays move 2 below, Red gets a 2nd row ladder, which P′′′ escapes.

1352476

If Blue plays move 2 below, Red can answer 3, forcing Blue to respond in one of the hexes marked 4. Then Red can play 5 and gets a 3rd row ladder, which P′′ escapes.

13454244

Similarly, if Blue plays move 2 below, Red can answer 3, forcing Blue to respond in one of the hexes marked 4. Then Red can play 5 and gets a 3rd row ladder, which P′′ escapes.

13454244

If Blue plays move 2 below, Red can answer 3. There are only four hexes where Blue can respond without losing outright. If Blue moves in one of the three hexes marked 4, then Red gets a 3rd row ladder, which P′′ escapes.

134574624

If Blue instead moves in the hex marked 4 below, then the sequence plays out slightly differently, but Red still gets a 3rd row ladder.

136795824

If Blue plays move 2 below, Red can answer 3. Then Blue must respond in any of the hexes marked "+", or else Blue will immediately lose to edge template III1b or a ziggurat.

132

If Blue responds in one of the two hexes marked 4, Red gets a 3rd row ladder.

135424

If Blue instead responds with move 4 below, Red gets a 2nd row ladder.

1354672

If Blue instead responds with move 4 below, Red still gets a 2nd row ladder.

135679284

If Blue plays move 2 below, Red can answer 3. Then Blue must respond in one of the hexes marked "+" to avoid immediately losing to edge template III1b.

132

If Blue responds in one of the hexes marked 4 below, Red gets a 3rd row ladder.

1345444442

If Blue instead responds in one of the hexes marked 4 below, Red gets a 2nd row ladder.

1354467982

If Blue instead responds at 4, Red gets a 3rd row ladder.

136795842

If Blue instead responds at 4, Red gets a 2nd row ladder.

1356724

If Blue instead responds at 4, Red gets a 2nd row ladder.

135679284

If Blue plays move 2 below, Red can answer 3. Then Blue must respond in one of the hexes marked "+" to avoid immediately losing to edge template III1b or a bridge.

132

If Blue responds in one of the hexes marked 4 below, Red gets a 2nd row ladder.

134546742

If Blue instead responds at 4 below, Red also gets a 2nd row ladder.

135679482

Finally, if Blue plays move 2 below, Red gets a 2nd row ladder.

135479682

This completes the induction, so P is a 5th row ladder escape. □

Remark: In more concrete terms, Theorem 9 states that P is a 5th row ladder escape if adding each of the following patterns to P gives an edge template.

A:
1
B:
1
C:
1
D:
1
E:
1
F:
1
G:
1

Like Theorems 2 and 5, Theorem 9 gives a sufficient, but not necessary condition for 5th row ladder escapes. We do not currently have a necessary and sufficient condition. One problem is that is it not clear if there is an appropriate "jump lemma" from 4th to 5th row ladders. We do have the following generalization of Theorem 9, which gives a weaker sufficient condition (it is likely also necessary, but this has not been shown):

Theorem 10. Given a candiate P for a 5th row ladder escape. If there is some n ≥ 0 such that L5+P, L5+1+P, ..., L5+n+P, L5+(n+1)+P, L5+(n+2)+P, as well as L4+(n+P)′, L4+((n+1)+P)′, L3+(n+P)′′ and L2+(n+P)′′′, are edge templates, then P is a valid 5th row ladder escape.

Proof. This follows directly from Theorem 9 applied to n+P. □

Examples

Here are some examples of fifth row ladder escapes. The validity of these escapes has been proved using Theorem 10. These escapes are minimal.

The following fifth row ladder escapes also escape 2nd–4th row ladders at distance 0 or greater:

The following fifth row ladder escape also escapes 2nd row ladders at distance 2 or greater, 3rd row ladders at distance 0 or greater, and 4th row ladders at distance 1 or greater:

The following fifth row ladder escape also escapes 2nd row ladders at distance 2 or greater, 3rd row ladders at distance 0 or greater, and 4th row ladders at distance 2 or greater:

Sixth row ladders and up

Because of the 2nd-to-6th row switchback trick, 6th and higher row ladders do not exist in the usual sense. More specifically, even if we allow an arbitrary amount of empty space under the ladder stone, it is not possible for the attacker to keep pushing the ladder. Consider the following situation:

abcdefghijklm12345671

Let's assume there is an arbitrary amount of empty space in the bottom 4 rows to the left of this diagram. The stone marked "1" is connected to the top, and looks like it could be the ladder stone for a potential 6th row ladder. If such a ladder were possible, the red stones on the M-file should certainly escape it.

From Blue's point of view, Blue is the attacker in an upside-down 2nd row ladder. Blue can therefore use an upside-down version of the 2nd-to-6th row switchback trick. To do so, Blue plays at 2:

abcdefghijklm123456712

If both Red and Blue keep playing optimally, the best that Red can get is a pair of parallel 2nd and 4th row ladders in the opposite direction:

abcdefghijklm12345671385976411213101412

Here, stone 10 is connected to the line of blue stones along the top, so Red has no way of connecting right. Red can now push a 4th row ladder from 5, and/or a 2nd row ladder from 13. There is not enough space for Red to immediately perform Tom's move. So unless Red has a ladder escape somewhere to the left of this diagram, or unless there's enough space on the 5th row somewhere to the left of this diagram to perform Tom's move, Red fails to connect to the edge.

Note that this argument does not show that 6th row ladders are categorically impossible. It only shows that the "usual" notion of ladder does not work. It is conceivable that 6th row ladders are possible under additional assumptions. For example, there might be a notion of 6th row ladder that requires additional space on the 7th row to its right, or on the 5th row to its left. It is currently unknown whether any viable notion of 6th row ladder exists.

For 7th row ladders the situation is even worse. As explained in open problems about edge templates, no amount of space under the ladder (even if we demand that the entire 5th row is clear) is known to guarantee a red connection if Blue just ignores the ladder and plays elsewhere. Thus, it is possible that 7th row ladders do not even exist in theory. Of course they do not occur in practice either.

Second-to-fourth row switchbacks

Definition of switchback

Informally, a 2nd-to-4th row switchback is a pattern that allows the attacker to turn around a 2nd row ladder into a ladder on the 4th row in the opposite direction. For example, in the following situation, suppose ladder stone marked "1" is connected to the top, with Blue to move.

abcdefg12341

Red pushes the 2nd row ladder to d3, the breaks at f3:

abcdefg12341357246

At this point, Blue is force to play 8, and then a new ladder starts in the opposite direction:

abcdefg12341311912108

In this example, the ladder reconnects to Red's original group, although in general this does not need to be the case (even if the switchback doesn't connect, Red has just created a parallel edge 4 cells from the original edge - a large advantage for Red in any case).

To formalize the concept of a 2nd-to-4th row switchback, consider a 2nd row ladder.

L2:

This is the same ladder as defined in the section of second-row ladders above; only this time, Red's goal will be slightly different. To explain Red's goal, we show a slightly larger area around L2:

bab

This time, Red's goal will be to do at least one of the following two things: either connect the red ladder stone to the edge, or else, occupy the cell marked "a" with a red stone that is connected to the edge, without using the cells marked "b" or any cells to their left. We refer to this as the switchback condition. We also call "a" the switchback cell and "b" the gap cells. With this in mind, we now give the definition of a 2nd-to-4th row switchback template.

Definition. A 2nd-to-4th row switchback template (or simply 2-to-4 switchback) is given by the following data. It is a pattern, plus four hexes marked "+" (not part of the pattern) going up and left from the first to the fourth row, such that there is no hex in the pattern to the left of any hex marked "+". This data must satisfy the following axiom: L2+(n+P)′′ satisfies the switchback condition for all n ≥ 0.

As usual, a candidate is a pattern that has the correct shape, but is not (yet) known to be a valid switchback template.

As in previous sections, we write L2+(n++P)′′ for the pattern obtained from P by moving the four hexes marked "+" to the left by n columns (leaving 4 rows of empty space), then removing the top two cells marked "+" (they are not part of the pattern) and replacing the remaining cells marked "+" by L2. Note that the switchback cell "a" and gap cells "b" are not part of L2. They are simply three cells on the board whose position is defined relative to L2. Depending on the value of n, they may or may not end up being inside the pattern P.

Characterization of switchbacks

The following theorem gives a finite necessary and sufficient condition for a pattern to be a switchback.

Theorem 11. Given a candidate P for a 2-to-4 switchback. Then P is a valid 2-to-4 switchback if and only if L2+P′′ satisfies the switchback condition.

Proof. The left-to-right implication is trivial. For the opposite implication, we will show, by induction on n, that L2+(n+P)′′ satisfies the switchback condition for all n ≥ 0. The base case n = 0 holds by assumption. Now suppose that the claim is true for some n. To show the claim for n+1, consider the position L2+(n+1+P)′′. It looks as follows, with n more empty columns and P appended on the right:

1

Here, the ladder stone is marked "1". Blue has no choice to push the ladder, and Red also pushes:

132

At this point, the induction hypothesis guarantees that Red can either connect 3 to the edge, or else that Red can occupy and connect the switchback cell "a" while keeping "b" empty:

bbabb132

If 3 is connected to the edge, then so is 1, and we are done. Otherwise, "a" is connected to the edge and "b" is empty. Thus, the board looks like this, with "a" now acting as a ladder stone:

1

Since Red's stones on the 2nd row are already connected to the top, and 1 is connected to the bottom, Blue has no choice but to respond at 2. Then Red can play 3.

312

Now the switchback condition for L2+(n+1+P)′′ is satisfied, proving the theorem. □

Examples

Any 2nd row ladder escape template trivially also works as a switchback template (with the location of the cells marked "+" adjusted as necessary; they may need to be moved to the left if there isn't space for the two additional "+"s in the pattern). Since such a template escapes 2nd row ladders outright, there is no need for the second part of the switchback condition.

The following are examples of 2nd-to-4th row switchback templates that are not second row ladder escapes. They are minimal.

Third-to-fifth row switchbacks

Definition of switchback

The definition of 3rd-to-5th row switchbacks is similar to that of 2nd-to-4th row switchbacks. Consider a 3rd row ladder.

L3:

We define the locations of the switchback cell "a" and gap cells "b" relative to L3:

bab

Again, the switchback condition states that with Blue to move, Red can either connect the ladder stone to the edge, or else Red can occupy the switchback cell and connect it to the edge, without using the gap cells or anything to their left.

Definition. A 3nd-to-5th row switchback template (or simply 3-to-5 switchback) is given by the following data. It is a pattern, plus five hexes marked "+" (not part of the pattern) going up and left from the first to the fifth row, such that there is no hex in the pattern to the left of any hex marked "+". This data is subject to the requirement that L3+(n+P)′′ satisfies the switchback condition for all n ≥ 0.

Characterization of switchbacks

The following theorem gives a finite necessary and sufficient condition for a pattern to be a switchback. It is analogous to the corresponding theorem for 3rd row ladders.

Theorem 12. Given a candidate P for a 3-to-5 switchback. Then P is a valid 3-to-5 switchback if and only if L3+P′′ and L3+(1+P)′′ satisfy the switchback condition.

Proof. The left-to-right implication is trivial. For the opposite implication, we will show, by induction on n, that L3+(n+P)′′ satisfies the switchback condition for all n ≥ 0. The base cases n = 0 and n = 1 hold by assumption. Now suppose that the claim is true for n and n+1. To show the claim for n+2, consider the position L3+(n+2+P)′′. It looks as follows, with n more empty columns and P appended on the right:

1

The ladder stone is marked "1". As usual for 3rd row ladders, Blue must either push or yield, or else Red will connect to the edge outright. If Blue pushes, then so does Red:

132

By induction hypothesis, L3+(n+1+P)′′ satisfies the switchback condition, so either Red can connect to the edge, or else Red can get a new ladder stone 1 in the switchback cell for L3+(n+1+P)′′, which allows Red to satisfy the switchback condition for L3+(n+2+P)′′ with stone 3.

312

The other option is for Blue to yield. (We will see later that when n is large enough, yielding in this situation is actually a terrible idea for Blue, since it will allow Red to use P to connect to the edge. But this is not relevant for the current proof).

15342

Now by the induction hypothesis, L3+(n+P)′′ satisfies the switchback condition, so either Red can connect to the edge, or else Red can get a new ladder stone 1 in the switchback cell for L3+(n+P)′′. This allows Red to satisfy the switchback condition for L3+(n+2+P)′′ with stone 5.

53142

This finishes the proof of the theorem. □

One may ask whether every 3-to-5 switchback template also works as a 2-to-4 switchback template. This is indeed the case at sufficient distance, due to the following jumping lemma.

Lemma 13 (2nd to 3rd row switchback jump). Any 3-to-5 switchback template is also a 2-to-4 switchback template at distance 4 or greater. More specifically, if P is a 3-to-5 switchback template, then (4+P)′ is a 2-to-4 switchback template.

Proof. Suppose P is a 3-to-5 switchback template, and consider Q = (4+P)′. By Theorem 11, we must show that L2+Q′′ satisfies the switchback condition. The position L2+Q′′ looks like this, with P attached on the right:

1

After Blue pushes the ladder at 2, Red plays 3, which is essentially Tom's move. While this move is not sufficient to connect Red to the edge, it creates enough trouble to allow Red to get the desired switchback in the presence of P.

312

Let us consider Blue's options. If Blue moves outside the area marked "x", Red simply pushes the ladder and connects, using 3 as a ladder escape.

3x1xxxx2xxxx

If Blue moves in any of the cells marked 4, Red gets the switchback without using P:

73416544244

If Blue moves at 4, Red also gets the switchback without using P:

53142

If Blue moves at 4, Red also gets the switchback without using P. Note that 3 is connected by edge template III2b.

7316524

If Blue moves at 4, Red also gets the switchback without using P. Note that 3 is connected to the edge by double threat.

7316254

This leave only one option for Blue. If Blue moves at 4, then Red responds as follows:

7315426

By hypothesis, since P is a 3-to-5 switchback template, Red can either connect 3 to the edge, or else get a connected red stone at "a", with "b" empty:

ba7b315426

In either case, 7 is connected to the edge, so Red has the desired switchback. □

Corollary 14. In a 3rd row ladder at distance 5 or greater to a 3-to-5 switchback, Blue cannot yield.

Proof. If Blue yields, then Red can switch back the resulting 2nd row ladder to the 4th row by the previous lemma. This will reconnect to Red's original 3rd row ladder, and therefore connect Red to the edge. In a diagram:

ba9b15376428

Note that Blue must play 6 for the same reason as in the lemma. Since Red will either connect 5 or "a" to the edge, 7 is also connected. Rather than just giving Red a switchback, 7 is actually connected to 1 by a crescent. □

Examples

Every 3rd row ladder escape template is also a 3-to-5 switchback template (possibly with the location of the column of "+"s adjusted), but it need not be minimal. Here are some examples of 3-to-5 switchback templates that are not 3rd row ladder escapes.

Second and fourth row parallel ladders

Definition of ladder

Parallel ladders, especially on the 2nd and 4th rows, are quite common in Hex. For example, consider this situation, with Blue to move and the Red stone connected to the top:

Play may proceed as follows:

2413657

Now Red has a choice: she can either continue pushing the 4th row ladder from 2, or the 2nd row ladder from 6. However, having parallel ladders puts Red in a stronger position than having a 2nd row ladder or a 4th row ladder alone. As we will see, there exist ladder escape templates than can escape a parallel ladder, but can neither escape a 2nd row ladder nor a 4th row ladder on its own.

Note. Unlike with single-row ladders, in the case of a parallel ladder, Red actually has a choice whether to push the 2nd row ladder or the 4th row ladder. For this reason, our formal definition of a parallel ladder follows a slightly different approach than that we took for single-row ladders above. Whereas above, we always assumed that Blue was next to move (and the ladder stone was already in a pushing position), here, we will assume that Red is next to move. This affects the definition of the ladder pattern, in that the ladder stones do not yet have empty space below them.

Definition. A parallel ladder on the 2nd and 4th row, or 2-4 ladder for short, is a pattern like this:

L24:

The red stones on the second and fourth rows are called the ladder stones, and Red's goal is to connect at least one of these stones to the bottom edge, with Red to move first. (We can assume that both ladder stones are already connected to the top). We denote this pattern by L24.

Definition of ladder escape

Definition. A 2-4 ladder escape is a pattern, plus four hexes marked "+" (not part of the pattern) going up and left from the first to the fourth row, such that there is no hex in the pattern to the left of any hex marked "+". This data must satisfy the following axiom: adding a 2-4 ladder at distance n, for any n ≥ 0, allows Red to connect, in the sense that it guarantees the connection of at least one of the red ladder stones to the bottom edge, with Red to move.

As before, a candidate is a pattern that has the correct shape, but is not (yet) known to be a valid escape.

Characterization of ladder escapes

Fortunately, 2-4 ladders are easy to analyze; they are almost as simple as 2nd row ladders. The reason is that, just as for 2nd row ladders, the defender has no choice; he must always push, because as we will see, yielding is not an option. We get a simple and clean theorem with a necessary and sufficient condition for 2-4 ladder escapes.

Theorem 15. Consider a candidate P for a 2-4 ladder escape. Then P is a valid 2-4 ladder escape if and only if L24+P, L24+1+P, and L24+2+P allow Red to connect (with Red to move).

Proof. If the ladder escape is valid, then by definition, L24+n+P allows Red to connect for all n, including n = 0, 1, 2. So the left-to-right implication is trivial. To prove the right-to-left implication, assume L24+P, L24+1+P, and L24+2+P allow Red to connect. We prove by induction that L24+n+P allows Red to connect for all n ≥ 0. The cases n = 0, 1, 2 are true by assumption. Now suppose the claim is true for some n ≥ 2. We must show the claim for n+1. To do so, consider the position L24+(n+1)+P. The first six columns of this position look like this:

This is followed by n−2 more columns of four empty hexes and by the pattern P. Red starts by pushing the 4th row ladder.

1

Now consider Blue's possible moves. If Blue moves in any of the hexes marked 2 below, Red wins outright (i.e., without using the induction hypothesis).

122223222222

If Blue moves in any of the hexes marked 2 below, Red also wins outright:

13222

If Blue moves at 2 below, Red also wins outright:

1546732

This means that the only possible move that is not immediately losing for Blue is to push the 4th row ladder. In this case, Red can respond as follows:

1234

This position allows Red to connect by induction hypothesis, finishing the proof. □

It is clear that every 2nd row ladder escape and every 4th row ladder escape is also an escape for 2nd-and-4th row parallel ladders, since Red can decide to push only the 2nd row ladder, or only the 4th row ladder. In addition, 2nd-to-4th row switchback templates also work as 2-4 parallel ladder escapes. This is intuitively clear, as Red can simply push the 2nd row ladder and switch it back to the 4th row, where it will connect with the original 4th row ladder. The following theorem proves this more formally, using the definitions.

Theorem 16. Every 2nd-to-4th row switchback template is also a 2-4 parallel ladder escape.

Proof. Assume P is a 2nd-to-4th row switchback template. To show that P is a 2-4 parallel ladder escape, we must show that L24+n+P allows Red to connect with Red to move, for all n ≥ 0. Consider the position L24+n+P, which looks as follows, with an additional n blank columns and P on the right:

Red plays as follows. At this point, since n+P is a 2nd-to-4th row switchback template, Red can either connect 3 to the edge, or get a connected stone at "a" with "b" empty.

bab132

This allows Red to connect at least one of the ladder stones, as required. □

Examples

As mentioned above, every 2nd row ladder escape, every 4th row ladder escape, and every 2nd-to-4th row switchback template works as a 2-4 ladder escape. But there are some examples of 2-4 ladder escapes that are none of the above. The most famous of these is Tom's move, which states that a sufficient amount of empty space is enough for a 2-4 ladder to connect to the edge. Specifically, the following is a 2-4 ladder escape template:

Here are some other examples of 2-4 ladder escapes that neither escape 2nd nor 4th row ladders on their own. All of these can be shown to be valid by Theorem 15, and all of them are minimal. Unlike Tom's move, these ladder escapes don't require space on the 5th row.

In the following template, the stone marked "10" is assumed to be connected to the bottom edge, but the connection is not shown. The blue stone is not technically part of the pattern; however, if this cell were empty, the pattern would already work as a 2nd row ladder escape.

10

The next two patterns are basically 2nd-to-4th row switchback templates. However, the corresponding switchback templates are not minimal when considered as 2-4 ladder escapes. We have made them minimal by pushing the column of "+" to the right as far as possible. At this close distance, they still work as 2-4 ladder escapes, but they no longer work as switchbacks.