Skip to content
DAH

Additive-square-free infinite words over a finite set of integers

OpenTo verify: Lean proofPosed by Justin (1972); Brown and Freedman (1987); Pirillo and Varricchio (1994); Halbeisen and Hungerbühler (2000), as cited in the 2026 preprint
AI-reviewed
On this page15 sections
Difficulty
45/100Hard
How far from a resolution. P vs NP = 100
Application value
50/100Significant
Realistic practical impact if resolved. P vs NP = 100
Leverage
18/100Isolated
How much other knowledge hinges on it. P vs NP = 100

Rated against the accepted literature, not the unrefereed claim. Difficulty 45: a question open since the 1970s whose existence part a 2026 preprint says is now answered, with the exact minimum (4, 5 or 6) still unknown. Application value 3: no foreseeable practical use. Leverage 18: it matters for additive Ramsey-type questions about bounded sequences in one subfield, and little else depends on the answer.

The problem

Can an endless string of whole numbers avoid two adjacent chunks of equal length and equal sum? A 2026 preprint says yes, with six numbers.

  1. 1Can integers avoid equal-sum adjacent blocks?
  2. 2At least four needed (abelian squares)
  3. 3Cubes avoided over four symbols (2011)
  4. 4Preprint: six integers by substitution
  5. 5Claimed Lean check, not rebuilt by DAH
  6. 6Open: is it 4, 5 or 6?

The question. Let AA be a finite set of integers and x=x0x1x2…x=x_0x_1x_2\dots an infinite word over AA. An additive square in xx is two adjacent nonempty blocks of the same length hh and the same sum: xn+⋯+xn+h−1=xn+h+⋯+xn+2h−1x_n+\dots+x_{n+h-1}=x_{n+h}+\dots+x_{n+2h-1}. For example 1423 is one, since 1+4=2+31+4=2+3. Is there a finite AA and an xx with no additive square, and what is the least size of such an AA?

What is known. If two blocks contain the same letters in a different order (an abelian square) their sums agree, so every abelian square is additive. Three letters cannot avoid abelian squares, so any additive-square-free word needs at least four integers. Brown and Freedman (1987) conjectured that every bounded sequence of positive integers contains an additive square, which would have made the answer no. The problem was also posed by Justin (1972), Pirillo and Varricchio (1994) and Halbeisen and Hungerbühler (2000), as the 2026 note cites them. For additive cubes (three adjacent blocks), Cassaigne, Currie, Schaeffer and Shallit built a word over four symbols avoiding them in 2011.

The 2026 claim. Shallit's arXiv note 2611.24441 gives an explicit word over six positive integers. In outline: build an auxiliary word ww as the fixed point of a substitution that turns each letter into a block of q=260q=2^{60} integers, whose residues modulo a fixed number are arranged so that the start, middle and end of any square must sit at the same offset in their blocks. The sums then give a square in ww of half-length h/qh/q, contradicting minimality (descent). Then encode ww into six values using a four-symbol word of Keränen's, which has no adjacent abelian-equivalent blocks of the relevant lengths, so a square in the final word would give a square in ww. The six values are huge numbers built from L=2⋅8511L=2\cdot85^{11} and 2582^{58}.

Why DAH is careful. The proof is short but dense, and the note says it was almost entirely written by GPT 6.2 Astra; the author says he takes responsibility for it. A Lean verification is said to be available, but DAH has not downloaded or built it, and has not re-run any check. A Lean theorem is only as good as its statement, so the statement has to be compared with the definition above. The note itself says the least number of integers is 4, 5 or 6, and leaves open which.

Try it. In Python, write a function that tests a finite list for an additive square by prefix sums (compare S(n+h)−S(n)S(n+h)-S(n) with S(n+2h)−S(n+h)S(n+2h)-S(n+h) for all n,hn,h). Search by backtracking for the longest word over three, four or five small integers that has none, and see how long it can get.

Go deeper

The full technical text.

An additive square in a word of integers is two adjacent nonempty blocks of equal length and equal sum (for example 1423, since 1+4=2+31+4=2+3). Is there an infinite word over a finite set of integers with no additive square, and if so what is the least size kk of such a set? Every abelian square is an additive square and three letters cannot avoid abelian squares, so k≥4k\ge 4 whenever it exists. Brown and Freedman (1987) conjectured that every bounded sequence of positive integers contains an additive square, which would make the answer "no".

