betaFeedback

WorksMathematics

Sparse prime surgery in completely multiplicative sequences: Normality, rare-event realization and optimal repair

Abstract

We study how changing prime signs affects fixed-word frequencies, rare-event laws and extremes of completely multiplicative sequences. The cost is dσ(f,g)=∑f(p)≠g(p)p−σd_\sigma(f,g)=\sum_{f(p)\ne g(p)}p^{-\sigma}. A known theorem of Frantzikinakis-Lemańczyk-de la Rue preserves normality at finite d1d_1; we give its elementary specialization. Using explicit arithmetic inputs from Long runs, we then establish three families of results. For each fixed 0<σ≤10<\sigma\le1 and almost every base, reversible surgery realizes every stationary finite-intensity marked point-process law along selected scales, with signs, exact excess lengths and converging actual intensity, at arbitrarily small dσd_\sigma cost and with a prescribed prefix unchanged. Almost surely over all integer scales, the minimum number of prime changes needed for a run of length ⌈clog⁡2N⌉\lceil c\log_2N\rceil is asymptotic to cαclog⁡2Nc\alpha_c\log_2N for 1<c<3/21<c<3/2, where αc∈(0,1/2)\alpha_c\in(0,1/2) satisfies H2(αc)=1−1/cH_2(\alpha_c)=1-1/c and H2(u)=−ulog⁡2u−(1−u)log⁡2(1−u)H_2(u)=-u\log_2u-(1-u)\log_2(1-u). At each scale, with probability tending to one, symbolic and private large-prime repair maxima coincide on the same random base for kN=o(log⁡N)k_N=o(\log N); unrestricted prime repair agrees when kN=o(log⁡log⁡N)k_N=o(\log\log N). This comparison transfers the classical lattice laws of runs with errors to adaptive prime repair. Elementary programming from arbitrary bases and an autonomous finite-range-dependent process construction complement these results.

Normality, rare-event realization and optimal repair

This work received substantial assistance from GPT-6 Astra; see the declaration at the end.

Introduction and the three resolutions of surgery

Normality describes words of fixed length. A longest run has a length that grows with the observation scale. A rare-event point process records a further object: the positions and marks of many long runs seen from a moving origin. The purpose of this paper is to distinguish these three resolutions under a perturbation supported on a small set of primes.

Let M±\mathcal{M}_{\pm} denote the completely multiplicative functions f:N→{−1,+1}f:\mathbb{N}\to\{-1,+1\}, with f(1)=1f(1)=1. Write P\mathbb{P} for the law in which the values F(p)F(p), p∈Pp\in\mathcal{P}, are independent fair signs. This is the completely multiplicative model, not the model supported on squarefree integers. For a set of primes SS, define

fS(n)=f(n)(−1)∑p∈Svp(n),dσ(f,g)=∑p:f(p)≠g(p)p−σ.f^{S}(n)=f(n)(-1)^{\sum_{p\in S}v_p(n)},\qquad d_{\sigma}(f,g)=\sum_{p:f(p)\ne g(p)}p^{-\sigma}.

The sum defining fS(n)f^{S}(n) is finite for each integer nn, even when SS is infinite. Unless otherwise stated, 0<σ≤10<\sigma\le1 and all logarithms are natural except log⁡2\log_2. The usual pretentious distance on sign-valued functions satisfies D(f,g;∞)2=2d1(f,g)D(f,g;\infty)^2=2d_1(f,g).

A sign sequence is normal if, for every finite nonempty A⊂N0A\subset\mathbb{N}_0,

1X∑n≤X∏a∈Af(n+a)⟶0.(1)\frac{1}{X}\sum_{n\le X}\prod_{a\in A}f(n+a)\longrightarrow0. \tag*{(1)}

Expanding 2−q∏i=0q−1(1+wif(n+i))2^{-q}\prod_{i=0}^{q-1}(1+w_i f(n+i)) shows that this is equivalent to frequency 2−q2^{-q} for every fixed word ww of length qq. No uniformity in growing qq is included.

A known stability theorem implies that normality is invariant within every finite-d1d_1 class; its attribution and an elementary proof are given in § 2. Within such a class, however, arbitrarily small perturbations can create much longer than logarithmic runs. Distributed insertions can even make the critical run count diverge at every origin of a selected dyadic block. These programming results apply to any base, with normality retained when the base is normal. Their quantitative scale and prime-budget constraints, rather than normality stability itself, are the contribution of that section.

A different question is whether the actual rare-event intensity, and not merely a collection of inserted witnesses, can be prescribed. § 4–§ 5 answer this relative to the one- and two-window estimates in § 3. For a full-measure class of bases, a reversible reservoir controls all potential starts, allowing both activation and extinction. The resulting realization theorem covers stationary laws marked by sign and exact excess length. Its universality is subsequential and relative to a weighted prime class; it is not a new typical law under P\mathbb{P}. We keep fixed-word normality, not the product distribution of the selected output. The choice of changed primes uses the observed signs; the resulting function need not have law P\mathbb{P}. § 10 separates predictable flips, which preserve that law, from adaptive selections, which can give singular output laws.

A count with the Poisson mean and variance, but a different law. Fix 0<σ≤10<\sigma\le1, a base ff in the full-measure class of Theorem 5.1, a budget ε>0\varepsilon>0 and a prefix cutoff TT. At the observation scales HN=2ℓNH_N=2^{\ell N} of § 4, one can choose a single normal gg with dσ(f,g)<εd_\sigma(f,g)<\varepsilon and g(n)=f(n)g(n)=f(n) for n≤Tn\le T, and dyadic scales Nj→∞N_j\to\infty, for which the following occurs. Choose a length-HNjH_{N_j} window uniformly among the integer windows contained in [Nj,2Nj][N_j,2N_j]. Let ZjZ_j count the long-run starts whose left guard and first ℓNj\ell N_j letters lie inside that window, as in (9). Then

L(Zj)⟶ν2:=12δ0+12δ2,EZj⟶1,Var⁡Zj⟶1,\mathcal{L}(Z_j)\longrightarrow\nu_2:=\tfrac{1}{2}\delta_0+\tfrac{1}{2}\delta_2,\qquad\mathbb{E}Z_j\longrightarrow1,\qquad\operatorname{Var}Z_j\longrightarrow1,

in total variation for the laws, while

dTV(L(Zj),Pois⁡(1))⟶1−32e>0.d_{\mathrm{TV}}\bigl(\mathcal{L}(Z_j),\operatorname{Pois}(1)\bigr)\longrightarrow1-\frac{3}{2e}>0.

The bounded-count construction in Appendix § 13 proves the moment assertions as well. Only the origin is random after gg is chosen; the example concerns a selected output and selected scales, not a typical law of FF.

Finally we ask how many prime coordinates are needed. Put

Mf(N)=max⁡{b:a constant block of length b lies in [N,2N]},M_f(N)=\max\{b:\text{a constant block of length }b\text{ lies in }[N,2N]\},
cf(N,b)=min⁡{∣S∣:S⊂P∩[2,2N], Mf,S(N)≥b},(2)c_f(N,b)=\min\{|S|:S\subset\mathcal{P}\cap[2,2N],\ M_{f,S}(N)\ge b\}, \tag*{(2)}
Mf[k](N)=max⁡S⊂P∩[2,2N]∣S∣≤kMf,S(N).M_f^{[k]}(N)=\max_{\substack{S\subset\mathcal{P}\cap[2,2N]\\ |S|\le k}}M_{f,S}(N).

The minimum of the empty set is +∞+\infty; the empty surgery is allowed in the maximum. All choices may depend on the observed base. A superscript >YN>Y_N restricts the primes to (YN,2N](Y_N,2N], where

LN=log⁡2N,SN=log⁡Nlog⁡log⁡N,YN=eSN.(3)L_N=\log_2 N,\qquad S_N=\sqrt{\log N\log\log N},\qquad Y_N=e^{S_N}. \tag*{(3)}

Write H2(u)=−ulog⁡2u−(1−u)log⁡2(1−u)H_2(u)=-u\log_2u-(1-u)\log_2(1-u), and let αc\alpha_c be the unique solution in (0,1/2)(0,1/2) of H2(αc)=1−1/cH_2(\alpha_c)=1-1/c. Our cardinality and fine-law results, proved in § 7 and § 8, are

cf(N,⌈cLN⌉)∼αc⌈cLN⌉(1<c<3/2),H2(αc)=1−1/c,c_f(N,\lceil cL_N\rceil)\sim\alpha_c\lceil cL_N\rceil\quad(1<c<3/2),\qquad H_2(\alpha_c)=1-1/c,

and, for fixed kk,

MF[k](N)=LN+klog⁡2LN−log⁡2(k!)+OP(1).M_F^{[k]}(N)=L_N+k\log_2L_N-\log_2(k!)+O_{\mathbb{P}}(1).

The first is almost sure over all integer scales, whereas the second is a statement in probability at a scale. Theorem 8.1 gives more than common limiting distributions: the repair maxima agree with high probability on the same realization. Symbolic and large-prime repair allow kN=o(log⁡N)k_N=o(\log N), while the all-prime comparison requires kN=o(log⁡log⁡N)k_N=o(\log\log N). These ranges remain distinct.

The principal contributions are the reversible marked realization (Theorem 5.1), the adaptive local cost bound (Theorem 7.1), and the same-base comparison (Theorem 8.1). Quantitative programming from arbitrary bases and the autonomous process construction (Theorems 2.4 and 6.1) are separate results. Table 1 records their different arithmetic dependencies. For realization, read § 2–§ 5; for cost and repair, § 3 and § 7–§ 9; for the limits of finite projections, § 6 is autonomous until Corollary 6.2, which supplies the arithmetic connection.

ConclusionArithmetic dependence
Known stability; elementary programming; finite-range marked exampleNone
Reversible reservoir; marked realization and its moment refinement(A1), (A2)
All-prime lower cost; adaptive union bounds(A1)
Optimal cost for 1<c<3/21<c<3/2 and large-prime remainder(A1), (CAP)
Fine budget laws; one-prime-per-stage construction(A1), (D)

Table 1. Arithmetic dependencies. “None” means that the proof uses no input from Long runs.

Relation to earlier work

Stability and programming. Fish [9] proves almost-sure normality of the random model; deterministic normal multiplicative examples occur in Klurman–Mangerel–Teräväinen [16]. Stability under finite d1d_1 follows from Frantzikinakis–Lemańczyk–de la Rue [10 Theorem 2.16], whose Chowla–Elliott stability result already permits a pointwise, adaptively chosen multiplier. Our specialized proof uses periodic approximation of the quotient and van der Corput; the almost-periodicity background includes Daboussi–Delange, as developed in Bergelson–Kulaga-Przymus–Lemańczyk–Richter [7 Section 2.3]. Najnudel [20] studies fixed-length consecutive values and quantitative empirical convergence. For changing prime signs to lengthen runs, You [23] is a direct antecedent: private odd-valuation primes and a minimum prime-change cost are already part of that method. The elementary contribution here combines an arbitrary starting base, a preserved prefix, an arbitrarily small total prime weight and explicit growing lengths on infinitely many selected scales.

Rare laws under multiplicative constraints. Normal symbolic sequences need not be Poisson generic, as shown by Becher–Sac Himelfarb [5]; Becher–Jackson–Kwietniak–Mance [6] study the descriptive complexity of that property. Their observable differs from our moving-origin long-run process. Results for exponentially mixing symbolic measures [1] and nonstationary product measures [13] describe other sources under which Poisson behavior occurs. In dynamics, Lacroix [18] realizes admissible normalized return-time laws by selecting shrinking neighborhoods. Our observation rule remains a prescribed long-run rule: the function is changed under complete multiplicativity, normality, a prefix constraint and a small prime budget. Reversible control of all starts, rather than insertion of witnesses alone, permits realization of the actual marked law and intensity.

Nonindependent Poisson components with a Poisson sum appear in Jacod [15]; Holroyd–Lyons–Soo [14] construct deterministic equivariant splittings. Kuna–Lebowitz–Speer [17] treat nonunique realizations of low-order correlations, while Lancaster-type expansions provide a fixed-marginal algebraic context [12]. Marked extremes have an established point-process framework [4]. Within this setting, § 6 gives one explicit construction combining exact finite families of threshold-process laws, prescribed factorial moment orders and a deterministic finite spatial dependence range, together with a test separating the complete law.

Cost and repair on a prescribed scale. In You’s modified-character setting [23], the minimum number of changes obeys a k/2+O(log⁡k)k/2 + O(\log k) law, with small primes singled out for their collective effect. Here the base is a generic random normal function, the target has length clog⁡2Nc\log_{2} N inside [N,2N][N, 2N], and the lower bound allows every prime. Hamming-ball entropy and contaminated independent runs belong to the classical Erdős–Rényi literature: Arratia–Waterman [2], Arratia–Gordon–Waterman [3], and Gordon–Schilling–Waterman [11 Section 3 and Theorem 1], with rate refinements in Fazekas–Fazekas–Fórián [8]. The factorial correction and lattice effects for a fixed number of interruptions are supplied by that literature. Our contribution is the local adaptive prime-cost bound and the comparison of symbolic, private large-prime and unrestricted repair on the same base. Positive-only and two-sign conventions require different intensity factors, which are kept explicit below.

Arithmetic dependency boundary

The elementary constructions and the probability construction in § 6 are proved without the deeper arithmetic inputs. The other branches use four stated results from Pouly’s Long runs and rare patterns of a random completely multiplicative function, with its technical companion, abbreviated Long runs [21]: weighted one-window defects, an absolute two-window profile, its capped form, and a labelled dictionary Poisson theorem. § 3 states the exact forms and uniformities used and gives their locations; Table 1 records which conclusions require them. These imported arithmetic results, rather than the full corpus of related process limits, are the external proof dependencies.

Normality, private coordinates and elementary programming

Stability at finite prime distance

The following known special case of Frantzikinakis–Lemańczyk–de la Rue [10 Theorem 2.16] is recalled to make the later constructions self-contained. If u=g/fu=g/f, then

D(u,1;∞)2=∑p1−u(p)p=2d1(f,g)<∞.\mathbb{D}(u,1;\infty)^2=\sum_p\frac{1-u(p)}{p}=2d_1(f,g)<\infty.

Thus uu is pretentious. Normality is the binary Chowla–Elliott property in Cesàro averages, so their theorem applies to g=fug=fu; since u2=1u^2=1, it also gives the converse. The elementary proof below specializes to this summable-prime case.

Theorem 2.1 (Known stability of normality). If f,g∈M±f,g\in\mathcal{M}_{\pm} and d1(f,g)<∞d_1(f,g)<\infty, then ff is normal if and only if gg is normal. The set of changed primes may be chosen adaptively from ff.

Proof. For a fixed nonempty finite AA, let aA(n)=∏a∈Af(n+a)a_A(n)=\prod_{a\in A}f(n+a). If ff is normal, then for every fixed integer t≥1t\ge1,

1X∑n≤XaA(n+t)aA(n)⟶0,\frac{1}{X}\sum_{n\le X}a_A(n+t)a_A(n)\longrightarrow0,

because (A+t)△A≠∅(A+t)\triangle A\ne\varnothing. Average RR translates of aA(n)e2πiθna_A(n)e^{2\pi i\theta n} and apply Cauchy–Schwarz. The diagonal contributes 1/R1/R, and the off-diagonal terms tend to zero uniformly in θ\theta, since their absolute values are fixed autocorrelations. Thus

lim sup⁡X→∞sup⁡θ∣X−1∑n≤XaA(n)e2πiθn∣2≤R−1.\limsup_{X\to\infty}\sup_\theta\left|X^{-1}\sum_{n\le X}a_A(n)e^{2\pi i\theta n}\right|^2\le R^{-1}.

Let R→∞R\to\infty. Finite Fourier expansion gives orthogonality to every bounded periodic sequence. Put S={p:f(p)≠g(p)}S=\{p:f(p)\ne g(p)\} and u=g/fu=g/f. For finite E⊂SE\subset S and r≥1r\ge1, the sequence

uE,r(n)=(−1)∑p∈Emin⁡(vp(n),r)u_{E,r}(n)=(-1)^{\sum_{p\in E}\min(v_p(n),r)}

is periodic modulo ∏p∈Epr\prod_{p\in E}p^r. Moreover

References

  1. [1]Nicolás Álvarez, Verónica Becher, Eda Cesaratto, Martín Mereb, Yuval Peres and Benjamin Weiss. Poisson genericity in numeration systems with exponentially mixing probabilities. Transactions of the American Mathematical Society 379(5): 3403–3423. 2026. doi: 10.1090/tran/9592.DOI
  2. [2]Richard Arratia and Michael S. Waterman. The Erdős–Rényi strong law for pattern matching with a given proportion of mismatches. Annals of Probability 17(3): 1152–1169. 1989. doi: 10.1214/aop/1176991262.DOI
  3. [3]Richard Arratia, Louis Gordon and Michael S. Waterman. The Erdős–Rényi law in distribution, for coin tossing and sequence matching. Annals of Statistics 18(2): 539–570. 1990. doi: 10.1214/aos/1176347615.DOI
  4. [4]Bojan Basrak, Ilya Molchanov and Hrvoje Planinić. Extremal behavior of stationary marked point processes. Advances in Applied Probability 58(1): 1–42. 2026. Published online 18 June 2025; author preprint arXiv:2210.01474. doi: 10.1017/apr.2025.23.DOI
  5. [5]Verónica Becher and Gabriel Sac Himelfarb. A construction of a λ-Poisson generic sequence. Mathematics of Computation 92: 1453–1466. 2023. Author preprint arXiv:2205.03981 (2024). doi: 10.1090/mcom/3806.DOI
  6. [6]Verónica Becher, Stephen Jackson, Dominik Kwiatniak and Bill Mance. The descriptive complexity of the set of Poisson generic numbers. Journal of Mathematical Logic 25(2): 2450019. 2025. doi: 10.1142/S0219061324500193.DOI
  7. [7]Vitaly Bergelson, Joanna Kulaga-Przymus, Mariusz Lemańczyk and Florian K. Richter. A structure theorem for level sets of multiplicative functions and applications. International Mathematics Research Notices 2020(5): 1300–1345. 2020. doi: 10.1093/imrn/rny040.
  8. [8]István Fazekas, Borbála Fazekas and László Fóríán. On the convergence rate for the longest at most T-contaminated runs of heads. Entropy 27(1): 33. 2025. doi: 10.3390/e27010033.DOI
  9. [9]Alexander Fish. Random Liouville functions and normal sets. Acta Arithmetica 120(2): 191–196. 2005. doi: 10.4064/aa120–2–6.
  10. [10]Nikos Frantzikinakis, Mariusz Lemańczyk and Thierry de la Rue. Furstenberg systems of pretentious and MRT multiplicative functions. Ergodic Theory and Dynamical Systems 45(9): 2765–2844. 2025. Theorem 2.16; author preprint arXiv:2304.03121, 11 December 2024. doi: 10.1017/etds.2024.140.DOI
  11. [11]Louis Gordon, Mark F. Schilling and Michael S. Waterman. An extreme value theory for long head runs. Probability Theory and Related Fields 72(2): 279–287. 1986. doi: 10.1007/BF00699107.DOI
  12. [12]Robert Griffiths. Lancaster distributions and Markov chains with multivariate Poisson–Charlier, Meixner and Hermite–Chebycheff polynomial eigenfunctions. Journal of Approximation Theory 207: 139–164. 2016. Author preprint first posted in 2014. doi: 10.1016/j.jat.2016.02.013. arXiv: 1412.3931.DOI
  13. [13]Michael Hochman and Nicolò Paviato. A threshold for Poisson behavior of non-stationary product measures. Ergodic Theory and Dynamical Systems 46(4): 1009–1019. 2026. doi: 10.1017/etds.2025.10258.DOI
  14. [14]Alexander E. Holroyd, Russell Lyons and Terry Soo. Poisson splitting by factors. Annals of Probability 39(5): 1938–1982. 2011. doi: 10.1214/11–AOP651.DOI
  15. [15]Jean Jacod. Two dependent Poisson processes whose sum is still a Poisson process. Journal of Applied Probability 12(1): 170–172. 1975. doi: 10.2307/3212423.DOI
  16. [16]Oleksiy Klurman, Alexander P. Mangerel and Joni Teräväinen. On Elliott’s conjecture and applications. Proceedings of the London Mathematical Society. Author preprint, 26 May 2023. impress. arXiv: 2304.05344.arxiv.org/abs/2304.05344
  17. [17]Tobias Kuna, Joel L. Lebowitz and Eugene R. Speer. Realizability of point processes. Journal of Statistical Physics 129: 417–439. 2007. doi: 10.1007/s10955–007–9393–y.
  18. [18]Yves Lacroix. Possible limit laws for entrance times of an ergodic aperiodic dynamical system. Israel Journal of Mathematics 132: 253–263. 2002. doi: 10.1007/BF02784515.DOI
  19. [19]Michael Lugo. The number of cycles of specified normalized length in permutations. 2009. arXiv:0909.2909. https://arxiv.org/abs/0909.2909.
  20. [20]Joseph Najnudel. On consecutive values of random completely multiplicative functions. Electronic Journal of Probability 25: Paper No. 59, 28 pp.. 2020. doi: 10.1214/20-EJP456.DOI
  21. [21]Brice Pouly. Long runs and rare patterns of a random completely multiplicative function. 2026. doi: 10.5281/zenodo.22872154.DOI
  22. [22]Daniel Russo and James Zou. How much does your data exploration overfit? Controlling bias via information usage. IEEE Transactions on Information Theory 66(1): 302–323. 2020. Revised author preprint, 2019. arXiv: 1511.05219.
  23. [23]Yichen You. On completely multiplicative ±1 sequences that omit many consecutive +1 values. Bulletin of the London Mathematical Society 57(6): 1708–1717. 2025. First published 31 March 2025; author preprint arXiv:2404.04981 (2024). doi: 10.1112/blms.70056.DOI

Paper details

vlnc:W_u569gx32
Version
v1 · latest
Published
Added
License
CC BY 4.0
Usage

views · 6

downloads · 2

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

GPT-6 Astra

View statement
Looking for related papers…
Contents