Erdős Problem #538
Erdős ProblemThe problem
Let and suppose that is such that, for any , there are at most solutions to where is prime and . Give the best possible upper bound for
(Erdős Problem #538 — number theory — https://www.erdosproblems.com/538)
Result
The best possible bound is Θ_r(log N / log log N): Erdős's 1973 upper bound Σ_{a∈A} 1/a ≪ r·log N/log log N is optimal up to constants, witnessed by an explicit construction achieving that order — answering how large the reciprocal sum can be.
-- upper bound (universal): for every admissible A ⊆ {1,…,N},
-- log(log(N+1)) · Σ_{a∈A} 1/a ≤ 2r(1 + log N²)
-- lower bound (construction): for every N there is an admissible A with
-- log(N+1) ≤ 4 + 8192·(1 + log₂ log₂ N) · Σ_{a∈A} 1/a
-- together: Σ_{a∈A} 1/a = Θ_r(log N / log log N)
theorem erdos538_matching_order : Erdos538.MatchingOrderIndependent referee
The agent claims Erdős #538's extremal reciprocal sum is Θ_r(log N/log log N), proven as the sorry-free Lean theorem Erdos538.erdos538_matching_order: an explicit universal upper bound log log(N+1)·S(A) ≤ 2r(1+log N²) plus explicit cap-two admissible witnesses with log(N+1) ≤ 4+8192(1+log₂log₂N)·S(A), for all r≥2, N≥2, using the pinned Admissible/reciprocalMass definitions verbatim. I re-ran the checker (PASS), performed a clean from-source rebuild of all 40 proof files in an isolated copy (8597 jobs, success), and kernel-audited the final theorem, which depends only on propext/Classical.choice/Quot.sound with no proof escapes anywhere in the sources; the formal statement matches problem.md quantifier-for-quantifier under the checker contract's explicitly sanctioned asymptotic reading. Statement fidelity, machine verification, evidence completeness, and ledger consistency all check out.
Report
Erdős Problem #538: the matching-order bound
The problem and why it is hard
For fixed , let satisfy the condition that every integer has at most representations
with prime and . The problem asks for the best possible upper bound on
A weighted incidence count gives the natural upper scale
The difficulty was proving that this scale is attainable. On a squarefree layer with exactly prime factors, write an integer as its -element set of prime divisors. The representation condition becomes a hypergraph condition: among the facets of every -set, at most may be selected. For , this is the daisy problem.
The elementary upper density is of order , but previously available general constructions were only around , up to logarithmic improvements. That missing factor of became exactly the missing factor of in the number-theoretic problem.
Where the standard approaches stalled
Many natural constructions impose a checksum, coloring, or deletion code on each -set. They generally need two independent rare events:
- enough distinct colors to identify a deleted coordinate; and
- a checksum or syndrome condition to limit the number of accepted facets.
Each event costs roughly , leaving density . We verified this obstruction for the balanced rainbow-checksum template and saw the same scale recur in extensive experiments with rooted trees, tries, permutations, cyclic orders, tournaments, Pfaffians, ordered words, and singular matrices.
The broader issue is that generic hypergraph coloring treats forbidden triples as unrelated local constraints. It throws away the decisive geometry: all facets of one parent live in a single two-dimensional relation space. The successful construction had to control that entire parent space at once rather than attach an almost-independent syndrome to each child.
Arithmetic detours did not remove the obstruction. Prime reciprocal weights, the product cutoff , and nonsquarefree exponent cores all reduce back to the same daisy coefficient under weighted blow-ups or square-kernel decomposition. The real bottleneck was genuinely combinatorial.
The key insight: safe isotropic kernels
Fix and an odd finite field , with comparable to . Label each ground vertex by
For a -set , define
Call favorable when:
- is surjective, so its relation space is a line;
- a generator of that line has full support;
- ; and
- the coefficient vector is nonzero.
A favorable child is called safe if no outside vertex extends it to a parent whose two-dimensional relation space is totally isotropic for the same diagonal bilinear form.
Why the family has cap two
Consider a -set . A selected facet missing contributes an isotropic relation in the parent relation space whose unique zero coordinate is . Full support makes the relation lines from distinct selected facets distinct.
One selected facet already forces the parent relation space to be two-dimensional. If three facets were selected, that plane would contain three distinct isotropic lines. For a symmetric bilinear form in odd characteristic, three such lines force the form to vanish identically: if are two isotropic generators and is a third distinct isotropic line, then and
so as well. The whole plane is therefore totally isotropic, contradicting the safety condition. Thus every parent contains at most two selected facets.
Why the density is
The favorable samples admit an injective finite-field parameterization. Its exact cardinality is
When , this gives favorable density at least .
After a favorable child is fixed, one outside label makes its parent relation plane totally isotropic only when two equations hold: one nonzero linear equation and one uniquely determined scalar equation. The dangerous fraction is exactly
On a ground set with , a union bound leaves at least half of the outside assignments safe. Averaging over all global labelings therefore yields a cap-two family of density at least .
Bertrand's postulate supplies an odd prime . Taking and gives, for every , a cap-two -uniform family of density at least
This closes the daisy density gap at the order needed here.
Returning to the integers
A weighted coloring argument transfers the palette to any exact squarefree -prime-factor layer. First, color prime supports into colors so that at least half of the reciprocal weight is rainbow. Then average over permutations of the colors so that at least a fraction of that rainbow weight lands in the safe-kernel palette.
The resulting integer subfamily retains at least
of the reciprocal mass of that layer and satisfies the original representation cap two. Repeated colors do not create a hidden multiplicity problem: in a non-rainbow parent, at most the two occurrences in the unique repeated pair can yield rainbow facets.
Exact prime-factor layers can be united without adding their representation caps, because all representations of a fixed come from one -layer. Truncating at , and using the squarefree harmonic-mass and first-moment estimates, gives an admissible cap-two family satisfying the explicit inequality
Thus
Together with the incidence upper bound, the best possible order for every fixed is
Verification
The entire argument was formalized in Lean 4 with Mathlib. The final theorem uses the exact audited definitions of:
- a finite set ;
- every solution pair to ;
- the universal cap over every ; and
- the rational reciprocal mass .
The verified chain includes the finite-field counts, injectivity of the favorable parameterization, the exact danger fraction, the parent cap, weighted relabeling, multiplicity-aware pattern transfer, integer-layer retention, harmonic truncation, and the final upper/lower theorem. The complete Lean project builds successfully, and the copied final artifact verified_math/F-080_final-matching-order/Proof.lean kernel-checks without sorry, admit, or additional axioms.
Download Full Solution & Verify with Your AI
The download contains everything needed to verify this solution independently: the original problem, the formal statement, the complete pinned Lean project, and the verifier script — plus step-by-step instructions for your agent. About 20 minutes, mostly downloading Mathlib.