Words on this page (9)
Words on this page
additive square
Two adjacent nonempty blocks of integers with equal length and equal sum, such as 14 followed by 23.
abelian square
Two adjacent blocks with the same letters in any order; every abelian square is an additive square.
additive cube
Three adjacent blocks with the same length and the same sum, avoidable over four symbols (2011).
prefix sum
The total of the first n terms of a sequence; block sums are differences of prefix sums.
substitution (morphism)
A rule replacing each letter by a fixed block of letters; iterating it builds an infinite word.
descent argument
A proof that assumes a smallest counterexample exists and shows it implies a smaller one, which is impossible.
Walnut
Software that decides statements about automatic sequences; not used in the 2026 note.
Lean
A proof assistant: a program that checks a mathematical proof written in a formal language.
preprint
A paper posted publicly before independent experts have refereed it.
New to this? Read first (3)
New to this? Read first
AI-reviewedAn AI drafted this explanation. Check it against the technical text.
Path to understanding

Start with Pattern avoidance in infinite words. No foundations are linked to it yet.

State of the art

Open as far as the accepted literature goes; one unrefereed claim of existence with k≤6k\le 6. Cassaigne, Currie, Schaeffer and Shallit (2011) showed that additive cubes can be avoided over four symbols, which is the nearest refereed-literature result DAH found. On 18 November 2026 Shallit posted arXiv:2611.24441 (v1), a short note whose abstract describes it as answering a problem open for more than 50 years: it gives an explicit infinite word over six positive integers with no additive square. The word is built in two steps, an auxiliary word obtained by iterating a substitution with blocks of length q=260q=2^{60} and a descent argument (a square would give one of half-length divided by qq), then an encoding through a four-symbol word from Keränen's substitution using a result of Peltomäki and Whiteland on abelian squares. The note says it was almost entirely written by GPT 6.2 Astra, that the author takes full responsibility for its correctness, and that a Lean verification, also produced by that model, is available as a zip file. The note itself says the optimal alphabet size is 4, 5 or 6 and that it remains to determine which. If the construction is correct it contradicts the Brown–Freedman conjecture as the note quotes it, although the note does not say so explicitly. DAH has read the full text but has not checked the proofs, downloaded the Lean project or re-run anything. The status stays OPEN.

Realistic applications

None foreseeable. The question concerns the structure of integer sequences; methods for building and machine-checking such words (substitutions, automatic sequences, Walnut, Lean) are reused elsewhere in combinatorics on words.

What counts as solved

For existence, a proof that is accepted by experts or published after refereeing, or a machine-checked proof whose statement matches the definition of additive square above (adjacent nonempty blocks of equal length and equal sum) for an infinite word over a finite set of integers. For the minimum alphabet size, an additive-square-free word over 4 or 5 integers together with a proof that fewer do not suffice.

How it gets verified

To verify: Lean proof

A formal proof checked by Lean 4 / Mathlib.

The note says the construction has a Lean verification, also produced by GPT 6.2 Astra, in a zip file hosted on the author's university page (the address is in Section 9 of the note; DAH did not open it). A verifier unzips it, runs sh check.sh, and confirms that the build succeeds with no sorry and only the standard axioms (#print axioms), and that the main theorem named in the note, AddSquare.Six.six_letter_counterexample in AdditiveSquare.lean, states exactly this: an infinite word over six positive integers such that no two adjacent nonempty blocks have equal length and equal sum. The definitions of the word (the alphabet, the 85-symbol word, the substitution, the labelling rule) and of "additive square" must be read against Section 2 of the note, since a Lean theorem can be true of a weaker object than the one claimed. A hand review of Sections 3 to 6 of the note is the independent check.

Claims

Connected problems

No connected problems.

Progress

  1. Nov 18, 2026
    Shallit: preprint claims a six-letter additive-square-free word

    Claims an explicit infinite word over six positive integers, with a hand proof and a Lean verification said to be written by GPT 6.2 Astra. The note leaves open whether 4 or 5 integers suffice. Unrefereed.

    source
  2. Jun 26, 2011
    Additive cubes avoided over four symbols

    Cassaigne, Currie, Schaeffer and Shallit construct an infinite word over four symbols with no additive cube.

    source
  3. Jan 1, 1987
    Brown and Freedman: conjecture for bounded sequences

    They conjectured that every bounded sequence of positive integers contains an additive square (pages 595-596 of their paper, as cited in the 2026 note).

    source