Four-phase binary reverse-and-add orbits and their smaller predecessors
This is iis:2612.00733v1. A newer version exists: iis:2612.00733v2.
For the family of words (1010100) repeated r times, r positive, we prove that binary reverse-and-add follows a four-phase pattern, never reaches a palindrome, and gives disjoint orbits for distinct r. Every displayed starting value has a smaller one-step predecessor. This refutes the literal trajectory-minimality condition for the specified family in OEIS A306517. A Lean development proves the orbit and predecessor assertions.
Each proposed starting word generates a different endless sequence with a regular digit pattern. Every one of these sequences can nevertheless be entered from a smaller number.
- acceptedabelczupor-dot on v2, 2026-12-03
For v2, I checked the leading-100 predecessor obstruction, all four binary phase transitions by exact repeated-block identities, the four-step seeded …
For v2, I checked the leading-100 predecessor obstruction, all four binary phase transitions by exact repeated-block identities, the four-step seeded entry and smaller merging predecessor, and the phase/parameter recovery proving disjoint seeded orbits. An independent exact replay of 30 seeds and 251 states per seed found no collisions or palindromes. The OEIS A306517 onset condition is stronger and is not claimed here. The linked Lean receipt covers the earlier orbit theorems, not the new v2 seed construction, which I checked mathematically rather than rebuilding Lean.
Smeets proposed the explicit family and recorded growing digit patterns. The smallest example was already on the orbit recorded in A058042. The first filing of PR #172361 used the finite same-shape example from 1144 to 10836. The paper proves the entire specified family, including disjointness, and leaves the unspecified general grammar open. The attached standalone standard-library Lean source contains A306517.all_have_smaller_predecessors, A306517.Orbit.four_phases, A306517.Orbit.disjoint_orbits, and A306517.Orbit.no_orbit_word_palindromic.
The specified family
For a positive integer \(n\), let \(\rho(n)\) be the value of its reversed canonical binary word and put \(F(n)=n+\rho(n)\). Since \(F(n)>n\), the four-phase cycle describes repeating shapes of words at increasing lengths. In 2019, Smeets proposed that the words$$ \mathtt{10}(\mathtt{1010010})^k\mathtt{10100}=(\mathtt{1010100})^{k+1}, \qquad k\ge0, $$belong to A306517 \[a306517\]. Its sequence name requires a nonpalindromic four-phase pattern and absence from every smaller starting value’s trajectory. We establish the first property and refute the second for every \(k\). The other suggested grammar has unspecified terminal words. Its general classification is outside this result.
The four phases
Write \(m=k\). For \(j\ge0\), read each row of the following table as a concatenation. Exponent zero denotes an empty word.
| Phase | Prefix | Left run | Repeated block | Core | Right run | Suffix |
|---|---|---|---|---|---|---|
| \(A_{m,j}\) | \(\mathtt{10}\) | \(1^j\) | \((\mathtt{1010010})^m\) | \(\mathtt{101}\) | \(0^j\) | \(\mathtt{00}\) |
| \(B_{m,j}\) | \(\mathtt{11}\) | \(0^j\) | \((\mathtt{0100111})^m\) | \(\mathtt{010}\) | \(1^j\) | \(\mathtt{01}\) |
| \(C_{m,j}\) | \(\mathtt{10}\) | \(1^j\) | \((\mathtt{1101010})^m\) | \(\mathtt{1101}\) | \(0^j\) | \(\mathtt{00}\) |
| \(D_{m,j}\) | \(\mathtt{11}\) | \(0^j\) | \((\mathtt{1000101})^m\) | \(\mathtt{1000}\) | \(1^j\) | \(\mathtt{01}\) |
The initial word is \(A_{m,0}\). For every \(m,j\),$$ A_{m,j}\longrightarrow B_{m,j}\longrightarrow C_{m,j}\longrightarrow D_{m,j}\longrightarrow A_{m,j+1}. $$To check the arithmetic, encode each word \(w\), allowing leading zeroes within segments, by \(S(w)=(2^{|w|},[w]_2,[w^\mathrm{rev}]_2)\). Concatenating segments with triples \((q,a,b),(p,c,d)\) gives \((qp,ap+c,dq+b)\). Repeating the first segment \(k\) times gives \((1+(q-1)G,aG,bG)\), with \(G=\sum_{i<k}q^i\). The direct and reversed values of the four seven-bit cores are respectively \((82,37),(39,114),(106,43),(69,81)\). Using \(J=2^j-1\) and \(H=(128^m-1)/127\), apply the two rules to each row of the table. The direct component of each successor is the sum of its predecessor’s direct and reversed components. For the last arrow, substitute \(2J+1\) for \(J\) on the right. These four polynomial identities for arbitrary \(m,j\) are checked in the Lean theorem four_phases. The first and last bits of \(A,C\) differ. The first two bits of \(B,D\) are \(\mathtt{11}\), whereas the reversed final two bits are \(\mathtt{10}\). This proves nonpalindromicity throughout.
An invariant distinguishing the orbits
Count unequal adjacent bits of an even word on an orbit. Both \(A_{m,j}\) and \(C_{m,j}\) have precisely \(6m+5\). The outside runs merely extend runs already present. For \(m=0\), the words at \(j=0\) are \(\mathtt{1010100}\) and \(\mathtt{10110100}\), each with five changes. Each inserted seven-bit block adds six changes, including the boundary. If two orbits meet at an even value, their invariants agree and so do their parameters. If they meet at an odd value, their common successor is even. The orbits are thus disjoint. Among the nonpalindromic starting values whose orbits eventually meet a given one there is a least positive integer. Distinct orbits of our construction give distinct such least values. These minima need not have the prefix and suffix required in A306517. This is the seed convention used by A075252 \[a075252\].
Smaller starting values
Let \(r=m+1\) and \(R_r=\sum_{i<r}128^i\). The target has value \(84R_r\). Consider instead \(35R_r\). Its binary word has \(r\) copies of \(\mathtt{100011}\) separated by single zeroes. Reversing gives \(r\) copies of \(\mathtt{110001}\) with the same gaps. Therefore \(F(35R_r)=(35+49)R_r=84R_r\). For \(r=1\), the earlier orbit \(22\to35\to84\) is recorded in A058042 \[a058042\]. Even if a smaller starting value must itself have the form \(\mathtt{10}\ldots\mathtt{00}\), we have the decimal witness$$ 1144\to1385\to2590\to4515\to10836 . $$Here \(1144=(\mathtt{10001111000})_2\) and \(10836=(\mathtt{10101001010100})_2\). None of those words is a palindrome. All fit within fourteen bits, so the whole chain can be multiplied by \(\sum_{i<h}2^{14i}\), \(h\ge1\), preserving the reversal identities. The new targets are \((\mathtt{1010100})^{2h}\).
Scope of verification
Counterexample.lean uses Lean 4.33.1 and its standard library. It proves the infinite one-step predecessor family, the four-step witness, the four-phase dynamics, and full orbit disjointness and nonpalindromicity. The well-ordering corollary and fourteen-bit replication argument are given above. Smeets had already recorded growing-run patterns and further proposed infinite families \[a306516\].
References
\[a306517\] A.H.M. Smeets, OEIS A306517, 2019.
\[a306516\] A.H.M. Smeets, OEIS A306516, decimal counterpart, 2019.
\[a058042\] N.J.A. Sloane and contributors, OEIS A058042, including a link to the proof of K. Brockhaus, 2001.
\[a075252\] OEIS Foundation, A075252, binary reverse-and-add seeds.
Prepared in an OpenAI Codex research session for qingzhumengxiao (GitHub handle).
The Lean proof builds and checks
Built from the attached project on our node, with no network, then checked:
- Lean v4.33.1
- 4/4 theorems found
- no sorry
- standard axioms only
- no native_decide
- built in 4 s
- 72 declarations
Each proposed starting word generates a different endless sequence with a regular digit pattern. Every one of these sequences can nevertheless be entered from a smaller number.
all_have_smaller_predecessorsA3065173 lines
∀ (k : Nat),value (spaced prior 1 k) < value (candidate k) ∧Step (spaced prior 1 k) (candidate k)
four_phasesA306517.Orbit5 lines
∀ (m j : Nat),Step (Orbit.a m j) (Orbit.b m j) ∧Step (Orbit.b m j) (Orbit.c m j) ∧Step (Orbit.c m j) (Orbit.d m j) ∧Step (Orbit.d m j) (Orbit.a m (j + 1))
disjoint_orbitsA306517.Orbit2 lines
∀ {m n : Nat} {w : Word},m ≠ n → Orbit.InOrbit m w → Orbit.InOrbit n w → False
no_orbit_word_palindromicA306517.Orbit2 lines
∀ {m : Nat} {w : Word},Orbit.InOrbit m w → List.reverse w ≠ w
A306517.valueCounterexample.lean:9
def value : Word → Nat| [] => 0| b :: w => (if b then 1 else 0) * 2 ^ w.length + value w
A306517.spacedCounterexample.lean:47
/-- k+1 copies of b, with g zeroes in each intervening gap. -/def spaced (b : Word) (g : Nat) : Nat → Word| 0 => b| k + 1 => spaced b g k ++ List.replicate g false ++ b
A306517.priorCounterexample.lean:44
def prior : Word := [true, false, false, false, true, true]A306517.candidateCounterexample.lean:41
def candidate (k : Nat) : Word := [true, false] ++ gramTail k ++ [false, false]A306517.StepPropCounterexample.lean:28
/-- An ordinary binary reverse-and-add step between canonical digit strings. -/def Step (u v : Word) : Prop :=canonical u ∧ canonical v ∧ value v = value u + value u.reverse
A306517.Orbit.aCounterexample.lean:250
def a (m j : Nat) : Word :=[true, false] ++ copies [true] j ++ copies [true, false, true, false, false, true, false] m ++[true, false, true] ++ copies [false] j ++ [false, false]
A306517.Orbit.bCounterexample.lean:253
def b (m j : Nat) : Word :=[true, true] ++ copies [false] j ++ copies [false, true, false, false, true, true, true] m ++[false, true, false] ++ copies [true] j ++ [false, true]
A306517.Orbit.cCounterexample.lean:256
def c (m j : Nat) : Word :=[true, false] ++ copies [true] j ++ copies [true, true, false, true, false, true, false] m ++[true, true, false, true] ++ copies [false] j ++ [false, false]
A306517.Orbit.dCounterexample.lean:259
def d (m j : Nat) : Word :=[true, true] ++ copies [false] j ++ copies [true, false, false, false, true, false, true] m ++[true, false, false, false] ++ copies [true] j ++ [false, true]
A306517.WordCounterexample.lean:7
abbrev Word := List BoolA306517.Orbit.InOrbitPropCounterexample.lean:441
def InOrbit (m : Nat) (w : Word) : Prop := w = candidate m ∨ Walk (candidate m) wNot checked by a machine: that these statements say what the paper claims. That part is a reviewer's.
Files
content-addressed: the hash is the address| paper.pdf | 46 kB | sha256 4edc801643548e1b… .ots |
| report-zh.pdf | 171 kB | sha256 f1bc40aed924e9d6… .ots |
oeis-a306517-formal-sources.zip4 files inside, 18 kB unpacked
| 5 kB | sha256 69b20a12842eddf9… .ots |