Abelian Square-Free Structures — Interactive Explorer

Visualizing the search for abelian square-free words. Over a three-letter alphabet {a, b, c}, every word of length 8 or greater contains an abelian square, making an infinite abelian square-free word impossible. In 1992, Veikko Keränen proved that an infinite abelian square-free word exists over a four-letter alphabet {a, b, c, d}.

Letter colors:  abcd. * Tab color categories: a=Learn, b=Explore, c=Research, d=How we know it

Every claim shown here traces to a row in MATH_CLAIMS.mdview the live research ledger and source code · The Bridge Story

What is an Abelian square?
1. Tree Search (3 letters)
2. ABC Laboratory
3. Morphism g₈₅ (4 letters)
4. 2D Walk
5. Sonification
6. Try It Yourself
7. Historical Timeline
8. Unfavorable Factors
9. Morphism Microscope
10. Concept Graph
11. Morphism Lab
12. Heat Map
13. Abelisk Puzzle
14. AA2FR Extension Lab
15. Applications & Impact
16. Validation Lab
18. Seam Search & Verification
19. The Graveyard

What is an Abelian square?

An ordinary square is a word that repeats consecutively, like hotdoghotdog (hotdog + hotdog) or abcabc (abc + abc).

An Abelian square is a looser concept: it is a word consisting of two consecutive parts that have exactly the same letters, but possibly in a different order.

abc | cab

The left half (abc) and the right half (cab) both contain one a, one b, and one c. This is an Abelian square!

Couldn't we just avoid Abelian squares?

If you only have three letters (a, b, and c), the task turns out to be impossible.

How long of a word can you form so that no part of it contains an Abelian square?

Here is the longest possible:

a b c b a c b (Length 7)

No matter which letter you add (a, b, or c) after this, an Abelian square inevitably forms. Try adding 'a', 'b', or 'c' and see what happens in the "1. Tree Search (3 letters)" tab!

Keränen's 85-letter solution (Morphism)

Since 3 letters are not enough, in 1992 Veikko Keränen proved that with four letters (a, b, c, d) an infinite word can be built without a single Abelian square.

This was done with a morphism. A morphism is a rule that replaces each single letter with a long string. Keränen's rule (g85) replaces each letter with exactly an 85-letter word.

a → abcacdcbcdcadcdbdabacabadbabcbdbcbacbcdcacbabd... (85 letters)
b → (rule for b, also 85 letters)
...

You can explore this complex structure and current discoveries (such as the g3 morphism) on the other tabs!

Search Tree

Backtracking over {a, b, c}. Each branch tries one letter; branches marked red contain an abelian square and are pruned.

Why does 3 letters fail? Over a 3-letter alphabet, every word of length ≥8 contains an abelian square. The longest abelian square-free words over {a,b,c} have exactly length 7 (e.g. abcbacb). This was noted by Dekking (1979) and independently by Keränen. The tree search below hits a dead end every time it reaches depth 7.

Current String

Suffix Parikh Scanner

After each appended letter, all suffix splits are scanned. A match in Parikh vectors means an abelian square — branch is pruned.

Idle

Statistics

Length: 0
Max Length Reached: 0
Nodes Explored: 0
Backtracks: 0
Squares Found: 0