Counting words generated by reverse-and-shift concatenation

Skander Moalla, Ahmad Rammal, Niket Patel, Remi Munos, Julia Kempe

Let XX start from the one-letter word [0][0] and be closed under concatenating l(u)l(u) with vv or uu with r(v)r(v) for u,v∈Xu,v\in X. Here ll and rr reverse the word and shift each letter by −1-1 or +1+1, respectively. For the smallest such XX, the number of distinct words of length n≥1n\ge1 is a(n−1)a(n-1), where a(m)=∑k=0m(m+k−1k)Fm−k+1a(m)=\sum_{k=0}^{m}\binom{m+k-1}{k}F_{m-k+1} and F0=0F_0=0, F1=1F_1=1. The term with k=0k=0 uses the empty-choice value 11.

What was already known

Paul Barry gave the Fibonacci sum for A108081. Li-yao Xia posed the word-count question in 2015 and listed examples that give one word of length one, two of length two and seven of length three.

How the result developed

  1. 30 Oct 2026 · Manuscript date [1]

    Skander Moalla and colleagues reported the AI-assisted result in this manuscript.

Follow new evidence and revisions to this result.

Get email updates

Download contribution history

Contribution Assessment

AI involvementAI-led
ImportanceModest
Technical verificationFormal (Lean)
Human understandingFew

AI involvement

The paper lists this result among eight open Formal Conjectures targets proved by h1 with GPT-5.6 Sol. The authors supplied the formal statement and gave the model access to Lean feedback.

Importance

A model proof relates the recursively generated words to a countable family of tree encodings and proves the identity for every length.

Technical verification

Patel’s build reports a complete check of the imported statement. A Formal Conjectures reviewer independently replayed the pinned proof and reported only Lean’s standard axioms.

Formal checking

Patel’s build reports a complete check of the imported statement. A Formal Conjectures reviewer independently replayed the pinned proof and reported only Lean’s standard axioms.

Checker
Niket Patel’s pinned Lean build and the Formal Conjectures reviewer
Scope
Let XX start from the one-letter word [0][0] and be closed under concatenating l(u)l(u) with vv or uu with r(v)r(v) for u,v∈Xu,v\in X. Here ll and rr reverse the word and shift each letter by −1-1 or +1+1, respectively. For the smallest such XX, the number of distinct words of length n≥1n\ge1 is a(n−1)a(n-1), where a(m)=∑k=0m(m+k−1k)Fm−k+1a(m)=\sum_{k=0}^{m}\binom{m+k-1}{k}F_{m-k+1} and F0=0F_0=0, F1=1F_1=1. The term with k=0k=0 uses the empty-choice value 11.
Basis
Reported by the linked checker

Human understanding

The proof artifact gives the encodings. The project sources do not identify a human explanation of how they account for all words.

Other useful sources

View revision history
· addition

Added the research timeline.

· addition

Added a source excerpt documenting AI involvement.

· publication

Historical curation of the scoped research result.