A counterexample to the strict 01^∞ append comparison

Appending \(01^\infty\) can increase the probability that binary addition leaves the digit sum unchanged or raises it. Sobolewski and Spiegelhofer asked whether the append operation always strictly decreases that probability. The comparison fails for an explicit 106-bit odd integer, with the infinite terminal zero-block used in their discussion. It also fails when every block of the source word has finite length, as permitted by the displayed quantifier. Sobolewski and Spiegelhofer, §6.2, Remark 6, equation (52) and the following integer comparison For a non-negative integer \(t\), let \(s_2(n)\) be the sum of the binary digits of \(n\), and let \(c_t\) be the limiting proportion of non-negative integers \(n\) for which \(s_2(n+t)-s_2(n)\ge0\). The block version reads alternating runs of ones and zeros from the least significant end. For any \(N\ge1\), the tuples \(\mathbf k\) and \(\boldsymbol\ell\) give the \(N\) one-run and zero-run lengths, respectively, each a positive integer or \(\infty\). Writing \(\mathbf k*\boldsymbol\ell\) for their interleaving, equation (52) asks whether \(c_{\mathbf k*\boldsymbol\ell}>c_{(\infty,\mathbf k)*(1,\boldsymbol\ell)}\). The latter word has an infinite one-run and then a single zero at its least significant end, before the source word. The subsection focuses on a terminal infinite zero-run at the most significant end. The accompanying integer question asks whether \(c_t>c_{\rm app}(t)\), where \[c_{\rm app}(t)=\lim_{K\to\infty}c_{2^Kt+2^{K-1}-1}. \] Take \(t=80490822364097967666688304315905\), with binary expansion \((1^6 0)^{13}1^6 0^8 1\) from the most significant end. The two probabilities are \[c_t=\frac{93023188881652682997822686725996013211182312721}{182687704666362864775460604089535377456991567872},\qquad c_{\rm app}(t)=\frac{279071253033105255918160715838837314342909208113}{548063113999088594326381812268606132370974703616}. \] Their difference \(c_t-c_{\rm app}(t)\) is less than \(-3\times10^{-6}\). The source has fifteen one-runs, of lengths \((1,6,\ldots,6)\) from the low end, and zero-runs of lengths \((8,1,\ldots,1,\infty)\), with thirteen intervening single zeros. Replacing its terminal infinity by 20 still gives a reversal. A finite terminal zero-run counts only paths whose outgoing carry is zero, and a carry survives 20 zeros with probability at most \(2^{-20}\) on either side. The resulting change in the gap is at most \(2\cdot2^{-20}\), smaller than the certified margin. The integer comparison can be evaluated exactly from the binary digits. Let \(H\) have probabilities \(\Pr(H=j)=2^{-j-1}\) for integers \(j\ge0\). The appended law is the law of the digit-sum change for \(2t+1\) plus an independent \(-1+H\). More generally, for positive integers \(q,J\), the digit-sum-change law at \(2^Jq-1\) is within \(2^{-J}\) in total variation of the law at \(q\) plus this independent shift. Here \(q=2t+1\) and \(J=K-1\). The shift accounts for the full geometric tail generated by the appended ones. For an exact rational calculation at any positive integer \(t\), let \(P_1=P_2=\delta_0\), the unit mass at zero, and use \[P_{2u}=P_u,\qquad P_{2u+1}=\tfrac12\bigl(\sigma_1P_u+\sigma_{-1}P_{u+1}\bigr)\quad(u\ge1), \] where \(\sigma_a\) translates a distribution by \(a\). The law of the original digit-sum change is \(P_t\) plus an independent \(1-H\). Define the following functions of an integer score \(s\). \[a(s)=\begin{cases}1-2^{-s-2}&s\ge-1,\0&s\le-2,\end{cases}\qquad b(s)=\begin{cases}1-2^{-s}/3&s\ge0,\2^{s+1}/3&s<0.\end{cases} \] Then \[c_t=\mathbb E_{s\sim P_t}a(s),\qquad c_{\mathrm{app}}(t)=\tfrac12\mathbb E_{s\sim P_t}b(s+1)+\tfrac12\mathbb E_{s\sim P_{t+1}}b(s-1). \] The two terms in the appended probability correspond to the two carry choices at its low end. The function \(a\) sums the terminal carry tail, and \(b\) sums the combined tail of two independent geometric shifts of opposite sign. Both expectations are finite sums over the support of the indicated \(P\). The reversal occurs in an infinite family. Fix an integer \(\ell\ge2\). Starting at the low end, take a single one, a zero-run of length \(\ell\), then \(r\) infinite one-runs separated by single zeros, with a terminal infinite zero-run. Each additional high one-run gives both laws the same independent shift with distribution \(-1+H\). For the two laws after removing those \(r-1\) common shifts, the appended law increases \(D=\kappa_2-\kappa_3/3\) by \(1-(\ell+1)2^{-\ell}\), where \(\kappa_2\) is variance and \(\kappa_3\) is the third central moment. This combination determines the leading change in the non-negative tail. With \(m=r-1\), the gap as \(r\to\infty\) at fixed \(\ell\) is \[c_{\mathbf k*\boldsymbol\ell}-c_{(\infty,\mathbf k)*(1,\boldsymbol\ell)}=-\frac{1-(\ell+1)2^{-\ell}}{2\sqrt{2\pi}(2m)^{3/2}}+o(m^{-3/2}). \] It is strictly negative for every sufficiently large \(r\). Replacing the \(r\) infinite one-runs by runs of length \(\lceil4\log_2 r\rceil\) changes the gap by at most \(2r\,2^{-\lceil4\log_2 r\rceil}\) for \(r\ge2\). This gives infinitely many ordinary odd counterexamples. An explicit extended example uses \(\ell=8\) and fourteen infinite high one-runs. For the integer comparison without a parity restriction, \(t=864\) already gives \(c_t=73/128<2337/4096=c_{\mathrm{app}}(t)\). More generally, at \(t=27\cdot2^s\) the gap is \(-1/2304+(7/36)4^{-s}\) for integers \(s\ge3\), so it is negative for every \(s\ge5\). The reported exhaustive exact-arithmetic check found strict positivity at all odd \(t<2^{29}\). The exhaustive check gives a lower bound of \(2^{29}\) for the first failing odd index, while the construction above gives an infinite family of failing words. The separate weak comparison in equation (51), which uses a different appended limit, remains open here. §6.2, equations (51) and (52)

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-03
DOI
https://doi.org/10.5281/zenodo.24801887
Primary Topic
Analytic Number Theory Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

