WorksMathematics
Additive basis thresholds for random prime semigroups
Abstract
Admit and select each odd prime independently with probability . We study sums from the multiplicative semigroup generated by the selected primes. At , its least asymptotic basis order is almost surely for . On the critical line , the multiplier threshold for cofiniteness of the -fold sumset is . At equality the probability of cofiniteness is strictly between zero and one. Almost every realization at equality admits a finite addition of primes that makes its -fold sumset cofinite and a finite removal of optional primes that gives infinitely many gaps. The proof combines a lower sieve and a prime-support overlap estimate for representations with a stopped martingale that compensates surviving gaps.
Results
Fix and . The random set of primes contains 2, and every odd prime belongs to with probability , independently. An optional prime has . Let be the multiplicative semigroup generated by , including 1. Write for sums of exactly elements of , allowing repetitions. Let be the least for which is cofinite in , and put if there is no such . Write for the positive random constant in the counting asymptotic proved in Lemma 2.1. All logarithms are natural.
Theorem 1 (Power-law threshold). In the model with , for each fixed , almost surely
For each fixed , is cofinite if and has density zero if , almost surely in either case. At its complement has almost surely lower density at least , where . For , almost surely .
Theorem 2 (Critical multipliers). Fix and . If , has density zero almost surely. If , has density one almost surely. Cofiniteness holds almost surely for , and infinitely many gaps occur almost surely for . At exact equality,
More precisely, at equality let be the event that all optional primes through are excluded. Then
Corollary 3 (Finite changes at equality). Under the parameters , , almost every realization has both of the following finite modifications. Adding finitely many optional primes gives a cofinite -fold sumset. Removing finitely many optional primes gives infinitely many gaps. If denotes the event that every prime through is selected, then
The modified semigroups can thus have least basis order and , respectively. The selected primes have the same counting asymptotic under either finite change.
At , the first theorem gives infinitely many gaps at , with a positive lower density of gaps. Increasing the multiplier makes the gaps have density zero as soon as . Cofiniteness has strictly intermediate probability when , and holds almost surely above that value.
Erdős and Rényi [3] studied additive representations in random sequences formed by selecting individual integers. Erdős and Tetali [4] constructed an asymptotic basis with representations by distinct summands using independent integer choices with probabilities of order . Our count on has order , so this logarithmic power occurs at . The dependence in the prime model enters through common prime divisors of summands. A change to one prime affects all semigroup elements divisible by it.
For coverage, we expose a pool of smaller primes and use their products as multipliers. A lower sieve supplies decompositions whose remaining factors have no small prime divisor. To apply Janson’s inequality, we solve for two summands when counting an overlap. This gives a power saving for a proper overlap, and deleting a small family of linear relations bounds the contribution from identical supports. For gaps at equality, we expose primes one at a time. A surviving target receives a compensating weight whenever the current prime could complete a representation. Freezing the weight before it becomes too large controls variance. A change of measure turns the weight lost to freezing into an estimate for smooth semigroup elements.
Counting and moments {#sec:2}
For , put and write .
Lemma 2.1 (Semigroup count). For every fixed , almost surely
where the Dirichlet series on is and is holomorphic and nonvanishing on .
Proof. Let be the selection indicator, with . The variance of the centered prime count through is . Kolmogorov’s maximal inequality on dyadic intervals and Borel–Cantelli yield, almost surely for every ,
Partial summation makes the corresponding centered linear terms of the logarithmic Euler product converge locally uniformly on . Away from the finitely many capped or fixed primes these terms are . The terms of prime-power degree at least two converge absolutely on compact subsets almost surely. Their expected absolute majorants converge for each since and . The finitely many remaining factors have holomorphic logarithms on . Exponentiating gives . The logarithm is real at . The original series converges absolutely for by taking expectations of the prime majorants.
The branch of the zeta power comes from its Euler product. For , the inequality applied in that product gives
A zero at with would force the left side to zero as , since the pole at 1 is simple. Hence the branch continues locally across away from . Near , is holomorphic and equals 1 at . Apply Delange’s theorem [2 Theorem III] to the Laplace transform of . The transform has exponent at and leading coefficient , giving (1).
Lemma 2.2 (Moments and cumulative representations). For and each fixed integer ,
The same estimate is uniform if any one prime is forced to be selected. Let count unordered -term representations, with repetitions allowed. Almost surely,
For , the normalized counts in (1) and (3) also converge in every finite .
Proof. The local series for simultaneous membership of integers in is , with . Multiply it by . The linear coefficients cancel except at finitely many primes. At , the absolute coefficient norm of the nonconstant part is . The remaining Euler product has finite absolute coefficient norm in this weight. Forcing one prime changes just one factor to a uniformly bounded norm. The separated factors in each coordinate have coefficients , with . Delange’s theorem gives
Convolution and the absolute norm give (2), using .
By (1) the counting measure on , , normalized by and restricted to , converges weakly to . The product measures converge on , whose boundary has measure zero. The simplex integral gives . Repeated coordinates contribute . Dividing the ordered count by proves (3). Larger choices of in (2) give uniform integrability of each fixed power of both normalized counts.
We use one consequence at and . For as in Theorem 2,
Indeed,
The factors through on contribute by Mertens’ product estimate [6 Theorems 5–8]. The product above is independent of the pattern. For each fixed real , its -th moment is bounded uniformly in and tends to , since its expected local factors are . The corresponding bounds at justify the infinite product by uniform integrability.
For , (1) gives . On the same is true if . Both imply density zero for . If , for every fixed the expected Euler product of converges, since . Taking again gives almost surely.
Coverage from smaller selected primes
Fix and , and write
We estimate the conditional probability that a target has no representation after exposing a fixed power of that target. All constants in this section may depend on the fixed parameters.
Choosing multipliers
Let and take level . We choose the fixed small enough that the ratio is in the range of the lower-bound fundamental lemma [1 Theorem 3.2, specialized to $\mathbb{Q}]. Choose so that
Fix a sufficiently small , put , and let with . Expose all primes through . Take pairwise coprime squarefree multipliers from the selected primes in that do not divide . Write . We will use the bound
almost surely for all large .
Without the size restrictions, the sum is over the allowed pool. The centered series and the same series with an extra both converge almost surely, by independence and summable variances. Also almost surely. The omitted divisors of contribute at most to the first sum. Taking logarithms and using Mertens’ reciprocal-prime estimate [6 Theorem 5], the unrestricted product is
Normalize the weights by this product. Each allowed prime is independently assigned to at most one multiplier, with probability for each specified assignment. The expected in this auxiliary distribution is at most , using Mertens’ weighted estimate [6 Theorem 6]. Choose so that this is at most for all large . Markov’s inequality retains at least half the product weight with all , proving (6). In using this bound we can fix a deterministic lower constant and define the good exposures by that inequality. They occur eventually almost surely.
Counting rough tuples
For fixed multipliers consider with . Let the first coordinates range in , so all . Prescribe their residues modulo , where the product is over primes. At the odd primes require all summands to be nonzero. This is possible since any residue modulo an odd prime is a sum of two units. At , set the first summands odd and the last odd or according to the parity of , adjusting the residue of the -th summand if needed. The multipliers are coprime to .
For write . Integrality of is equivalent to , with an integral affine lift , since . At each modulus coprime to , free residues of parametrize all solutions of . Indeed, given the first coordinates, the remaining two range over the solutions, in steps of order . In the box, each free residue vector has
This follows by counting the first progression coordinates and then in an interval of fixed length with endpoints depending on those coordinates.
At a prime the proportion of roots of is at most . If , at least two coefficients are units, so each coordinate is uniform. If and , the other coordinate is forced nonzero since . The CRT and box estimate give remainder at squarefree . For the dimension condition, and
This follows from Mertens’ product estimates [6 Theorems 7–8] and the summable error in comparing with . The same comparison gives . The lower sieve bounds the surviving count below by a positive constant times times this product, minus a constant times the sum of the absolute remainders to level . That sum is , using for squarefree . This is since . The lower sieve gives tuples with all odd factors of every at least .
Delete tuples with an odd square divisor in any , or an odd prime dividing two . These primes are all at least and divide none of the . For , the modulus has root proportion and error . Summing over costs . For , two vanishing coordinates modulo have proportion and error . Summing costs . For , a shared divides and . There are such primes , with count each. The surviving count is still
In particular the odd part of is squarefree and has at most prime factors.
Overlaps
The probability of a successful tuple, conditional on the exposure, is . Each tuple determines the multipliers uniquely, by separation of prime ranges and the parity choice. Thus (6) and (7) give conditional mean .
Discard a tuple if its satisfy a nonzero integral relation with . For fixed multipliers and coefficients this and the original sum equation are inconsistent or determine two coordinates after the others are specified. Hence the total number discarded is , and its conditional mean contribution is . For an identical support there are at most assignments of primes to the , with the dyadic part already prescribed. For each assignment at most one multiplier vector survives. Two such vectors would give a discarded relation. Identical supports therefore contribute to the ordered overlap sum, with the surviving conditional mean.
For a squarefree common divisor of two supports, let count tuples whose support contains . Assign its primes to the summands, obtaining pairwise coprime with product . There are at most assignments. Fix all summands except the two with smallest . The sum equation and the CRT leave choices for them. Since ,
A nontrivial gcd proper in at least one support has . Thus, on that interval,
The joint probability of successes with this gcd is the product of their success probabilities times . Sum over divisors of the first support, at most , and use the maximum success weight on the other tuple. Together with the identical-support estimate, this bounds the ordered overlap sum by
By Janson’s inequality [5 formula (2)], on the good exposures the conditional probability of a gap is at most
If , the right side is summable in , so Borel–Cantelli and eventual occurrence of good exposures give cofiniteness. If , (8) is summable when . For any , the expected fraction of gaps on good exposures in the dyadic block is at most
This is summable in . Markov and Borel–Cantelli give density zero for gaps on good exposures. Since almost surely there are only finitely many other targets, this proves density one for .
Positive probability of coverage at equality
Set and . In the multiplier construction allow primes from a fixed lower cutoff , beyond the capped primes, through . Call suitable if
The full pool product before removing prime divisors of satisfies
For its logarithm the centered terms have summable variances, and their expected terms differ from by an absolutely summable series. The constant has unbounded upper support. Selecting all primes of a long finite initial interval raises the centered partial sum arbitrarily high with positive probability. Its independent remainder has variance tending to zero as the interval increases.
For a suitable target the exclusion of prime divisors costs a factor at most in the pool product. The size truncation of the multipliers retains at least half its weight, by the same bound on the expected as before. It follows that for any large fixed a positive-probability event gives multiplier weight at least for all sufficiently large suitable . On each corresponding good exposure, (7) and the overlap estimates give and , with constants independent of . For large the conditional gap probability is . Borel–Cantelli shows that with positive probability every sufficiently large suitable is represented.
Choose fixed for which covering every suitable has positive probability. This event is increasing in the prime choices, since adding primes increases the sets of represented targets and can only shrink the set of suitable targets. It has positive probability together with selection of all primes through , by conditioning those finitely many bits to one. On this event, from divide out a selected pool prime whenever the current target exceeds and is unsuitable. If the process stops at a suitable target above , multiply its representation by the removed factors. If it stops at an integer at most , the remaining integer and all removed factors belong to . At least one removed prime itself belongs to . For it is suitable because . For use copies of and . Multiplying its representation by covers in this case as well. This proves positive probability of cofiniteness.
Gaps below the critical multiplier
Take and . Write , choose , and expose all primes through . Let denote that exposure and the semigroup using only those selected primes. Take or , with integer , and put
Along each fixed geometric sequence of ’s, almost surely. For this, apply Rankin’s inequality at . The expected Euler product through is for some fixed : its factors differ from by , and . Thus . Markov bounds the probability that the count exceeds by , a summable bound on that sequence.
Switching on an unexposed prime affects only sums with at least one summand divisible by . Write for the semigroup with included. The number of its multiples of through is . The changes in and are bounded respectively by
The forced-prime bound (2) and Hölder’s inequality give expected squares for the change in and for the change in . Reveal the remaining primes after . Orthogonality of the successive conditional expectation differences, with Jensen’s inequality over the future bits, bounds each conditional variance by the sum of conditional squared changes times . Taking expectation over the exposure gives
By Chebyshev and Borel–Cantelli, both variables differ from their conditional means by almost surely along each fixed geometric sequence. Equation (3) shows for either interval.
Discard the targets represented using only exposed primes. Every remaining possible representation has conditional success probability at most . Harris’ inequality on the decreasing events that those representations fail [5 formula (3)] gives the lower bound for the conditional gap probability. Averaging over the retained targets by Jensen gives
Since , the concentration error is negligible against this lower bound. If , taking dyadic blocks gives infinitely many gaps almost surely. At , use on a countable sequence of geometric grids whose ratios decrease to one. The numerator of is nondecreasing between grid points. The resulting lower density is at least .
This finishes the strict sides of the critical-multiplier threshold. It also proves Theorem 1. Indeed, when , cofinite orders are exactly those with for , by the count, the upper bound and the critical gap result. The count excludes order one. Intersecting the probability-one statements over integer gives the formula for .
Stopped martingales at equality
In this section and . Write , for .
Lemma 5.1 (Uniform smooth moment). For all ,
Proof. Set and . The local multivariate membership series at has constant term and coefficient at each nonzero exponent vector, with . At it equals . Majorize its product coefficientwise by . For , the local factor of has constant , linear coefficients , and all coefficients of
degree at least two equal to . At take . This is a coefficientwise majorant because the zeta factors are nonnegative and supply any missing linear mass.
At the weight , the sum of odd-prime linear corrections is
by and Mertens’ estimate [6]. Higher degrees contribute per odd prime, which is summable since . The factor at 2 is bounded. Hence the weighted absolute coefficient mass of is uniformly bounded. Partial summation from (4) gives, uniformly in ,
since . Convolution gives . Here , and , proving (9).
Compensating surviving targets
Let and denote probability and expectation conditional on , with beyond the mandatory primes and above . Take integer , set , and expose the remaining primes in increasing order. For , say is dangerous for if has a representation using and otherwise only primes already selected. At least one summand must be divisible by . This predicate is defined for all past configurations, even when has an earlier representation, and is increasing in the previous prime bits.
Give every initially unrepresented weight 1 and every other weight zero. Choose . At a dangerous prime, if the current weight is positive and unfrozen, first test whether . In that case freeze before exposing the prime. Otherwise set the weight to zero upon selection and to upon exclusion. At other steps the weight stays fixed. The decision to freeze is predictable and each update has conditional mean , so the weights are martingales. A positive terminal weight on an unfrozen target certifies a gap. Its first representation would have killed the weight at its largest prime divisor.
Let be the terminal total weight divided by , and the normalized part that is frozen. Only polylogarithmically many targets can be represented from the mandatory primes alone, so . Each unfrozen terminal weight is at most .
Controlling the variance and the frozen part
At , all updated targets use the same Bernoulli variable. If is the sum of their weights just before the update divided by , the conditional variance of the increment is . Each active weight is at most . Let be the Euler product through , with the actual preceding choices and provisionally selected. The number of dangerous targets is at most the number of ordered tuples with some coordinate divisible by from this provisional semigroup. Rankin bounds that number by , using . The unconditioned local moment factors at large primes are . The factor at is uniformly bounded, and the exclusions in can only decrease the product. Mertens’ estimate and orthogonality of increments give
This tends to zero as increases, uniformly in .
For an initially unrepresented target , use its terminal weight as the density of a new probability measure relative to . Its mean is 1, and the density at an earlier exposure step is the current weight. The tilt forces exclusion when an update takes place. At all other steps, including the decision that freezes a weight, the prime retains its probability . Under coupling by common uniforms, the tilted prime set is therefore contained in the original prime set.
Put . This is increasing in the exposed bits. Before a freeze on a tilted path, every dangerous prime is excluded and multiplies the weight by . Thus at the proposed freeze at the current log-weight is the hazard just before , and the proposed update gives . Split the primes into intervals , where and . In the original process
Indeed, danger is determined by the past. Its probability times is at most the expected count of representations with largest prime divisor . Also . On the -th interval a freeze requires . The expected stopped mass is the sum of the tilted freeze probabilities over initially unrepresented targets, divided by . Monotone coupling and Markov’s inequality bound it by
The conditional count in (11) is dominated by the unconditioned count. By Lemma 5.1, the summands are at most . For each fixed , the limsup of the summand as is at most , from the count limit and . Equation (5) and dominated convergence give .
By (10) and Chebyshev, the probability that is small for large and large . Markov bounds the probability that . Otherwise , certifying at least genuine gaps. Taking the limsup along dyadic gives conditional probability tending to one, as , of infinitely many blocks with at least gaps. Every has positive probability, so infinitely many gaps occur with positive probability unconditionally. § 3 gives positive probability of cofiniteness, finishing Theorem 2.
Finite changes of selected primes
Let denote the cofinite event at equality. It is measurable, since representability for each target depends on finitely many prime bits. The saturation of under finite changes of optional bits is the countable union of its finite-coordinate translates. It is measurable and belongs to the tail sigma field. For each prefix, membership can be tested by replacing that prefix with one fixed choice and then testing the same saturation. The same argument applies to the saturation of . Both saturations have positive probability by Theorem 2, so both have probability one by Kolmogorov’s zero-one law.
Take a realization in both saturations. A finite change that gives may be replaced by adding its newly selected primes, by monotonicity. A change that gives may be replaced by removing the primes it deletes, for the same reason. In particular, forcing all optional bits up to to one eventually gives , and forcing them to zero eventually gives . Under the original product law the resulting realizations have the conditional laws given and , respectively. Dominated convergence gives both conditional limits in Corollary 3. Theorem 2 also implies that is outside the tail sigma field, even modulo null events.
For the selected primes themselves, the prime number theorem and partial summation give
almost surely.
The variance of this prime count is at most its mean. Chebyshev on geometric grids, followed by Borel–Cantelli and a squeeze as the grid ratios approach one, proves the stated almost-sure asymptotic. Finite changes affect the count by . For the generated semigroup, a finite change preserves the growth exponents in (1) and multiplies the leading constant by
This follows by multiplying the corresponding finite Euler factors and reapplying the counting argument.
In fact, at equality the two outcomes have least basis orders and , respectively, for almost every realization and for all its finite optional modifications. Orders below are excluded by (1), and order is cofinite by the coverage proof, since . The latter assertion holds simultaneously under all finite optional changes: any prescribed change of finitely many optional bits is absolutely continuous with respect to the original law, and the possible changes form a countable family.
A quantitative description of the endpoint probability in terms of the counting constant and local representation densities remains open.
AI assistance and review. ChatGPT (OpenAI) assisted with mathematical arguments, literature checks, exposition, proof review and verification code.
References
- [1]Y. Cao, Z. Huang and R. Zhang, Effective equidistribution, arithmetic purity of strong approximation, and geometric sieve for affine quadrics, arXiv:2509.23320v1, 2025.arxiv.org/abs/2509.23320
- [2]H. Delange, Généralisation du théorème de Ikehara, Ann. Sci. École Norm. Sup. (3) 71 (1954), 213–242. doi:10.24033/asens.1023.DOI
- [3]P. Erdős and A. Rényi, Additive properties of random sequences of positive integers, Acta Arith. 6 (1960), 83–110. doi:10.4064/aa-6-1-83-110.DOI
- [4]P. Erdős and P. Tetali, Representations of integers as the sum of k terms, Random Structures Algorithms 1 (1990), 245–261. doi:10.1002/rsa.3240010302.DOI
- [5]S. Janson and L. Warnke, The lower tail: Poisson approximation revisited, Random Structures Algorithms 48 (2016), 219–246. arXiv:1406.1248v1.DOI
- [6]J. B. Rosser and L. Schoenfeld, Approximate formulas for some functions of prime numbers, Illinois J. Math. 6 (1962), 64–94. doi:10.1215/ijm/1255631807.DOI