1 Introduction
How large can a set of positive integers be if every sum of two distinct elements has its prime factors in a fixed, small collection? The question places a multiplicative restriction on an additive operation. Prescribing only the number of primes asks more than prescribing the primes themselves: the primes can be arbitrarily large, and the integers can contain arbitrarily high powers. A bound in terms of the number of primes must therefore be independent of both kinds of arithmetic height.
For a finite set , put
Throughout, ; when positivity is required, we state it explicitly. The extremal function in Erdős Problem 126 is
The minimum exists because the collection is nonempty and its values are nonnegative integers. The product over ordered distinct pairs used in the formal statement has the same prime support as the product over unordered pairs. Thus the order and multiplicities of the factors do not affect .
In their first joint paper, Erdős and Turán [6] proved an elementary cardinality bound that is exponential in the number of supporting primes. In present notation, their estimate for positive sets is
in the nontrivial range. It yields a logarithmic lower bound for the extremal prime-support function. For the upper bound, consider the interval . Every relevant sum is at most , so the prime number theorem gives . Erdős later asked whether eventually exceeds every fixed multiple of , that is, whether
(1)
Subsequent work developed both arithmetic and combinatorial approaches. Győry, Stewart and Tijdeman [9] treated prime factors of sums from two sets using methods involving -unit equations. For , they obtained an effective logarithmic lower bound in for the number of prime factors of the full product of the sums . Their result concerns a two-set product, which differs from the off-diagonal same-set product studied here. Wu [11] introduced -graphs and improved the Erdős–Turán bound for positive sets to
He also proved that this estimate is sharp when . These results distinguish the quantitative problem from the simpler assertion that a set with prescribed supporting primes is finite.
The construction developed below originates in a formal resolution produced by GPT-6 Astra in the FrontierMath Erdős benchmark [1, 2]. That argument gives a quadratic cardinality bound. We present it as a conventional mathematical proof, with the arithmetic construction and analytic mechanism made explicit. We do not claim independent discovery of the construction. Its abstract combinatorial step is isolated and proved in the companion paper [4]; here we establish that theorem’s hypotheses from prime-power divisibility. Appendix A identifies the source and distinguishes the selected alternate resolution from the repository’s primary resolution.
Theorem 1.1 Quadratic prime-support bound
Let be a finite set of distinct positive integers with , and let . Then
(2)
The estimate is independent of the values of the elements and the supporting primes. Removing a possible zero gives the uniform statement
(3)
For this implies
(4)
and consequently (1). Section 6 gives the zero reduction and the deduction for . The restriction in Theorem 1.1 is essential because a singleton has empty prime support. The same restriction ensures that the square root in (4) is defined over the reals.
The proof combines valuation counts, refinement of residue classes, and signs. The exponent of a prime in a sum counts the prime-power levels at which the two residues are opposite. Negation orbits at successive powers refine one another, so their supports form a laminar family. A single binary colour for each prime consistently distinguishes the two sides of every represented non-self-opposite orbit. Logarithmic weights retain the valuation counts, laminarity records refinement, and a signed kernel encodes the colours. Together with conditional negative type, these are the ingredients required by the abstract theorem.
Two familiar reductions help explain why this structure is useful. Choose distinct anchors and let . If is the multiplicative group generated by , then and belong to and satisfy
Both terms are nonzero, so these are nondegenerate solutions of a fixed two-variable equation in , which has rank . Different give different solutions. Uniform results on equations in finite-rank multiplicative groups, such as the theorem of Evertse, Schlickewei and Schmidt [7], therefore bound in terms of . Applied in this way, their general estimate is exponential in and gives a logarithmic prime-support lower bound. This reduction, however, no longer records the relations between two freely varying elements of .
A matrix formulation retains more of the pairwise information. For this comparison, consider the sum matrix . It has rank at most two, since
and its off-diagonal entries lie in . This connects the problem to the results of Alon and Solymosi [3] on matrices with entries in a multiplicative group. The argument here uses further properties of this matrix: positivity, symmetry, and the simultaneous refinement of congruences modulo all powers of every supporting prime. This comparison identifies the additional structure used below; it does not rule out refinements of the -unit or low-rank approaches.
Section 2 states the abstract input, and Section 3 constructs the prime colours and proves laminarity. Section 4 derives the exact sum identity and the difference inequality, including the correction for self-opposite residues. Section 5 proves the conditional negative type of and transfers it to the arithmetic cross kernel. Section 6 applies the companion theorem without repeating its matching and energy arguments. Section 7 illustrates the construction with explicit matrices.
2 Notation and the abstract input
We also use the inverse extremal function
Equivalently, one may choose a set of exactly primes and maximize the cardinality of a set whose distinct pairwise sums are supported on those primes, then take the supremum over the choice of primes. A smaller supporting set can always be enlarged with unused primes. Taking subsets shows that exactly when . The classical exponential estimate, after removal of a possible zero, ensures that is finite. Inverting this monotone relation shows that (1) is equivalent to , or . The uniform bound proved here gives the stronger estimate .
Let be a finite index set of size , and let
be injective. Write , , , and . If is prime and is a positive integer, denotes its -adic valuation. Unique factorization gives the identity
(5)
The empty sum for is zero. Every logarithm is the natural logarithm.
Choose an integer such that
(6)
There are finitely many pairs and supporting primes, so a common cutoff exists. We include diagonal pairs for convenience, although is defined using distinct pairs; this does not assert that every prime divisor of belongs to . The cutoff makes the construction finite. Its size does not enter the final estimate, which is independent of the largest valuation.
For a symmetric real kernel define
The kernel is positive semidefinite if for every . It is conditionally negative semidefinite, abbreviated CND, if whenever . Only finite-dimensional kernels are needed here; general references are [5, 10].
A family of subsets of is laminar if any two members are disjoint or one contains the other. We allow a finite collection of labelled nodes with repeated underlying subsets. Laminarity concerns the subsets, while nodes with the same support may carry different weights. This convention is necessary because equal supports at different prime-power levels encode separate units of valuation.
The following result from the companion paper is our combinatorial input.
Theorem 2.1 Signed laminar-kernel theorem, [4, Theorem 2.1]
Let be a finite label set with . For each let be a finite collection of labelled subsets , each of cardinality at least two, which is laminar for fixed . Assign weights and signs . Set
and define
If , is CND, and for all , then .
The companion paper proves this theorem using a signed Gram estimate and a matching estimate for laminar families. We recall only its statement; the arithmetic construction below can be checked without those proofs. We must construct the families, weights and signs, then establish conditional negative type and strict separation. These are the points at which the arithmetic argument meets its combinatorial input.
Strict separation requires more than a positive semidefinite family kernel. Membership vectors readily provide such a kernel, but positive semidefiniteness alone does not force a cardinality bound. After the signs split each local kernel, the cross-colour contribution must strictly exceed the same-colour contribution for every distinct pair. We will obtain this comparison from two logarithmic expressions with a common correction term.
3 Prime colours and mixed negation orbits
3.1 A colour that works at every prime-power level
For a positive integer and a prime , write
The integer is the unit part of . For odd , let be its least positive residue modulo , and set
(7)
There is no equality case. At , define instead
(8)
The colour depends only on the integer and the prime, so the same choice applies at every level. For odd primes, the leading nonzero digit determines which half of the nonzero residue system contains the unit residue. At the prime two, all odd parts are congruent modulo two; reduction modulo four supplies the distinction we need.
Lemma 3.1 Prime-colour separation
Let be prime, , and . If
then .
Proof
Suppose first that is odd, and put . The second hypothesis gives . If , the valuation of is the smaller of the two valuations and hence is less than , a contradiction. Thus . Write and with . Cancelling gives . The least positive residues of and add to , so exactly one is smaller than . Their colours are therefore opposite.
Now let and put . The hypothesis gives . Again, the valuation of must equal . Write and with odd. Divisibility of the sum gives . Since , the odd parts are opposite modulo four: one is congruent to and the other to . This proves the assertion.
The nondivisibility condition excludes exactly the obstruction to orienting a negation orbit. Modulo , a residue is its own negative precisely when . The lemma applies when the residues are opposite and the first is not self-opposite. Since , either both residues are self-opposite or neither is. The statement is therefore symmetric in and .
3.2 The represented orbits
For and , write
The involution partitions this residue group into one-element and two-element orbits. A two-element orbit is called mixed if both fibres and are nonempty. Its support is
(9)
Each unordered orbit is included once, regardless of the choice of representative. A node records both its level and its orbit. Every retained support has at least two vertices, one from each fibre.
Mixedness ensures the size condition in Theorem 2.1 and supplies a witness on the opposite side of each fibre. The prime-colour lemma can then be applied to every vertex of the fibre. If only one side were present, that residue class could contribute family mass without any corresponding opposite-residue pair. We therefore omit such classes from the laminar families.
Lemma 3.2 Laminarity
For a fixed prime , the supports of the mixed orbits over all levels form a laminar family. Repeated supports with distinct level labels are allowed.
Proof
At a fixed level, distinct negation orbits are disjoint. Now suppose , let be the support of a mixed orbit modulo , and let be the support of a mixed orbit modulo . If is empty, there is nothing to prove. Otherwise choose . For , we have . Reducing modulo gives . Since , both possibilities belong to the lower-level orbit defining . Hence .
The proof uses only the compatibility of reduction with negation. A higher-level orbit need not have a retained mixed ancestor at every lower level: it may reduce to a self-opposite residue, which is omitted from the mixed family. Laminarity concerns two retained nodes when they intersect, and the reduction argument covers exactly that case.
The supports can be pictured as a forest ordered by containment. Higher-level orbits may split a lower-level support into disjoint groups, but cannot merge groups that were already disjoint. Some levels contribute no retained node; successive levels may also give the same underlying support. These repetitions must remain in the weighted collection. Whenever a pair remains opposite through several prime-power levels, each level contributes one unit of valuation, whether or not the support has changed.
The signs orient every retained node consistently. Opposite fibres have opposite colours by Lemma 3.1. If lie in the same fibre, choose in the other fibre. Both have colour opposite to , so their colours agree. Thus, within a mixed support, two vertices have the same colour exactly when they lie in the same fibre, and opposite colours exactly when they lie in opposite fibres. The single function on all vertices therefore produces compatible bipartitions of the nodes, rather than an arbitrary bipartition of each node separately.
3.3 Family kernels
Let be the finite collection of level-tagged mixed nodes, with support for . Give each node for the prime the weight , and define
(10)
The entries are nonnegative, and for every real vector ,
(11)
Each support’s membership vector contributes a rank-one positive semidefinite kernel. Since , their weighted sum is also positive semidefinite.
Using the signs , split these local kernels into
(12)
(13)
Both kernels are symmetric and entrywise nonnegative. The cross-colour kernel has zero diagonal, while the same-colour kernel carries all the family diagonal mass:
These are the kernels required by Theorem 2.1. Conditional negative type and strict separation do not follow from laminarity or positive semidefiniteness alone; we establish them using the arithmetic identities below.
4 The baseline and the two logarithmic comparisons
4.1 Self-opposite residues
At a fixed level, means . For a two-element orbit, the vertices witness mixedness, and the cross-colour kernel detects the event. For a self-opposite residue, both vertices lie in one fibre, so there is no two-sided orbit to retain. We restore these missing events with a correction whose quadratic form has the required sign.
Set
and define
(14)
For odd , zero is the only self-opposite residue. For , the self-opposite residues modulo are and . The formula covers both cases. Define the global baseline by
(15)
Lemma 4.1
The kernel is positive semidefinite.
Because the correction is a sum of same-fibre kernels, its positive semidefiniteness follows directly from a sum of squares. It is not an arbitrary matrix chosen to repair the arithmetic identity. We will subtract it from an analytic CND kernel, preserving the required inequality for zero-sum vectors.
4.2 A levelwise identity for sums
At level , let count retained mixed supports containing with different -colours. At most one orbit contains the pair, so this count is zero or one. The orientation of each mixed orbit gives
(16)
Indeed, opposite non-self-opposite residues contribute to , while opposite self-opposite residues are equal and contribute to . Conversely, either contribution implies opposite residues. The two cases are disjoint.
The identity also holds on the diagonal. A vertex has the same colour as itself, so . The condition on the right says exactly that its residue is self-opposite, as detected by the baseline.
Weighting and summing (16) yields
(17)
For , every prime factor of the sum lies in , and the cutoff captures its full valuation. Equation (5) therefore gives
(18)
This is where the prime-support hypothesis enters; constructing the local kernels did not require it.
4.3 An inequality for differences
Let count retained mixed supports containing with the same -colour. Within a mixed support, equal colours mean equal residues. Thus a contribution from either or the baseline forces equal residues, and the two possibilities are disjoint. It follows that
(19)
The inequality can be strict. Two vertices may share a non-self-opposite residue whose opposite fibre is absent from . They are congruent, but no mixed node is retained and the baseline does not include their residue. The difference relation is therefore an inequality rather than an identity.
For put . Summing (19) gives
(20)
The difference need not be supported on . Omitting primes outside and powers above the cutoff can only decrease the nonnegative valuation sum. Injectivity of ensures , so its logarithm is defined and its valuations are finite.
The diagonal requires a separate, one-sided estimate. Since , the diagonal case of (17) gives
(21)
All summands are nonnegative, so omitting prime divisors of outside preserves the inequality. The resulting diagonal slack has the required sign in the CND argument.
Proposition 4.2 Strict separation
For all distinct , one has .
Strictness comes from comparing the sum and difference as positive real numbers; no estimate of an individual valuation is needed. The common baseline allows the comparison to pass to and . Discarding the self-opposite levels would remove that common correction and prevent this direct use of the inequality between sum and difference.
The logarithmic weights serve a precise purpose. Valuations add under multiplication; weighting each by and summing over the prime divisors gives exactly . Unit weights would instead count prime factors with multiplicity, without retaining their sizes. Such a count has no corresponding strict monotonicity under . The weights are therefore chosen to produce the logarithmic comparison used in the proof.
5 Conditional negative type and the Möbius substitution
With strict separation established, it remains to show that is CND. We do not need to establish negative type for its individual prime components. Instead, we use the logarithmic expression obtained by combining all the prime-power contributions.
Lemma 5.1 Additive logarithm kernel
For positive real numbers , , the kernel is conditionally negative semidefinite.
Proof
Put
Positivity gives . A direct calculation shows
Every factor is positive, so taking logarithms gives
(22)
Let satisfy . The first three terms on the right contribute zero to . For example,
The column term and constant term vanish in the same way. Thus
Use the absolutely convergent expansion
Since there are finitely many , we have . The terms are bounded by a fixed multiple of , so we may interchange the finite sum over the indices with the series. This gives
(23)
The substitution maps the positive half-line into , where a power series separates the two variables. The zero-sum condition removes every term depending on only one index. What remains is , whose coefficients produce negative squares. This explicit decomposition is an elementary instance of the classical theory of negative-type kernels [5, 10]; no general representation theorem is required.
The scale in the Möbius substitution is arbitrary. Replacing it by any positive gives . In (22), the row and column terms then use and in place of and , and the constant becomes . The same zero-sum cancellation applies. The analytic statement therefore has no preferred arithmetic scale: the substitution places the finitely many positive inputs inside the interval of absolute convergence.
We now specialize to . Define
By (21), is a nonnegative diagonal matrix, hence positive semidefinite. Together with , equation (18) gives the full matrix identity
(24)
The explicit diagonal correction allows us to use the off-diagonal identity in the full quadratic form.
Proposition 5.2
The cross kernel is symmetric, has zero diagonal, and is CND.
The two corrections account for different omissions. The baseline restores self-opposite events off the diagonal. The diagonal correction accounts for prime divisors of outside , where no exact factorization identity is available. Subtracting these positive semidefinite corrections preserves the required negative inequality. Entrywise inequalities would not suffice off the diagonal, since can have either sign. We use exact equality there and allow an inequality only on the diagonal, where the coefficients are squares.
6 Applying the combinatorial theorem
Proof of Theorem 1.1
Apply Theorem 2.1 with . For each prime , use the level-tagged mixed supports from Section 3, give each node weight , and take the sign . Mixedness ensures that every support has at least two elements. The weights are positive, and Lemma 3.2 gives laminarity. The family kernels and their same-colour and cross-colour parts are exactly (10)–(13). Proposition 4.2 gives for distinct indices, and Proposition 5.2 gives conditional negative type. All hypotheses hold, so .
This is the only application of the companion theorem. The arithmetic work is complete at this point: the abstract result does not use the fact that the labels are primes or the particular formula for their weights. Conversely, the arithmetic construction does not require a choice of the matching used to prove that result. This separation allows the theorem about signed laminar families to be stated and proved independently of the number-theoretic problem.
Corollary 6.1 Uniform natural-number bound
Every finite satisfies (3).
Proof
Let and put . If , then . Otherwise Theorem 1.1 applies to , and gives
This is stronger than the asserted uniform inequality in that case.
At most one zero is removed. The allowance of two in the uniform formula covers both this removal and the small exceptional sets; it does not count two deleted vertices. For example, has cardinality two and no supporting prime, so an additive allowance is necessary. A positive singleton is excluded from Theorem 1.1 by the hypothesis .
Corollary 6.2
For the function defined in the introduction and all , inequality (4) holds. In particular, as .
If is defined using only positive sets, the same argument gives for . The interval example still gives , leaving a substantial gap between the square-root lower bound and the interval upper bound. The proof does not establish optimality of the exponent for prime support. Sharpness in the more general signed laminar framework is discussed in [4]; results about that framework need not settle the arithmetic extremal problem.
Corollary 6.3 A refinement from fractional matching
Under the hypotheses of Theorem 1.1, one also has
Proof
Apply the refined signed laminar-kernel bound in [4, Proposition 5.2] to the same families, weights and signs. The hypotheses verified above are unchanged.
The refinement comes from the companion paper’s analysis of the abstract constant. It leaves the arithmetic construction unchanged, and we do not repeat its fractional-matching proof. We retain as the principal estimate to present the quantitative route in the originating source. The refined constant improves the resulting lower bound without changing its square-root scale.
7 A three-element example
Take , with vertices indexed in that order. The off-diagonal sums are , so . The cutoff also covers the valuations in the diagonal sums .
For , the signs of are , respectively, since their odd parts are . At level one, all residues modulo two are self-opposite, so there is no mixed node. At level two, the orbit is mixed and its support consists of the first and third vertices. The residue of is self-opposite modulo four.
For , the mixed orbit at level one is , supported by the first and second vertices; the vertex has zero residue. There is no mixed orbit modulo nine. For , the level-one orbit is supported by the second and third vertices, and there is no mixed orbit modulo twenty-five. These are the only retained nodes. Each consists of a pair whose vertices have opposite colours for the corresponding prime.
Writing , the family kernels therefore give
The baseline is
The nonzero off-diagonal baseline entry records that and have the same self-opposite residue modulo two. Their sum is divisible by two, but this level contributes no mixed orbit. At the next level, their residues are opposite and non-self-opposite, so the cross kernel contributes a second . Thus , as required.
For the other two pairs, the baseline vanishes and the cross entries are and . The diagonal entries of the baseline are exactly , , , so in this example. Hence is the full kernel . Strict separation is immediate: every off-diagonal entry of is zero, while every off-diagonal entry of is positive.
The baseline need not be a small error term: here it contains half the logarithmic mass of the sum . The argument uses its exact arithmetic meaning and positive semidefiniteness, without requiring a bound on its size. For larger sets, mixed supports may contain many vertices and recur at several levels. The identities still hold because they were proved separately for each prime-power event.
Funding
This research received no funding.
Competing interests
The author declares no competing interests.
Data and code availability
No empirical dataset was generated or analysed for this theoretical study. The public formal source and its fixed revision are identified in Appendix A and reference [2]. The abstract combinatorial input is given in the companion manuscript [4]. The scope of source inspection and formal verification is stated in Appendix A.
Ethics statement
This work is a mathematical study and involves no human participants, animals, or personal research data. Ethics approval and participant consent do not apply.
- 1 Adamczewski T, Bloom TF. FrontierMath Erdős. 2026. arXiv:2609.25050. https://arxiv.org/abs/2609.25050.
- 2 Adamczewski T (repository maintainer). Erdős problem #126: proof. Public Lean source repository; 2026. Commit abd42394bc47d58440dd3db4c3bd1ffa19b403de. https://github.com/tadamcz/erdos126. Selected quadratic source at the pinned revision.
- 3 Alon N, Solymosi J. Rank of matrices with entries from a multiplicative group. International Mathematics Research Notices. 2023;2023(14):12383–12399. https://doi.org/10.1093/imrn/rnac183.
- 4 Bao S. Signed laminar kernels and a quadratic cardinality bound. Companion manuscript; 2026. Theorem 2.1.
- 5 Berg C, Christensen JPR, Ressel P. Harmonic Analysis on Semigroups: Theory of Positive Definite and Related Functions. Graduate Texts in Mathematics; vol. 100. New York: Springer; 1984. https://doi.org/10.1007/978-1-4612-1128-0.
- 6 Erdős P, Turán P. On a problem in the elementary theory of numbers. The American Mathematical Monthly. 1934;41(10):608–611. https://doi.org/10.2307/2301909.
- 7 Evertse J-H, Schlickewei HP, Schmidt WM. Linear equations in variables which lie in a multiplicative group. Annals of Mathematics. 2002;155(3):807–836. https://doi.org/10.2307/3062133.
- 8 Firsching M, Lezeau P, Mercuri S, Horváth MZ, Dillies Y, Sönne C, Wieser E, Zhang F, Hubert T, Agüera y Arcas B, Kohli P. Formal Conjectures: An Open and Evolving Benchmark for Verified Discovery in Mathematics. 2026. arXiv:2605.13171. https://arxiv.org/abs/2605.13171.
- 9 Győry K, Stewart CL, Tijdeman R. On prime factors of sums of integers I. Compositio Mathematica. 1986;59(1):81–88. https://www.numdam.org/item/CM_1986__59_1_81_0/.
- 10 Schoenberg IJ. Metric spaces and positive definite functions. Transactions of the American Mathematical Society. 1938;44(3):522–536. https://doi.org/10.1090/S0002-9947-1938-1501980-0.
- 11 Wu B-L. Sumsets with restricted number of prime factors. Lithuanian Mathematical Journal. 2019;59(2):251–260. https://doi.org/10.1007/s10986-019-09441-0.
References
Appendix A Source and verification scope
The construction originates in
Erdos126/Resolutions/Erdos126_104usd_15h.lean
in Tom Adamczewski’s public repository [2], at commit
abd42394bc47d58440dd3db4c3bd1ffa19b403de.
The repository and benchmark attribute the proof to GPT-6 Astra [1, 2]. In this module, card_le_three_sq gives the bound for positive sets and quadraticBound gives the uniform natural-number bound. The declaration signed_family_card_bound is the abstract input, whose conventional proof appears separately in [4].
The selected module is an alternate resolution. At the pinned revision, Solution.lean imports Erdos126_132usd_25h; the quadratic module belongs to the separate Erdos126Alternates build target. The alternate’s local theorem Erdos126.erdos_126 proves the same terminal statement in its own environment. Identical declaration names do not imply an import dependency. The target statement comes from the Formal Conjectures collection [8].
The source files and import configuration were inspected at the pinned revision. The Lean build and external verification toolchain were not independently run for this paper; compilation and formal-verification claims remain attributed to the repository and benchmark. The mathematical argument above rests on the explicit lemmas and the stated companion theorem, independently of those external checks.