A counterexample to the strict 01^∞ append comparison

Zixuan He
Zenodo (CERN European Organization for Nuclear Research)
Analytic Number Theory Research
preprint

A counterexample to the strict 01^∞ append comparison

Zixuan He
preprint en

Abstract

Appending \(01^\infty\) can increase the probability that binary addition leaves the digit sum unchanged or raises it. Sobolewski and Spiegelhofer asked whether the append operation always strictly decreases that probability. The comparison fails for an explicit 106-bit odd integer, with the infinite terminal zero-block used in their discussion. It also fails when every block of the source word has finite length, as permitted by the displayed quantifier. Sobolewski and Spiegelhofer, §6.2, Remark 6, equation (52) and the following integer comparison For a non-negative integer \(t\), let \(s_2(n)\) be the sum of the binary digits of \(n\), and let \(c_t\) be the limiting proportion of non-negative integers \(n\) for which \(s_2(n+t)-s_2(n)\ge0\). The block version reads alternating runs of ones and zeros from the least significant end. For any \(N\ge1\), the tuples \(\mathbf k\) and \(\boldsymbol\ell\) give the \(N\) one-run and zero-run lengths, respectively, each a positive integer or \(\infty\). Writing \(\mathbf k*\boldsymbol\ell\) for their interleaving, equation (52) asks whether \(c_{\mathbf k*\boldsymbol\ell}>c_{(\infty,\mathbf k)*(1,\boldsymbol\ell)}\). The latter word has an infinite one-run and then a single zero at its least significant end, before the source word. The subsection focuses on a terminal infinite zero-run at the most significant end. The accompanying integer question asks whether \(c_t>c_{\rm app}(t)\), where \[c_{\rm app}(t)=\lim_{K\to\infty}c_{2^Kt+2^{K-1}-1}. \] Take \(t=80490822364097967666688304315905\), with binary expansion \((1^6 0)^{13}1^6 0^8 1\) from the most significant end. The two probabilities are \[c_t=\frac{93023188881652682997822686725996013211182312721}{182687704666362864775460604089535377456991567872},\qquad c_{\rm app}(t)=\frac{279071253033105255918160715838837314342909208113}{548063113999088594326381812268606132370974703616}. \] Their difference \(c_t-c_{\rm app}(t)\) is less than \(-3\times10^{-6}\). The source has fifteen one-runs, of lengths \((1,6,\ldots,6)\) from the low end, and zero-runs of lengths \((8,1,\ldots,1,\infty)\), with thirteen intervening single zeros. Replacing its terminal infinity by 20 still gives a reversal. A finite terminal zero-run counts only paths whose outgoing carry is zero, and a carry survives 20 zeros with probability at most \(2^{-20}\) on either side. The resulting change in the gap is at most \(2\cdot2^{-20}\), smaller than the certified margin. The integer comparison can be evaluated exactly from the binary digits. Let \(H\) have probabilities \(\Pr(H=j)=2^{-j-1}\) for integers \(j\ge0\). The appended law is the law of the digit-sum change for \(2t+1\) plus an independent \(-1+H\). More generally, for positive integers \(q,J\), the digit-sum-change law at \(2^Jq-1\) is within \(2^{-J}\) in total variation of the law at \(q\) plus this independent shift. Here \(q=2t+1\) and \(J=K-1\). The shift accounts for the full geometric tail generated by the appended ones. For an exact rational calculation at any positive integer \(t\), let \(P_1=P_2=\delta_0\), the unit mass at zero, and use \[P_{2u}=P_u,\qquad P_{2u+1}=\tfrac12\bigl(\sigma_1P_u+\sigma_{-1}P_{u+1}\bigr)\quad(u\ge1), \] where \(\sigma_a\) translates a distribution by \(a\). The law of the original digit-sum change is \(P_t\) plus an independent \(1-H\). Define the following functions of an integer score \(s\). \[a(s)=\begin{cases}1-2^{-s-2}&s\ge-1,\0&s\le-2,\end{cases}\qquad b(s)=\begin{cases}1-2^{-s}/3&s\ge0,\2^{s+1}/3&s<0.\end{cases} \] Then \[c_t=\mathbb E_{s\sim P_t}a(s),\qquad c_{\mathrm{app}}(t)=\tfrac12\mathbb E_{s\sim P_t}b(s+1)+\tfrac12\mathbb E_{s\sim P_{t+1}}b(s-1). \] The two terms in the appended probability correspond to the two carry choices at its low end. The function \(a\) sums the terminal carry tail, and \(b\) sums the combined tail of two independent geometric shifts of opposite sign. Both expectations are finite sums over the support of the indicated \(P\). The reversal occurs in an infinite family. Fix an integer \(\ell\ge2\). Starting at the low end, take a single one, a zero-run of length \(\ell\), then \(r\) infinite one-runs separated by single zeros, with a terminal infinite zero-run. Each additional high one-run gives both laws the same independent shift with distribution \(-1+H\). For the two laws after removing those \(r-1\) common shifts, the appended law increases \(D=\kappa_2-\kappa_3/3\) by \(1-(\ell+1)2^{-\ell}\), where \(\kappa_2\) is variance and \(\kappa_3\) is the third central moment. This combination determines the leading change in the non-negative tail. With \(m=r-1\), the gap as \(r\to\infty\) at fixed \(\ell\) is \[c_{\mathbf k*\boldsymbol\ell}-c_{(\infty,\mathbf k)*(1,\boldsymbol\ell)}=-\frac{1-(\ell+1)2^{-\ell}}{2\sqrt{2\pi}(2m)^{3/2}}+o(m^{-3/2}). \] It is strictly negative for every sufficiently large \(r\). Replacing the \(r\) infinite one-runs by runs of length \(\lceil4\log_2 r\rceil\) changes the gap by at most \(2r\,2^{-\lceil4\log_2 r\rceil}\) for \(r\ge2\). This gives infinitely many ordinary odd counterexamples. An explicit extended example uses \(\ell=8\) and fourteen infinite high one-runs. For the integer comparison without a parity restriction, \(t=864\) already gives \(c_t=73/128<2337/4096=c_{\mathrm{app}}(t)\). More generally, at \(t=27\cdot2^s\) the gap is \(-1/2304+(7/36)4^{-s}\) for integers \(s\ge3\), so it is negative for every \(s\ge5\). The reported exhaustive exact-arithmetic check found strict positivity at all odd \(t<2^{29}\). The exhaustive check gives a lower bound of \(2^{29}\) for the first failing odd index, while the construction above gives an infinite family of failing words. The separate weak comparison in equation (51), which uses a different appended limit, remains open here. §6.2, equations (51) and (52)

Zenodo (CERN European Organization for Nuclear Research)
University of Glasgow (GB)
Analytic Number Theory Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon