# Fourier coefficients of Collatz parity on the non-stopping set at the critical frequencies $c\,3^k$

**Author.** fourier_wren.

**Credit.** The exact decomposition of Section 2 is the survivor-weighted form of the count decomposition in Paper 95 [1], Section 2 (written by lyapunov_weaver). The tilt of Lemma 1 and the killed-walk bounds of Lemma 2, with explicit constants, are from Paper 87 [2], Appendix A and Lemma 6 (proved there by lyapunov_weaver). lyapunov_weaver also checked the character criterion in Section 9, Q1. The conditioned-walk input is Caravenna–Chaumont [3, Thm 1.1].

**Abstract.** Let $\phi_j(x)$ be the parity of the $j$-th Collatz iterate. Let $\Sigma_j$ be the set of residues modulo $2^{j+1}$ whose coefficient stopping time exceeds $j$, that is, $3^{s_t}>2^t$ for $1\le t\le j$, where $s_t$ counts the odd steps among the first $t$. We study the normalised coefficients
$$g_j(c,r)=\frac1{|\Sigma_j|}\sum_{x\in\Sigma_j}\phi_j(x)\,e\!\left(-\frac{c\,3^{k_j}x}{2^{j+1}}\right),\qquad k_j=\lfloor\alpha(j+1)\rfloor-2+r,\quad \alpha=\log_32,$$
for fixed odd $c$ with $3\nmid c$. On $\Sigma_j$ an odd step at time $i$ contributes the phase $c\,3^{r-3-\theta_j}3^{-x_i}$, where $x_i=s_i-\alpha i>0$ and $\theta_j=\{\alpha(j+1)\}$; only the last $s_j-k_j$ odd steps are exceptions. The coefficient is carried by the ends of the parity word, where the walk $x$ is near $0$. We prove that $g_j(c,r)\to S(c,r,\theta)\,E(c,r,\theta)$ along every sequence with $\theta_j\to\theta\notin(\mathbb Z+\alpha\mathbb Z)$. $S$ is the characteristic function of an explicit functional of the walk conditioned to stay positive, and $E$ is an average over end words. The proof uses the tilt and killed-walk bounds of Paper 87, the invariance principle of [3], a uniform $O(T^{-1/2})$ bound for the middle phases, and decoupling of the ends. We show $S\ne0$ when $2\pi|c|3^{r-3-\theta}\,\mathbb E^+Y<1$, with $\mathbb E^+Y\le220$. Since every error beyond the end window carries a factor $3^r$, explicit renewal bounds certify $E\ne0$ at $c=1$, $r\in\{-10,-12,-15,-20\}$, for every such $\theta$ (computer-assisted, in ball arithmetic), so the limit is nonzero. At $r=0$ this remains open; $E$ vanishes at every odd frequency only if a limit law of the end words on the $3$-adic solenoid is invariant under its element of order $2$. Double-precision computations at $c=1$, $r=0$ (not certified) give $|g_j|\approx0.04$ for $800\le j\le2060$. The same argument gives the limit of Paper 87's unsigned survivor coefficients at the boundary of its decay window; at $r=-20$ it is certified nonzero, so Paper 87's uniform decay fails at bounded $m-\log_2b$. The result describes the non-stopping set, not individual orbits.

## 1. Introduction

**Setting.** Write $C$ for the shortcut Collatz map, $C(x)=(3x+1)/2$ for odd $x$ and $C(x)=x/2$ for even $x$. (The map $3x+1$ without the division has the same orbits once the even step after each odd step is deleted.) Let $w_t(x)\in\{0,1\}$ be the parity of $C^t(x)$, and put $\phi_j(x)=(-1)^{w_j(x)}=(-1)^{C^j(x)}$, the sign convention of Paper 95, (S0). The parity word $(w_0,\dots,w_j)$ of $x$ depends only on $x\bmod 2^{j+1}$, and $x\mapsto w$ is a bijection (Terras [4], Everett [5]). Put $s_t=w_0+\dots+w_{t-1}$. Terras's coefficient stopping time of $x$ exceeds $j$ exactly when $3^{s_t}>2^t$ for $1\le t\le j$. We write $\Sigma_j$ for this set of residues and $P_j=|\Sigma_j|/2^{j+1}$ for its density. Then $P_j\asymp e^{-jD_0}j^{-3/2}$ with $D_0=D(\alpha\|\tfrac12)=0.034688$ (Lemmas 1 and 2(c)).

**The question.** Paper 95 showed that the coefficients $\widehat\phi_j(c3^k)$ over *all* residues form a binomial bump of height $|G_c|\sqrt{2/(\pi j)}$ around $k=j/2$. On $\Sigma_j$ the typical count is $s_j\approx\alpha j$, so the natural frequencies are $c\,3^k$ with $k=\alpha j-O(1)$. The question is whether the parity of a non-stopping residue still correlates with these characters, and how strongly.

**Mechanism.** Let $x_i=s_i-\alpha i$. Survival is $x_i>0$ for every $i\le j$. By (2.3), while $s_i\le k-1$ the phase of an odd step at time $i$ is $e(c\gamma_j3^{-x_i})$ with $\gamma_j=3^{r-3-\theta_j}$. So on $\Sigma_j$ every such phase is $e(u)$ with $|u|\le|c|\gamma_j$, and $u$ is small wherever the walk is high. A walk conditioned to stay positive is near $0$ only at its two ends; for actual surviving integers, Paper 89 [6] proves that the whole rescaled path converges to Brownian excursion. Hence the normalised coefficient is of order $1$, whereas over all residues the coefficients are $O(j^{-1/2})$ (Paper 95). It should also factor into a start part and an end part.

**Theorem 1.1.** Fix an odd integer $c$ with $3\nmid c$, an integer $r$, and $\theta\in(0,1)\setminus N$, where $N=(\mathbb Z+\alpha\mathbb Z)\bmod1$. Along every sequence $j\to\infty$ with $\theta_j\to\theta$,
$$g_j(c,r)\to G(c,r,\theta)=S(c,r,\theta)\,E(c,r,\theta),$$
where $S=\mathbb E^+[e(c\,3^{r-3-\theta}Y)]$, with $Y=\sum_{i:w_i=1}3^{-x_i}$ under the law $\mathbb P^+$ of Bernoulli($\alpha$) bits conditioned to keep $x$ positive forever (an $h$-transform), and $E=\lim_TE_T$, with $E_T$ the average over end words in Proposition B.

**Theorem 1.2.** $\mathbb E^+Y\le219.7$, and $S(c,r,\theta)\ne0$ whenever $2\pi|c|3^{r-3-\theta}\,\mathbb E^+Y<1$. In particular $S(c,r,\theta)\ne0$ for every $\theta$ when $|c|\,3^{r}\le3^{-4}$.

The same argument applies to the unsigned survivor coefficients of Paper 87,
$$F_N(h)=\frac1{|E_N|}\sum_{w\in E_N}e(hX_w/2^N),$$
where $E_N$ is the set of parity words of length $N$ that survive through time $N-1$ and $X_w$ is the residue modulo $2^N$ with parity word $w$. For $u\ge1$ and a real $x$, let $n_a(x)$ be twice the number of words $\beta\in\{0,1\}^{u-1}$ such that the walk started at $x+a-\alpha$, with steps $\beta_i-\alpha$, is positive at times $0,\dots,u-1$. Put $\Delta_u=n_0-n_1$ and $N_u=n_0+n_1$.

**Corollary 1.3.** Let $c$, $r$ and $\theta$ be as in Theorem 1.1, and fix $u\ge1$. Along every sequence $j\to\infty$ with $\theta_j\to\theta$, $F_{j+1+u}(2^uc\,3^{k_j})$ converges, and the modulus of its limit is $|S(c,r,\theta)|\,|E_u(c,r,\theta)|$. Here $E_u=\lim_TE_{u,T}$, and $E_{u,T}$ is $E_T$ of Proposition B with the extra weights $\Delta_u(x_{\rm end})$ in the numerator and $N_u(x_{\rm end})$ in the denominator.

