[Paper Review] Pecan: An Automated Theorem Prover for Automatic Sequences using Büchi Automata
Pecan is an automated theorem prover for Sturmian words that uses Büchi automata to reason about infinite families of automatic sequences. By leveraging Büchi automata for uncountable families and integrating custom numeration systems and a meta-programming language, Pecan efficiently proves classical and novel theorems about Sturmian words—demonstrating practical performance despite theoretical complexity.
Pecan is an automated theorem prover for reasoning about properties of Sturmian words, an important object in the field of combinatorics on words. It is capable of efficiently proving non-trivial mathematical theorems about all Sturmian words.
Motivation & Objective
- To develop a general-purpose decision procedure for Büchi-automatic sequences, particularly for uncountable families like Sturmian words.
- To enable automated reasoning over all Sturmian words indexed by real parameters (slope α and intercept ρ), rather than individual instances.
- To extend existing tools like Walnut by supporting uncountable families through Büchi automata instead of finite automata.
- To provide a user-friendly interface with custom numeration systems, types, and a meta-programming language (Praline) for defining and proving properties.
- To demonstrate practical performance on non-trivial theorems, including new results and reproofs of classical theorems in combinatorics on words.
Proposed method
- Represent Sturmian words as families parameterized by irrational slope α ∈ (0,1) and intercept ρ ∈ [0,1), using the formula wn = ⌊nα + ρ⌋ − ⌊(n−1)α + ρ⌋.
- Use nondeterministic Büchi automata to recognize infinite words and their families, enabling quantification over uncountable parameter spaces.
- Implement a type system that supports multiple numeration systems (e.g., Ostrowski, base-b) and custom types for indexing and defining predicates.
- Integrate a meta-programming language (Praline) to enable ad-hoc polymorphism and modular definition of complex predicates.
- Construct automata for logical formulas using closure properties: intersection, union, complementation, and projection over Büchi automata.
- Perform emptiness checking on the resulting automata to decide the truth of logical statements over all Sturmian words.
Experimental results
Research questions
- RQ1Can Büchi automata be effectively used to reason about uncountable families of automatic sequences, such as all Sturmian words?
- RQ2Can an automated theorem prover handle complex logical statements involving quantifiers over real parameters (α, ρ) in Sturmian word definitions?
- RQ3How efficiently can Pecan construct and evaluate automata for common combinatorial predicates (e.g., square, palindrome, antisquare) over Sturmian words?
- RQ4Can Pecan reprove known theorems about Sturmian words (e.g., non-periodicity) and discover new mathematical results automatically?
- RQ5To what extent does Pecan’s performance scale with increasing logical complexity of theorems, especially involving multiple quantifiers?
Key findings
- Pecan successfully re-proved classical theorems about Sturmian words—such as their non-periodicity—within minutes, demonstrating practical automation.
- The system constructed a Büchi automaton with over 2 million states for the predicate 'antisquare' in under 100 seconds, showing scalability despite large state counts.
- For theorems involving complex quantifier alternations (e.g., ∀ℝ∃²∀³), Pecan processed them in under 500 seconds, with automata containing up to 20 million edges.
- The automaton for 'eventually periodic' was empty, confirming the known mathematical result that no Sturmian word is eventually periodic.
- Pecan proved 18 theorems grouped by complexity, with the most complex (involving ∀ℝ∀³∃⁴) taking 156.6 seconds and generating an automaton with 2,032,240 states and 47,851,215 edges.
- The system outperformed Walnut in handling uncountable families due to the use of Büchi automata, enabling full quantification over all Sturmian words.
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.