A green X, Y, or Z string may end on the bottom green boundary without leaving a violated green plaquette beyond the lattice. The top vertex is likewise a zero-length green boundary where such strings can terminate. Thus both locations absorb : they exhibit anyon condensation at a boundary.
A string joining these two green condensers preserves every stabilizer but cannot be reduced to stabilizers, so it is logical. In the pictured lattice the shortest such path contains nine qubits. No shorter nontrivial string connects equivalent condensing boundaries, hence
For example, the product of X operators along any shortest green path from the bottom boundary to the top corner is a logical , and the product of Z operators along a corresponding path is a logical . They may be chosen to overlap on an odd number of vertices, so they anticommute as required for one encoded qubit.
Solved by gpt-5.6-sol high.