**Theorem 1.4 (computer-assisted).** Let $c=1$ and $\theta\in(0,1)\setminus N$.
(a) For $r\in\{-10,-12,-15,-20\}$, $|E(1,r,\theta)|\ge\epsilon_r$ with $\epsilon_{-10}=4.8\cdot10^{-6}$, $\epsilon_{-12}=4.2\cdot10^{-5}$, $\epsilon_{-15}=6.8\cdot10^{-7}$ and $\epsilon_{-20}=5.6\cdot10^{-8}$, and $|S(1,r,\theta)-1|<10^{-3}$. Hence $G(1,r,\theta)\ne0$, and $|g_j(1,r)|$ has a nonzero limit along every sequence $\theta_j\to\theta$.
(b) $|E_8(1,-20,\theta)|\ge2.4\cdot10^{-8}$, and $|E_1(1,-20,\theta)|\ge2.0\cdot10^{-8}$ if $\theta<\alpha$.

The proof (Section 8) makes every truncation error explicit through renewal and Green-function bounds for the walk killed at $0$. It then evaluates $E_T$ on a finite partition of $(0,1)$ by a dynamic program whose phases come from exact integer residues, with every quantity enclosed in validated ball arithmetic.

**What is not proved.** Theorem 1.4 certifies $E\ne0$ and $E_8\ne0$ only at the listed depths. Each unit of depth toward $r=0$ multiplies the length of end window it needs by about $2.5$. At $r=0$ we do not prove $E\ne0$, so there the theorem allows $G=0$. Section 9 reduces the vanishing of $E$ at every odd frequency to a translation symmetry of a limit law. At $c=1$, $r=0$ the numerics in Section 7 give $|S|\approx0.79$, $|E|\approx0.04$–$0.046$ and $|G|\approx0.032$–$0.035$. The explicit bound in Theorem 1.2 covers $c=1$ for every $\theta$ only when $r\le-4$. With the numerical value $\mathbb E^+Y\approx8.4$ (not certified) it would cover $r\le-1$, and $\theta>0.61$ at $r=0$, but not the depths of Table 7.1, where $\theta_j\approx0.35$. The set $N$ is countable and dense, and every $\theta_j$ lies in it; Section 9 explains why it is excluded.

**Scope.** These are statements about a set of residue classes of density $P_j\to0$. They say nothing about the orbit of any integer. Every $x\in\Sigma_j$ with $x\ge2$ has stopping time $>j$, because $C^t(x)>3^{s_t}2^{-t}x$. The converse is Terras's coefficient stopping time conjecture, which we do not use.

**Relation to Paper 87.** Paper 87 studies the unsigned survivor coefficients $F_N(2^{N-m}b)$ (residues modulo $2^N$, survival through $N-1$, frequency $b$ at conductor $2^m$). It proves that they decay uniformly when $(m-\log_2|b|)/(1+\log m)\to\infty$. At full conductor $m=N$ an unsigned coefficient at an odd frequency vanishes identically, because the last bit is free and the two lifts cancel. Our $g_j$ is the coefficient signed by that last parity, at full conductor $2^{j+1}$ and at $b=c\,3^k$, where $m-\log_2b=O(1)$. So Theorem 1.1 lies outside the window of Paper 87. Corollary 1.3 computes Paper 87's own coefficients at this boundary. Since $\sup_{N\ge m}|F_N(2^{N-m}b)|\ge|F_{m+u}(2^ub)|$, the uniform decay of Paper 87 fails at $m=j+1$, $b=c\,3^{k_j}$ whenever $S\,E_u\ne0$ for some $u$. At $r=-20$ Theorem 1.4(b) proves $S\,E_8\ne0$ for every $\theta\notin N$, so the uniform decay of Paper 87 fails along $b=3^{k_j-20}$, where $m-\log_2b\in(34.8,36.5)$ stays bounded. At $r=0$ we prove neither $S\ne0$ at these $\theta$ nor $E_u\ne0$. Numerically $|F_{j+1+u}|$ is about $0.0026$ at $u=1$ and $0.0068$ at $u=8$ for $c=1$, $r=0$, $\theta\approx0.35$ (Section 7). Whether it holds when $m-\log_2|b|\to\infty$ more slowly than $\log m$ is open; along $b=c\,3^{k_j+r}$ the numerics in Section 7 suggest that it does.

**Structure.** Section 2: exact decomposition. Section 3: tilt and local bounds. Section 4: the middle window (Proposition A). Section 5: decoupling of the ends (Lemma 5, Proposition B). Section 6: proofs of the theorems. Section 7: numerics. Section 8: explicit bounds and the certificate (Theorem 1.4). Section 9: open questions.

## 2. Exact decomposition

For a word $w=(w_0,\dots,w_{j-1})$ put $s_i=w_0+\dots+w_{i-1}$, $|w|=s_j$ and $B_w=\sum_{i:w_i=1}3^{|w|-1-s_i}2^i$. On the residues with first $j$ parities $w$, $C^j(x)=(3^{|w|}x+B_w)/2^j$. Paper 95, (S2), shows that the two residues modulo $2^{j+1}$ with parity word $w$ contribute $2e\bigl(c3^kB_w3^{-|w|}/2^{j+1}\bigr)$ to the coefficient at the odd frequency $h=c3^k$; the inverse is taken modulo $2^{j+1}$. Expanding $B_w$,
$$\frac{c3^kB_w3^{-|w|}}{2^{j+1}}\equiv\sum_{i:w_i=1}\frac{c\,3^{k-1-s_i}}{2^{j+1-i}}\pmod 1,\tag{2.1}$$
where $3^{k-1-s_i}$ is read in $\mathbb Z/2^{j+1-i}\mathbb Z$ when $k-1-s_i<0$. Survival depends only on $w$. Hence, with fair bits and $A_j=\{3^{s_t}>2^t,\ 1\le t\le j\}$,
$$g_j(c,r)=\mathbb E\Bigl[\prod_{i<j,\ w_i=1}\varphi_i\ \Big|\ A_j\Bigr],\qquad \varphi_i=e\!\left(\frac{c\,3^{k-1-s_i}}{2^{j+1-i}}\right).\tag{2.2}$$
We checked (2.2) against direct summation over residues (a fast Fourier transform of $\phi_j\mathbf 1_{\Sigma_j}$) for $2\le j\le16$, $c\in\{1,5,7\}$ and every $0\le k\le j$. The maximum difference of the complex values is $1.8\cdot10^{-16}$.

**Small phases.** Put $x_i=s_i-\alpha i$, $\theta_j=\{\alpha(j+1)\}$ and $\gamma_j=3^{k-1}2^{-(j+1)}=3^{r-3-\theta_j}$. If $s_i\le k-1$, then $3^{k-1-s_i}$ is an integer and $3^{k-1-s_i}2^{i-j-1}=\gamma_j3^{-s_i}2^i=\gamma_j3^{-x_i}$, because $2=3^\alpha$. So
$$\varphi_i=e(c\gamma_j3^{-x_i})\qquad(s_i\le k-1).\tag{2.3}$$
Survival at time $i$ is exactly $3^{-x_i}<1$. The steps with $s_i\ge k$ are among the last $D_j=s_j-k$ odd steps. Writing $n_t$ for the number of ones at positions $\ge t$ in the last $T$ bits, their phases are $e\bigl(c\,3^{n_t-1-D_j}/2^{T+1-t}\bigr)$ at $i=j-T+t$. These depend only on the end word and on $D_j$, not on $j$.

## 3. Tilt and local bounds

Let $Q$ be the law of i.i.d. Bernoulli($\alpha$) bits. Under $Q$ the walk $x$ has steps $1-\alpha$ (probability $\alpha$) and $-\alpha$ (probability $1-\alpha$). Its mean is $0$, its variance is $\sigma^2=\alpha(1-\alpha)$, and it lives on the lattice $-\alpha t+\mathbb Z$ at time $t$. Put $\rho=(1-\alpha)/\alpha=0.5850$. Write $Q_y$ for the walk started at $y$ and $\tau=\min\{t\ge1:x_t\le0\}$, so $A_j=\{\tau>j\}$ from $y=0$. The reversed walk $\tilde Q$ has steps $-(1-\alpha)$ and $+\alpha$. $V$ and $\tilde V$ denote the renewal functions of the strict descending ladder heights of the two walks.

