An XY-Chain is a row of two-candidate cells, each one seeing the next, arranged so that the same digit sits at both ends. One of those two ends must hold that digit, so any cell seeing both ends can drop it.
A bivalue cell is a cell with exactly two candidates left. It is a switch: rule one digit out and the other is forced. Line those switches up and the force travels.
Start with a cell holding {z,a}. Its neighbour holds {a,b} and sees it. The next holds {b,c} and sees that one, and so on, until the last cell holds {y,z} — back to the digit you began with. Each cell shares its link digit with the cell before it and passes a new digit forward.
Now suppose the first cell is not z. Then it is a, so the second cell cannot be a and must be b, so the third cannot be b, and the wave runs to the far end, where the last cell is forced to z. Either the first end is z or the last end is z. There is no third option, and every cell that sees both ends loses z.
| Y-Wing | XY-Chain | |
|---|---|---|
| Cells involved | Exactly three | Three, four, five or more |
| Shape | A pivot with two pincers | An open path with two ends |
| Requirement | Both pincers see the pivot | Each cell sees only its neighbour |
| Ends | The two pincers | The two end cells |
| Eliminations | The shared digit, from cells seeing both pincers | The end digit, from cells seeing both ends |
A Y-Wing is simply the shortest useful XY-Chain, which is why the elimination rule reads the same.
Four bivalue cells, each seeing the next one:
r1c1 {4,7} -- row 1 -- r1c6 {7,2} -- col 6 -- r4c6 {2,9} -- row 4 -- r4c9 {9,4}
If r1c1 is not 4 it is 7
-> r1c6 is 2 -> r4c6 is 9 -> r4c9 is 4
So r1c1 is 4, or r4c9 is 4, or both. The chain's ends are r1c1 and r4c9, and 4 is the end digit.
Which cells see both ends? Cell r1c9 shares row 1 with r1c1 and column 9 with r4c9. Cell r4c1 shares column 1 with r1c1 and row 4 with r4c9. Neither can be 4, so 4 comes off both.
XY-Chains are standard equipment for expert classic Sudoku, where bivalue cells are plentiful and the simpler patterns have all been used up. Start with three-cell and four-cell chains; once those come naturally, longer ones cost nothing but patience.