[Paper Review] Automatic Theorem-Proving in Combinatorics on Words
This paper presents a mechanical decision procedure for proving theorems in combinatorics on words using finite automata and algorithmic verification. It applies the method to solve an open problem on unbordered factors in the Thue-Morse sequence, proving that unbordered factors exist for all lengths, and extends the technique to the Rudin-Shapiro and paperfolding sequences with full computational verification.
We describe a technique for mechanically proving certain kinds of theorems in combinatorics on words, using automata and a package for manipulating them. We illustrate our technique by solving, purely mechanically, an open problem of Currie and Saari on the lengths of unbordered factors in the Thue-Morse sequence.
Motivation & Objective
- To develop a fully automated method for proving theorems in combinatorics on words using finite automata and algorithmic decision procedures.
- To resolve an open problem posed by Currie and Saari concerning the existence of unbordered factors of every length in the Thue-Morse sequence.
- To extend the method to other well-known automatic sequences, such as the Rudin-Shapiro and paperfolding sequences, to determine the existence of unbordered factors.
- To validate the correctness of the automaton-based computations through rigorous testing and minimization procedures.
- To lay the foundation for future work on counting distinct unbordered factors and detecting abelian powers in automatic sequences.
Proposed method
- The method uses $k$-automatic sequences generated by finite automata with output, where the $n$-th term is computed from the base-$k$ representation of $n$.
- It transforms logical predicates about sequences into automata that accept the base-$k$ representations of integers satisfying the predicate.
- The decision procedure relies on constructing automata for existential, universal, and infinitary assertions using closure properties like complement, intersection, and cycle detection.
- The approach handles multi-tuple inputs by encoding pairs or triples of integers as words over $\Sigma_k^r$, using reversed base-$k$ representations with leading zeros.
- A testing framework validates each stage of the construction by comparing automaton outputs against a C++ function that computes sequence values directly for the first 10,000 indices.
- To manage state explosion during determinization, the method reverses the NFA before determinization, as demonstrated in the Rudin-Shapiro case where the final DFA minimized to a 1-state automaton.
Experimental results
Research questions
- RQ1Does the Thue-Morse sequence contain an unbordered factor of every positive integer length?
- RQ2Does the Rudin-Shapiro sequence contain unbordered factors of every length?
- RQ3For which lengths $n$ does the paperfolding sequence contain an unbordered factor?
- RQ4Can the existence of unbordered factors in automatic sequences be algorithmically decided using automata-theoretic methods?
- RQ5Can the method be extended to compute the number of distinct unbordered factors of length $n$ in automatic sequences?
Key findings
- The Thue-Morse sequence contains an unbordered factor of every length, resolving an open problem of Currie and Saari.
- The computation for the Thue-Morse sequence completed in 9 seconds of CPU time on a 2.9GHz laptop, with the final automaton having 1,080 states after minimization.
- The Rudin-Shapiro sequence contains unbordered factors of every length, confirmed by a 6-second computation with a final 30-state DFA that minimized to a 1-state automaton.
- The paperfolding sequence has an unbordered factor of length $n$ if and only if the reversed base-2 representation of $n$ is rejected by a specific 4-state automaton, verified in 6 seconds of CPU time.
- The method successfully handled state explosion by reversing the NFA before determinization, enabling the construction of a minimal DFA for the Rudin-Shapiro case.
- The testing framework, including validation against direct C++ computation for the first 10,000 terms, ensured correctness at each stage of the automaton construction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.