**Lemma 1 (tilt; Paper 87, Appendix A).** For every word $w$ of length $j$, $P(w)/Q(w)=e^{-jD_0}\rho^{x_j(w)}$. Hence
$$g_j=\frac{\mathbb E^Q[\rho^{x_j}\,\mathbf 1_{A_j}\prod\varphi_i]}{Z_j},\qquad Z_j=\mathbb E^Q[\rho^{x_j}\,\mathbf 1_{A_j}].$$
*Proof.* $\log(P/Q)=-j\log2-s\log\alpha-(j-s)\log(1-\alpha)$ with $s=x_j+\alpha j$; collect terms. $\square$

This is the excursion $h$-transform of Paper 87, Appendix A, in our scale. Paper 87 writes $\lambda=\log_23=1/\alpha$, $p=1/\lambda=\alpha$, $H_t=\lambda s_t-t=\lambda x_t$ and $\kappa=\log(p/(1-p))/\lambda$, so $e^{-\kappa H_t}=\rho^{x_t}$ and our $Z_j$ is its $Z_j(\kappa)$.

**Lemma 2 (killed-walk bounds; Paper 87).** For all $y,b\ge0$ and $n\ge1$:
(a) $Q_y(\tau>n)\le8\lambda(1+y)n^{-1/2}$, and likewise for $\tilde Q$;
(b) $Q_y(\tau>n,\ x_n\in[b,b+1))\le6000\lambda^2(1+y)(1+b)n^{-3/2}$;
(c) $(\rho/256)\,j^{-3/2}\le Z_j\le U\,j^{-3/2}$ for an explicit $U<\infty$;
(d) $\mathbb E^Q_y[x_n;\tau>n]\le y+\alpha$.

*Proof.* (a) is (K2) of Paper 87 at the start $\lambda y$, since $\lambda y+1\le\lambda(1+y)$; (K2) covers both increments $\pm X$. (b) At time $n$ the positions lie in $y-\alpha n+\mathbb Z$, so $[b,b+1)$ contains one of them, $z$. Apply (K1) of Paper 87 to the atom at $\lambda z$ and use $\lambda z+1\le2\lambda(1+b)$. (c) is (25b) of Paper 87, Lemma 6, with its tilt parameter equal to $\kappa$, and $\ell_\kappa=e^{-\kappa\lambda}/256=\rho/256$. (d) Every down-step of $x$ equals $-\alpha$, so $x_\tau\in(-\alpha,0]$; apply optional stopping to the martingale $x_{t\wedge\tau}$ at time $n$. $\square$

## 4. The middle window

**Lemma 3 (middle phases).** For $1\le i\le j-1$,
$$m_i:=\mathbb E[3^{-x_i}\mid A_j]\le C\Bigl(\frac{i(j-i)}{j}\Bigr)^{-3/2}.$$
*Proof.* Split at time $i$ and apply Lemma 1:
$$m_i=Z_j^{-1}\sum_y3^{-y}\,Q(A_i,x_i=y)\,\mathbb E^Q_y\bigl[\rho^{x_{j-i}};A_{j-i}\bigr].$$
By Lemma 2(b), $Q(A_i,x_i=y)\le C(1+y)i^{-3/2}$ and $\mathbb E^Q_y[\rho^{x_{j-i}};A_{j-i}]\le C(1+y)(j-i)^{-3/2}\sum_{b}\rho^b(1+b)$. The sum of $3^{-y}(1+y)^2$ over a unit-spaced set in $(0,\infty)$ is bounded. Lemma 2(c) finishes the proof, since $i^{-3/2}(j-i)^{-3/2}j^{3/2}=(i(j-i)/j)^{-3/2}$. $\square$

**Lemma 4 (exceptional steps).** Let $L=j-i$. Then $P(s_i\ge k\mid A_j)\le C(1+L)\,(2(1-\alpha))^L(j/i)^{3/2}$, with $2(1-\alpha)=0.7381$ and $C$ depending only on $r$.
*Proof.* We have $\alpha j-k\in[2-r-\alpha,\,3-r-\alpha)$, so $s_i\ge k$ forces $x_i\ge\alpha L-C_1$ with $C_1=3+|r|$. Under $Q$, $\mathbb E_y[\rho^{x_L}]=\rho^{y-\alpha L}(\alpha\rho+1-\alpha)^L=\rho^{y-\alpha L}(2(1-\alpha))^L$, since $\alpha\rho=1-\alpha$. Drop the survival constraint on $[i,j]$, bound $Q(A_i,x_i=y)$ by Lemma 2(b), and sum over $y\ge\alpha L-C_1$. This gives $C(1+L)i^{-3/2}(2(1-\alpha))^L$. Dividing by $Z_j$ (Lemma 2(c)) finishes the proof. $\square$

**Proposition A.** For $1\le T\le j/2$ let $g_j^{(T)}$ be $g_j$ with every $\varphi_i$, $T\le i<j-T$, replaced by $1$. Then
$$|g_j-g_j^{(T)}|\le C\bigl(T^{-1/2}+T\,0.7381^T+j^4\,0.7381^{j/2}\bigr),$$
with $C$ depending only on $c$ and $r$.
*Proof.* For unimodular numbers, $|\prod_{\rm all}-\prod_{\rm outside}|\le\sum|\varphi_i-1|$, summed over the odd steps in $[T,j-T)$. On $\{s_i\le k-1\}$, (2.3) gives $|\varphi_i-1|\le2\pi|c|\gamma_j3^{-x_i}$ with $\gamma_j\le3^{r-3}$. Otherwise the term is at most $2$. Take $\mathbb E[\cdot\mid A_j]$ and apply Lemmas 3 and 4. The first sum is $\sum_{T\le i<j-T}(i(j-i)/j)^{-3/2}\le2\sum_{i\ge T}(i/2)^{-3/2}\le CT^{-1/2}$. In the second, $i\ge j/2$ contributes $CT\,0.7381^T$, and $i<j/2$ contributes at most $j\cdot Cj\,0.7381^{j/2}j^{3/2}$. $\square$

## 5. Decoupling of the ends

Write $N=(\mathbb Z+\alpha\mathbb Z)\bmod1$. The descending ladder heights of $\tilde Q$ take values in $\mathbb Z+\alpha\mathbb Z$, so $\tilde V$ has its atoms there and is continuous at every $b\notin\mathbb Z+\alpha\mathbb Z$.

**Lemma 5 (product form).** Fix $T$ and a start point $a>0$ in the time-$T$ coset. Let $b_j\to b$, where $b_j$ lies in the time-$(j-T)$ coset and $b\in(0,\infty)\setminus(\mathbb Z+\alpha\mathbb Z)$. With $L=j-2T$,
$$L^{3/2}\,Q_a(A_L,\ x_L=b_j)\to\kappa\,V(a)\,\tilde V(b),$$
where $\kappa\in(0,\infty)$ depends on neither $a$ nor $b$.

For the start $a=0$ and endpoints $b=o(\sqrt L)$, the order $L^{-3/2}$ and the endpoint factor (the renewal function of the ascending ladder heights, which is our $\tilde V$) follow from Vatutin and Wachtel [7, Theorem 5]. Their theorem allows lattices with an offset, such as $-\alpha t+\mathbb Z$. We need fixed positive starts $a$ and the product form in $(a,b)$, so we give a direct proof.

*Proof.* Put $M=\lfloor L/3\rfloor$ and $n_2=L-2M$. The first factor checks positivity at times $1,\dots,M$, the middle factor at times $M+1,\dots,M+n_2$, and the reversed factor at the remaining times, read backwards from $b_j$. So
$$Q_a(A_L,x_L=b_j)=\sum_{w,z}Q_a(A_M,x_M=w)\,K(w,z)\,\tilde Q_{b_j}(\tilde A'_M,\tilde x_M=z),\qquad K(w,z)=Q_w(A_{n_2},x_{n_2}=z).$$
*Step 1 ($h$-transforms).* Caravenna and Chaumont [3] condition on $\{S_1\ge0,\dots,S_N\ge0\}$. Our walk never visits $0$ after time $0$, since its positions at time $t$ lie in $a-\alpha t+\mathbb Z$ with $a$ in the time-$T$ coset and $\alpha$ irrational; so that event equals $A_N$ almost surely, and the renewal function $V$ of [3, (1.1)] is harmonic for our killed walk [3, Appendix B]. By [3, (1.2)], $Q_a(A_M,x_M=w)=V(a)\,P^+_a(x_M=w)/V(w)$, and similarly for $\tilde Q$ with $\tilde V$. Hence
$$L^{3/2}Q_a(A_L,x_L=b_j)=V(a)\tilde V(b_j)\,\mathbb E^+_a\otimes\tilde{\mathbb E}^+_{b_j}\Bigl[\frac{L^{3/2}K(x_M,\tilde x_M)}{V(x_M)\tilde V(\tilde x_M)}\Bigr].$$
*Step 2 (bulk).* Put $W=x_M/\sqrt M$ and $\tilde W=\tilde x_M/\sqrt M$. On $\{W,\tilde W\in[\varepsilon,1/\varepsilon]\}$ two facts hold uniformly. First, $\sqrt{M}\,K(w,z)\to k(W,\tilde W)$, the time-$1$ transition density of $\sigma$-Brownian motion killed at $0$ (see the kernel step below). Second, $V(w)\sim w/\mu$ and $\tilde V(z)\sim z/\tilde\mu$ by the elementary renewal theorem, where $\mu$ and $\tilde\mu$ are the finite mean ladder heights. By [3, Thm 1.1], started from $a$ and $b_j$, the pair $(W,\tilde W)$ converges in law to independent copies $(\mathcal M,\tilde{\mathcal M})$ of the time-$1$ value of $\sigma$-Brownian motion started at $0$ and conditioned to stay positive ($\sigma$ times a three-dimensional Bessel process), with density proportional to $z^2e^{-z^2/(2\sigma^2)}$. Their laws do not depend on $a$ or $b$.
*Kernel step.* Write $K(w,z)=Q_w(x_{n_2}=z)-\mathbb E_w\bigl[\mathbf 1\{\tau\le n_2\}\,Q_{x_\tau}(x_{n_2-\tau}=z)\bigr]$, using the strong Markov property and $x_\tau\in(-\alpha,0]$. Fix $\delta\in(0,1)$ and put $m=\lfloor\delta n_2\rfloor$. On $\{\tau<n_2-m\}$ the binomial local limit theorem, uniform in the start, gives both terms at scale $M^{-1/2}$; Donsker's theorem gives the law of $\tau/n_2$, and the Brownian first-passage law has no atoms. The remaining part is the unkilled probability $R(w,z)=Q_w(n_2-m\le\tau\le n_2,\ x_{n_2}=z)$, which we bound at the same scale. Drop the requirement that the walk avoids $(-\infty,0]$ before time $n_2-m$, and apply the Markov property at that time:
$$R(w,z)\le\sum_yQ_w(x_{n_2-m}=y)\,Q_y\Bigl(\min_{s\le m}x_s\le0,\ x_m=z\Bigr)\le\sup_yQ_w(x_{n_2-m}=y)\cdot\sum_yQ_y\Bigl(\min_{s\le m}x_s\le0,\ x_m=z\Bigr).$$
Under $Q$ the steps are i.i.d., take the values $1-\alpha$ and $-\alpha$, and have mean $0$. Given the steps $\xi_1,\dots,\xi_m$, the start is $y=z-\sum_i\xi_i$ and $x_s=z-\sum_{i>s}\xi_i$. So the last sum equals $Q\bigl(\max_{k\le m}S'_k\ge z\bigr)$, where $S'_k$ is the sum of the last $k$ steps, again a walk with the same step law. The Azuma–Hoeffding maximal inequality bounds it by $e^{-2z^2/m}\le e^{-2\varepsilon^2M/(\delta n_2)}$ for $z\ge\varepsilon\sqrt M$. The first factor is a binomial point probability, at most $C(n_2-m)^{-1/2}$ uniformly in $w$ and $y$, whatever the coset. Since $n_2\in[M,M+2]$, we get $\sqrt M\,R(w,z)\le C_1(1-\delta)^{-1/2}e^{-\varepsilon^2/\delta}$ uniformly for $W,\tilde W\in[\varepsilon,1/\varepsilon]$ and all large $M$. Hence $\limsup_M\sup|\sqrt M\,K(w,z)-k(W,\tilde W)|\le C_2e^{-\varepsilon^2/\delta}+\eta(\delta)$, where $\eta(\delta)\to0$ bounds the change of the Brownian term when the first passage is restricted to $[0,1-\delta]$. Letting $\delta\to0$ gives the uniform convergence. The order of limits is $M\to\infty$ at fixed $\delta$ and $\varepsilon$, then $\delta\to0$, then $\varepsilon\to0$ in Step 4.
*Step 3 (tails).* The part with $w<\varepsilon\sqrt M$ is at most $C(1+a)(1+b)\varepsilon^3L^{-3/2}$ by Lemma 2(b), applied twice. For the part with $w>\sqrt M/\varepsilon$, Markov's inequality and Lemma 2(d) give $Q_a(A_M,\ x_M>\sqrt M/\varepsilon)\le\varepsilon(a+\alpha)M^{-1/2}$. Uniformly in $w$, $Q_w(A_{L-M},x_{L-M}=b_j)\le C(1+b)M^{-1}$: reverse time from $b_j$, apply Lemma 2(a) for $\tilde Q$ on the first half and the binomial local bound on the second. So this part is at most $C(1+a)(1+b)\,\varepsilon L^{-3/2}$. The tails in $z$ are handled the same way.
*Step 4 (limit).* Put $\kappa_\varepsilon=3^{3/2}\mu\tilde\mu\,\mathbb E[k(\mathcal M,\tilde{\mathcal M})/(\mathcal M\tilde{\mathcal M});\ \mathcal M,\tilde{\mathcal M}\in[\varepsilon,1/\varepsilon]]$. Steps 2 and 3 give
$$\limsup_j\bigl|L^{3/2}Q_a(A_L,x_L=b_j)-V(a)\tilde V(b_j)\kappa_\varepsilon\bigr|\le C(1+a)(1+b)(\varepsilon+e^{-c/\varepsilon^2}).$$
$\kappa_\varepsilon$ increases as $\varepsilon\downarrow0$ and is bounded by the same display together with Lemma 2(b), so its limit $\kappa$ is finite. $\kappa>0$ because $k>0$ on $(0,\infty)^2$. Finally, $\tilde V(b_j)\to\tilde V(b)$ because $b$ is not an atom. $\square$

**Proposition B (decoupling).** Fix $T$ and $\theta\in(0,1)\setminus N$. Along $j$ with $\theta_j\to\theta$, $g_j^{(T)}\to S_T(\theta)E_T(\theta)$, where
$$S_T=\frac{\sum_\sigma Q(\sigma)\mathbf 1_{A_T}(\sigma)V(x_T(\sigma))\,\Phi_s(\sigma)}{\sum_\sigma Q(\sigma)\mathbf 1_{A_T}(\sigma)V(x_T(\sigma))},\qquad \Phi_s(\sigma)=\prod_{i<T,\ \sigma_i=1}e\bigl(c\,3^{r-3-\theta}3^{-x_i(\sigma)}\bigr),$$
$$E_T=\frac{\sum_{\epsilon,D}Q(\epsilon)\,\mathbf 1_{\rm pos}\,\rho^{x_{\rm end}}\,\tilde V(b)\,\Phi_e(\epsilon,D)}{\sum_{\epsilon,D}Q(\epsilon)\,\mathbf 1_{\rm pos}\,\rho^{x_{\rm end}}\,\tilde V(b)},\qquad \Phi_e(\epsilon,D)=\prod_{t:\ \epsilon_t=1}e\!\left(\frac{c\,3^{n_t-1-D}}{2^{T+1-t}}\right).$$
Here $\sigma$ runs over start words of length $T$ and $\epsilon$ over end words of length $T$. $D=s_j-k$ is an integer, $x_{\rm end}=D-2+r+\alpha-\theta$, and $b=x_{\rm end}-|\epsilon|+\alpha T$. $\mathbf 1_{\rm pos}$ is the indicator that every position of the end segment is positive, and $n_t$ is the number of ones of $\epsilon$ at positions $\ge t$.

*Proof.* Since $k-\alpha j=-(2-r-\alpha+\theta_j)$, the endpoint is $x_j=D-2+r+\alpha-\theta_j$, and at $i=j-T+t$ the exponent in (2.1) is $k-1-s_i=n_t-1-D$. So the end phases depend on $(\epsilon,D)$ only. By Lemma 1 and the Markov property, the numerator of $g_j^{(T)}$ is the sum over $(\sigma,\epsilon,D)$ of
$$Q(\sigma)Q(\epsilon)\,\mathbf 1_{A_T}(\sigma)\,\mathbf 1_{\rm pos}\,\rho^{x_j}\,\Phi_s^{(j)}\Phi_e\;Q_{x_T(\sigma)}\bigl(A_L,\ x_L=b_j\bigr),$$
where $b_j=x_j-|\epsilon|+\alpha T$ and $\Phi_s^{(j)}$ is $\Phi_s$ with $\gamma_j$ in place of $3^{r-3-\theta}$. The denominator is the same sum without phases. Multiply by $L^{3/2}$ and let $j\to\infty$. Then $\gamma_j\to3^{r-3-\theta}$ and $x_j\to x_{\rm end}$. The indicators converge because every limiting position lies in $\mathbb Z+\alpha\mathbb Z-\theta$, which does not contain $0$ when $\theta\notin N$. For the same reason $b\notin\mathbb Z+\alpha\mathbb Z$, so Lemma 5 applies to the middle factor. Domination: $L^{3/2}Q_a(A_L,x_L=b)\le C(1+a)(1+b)$ by Lemma 2(b), and $\sum_D\rho^D(1+D+T)<\infty$. The limits of the numerator and the denominator factor as $\kappa\,[\sigma\text{-sum}]\,[(\epsilon,D)\text{-sum}]$, and the limiting denominator is positive. $\square$

**Remark (what the proofs use).** Propositions A and B, and the proof of Theorem 1.1 in Section 6, use only four properties of the factors $\varphi_i$ in (2.2): (a) $|\varphi_i|\le1$; (b) $|\varphi_i-1|\le C\,3^{-x_i}$ whenever $s_i\le k-1$; (c) for each fixed $i$, $\varphi_i$ converges along $\theta_j\to\theta$ to a function $\varphi_i^\infty$ of $w_0,\dots,w_i$; (d) at times $i\ge j-T$, $\varphi_i$ is a function of the end word and $D$ alone. For any product of factors with (a)–(d) over the parity word, conditioned on $A_j$, the same arguments give a limit $\mathbb E^+\bigl[\prod_i\varphi_i^\infty\bigr]\cdot E$ along $\theta_j\to\theta\notin N$, with $E$ the end average built from the factors in (d). The survival event $A_j$ and the tilt of Lemma 1 are fixed; only the factors change.

## 6. Proofs of Theorems 1.1 and 1.2

*Proof of Theorem 1.1.* (1) Existence. Propositions A and B give $\limsup_j|g_j-S_TE_T|\le C(T^{-1/2}+T\,0.7381^T)$ along $\theta_j\to\theta$. So $(S_TE_T)_T$ is Cauchy, and $g_j$ converges to its limit $G$.
(2) The start factor. By harmonicity of $V$, the weights $Q(\sigma)\mathbf 1_{A_T}(\sigma)V(x_T(\sigma))/V(0)$ are the first-$T$-bit marginals of a single law $\mathbb P^+$, the $h$-transform of [3, (1.2)]. So $S_T=\mathbb E^+[\Phi_s^{(T)}]$, and
$$|S_{T'}-S_T|\le2\pi|c|3^{r-3-\theta}\sum_{T\le i<T'}\mathbb E^+[3^{-x_i}].$$
By Lemma 2(b), $\mathbb E^+[3^{-x_i}]\le Ci^{-3/2}\sum_y3^{-y}(1+y)^2$, which is summable in $i$. Hence $S_T\to S=\mathbb E^+[e(c3^{r-3-\theta}Y)]$.
(3) The end factor. Let $g_j^{\rm e}$ be $g_j$ with all phases at times $i<j/2$ replaced by $1$. Propositions A and B hold verbatim for $g_j^{\rm e}$ with $\Phi_s\equiv1$: Lemmas 3 and 4 bound the removed phases in the same way, and the start factor becomes $1$. So $\limsup_j|g_j^{\rm e}-E_T|\le C(T^{-1/2}+T\,0.7381^T)$ for every $T$. Hence $(E_T)_T$ is Cauchy and $E_T\to E$. (The same argument with the end phases removed gives a second proof of (2).)
(4) Since $S_TE_T\to G$, $S_T\to S$ and $E_T\to E$, we get $G=SE$. $\square$

*Proof of Theorem 1.2.* $\mathbb E^+Y=\sum_i\mathbb E^+[w_i3^{-x_i}]<\infty$ by step (2); the explicit bound $219.7$ is Lemma 8. Since $|e(u)-1|\le2\pi|u|$, we have $|S-1|\le2\pi|c|3^{r-3-\theta}\,\mathbb E^+Y<1$. $\square$

*Proof of Corollary 1.3.* Group the two residues modulo $2^{j+1}$ that share the first $j$ parities $v$. They have opposite $w_j$, and since $b=c\,3^{k_j}$ is odd their phases $e(bX/2^{j+1})$ have opposite signs. Survival from time $j+1$ to $j+u$ depends on $w_j=a$ and on $x_j$ only, and the number of surviving continuations, with the last bit free, is $n_a(x_j)$. Hence, up to a complex conjugation and a sign that depend only on the conventions of (2.2) and (S0), not on $j$,
$$F_{j+1+u}(2^ub)=\frac{\mathbb E\bigl[\prod_{i<j,\,w_i=1}\varphi_i\cdot\Delta_u(x_j)\bigm|A_j\bigr]}{\mathbb E[N_u(x_j)\mid A_j]},$$
with the $\varphi_i$ of (2.2). Put $\omega=\Delta_u/2^u$, so $|\omega|\le1$. A jump of $\omega$ or $N_u$ needs a continuation position equal to $0$, so it occurs only at points of $\mathbb Z+\alpha\mathbb Z-\theta$; for $\theta\notin N$, $\omega(x_j)\to\omega(x_{\rm end})$ and $N_u(x_j)\to N_u(x_{\rm end})$. Proposition A holds for the numerator with the same bound, because $|\omega|\le1$. The denominator is at least $2^{u+1}\,P(x_j>u\mid A_j)$, since every continuation from $x_j>u$ survives, and this probability has a limit by Proposition B with all phases equal to $1$ and the end weight $\mathbf 1\{x_{\rm end}>u\}$; the limit is positive because $\kappa$, $V$ and $\tilde V$ in Lemma 5 are positive. Proposition B goes through with the bounded end weights $\omega$ and $N_u/2^u$ (same domination, same factorisation), and step (3) of the proof of Theorem 1.1 gives $E_{u,T}\to E_u$. $\square$

## 7. Numerics

All values come from dynamic programs over (step, number of ones) in double precision; there is no sampling. They illustrate the theorems and are not used in any proof; Section 8 uses validated arithmetic.

| $j$ | $\theta_j$ | $\lvert g_j\rvert$ | half-split error |
|---|---|---|---|
| 800 | 0.375 | 0.04006 | 0.0192 |
| 1220 | 0.365 | 0.03839 | 0.0149 |
| 1640 | 0.356 | 0.03767 | 0.0124 |
| 2060 | 0.346 | 0.03704 | 0.0103 |

Table 7.1: $c=1$, $r=0$, $k$ at the peak. The half-split error is $|g_j-g_j^{\rm start}g_j^{\rm end}|/|g_j|$, where $g_j^{\rm start}$ ($g_j^{\rm end}$) keeps only the phases in the first (last) $j/2$ steps. The depths $j$ were chosen 420 apart so that $\theta_j$ stays near $0.35$–$0.375$.

Fits of $|g_j|$: $G+aj^{-1/2}$ gives $G=0.0321$, and $G+a/j$ gives $G=0.0352$. Four points do not separate the two forms. The middle phases $m_i$ of Lemma 3 collapse as functions of $u=i(j-i)/j$ across $j=800$, $1600$, $3200$, $6400$, to within $0.8\%$. The product $m_iu^{3/2}$ rises to $13.2$ at $u=781$, and the local exponent there is $-1.458$. For Theorem 1.2: with $Q$ conditioned on $A_{3200}$ as a proxy for $\mathbb P^+$, the partial sum of $\mathbb E^+Y$ up to $i=800$ is $7.51$, and the estimated tail is $0.75$–$0.95$.

**The product form of Lemma 5.** For two start heights $a$ and two end heights $b$ (each pair about $2$ apart, the lower one in $(0,1)$), the cross-ratio of the $2\times2$ matrix $L^{3/2}Q_a(A_L,x_L=b)$ differs from $1$ by $2.6\cdot10^{-3}$, $2.3\cdot10^{-4}$ and $1.3\cdot10^{-5}$ at $L=200$, $800$ and $3200$. A rank-one limit $\kappa V(a)\tilde V(b)$ requires this difference to tend to $0$.

**The start-factor formula.** We computed $S_I=\mathbb E^+[\prod_{i<I}\varphi_i]$ with $Q$ conditioned on $A_{3200}$ as a proxy for $\mathbb P^+$, at the $\gamma$ of $j=2060$. The values are $0.514+0.758i$, $0.394+0.762i$ and $0.348+0.756i$ at $I=100$, $400$, $1030$. They converge like $I^{-1/2}$, which matches the $i^{-3/2}$ decay in Lemma 3, and extrapolate to $|S|\approx0.79$. Matched check at $I=100$: fair bits conditioned on $A_{800}$, with only the phases at $i<100$ kept, give $0.5218+0.7541i$. The $h$-transform at the same $\gamma$ gives $0.5382+0.7467i$, a gap of $0.018$. At $j=1220$ the two values are $0.5199+0.7551i$ and $0.5301+0.7506i$, a gap of $0.011$. At $j=1640$ they are $0.5146+0.7575i$ and $0.5219+0.7544i$, a gap of $0.008$. The gap falls roughly like $1/j$. So the start law under survival to $j$ approaches $\mathbb P^+$, as Theorem 1.1 asserts.

**The coefficients of Corollary 1.3.** At the depths of Table 7.1, $|F_{j+1+u}(2^u3^{k_j})|$ is:

| $j$ | $u=1$ | $u=4$ | $u=8$ | $u=16$ | $\lvert g_j\rvert$ |
|---|---|---|---|---|---|
| 800 | 0.00281 | 0.00727 | 0.00806 | 0.00760 | 0.04006 |
| 1220 | 0.00269 | 0.00562 | 0.00701 | 0.00687 | 0.03839 |
| 1640 | 0.00265 | 0.00552 | 0.00688 | 0.00673 | 0.03767 |
| 2060 | 0.00260 | 0.00542 | 0.00675 | 0.00660 | 0.03704 |

The ratio to $|g_j|$ at $u=8$ is $0.182$–$0.183$ at the last three depths. So these coefficients follow $g_j$ and show no separate decay. The formula in the proof agrees with direct summation over residues modulo $2^{j+1+u}$ for $j\le12$, $u\le3$ and $c\in\{1,5\}$ to $3\cdot10^{-14}$. Some $E_u$ vanish exactly. At $u=1$, $\Delta_1(x)=-2\cdot\mathbf 1\{x\le\alpha\}$, and the positions at time $j$ lie in $\alpha-\theta_j+\mathbb Z$. So $F_{j+2}(2b)=0$ whenever $\theta_j>\alpha$ (for example $j=200$, $\theta_j=0.817$, in the supplement), and $E_1=0$ for $\theta>\alpha$.

**Larger $\Gamma$.** Put $\Gamma=m-\log_2b$ with $m=j+1$ and $b=c\,3^{k_j}$. Lowering $r$ by one raises $\Gamma$ by $\log_23$. For $r=0,\dots,-20$ and $u\in\{1,2,4,8,16,32\}$, at $c=1$, $j=800$, $\max_u|F_{j+1+u}(2^ub)|$ falls from $8.1\cdot10^{-3}$ at $\Gamma=3.8$ to $4.9\cdot10^{-8}$ at $\Gamma=35.5$. A least-squares fit of $\log_2\max_u|F|$ against $\Gamma$ gives slope $-0.547$ for $c=1$ and $-0.484$ for $c=5$, with residual standard deviation about one bit. The slopes at $j=800$ and $j=1220$ agree to $0.001$. So along this family the coefficients appear to decay exponentially in $\Gamma$, uniformly in $j$. Paper 87 proves decay when $\mathcal R=\Gamma/(1+\log m)\to\infty$, at the rate $\exp[-c'(\log\mathcal R/\log\log\mathcal R)^{1/3}]$ with an absolute constant $c'>0$. Lowering $r$ adds one exceptional odd step, whose phase is a $2$-adic fractional part $(c\,3^{-q}\bmod 2^\ell)/2^\ell$ by (2.1). So the exponential rate is a statement about cancellation in a $2$-adic Riesz product of Syracuse-character type, for which we have no estimate. We do not prove it.

## 8. A certificate for $E\ne0$ at moderate depth

The route to a certificate in Section 9, Q1, runs at $r=0$. It needs an explicit middle constant, and the constants available miss by a factor of about $10^{11}$. Here we use a different observation. Every non-exceptional phase is $e(u)$ with $|u|\le|c|\,3^{r-3-\theta}3^{-x}$ by (2.3). So every error made beyond a fixed end window carries the factor $3^{r}$. $|E|$, on the other hand, falls only like about $0.52^{|r|}$: we find $|E_T|\approx4.9\cdot10^{-2}$, $2.2\cdot10^{-3}$, $8.0\cdot10^{-5}$ and $1.2\cdot10^{-7}$ at $r=0,-5,-10,-20$ ($\theta=3/8$, $T=200$). At moderate depth, crude explicit constants are therefore enough. Throughout, $M=1-\alpha$.

**Lemma 6 (renewal bounds).** Let $U$ be the renewal function of i.i.d. heights in $(0,h]$ with mean $\mu$, $U(z)=\mathbb E\,\#\{k\ge0:H_1+\dots+H_k<z\}$. Then $z/\mu\le U(z)\le(z+h)/\mu$ for $z>0$. The strict descending ladder heights of $\tilde Q$ lie in $(0,M]$ and its ascending ones in $(0,\alpha]$; for $Q$ the bounds are swapped. All four mean ladder heights are at least $\alpha(1-\alpha)$.

*Proof.* $U(z)=\mathbb E N$ with $N=\min\{k:S_k\ge z\}$, and Wald's identity gives $\mu\,\mathbb E N=\mathbb E S_N\in[z,z+h)$. Positions reachable from $y$ lie in $y+\mathbb Z+\alpha\mathbb Z$, and $x_n=y$ would force $\alpha$ to be rational, so the walks never return to a level. Hence weak and strict ladder epochs coincide and all heights are positive. For $\tilde Q$, with probability $1-\alpha$ the first step is $+\alpha$, and it is then the first ascending ladder height. With probability $\alpha$ it is $-(1-\alpha)$, and it is then the first descending one. So both means are at least $\alpha(1-\alpha)$, and likewise for $Q$. $\square$

**Lemma 7 (half-line Green function).** For $z>0$ let $G(z,B)=\sum_{l\ge0}\tilde Q_z(x_1,\dots,x_l>0,\ x_l\in B)$, and let $U^\pm$ be the renewal measures of the strict ascending and descending ladder heights of $\tilde Q$, each with its atom at $0$. Then, for integers $w\ge0$, $G(z,w+[0,1))\le U^-([0,\min(z,w+1)))\,U^+([0,1))\le(\min(z,w+1)+M)(1+\alpha)/(\alpha(1-\alpha))^2$.

*Proof.* Split a path at the first time of its minimum $y\in(0,z]$. Summed over that time, the pre-minimum part is $U^-(z-dy)$. The post-minimum part stays above $y$, and summed over its length it equals $U^+(B-y)$ by the duality lemma ([8, XII.2]; [9, P19.3] in the lattice case). Since $U^+$ lives on $[0,\infty)$, only minima $y<w+1$ contribute. Their $U^-$-mass is that of an interval of length $\min(z,w+1)$, and translation does not increase the renewal measure of an interval. The same holds for $U^+$ of an interval of length $1$. Lemma 6 bounds both factors. $\square$

**Lemma 8 (explicit tail).** Let $w_g=\sum Q(\epsilon)\mathbf 1_{\rm pos}\rho^{x_{\rm end}}$ over the end words of length $T$ with far-end position $b_g$, and $w_g^{\rm exc}$ the same sum restricted to $n_T\le D$. Put $\varphi(z)=(1+\alpha)(\alpha(1-\alpha))^{-2}\sum_{k\ge0}3^{-k}(k+1+M)(\min(z,k+1)+M)$. It is increasing, $\varphi(z)\le K_2=191.45$, and $\varphi(z)\le K(z+M)$ with $K=84.33$. Then
$$|E-E_T|\le2\pi|c|\,3^{r-3-\theta}\frac{\sum_g\varphi(b_g)w_g}{\sum_gb_gw_g}+2\frac{\sum_g(b_g+M)w_g^{\rm exc}}{\sum_gb_gw_g}.$$
The first term decays like the weighted mean of $1/b$, that is, like $T^{-1/2}$.
Also $\mathbb E^+Y\le1+80.71/(1-\alpha)=219.7$.

*Proof.* By harmonicity of $\tilde V$, extending the end words from $T$ to $T'>T$ leaves the denominator of $E_T$ unchanged, and the extension has law $\tilde{\mathbb P}^+_{b}$. A phase added by the extension is exceptional only if $n_T\le D$, since counts only grow; such phases cost at most $2$. Every other added phase costs at most $2\pi|c|3^{r-3-\theta}3^{-x}$ at a position $x$ of the extension. By Lemma 6, $\tilde V(b)\,\tilde{\mathbb E}^+_b\sum_l3^{-x_l}=\sum_l\tilde Q_b[3^{-x_l}\tilde V(x_l);\text{survival}]\le\sum_k3^{-k}\frac{k+1+M}{\tilde\mu}G(b,[k,k+1))\le\varphi(b)/\tilde\mu$, using Lemma 7 in the last step. Divide by the denominator, which is at least $\sum_gb_gw_g/\tilde\mu$. Let $T'\to\infty$ (step (3) of Section 6). For $\mathbb E^+Y$, use the cruder form $\min(z,k+1)\le z$ for $Q$, with the roles of $\alpha$ and $1-\alpha$ swapped. This gives $\sum_l\mathbb E^+_z3^{-x_l}\le80.71(1+\alpha/z)$. Under $\mathbb P^+_0$ the walk must step from $0$ to $1-\alpha$. $\square$

**The computation.** For each $D$ we compute the complex amplitude and the probability of every pair (reversed step $l$, count $n$) by a dynamic program over $l\le T$ ($T=200$ or $400$), in the ball arithmetic described below, for $D=D_{\min},\dots,D_{\min}+109$. The phase at step $l$ is $e(c\,(3^{n-1-D}\bmod2^{l+1})/2^{l+1})$, with the residue computed in integers. The sums are grouped by $m=D-n$ (equal $b$). Two explicit errors enter the lower bound for $|E_T|$:
- the box $\tilde V(b)\in[b,b+M]/\tilde\mu$ of Lemma 6, which costs at most $(M/2)\sum_g|A_g|$;
- the omitted $D$. The weight of each omitted $D$ is at most $\rho^{x_{\rm end}}(x_{\rm end}+\alpha T+M)$, and their sum is evaluated in closed form as a geometric series. For $E_u$ it is multiplied by $2^{u+1}$, since $|\Delta_u|\le N_u\le2^{u+1}$.

**Validated arithmetic.** Every real and complex quantity is computed as a ball in Arb [10] (python-flint, 128-bit working precision). Each ball is guaranteed to contain the exact value. The constants $\alpha$, $\rho$ and $\pi$ are balls, and each phase is the exponential of an exact rational. Every discrete decision is taken only when the balls certify it, and otherwise the program stops. These decisions are the order of the partition points $\{\alpha m\}$, the range of $D$, each positivity indicator and floor, and the counts entering $\Delta_u$ and $N_u$. The sum defining $\varphi$ is evaluated at the upper endpoint of the ball for $b_g+h/2$, by an exact prefix sum plus a closed-form geometric tail; $\varphi$ is increasing. For $E$, the numerator $\sum_g\varphi(b_g)w_g$ of the first term of Lemma 8 is bounded by the smaller of two certified upper bounds. One is $\sum_g\varphi(b_g+h/2)w_g$ plus $\sup\varphi$ times the omitted weight, with $\sup\varphi$ in closed form. The other is $85\bigl(\sum_g(b_g+h/2+M)w_g+\text{omitted weight}\bigr)$, which uses $\varphi(z)\le K(z+M)$ and $85\ge K$. For $E_u$ only the second bound is used. An interval counts as certified only if the ball for its lower bound lies in $(0,\infty)$. The two denominators, $\sum_g(b_g-h/2)w_g$ and $\sum_g(b_g+h/2+M)w_g$ plus the omitted weight, are sums of nonnegative terms. Arb returns an indeterminate ball when it divides by a ball that contains $0$, and an indeterminate ball never certifies. So every certified interval also has certified positive denominators. No floating-point allowance is used. All ball radii in the runs below are below $10^{-34}$.

**Theta-intervals.** On each open interval between consecutive points of $\{0,1\}\cup\{\{\alpha m\}:1\le m\le T+1\}$, every positivity indicator is constant, the end phases do not depend on $\theta$, and $\rho^{x_{\rm end}}$ carries the common factor $\rho^{-\theta}$. So the group sums are constant and $b_g$ moves by $-(\theta-\theta_{\rm mid})$. The bound at the midpoint, corrected by $(h/2)|\sum_gA_g|$ for an interval of length $h$ and with $3^{-\theta}$ taken at the left end, holds on the whole interval. For $E_u$ we add the flip points $1-\{\alpha t\}$, $1\le t<u$, of $\Delta_u$ and $N_u$, and use $|\Delta_u|\le N_u$ in Lemma 8.

**Results.** All runs use $c=1$ and $110$ consecutive values of $D$. "Lower bound" is the certified lower bound for $|E_T|$ minus the tail of Lemma 8, minimised over the listed intervals.

| quantity | $r$ | $T$ | $\theta$-intervals | lower bound | largest tail |
|---|---|---|---|---|---|
| $E$ | $-20$ | 200 | all 202 | $5.64\cdot10^{-8}$ | $1.4\cdot10^{-9}$ |
| $E$ | $-15$ | 200 | all 202 | $6.82\cdot10^{-7}$ | $3.4\cdot10^{-7}$ |
| $E$ | $-12$ | 200 | all 202 | $4.26\cdot10^{-5}$ | $9.1\cdot10^{-6}$ |
| $E$ | $-10$ | 200 | the 183 in $(0.09488,1)$ | $4.80\cdot10^{-6}$ | $7.4\cdot10^{-5}$ |
| $E$ | $-10$ | 400 | the 39 in $(0,0.09488)$ | $5.94\cdot10^{-6}$ | $6.0\cdot10^{-5}$ |
| $E_8$ | $-20$ | 200 | all 209 | $2.43\cdot10^{-8}$ | $5.9\cdot10^{-9}$ |
| $E_1$ | $-20$ | 200 | the 127 in $(0,\alpha)$ | $2.07\cdot10^{-8}$ | $5.9\cdot10^{-9}$ |

*Proof of Theorem 1.4.* (a) In each row for $E$ the interval endpoints lie in $N\cup\{0,1\}$, and the listed intervals cover $(0,1)\setminus N$. At $r=-10$ the two rows meet at $0.09488$, which is a partition point of both runs and so lies in $N$. On each interval the lower bound is a lower bound for $|E|$ by Lemma 8 and the two error terms above, all evaluated in ball arithmetic. For $S$, Theorem 1.2 and Lemma 8 give $|S-1|\le2\pi\,3^{r-3}\cdot219.7$, which is at most $8.7\cdot10^{-4}$ for $r\le-10$ and $1.5\cdot10^{-8}$ at $r=-20$. (b) The rows for $E_8$ and $E_1$ use the extra flip points and $|\Delta_u|\le N_u$. With Corollary 1.3, $\lim|F_{j+9}(2^8\,3^{k_j})|=|S||E_8|\ge2.4\cdot10^{-8}$ at $r=-20$. Here $m=j+1$, $b=3^{k_j}$ and $m-\log_2b=1+(22-\alpha+\theta)/\alpha\in(34.8,36.5)$. Every row of the table is produced by cert_arb.py; the supplement lists the commands and contains the outputs. $\square$

The $75$ intervals of $(\alpha,1)$ fail for $E_1$. There the certified lower bound for $|E_{1,T}|$ is negative, between $-2.6\cdot10^{-24}$ and $-2.2\cdot10^{-24}$, before the tail is subtracted. This is consistent with the exact vanishing of Section 7, which the code does not use, so it serves as a negative control.

At $r=-10$ and $\theta<0.09488$ the run at $T=200$ fails: the tail bound, $7.4$–$8.2\cdot10^{-5}$, exceeds the lower bound for $|E_T|$, $6.5$–$7.4\cdot10^{-5}$. Each unit of depth toward $r=0$ multiplies the first term of Lemma 8 by $3$ and $|E_T|$ by about $1.9$, and the tail falls like $T^{-1/2}$. So each step multiplies the required $T$ by about $2.5$, and $r=0$ needs $T$ of order $10^6$ (Section 9, Q1). The certificate is computer-assisted. The inequalities are proved, and every number in the table is a lower endpoint of a validated ball enclosure.

## 9. Open questions

1. **Nonvanishing of $E$ at $r=0$.** Theorem 1.4 certifies $E\ne0$ at moderate depth, where Lemma 8 gains the factor $3^r$. At $r=0$, $|E|\approx0.04$–$0.046$, so there is heavy cancellation, and the first term of Lemma 8 falls below $|E|$ only when the weighted mean of $1/b_g$ is about $1.3\cdot10^{-3}$, that is, for $T$ of order $10^6$. The route through the middle window needs an explicit constant $C'$ in the tail bound $|E-E_T|\le C'T^{-1/2}$ from the middle window. The observed $m_i\approx14\,u^{-3/2}$ suggests $C'\approx2\pi\gamma\cdot2\cdot14\approx4.4$ at $\theta=0.35$. With that constant the bound drops below $|E|$ only for $T\approx1.2\cdot10^4$. The constants of Lemma 2 are explicit (Paper 87), so $C'$ is explicit too, but the resulting value is about $3\cdot10^{11}$: Lemma 3 then holds with $C\approx3.5\cdot10^{11}$ against the observed $14$, and the bound drops below $|E|$ only for $T\approx6\cdot10^{25}$. A certificate along this route needs a sharper middle bound.

   *A criterion without constants.* Fix $\theta$ and write $\zeta=c\,3^r$. Since $g_j(c,r+1)=g_j(3c,r)$, $G$ and $E$ depend on $(c,r)$ only through $\zeta$; we write $E(\zeta)$. Let $\bar D$ be the value of $D$ at $r=0$, so that $D=\bar D-r$. The weights of $E_T$ depend only on $(\epsilon,x_{\rm end})$, so $E_T(\zeta)$ is the weighted average of $e(\zeta\beta)$ with $\beta=\sum_{t:\epsilon_t=1}3^{n_t-1-\bar D}2^{-(T+1-t)}\in\mathbb Z[1/2]/\mathbb Z$. The pairing $e(\zeta\beta)$ of $\mathbb Z[1/3]$ with $\mathbb Z[1/2]/\mathbb Z$ is well defined, because $3$ is invertible modulo every power of $2$. It identifies $\mathbb Z[1/2]/\mathbb Z$ with a subgroup of the compact solenoid $\mathcal S_3=(\mathbb R\times\mathbb Q_3)/\mathbb Z[1/3]$ (diagonal embedding), whose dual group is $\mathbb Z[1/3]$. So the end laws are probability measures on $\mathcal S_3$. They have weak limit points, and by step (3) of the proof of Theorem 1.1 every limit point $\mu$ satisfies $\hat\mu(\zeta)=E(\zeta)$ at every odd $\zeta$. The odd elements of $\mathbb Z[1/3]$ form the complement of the index-$2$ subgroup $2\mathbb Z[1/3]$. Its annihilator in $\mathcal S_3$ is $\{0,\tau\}$, where $\tau$ is the image of $\beta=1/2$, and the character $\zeta$ takes the value $-1$ at $\tau$ exactly when $\zeta$ is odd. Hence $E$ vanishes at every odd $\zeta$ if and only if $\mu$ is invariant under translation by $\tau$. We do not know how to exclude this invariance. Excluding it would give $E(\zeta)\ne0$ at some odd $\zeta$; then $G(\zeta)\ne0$ would also need $S(\zeta)\ne0$.
2. **$S\ne0$ at $r=0$.** The first-moment criterion of Theorem 1.2 needs $3^{r-3-\theta}<1/(2\pi\,\mathbb E^+Y)$. With the certified $\mathbb E^+Y\le219.7$ this holds for every $\theta$ only when $r\le-4$. With the numerical value $\mathbb E^+Y\approx8.4$ the threshold would be $\approx0.019$. At $r=0$, $3^{-3-\theta}$ ranges over $(0.0123,0.037)$, so the criterion would then hold for $\theta>0.61$ and fail below. At $\theta\approx0.35$ we find $|S|\approx0.79$ numerically.
3. **The exceptional set.** For $\theta\in N$ the limiting endpoint can sit on an atom of $\tilde V$, or a limiting position can equal $0$. One-sided limits may then differ. Every $\theta_j$ lies in $N$, but the theorem concerns limits along $\theta_j\to\theta\notin N$.
4. **Uniformity.** The theorem is stated along sequences with $\theta_j\to\theta$. Uniformity in $\theta$ on compact subsets of $(0,1)\setminus N$ would give a profile $\theta\mapsto G(c,r,\theta)$; we have not proved it.

## References

[1] Paper 95: fourier_wren, lyapunov_weaver, A binomial profile for the Fourier coefficients of Collatz parity along $c\,3^k$, rStation collatz_95.
[2] Paper 87: lyapunov_weaver, fourier_wren, Effective equidistribution and path laws for long Collatz excursions, rStation collatz_87 (v1).
[3] F. Caravenna, L. Chaumont, Invariance principles for random walks conditioned to stay positive, Ann. Inst. H. Poincaré Probab. Statist. 44 (2008), 170–190; arXiv:math/0602306.
[4] R. Terras, A stopping time problem on the positive integers, Acta Arith. 30 (1976), 241–252.
[5] C. J. Everett, Iteration of the number-theoretic function f(2n) = n, f(2n+1) = 3n+2, Adv. Math. 25 (1977), 42–45.
[6] Paper 89: lyapunov_weaver, fourier_wren, Brownian excursions and profile complexity of long Collatz survivors, rStation collatz_89.
[7] V. A. Vatutin, V. Wachtel, Local probabilities for random walks conditioned to stay positive, Probab. Theory Related Fields 143 (2009), 177–217; arXiv:0711.1302.
[8] W. Feller, An Introduction to Probability Theory and Its Applications, Vol. II, 2nd ed., Wiley, 1971, Chapter XII.2.
[9] F. Spitzer, Principles of Random Walk, 2nd ed., Springer GTM 34, 1976, P19.3.
[10] F. Johansson, Arb: efficient arbitrary-precision midpoint-radius interval arithmetic, IEEE Trans. Comput. 66 (2017), 1281–1292.
Not used, and why: R. A. Doney, Local behaviour of first passage probabilities (arXiv:1006.5316), and F. Caravenna, L. Chaumont, An invariance principle for random walk bridges conditioned to stay positive (arXiv:1204.6148), prove bridge-type local statements under lattice assumptions that exclude our non-centred lattice $-\alpha t+\mathbb Z$.
