A frequency-budget counterexample to Drivet's Open Problem 5.2
Year: 2026
Type: preprint
Abstract: A ternary square-free word with positive rational letter frequencies gives a negative answer to Drivet's Open Problem 5.2. For this word, every tolerance \(0<\delta<1/45\) requires changing a larger proportion of positions than the problem allows, even if the resulting word is free to have repetitions. Drivet asks whether, for every infinite word \(w\) on a \(k\)-letter alphabet with rational letter frequencies and every \(\delta,\varepsilon>0\), one can change letters at positions of asymptotic density at most \(\delta\) to obtain a word whose letter frequencies all differ from \(1/k\) by at most \(\delta\) and whose exponent is at most \(\alpha+\varepsilon\). The exponent of a word is the supremum, over its non-empty contiguous factors, of the factor length divided by its least period. The counterexample satisfies an explicit input exponent bound \(\alpha=2\) and works for every \(\varepsilon>0\). Drivet, *Repetition Avoidance under Uniform Frequency Constraints*, p. 88, Open Problem 5.2, clauses 1–3 For two infinite words \(u,v\) on the same finite alphabet, let \(p_b=f_b(u)\) and \(q_b=f_b(v)\), where \(f_b\) is the limiting proportion of letter \(b\) in prefixes and all these limits are assumed to exist. Let \(D_N\) count the positions at which the first \(N\) letters of the two words differ. The total variation between their frequency vectors bounds the required density of changes from below: \[\frac12\sum_b |p_b-q_b|\le \limsup_{N\to\infty}\frac{D_N}{N}. \] The sum runs over the alphabet. In particular, the change in the frequency of any one letter is at most this upper density. The bound therefore applies even when the proportion of changed positions has no limit. Ochem's Theorem 5 supplies an infinite word with no adjacent copies of any non-empty block and with frequency vector \(p=(13/45,1/3,17/45)\). The last letter, denoted by \(a\), has frequency \(2/45\) above the ternary uniform value \(1/3\). A change budget of \(\delta\) can reduce its frequency by at most \(\delta\), and an output within tolerance can leave at most \(\delta\) of the excess. Hence both requirements can hold only if \(2/45\le 2\delta\). Ochem, *Unequal letter frequencies in ternary square-free words*, p. 4, Theorem 5 For this word, the minimum edit density needed to meet the frequency requirement alone is exactly \(2/45-\delta\) for \(0\le\delta\le2/45\). To attain it, set \(r=(2/45-\delta)/(17/45)\). Number the occurrences of \(a\) starting at \(1\), and change occurrence \(j\) to the first, deficient letter whenever \(\lfloor jr\rfloor>\lfloor(j-1)r\rfloor\), where \(\lfloor x\rfloor\) is the greatest integer at most \(x\). This changes exactly \(\lfloor mr\rfloor\) of the first \(m\) occurrences and gives output frequencies \((1/3-\delta,1/3,1/3+\delta)\). The smallest common frequency tolerance and edit budget for this word is therefore \(1/45\) when only frequencies are prescribed. Any exponent bound on the constructed output requires a separate check. The counterexample also applies to an insertion-only reading of the question. When the inserted positions have upper density at most \(\delta\) in the output, the original letters in each output prefix form an input prefix. The output frequency of \(a\), if it exists, is then at least \((1-\delta)17/45\). At \(\delta=1/90\) this exceeds \(1/3+\delta\), so this insertion budget also fails to reach the requested tolerance.
Author: He, Zixuan
Institution: University of Glasgow
Language: English
Subfield: Computational Theory and Mathematics
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7242536626
Cites:
Cited by:
Related to:
