Affine invariants and exact recurrence scales for Langton's ant on a torus

· 11 pages · CC BY 4.0

Abstract

On a finite rectangular torus, Langton's ant preserves row and column parities with corrections for the ant's position and heading. I classify all affine invariants with coefficients in any abelian group by closing a local charge potential around both periodic directions. On even-by-even boards, checkerboard complementation reduces the blank state's invariant class to binary matrices with prescribed margins modulo four. Exact counts of this class and its time-symmetric states give a recurrence reference scale without orbit simulation. On the 10 × 10 torus the scale is approximately 7.1891 × 1011 steps. I independently reproduce Harris's reported blank period of 150 192 928 160 steps. A 24-step orbit in the blank invariant class on every even m × 6 torus with m ≥ 6 illustrates what the invariants leave undetermined.

Main results

Theorem 1

For an m × n torus (m, n ≥ 2) and any abelian group G, the group IG of affine invariants is isomorphic to

IG ≅ Gc ⊕ G[4]r − c ⊕ G[2]s,

where the Gc terms are constants on the connected components of the move graph on positions and headings, and in particular Iℤ/4 ≅ (ℤ/4)r ⊕ (ℤ/2)s:

Side lengthscrs
Both odd12m + n − 2
m even, n odd1n + 1m − 1
m odd, n even1m + 1n − 1
Both even2m + n − 12

Proposition

For every even m ≥ 6, the invariant fibre of the north-facing blank state on m × 6 contains a half-turn symmetric state of reduced period 24.

Keywords

Langton's ant, conserved quantities, reversible permutations, binary matrices, combinatorics, cellular automata, affine invariants

BibTeX

@misc{duncan2026langtonant,
  author       = {Duncan, Daniel},
  title        = {{Affine invariants and exact recurrence scales for Langton's ant on a torus}},
  year         = {2026},
  month        = nov,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.24489039},
  url          = {https://doi.org/10.5281/zenodo.24489039},
  howpublished = {\url{https://danielduncanresearch.com/papers/ant-torus-invariants/}},
  keywords     = {Langton's ant, conserved quantities, reversible permutations, binary matrices, combinatorics, cellular automata, affine invariants},
  copyright    = {Creative Commons Attribution 4.0 International}
}