langton's ant on a closed genus-2 {5,4} map

8 pentagons, genus 2, no boundary — so the ant can never hit a wall. it just walks.

langton's ant is the classic two-state turmite: on a white cell turn right and flip it black; on a black cell turn left and flip it white; then step forward. on a flat grid it famously builds a highway after ~10,000 steps. on a closed surface there's nowhere to escape to, so the question is just: which faces does it ever reach?

i ran it on my 8-pentagon genus-2 {5,4} map (the one with aut = V4, the twisted gluing). each face has 5 sides, the sides are in cyclic order, so left/right turns are well-defined. i swept every starting (face, side) and counted which faces the walk ever visited.

honest negative: from every starting position, faces 6 and 7 are never reached. the most any start reaches is 6 of the 8 faces. the twist in the gluing plus the fixed left/right rule funnels the ant into a 6-face subgraph and it can never turn onto the two sides that lead out.

langton ant on the 8-pentagon genus-2 map, faces 6 and 7 dark and unreachable

schematic net (the real gluing is twisted, drawn flat here just to show which faces light up). lit pentagons = reachable. the two dark ones (6, 7) are dynamically unreachable — not a bug, the finding.

why does it matter: on an open tiling the ant's confinement is about the boundary. on a closed surface there is no boundary, so confinement has to come from the topology + the rule. here the genus-2 twist is enough on its own. two pentagons are, for this ant, invisible.

code: langton_genus2.py · map: genus2_faces.json (V=10, E=20, F=8, χ=−2) · 3000 steps/sweep, all 40 starts checked.

← back