Star Fleet Math

Built by Colin Snyder · colin@colinsnyder.com

Advised by Mike Kim · proposed solutions ↓

Inspired by Ignis · previously built by Myself, Dhruv Agarwal, & Nitin Kesarwani at the New Turing Institute

Released on July 13th, 2026.

Star Fleet is an AI system that solves the world's hardest open mathematics problems using Lean 4. It's a Mac desktop app that controls up to 20 custom agentic harnesses called “starships” in parallel, each running its own GPT-5.6 instance on a dedicated 60-vCPU server and working on a separate math problem. Everything is built from scratch in TypeScript & Bun.

Each starship has access to:

Proposed Solutions (19)

Many problems listed as “open” carry informal or partial answers already available online; we tried extremely hard to avoid working on any such problems (but most likely failed in certain cases). If there are attribution mistakes, please let us know.

Full Solutions (13)

  • 1) Erdős Problem #123Erdős Problem
    www.erdosproblems.com/123
    Question

    Let a,b,c1a,b,c\geq 1 be three integers which are pairwise coprime. Is every large integer the sum of distinct integers of the form akblcma^kb^lc^m (k,l,m0k,l,m\geq 0), none of which divide any other?

    (Erdős Problem #123 — prize: $250 — number theory — https://www.erdosproblems.com/123)

    Result

    For every pairwise-coprime triple of integers a,b,c>1, every sufficiently large integer is a sum of distinct terms a^i b^j c^k such that no selected term divides another. In Lean, this is the theorem Erdos123.erdos_123 : Erdos123.IntendedStatement.

    def IntendedStatement : Prop :=
      ∀ a b c : ℕ, 1 < a → 1 < b → 1 < c → PairwiseCoprime3 a b c →
        IsDComplete (Smooth3 a b c)
    
    /-- Erdős Problem 123 for the intended nondegenerate hypothesis `a,b,c>1`. -/
    theorem erdos_123 : IntendedStatement := intended_erdos_123
    Report

    Solving Erdős Problem 123

    The problem and why it resisted the usual induction

    For pairwise-coprime integers a,b,c>1a,b,c>1, consider the numbers

    aibjck(i,j,k0). a^i b^j c^k \qquad (i,j,k\ge 0).

    The question asks whether every sufficiently large integer is a sum of distinct such numbers, with the additional requirement that no chosen summand divides another.

    The divisibility condition is the real source of difficulty. Ordinary completeness arguments can use many terms from different scales, but terms from different scales tend to be comparable by divisibility. Conversely, a set chosen to be a divisibility antichain can be too arithmetically sparse to fill consecutive integers.

    Earlier work had developed a powerful reduction scheme: choose a correction with the required residue modulo one base, subtract it, divide by that base, and induct. For particular triples this succeeds after a finite computer check. In general, however, it leaves a stubborn finite-seed problem: one must first represent every integer in a multiplicatively wide interval [N,CN][N,CN]. The correction induction does not construct that interval; it only propagates it.

    This explains why several attractive partial ideas did not finish the problem:

    • A signed identity of difference one gives two consecutive sums, but one residue representative per class necessarily has spread at least the modulus minus one. A width-one interval cannot grow under ordinary residue gluing.
    • Complete residue systems on a primitive level solve congruences, but say nothing about their numerical spread.
    • Van der Waerden and Hales–Jewett arguments produce arbitrarily long arithmetic progressions of primitive sums, but initially with an uncontrolled common difference.
    • Even after fixing the common difference, a progression B0+rdB_0+r d carries a large positive baseline B0B_0. Replicating such progressions increases width and baseline at the same rate, so it need not produce the multiplicatively wide seed required by induction.

    The important lesson was that large additive width is not enough. The lower endpoint has to remain under quantitative control.

    The homogeneous-level coordinate system

    The first structural simplification is to work on one homogeneous exponent level

    i+j+k=D. i+j+k=D.

    For pairwise-coprime bases greater than one, divisibility of monomials is coordinatewise comparison of their exponents. Therefore two distinct monomials on the same level can never divide one another. Every subset of a homogeneous level is automatically primitive.

    This turns the problem into an additive question about subset sums while making primitiveness essentially free—as long as all pieces of the construction can be placed on the same exact degree.

    An edge-code construction supplies cnc^n primitive subset sums on one level with distinct residues modulo cnc^n and a bounded carry. Coloring by that carry and applying finite van der Waerden, itself obtained from Mathlib’s Hales–Jewett theorem, gives arbitrarily long exact arithmetic progressions of primitive homogeneous subset sums.

    Turning one AP into a large lattice interval

    Order the bases as

    1<a<c<b. 1<a<c<b.

    Choose

    H=edgeDigitDepth(c),u=H+2, H=\operatorname{edgeDigitDepth}(c),\qquad u=H+2,

    and then choose v>0v>0 so that

    2bavcv. 2b a^v\le c^v.

    Define two coprime homogeneous translation weights

    A=au+v,B=bucv. A=a^{u+v},\qquad B=b^u c^v.

    Copies of one AP digit family are translated by the weights

    AMrBr. A^{M-r}B^r.

    The choice u>H+1u>H+1 places different copies in disjoint bands of the bb-exponent. Multiplying every term by abcabc makes every AP term strict-interior. All copies then lie on one exact exponent degree.

    A bounded homogeneous-radix lemma proves that coefficient sums

    r=0MsrAMrBr,0sr<4AB, \sum_{r=0}^{M} s_r A^{M-r}B^r, \qquad 0\le s_r<4AB,

    contain a full interval of width at least 2ABM+12AB^{M+1}. Replacing each coefficient by the corresponding AP digit set realizes this as an interval on a lattice of step abcdabc\,d, where dd is the AP difference.

    Filling residues with face corrections

    The next ingredient constructs, on every sufficiently high exact degree, a primitive correction for each residue modulo any prescribed modulus. The corrections are supported on the three coordinate faces and, in the ordered case, have total size bounded by

    CcorrcD. C_{\mathrm{corr}}c^D.

    Apply this with modulus abcdabc\,d, on the same exact degree as the AP-radix construction. Face-supported corrections are disjoint from the strict-interior AP terms. Moreover,

    Bcu+v=(bc)u>1, \frac{B}{c^{u+v}}=\left(\frac bc\right)^u>1,

    so exponential domination gives

    CcorrcD=o(BM). C_{\mathrm{corr}}c^D=o(B^M).

    Thus the correction spread is eventually smaller than the radix width. Residue gluing converts the lattice interval into an ordinary consecutive interval [LM,UM][L_M,U_M] satisfying

    abcBMUMLM,LMKBM+1 abc\,B^M\le U_M-L_M, \qquad L_M\le K B^{M+1}

    for a fixed constant KK.

    At this stage there is a genuine interval, but its multiplicative width is still only bounded by a constant. This is exactly where the earlier baseline problem remained.

    The key breakthrough: an optional interior shell

    The decisive idea was to exploit monomials that had not yet been used, on the same exact homogeneous level.

    For each of linearly many indices ss, fix a bb-exponent just beyond every AP band. Among the remaining a,ca,c-exponents, choose the last point of the geometric grid

    bsaRkck b^s a^{R-k}c^k

    below a target of size cvMc^{vM}. Because consecutive grid points differ by the fixed factor c/ac/a, the selected monomial lies in a controlled multiplicative window. After restoring the common factors, this produces at least MO(1)M-O(1) distinct optional monomials zz satisfying

    zX,aXcz,X=abcBM. z\le X, \qquad aX\le cz, \qquad X=abc\,B^M.

    Every optional term is therefore no larger than the already available interval width. Adding such a term optionally—either use it or do not—extends a consecutive interval without changing its lower endpoint. Since all optional terms remain on the same exact level and lie beyond the AP exponent bands, primitiveness and disjointness are preserved.

    Their combined contribution is

    Ω(MBM), \Omega(MB^M),

    while the lower endpoint remains O(BM)O(B^M). Hence the ratio of the upper endpoint to the lower endpoint grows linearly with MM. For every requested R>1R>1, and beyond every requested lower threshold, this constructs a primitively represented interval

    [N,RN]. [N,RN].

    This interior-shell amplification is what removes the finite-seed obstruction. The successful coordinate change was not merely “work on a homogeneous level,” but “place the main growth along an interior homogeneous ray, then use the unused transverse strip as optional mass.”

    Completing the induction

    The residue-reduction argument was strengthened to a flexible finite-seed gate: there are constants N0N_0 and C>1C>1 such that any represented interval [N,CN][N,CN] with NN0N\ge N_0 implies d-completeness.

    Applying the arbitrary-width construction with R=CR=C proves d-completeness for ordered bases 1<a<c<b1<a<c<b. Pairwise-coprime bases greater than one are distinct, so every triple has one of six strict orderings. Explicit permutations of the exponents show that permuting the bases leaves the smooth set unchanged, completing all cases.

    Verification

    The proof is formalized in Lean 4 with Mathlib. The final theorem is

    Erdos123.erdos_123 : Erdos123.IntendedStatement
    

    where IntendedStatement quantifies over all pairwise-coprime natural bases greater than one and asserts an explicit eventual threshold for primitive representations.

    The complete project builds successfully, and a source scan finds no proof placeholders. Lean’s axiom report for the final theorem is exactly

    [propext, Classical.choice, Quot.sound]
    

    with no sorryAx. The webpage literally writes a,b,c1a,b,c\ge1; that universal formulation is false at (1,1,1)(1,1,1). The project records this separately and proves the intended nondegenerate a,b,c>1a,b,c>1 conjecture used in the source literature and independent formal-conjecture encoding.

    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.

    ↓ Download full solution raw

  • 2) Erdős Problem #254Erdős Problem
    www.erdosproblems.com/254
    Question

    Let ANA\subseteq \mathbb{N} be such thatA[1,2x]A[1,x] as x\lvert A\cap [1,2x]\rvert -\lvert A\cap [1,x]\rvert \to \infty\textrm{ as }x\to \inftyandnA{θn}=\sum_{n\in A} \{ \theta n\}=\inftyfor every θ(0,1)\theta\in (0,1), where {x}\{x\} is the distance of xx from the nearest integer. Then every sufficiently large integer is the sum of distinct elements of AA.

    (Erdős Problem #254 — number theory — https://www.erdosproblems.com/254)

    Result

    Erdős Problem #254 is true: if A ⊆ ℕ has dyadic shell counts tending to infinity and ∑_{n∈A} ‖θn‖ = ∞ for every real 0 < θ < 1, then every sufficiently large natural number is a sum of distinct elements of A.

    namespace Erdos254
    
    /-- Erdős Problem 254. -/
    theorem erdos_254 : Statement :=
      FinalProof.erdos_254
    
    end Erdos254
    Report

    A Formal Proof of Erdős Problem #254

    The problem and why it is difficult

    Let A ⊆ ℕ. Assume that the number of elements of A in every dyadic shell (x,2x] tends to infinity, and that

    nAθn= \sum_{n\in A}\|\theta n\|=\infty

    for every 0<θ<1, where ‖x‖ is distance to the nearest integer. Erdős asked whether these two hypotheses force every sufficiently large integer to be a sum of distinct elements of A.

    The hypotheses control two very different phenomena:

    • dyadic abundance gives enough additive growth to build sets of subset sums with bounded gaps;
    • phase divergence excludes rational and irrational Bohr obstructions.

    Neither condition alone is close to sufficient. The real difficulty is to assign disjoint elements of A to several roles—two piecewise-Bohr classes, a phase-correction class, and a final syndetic class—without destroying the phase hypothesis or reusing a summand.

    Where the natural approaches stalled

    Several tempting shortcuts are false.

    • Coloring dyadic shells and selecting one “good” color does not preserve every phase. Convergent phases form an additive subgroup, but an intersection of four such subgroups can be irredundant. Thus full divergence for the union does not imply full divergence for one color.
    • Shell-local reserve choices can be defeated after the fact. A concrete four-point shell shows that every one-point reserve can be made the unique nonmultiple of a suitably chosen modulus.
    • Finite modular coverage is not enough. We proved exact tail subset-sum coverage modulo every integer, but irrational Bohr obstructions remain.
    • Choosing correction supports after constructing the Bohr system is circular. Enlarging an interval to accommodate corrections moves the base representations and can reintroduce collisions.
    • Merely rerunning the standard ergodic proof was not practical. The usual Bergelson–Furstenberg–Weiss proof passes through a symbolic system and its Kronecker factor, infrastructure not already available in Mathlib.

    The key was therefore to solve the allocation problem globally and replace the missing ergodic machinery by a finite-cyclic spectral proof that could be kernel-checked from first principles.

    First breakthrough: countably many bad phases

    The decisive structural observation is that dyadic abundance makes the set of phases with finite total mass countable.

    For a fixed bound on

    nAθn, \sum_{n\in A}\|\theta n\|,

    two sufficiently close phases cannot both satisfy that bound. Indeed, if their difference is δ, look at a dyadic shell at scale about 1/(8δ). Every element of that shell contributes a controlled positive amount to the difference phase, and the growing shell cardinality contradicts the assumed bound. Hence every bounded phase sublevel is finite, and the union of those sublevels is countable.

    This converts an uncountable allocation problem into a countable diagonalization. We split off a shell-abundant seed, enumerate only its countably many convergent phases, and balance reserves against those phases. The resulting reserve has syndetic distinct subset sums, while its actual complement still has divergent phase mass for every nonzero phase. Splitting the reserve by rank produces three pairwise-disjoint syndetic finite-sum classes and a disjoint universally phase-divergent correction class.

    That resolves the support-allocation obstruction completely.

    Second breakthrough: a finite-cyclic proof of the BFW theorem

    The remaining input was the Bergelson–Furstenberg–Weiss theorem: the sum of two syndetic subsets of contains a piecewise-Bohr set.

    Instead of formalizing an abstract Kronecker factor, we built the spectral argument from finite cyclic groups.

    Dense aligned blocks

    A syndetic set has a uniformly positive number of points in long finite blocks. Given dense blocks from two syndetic sets, finite cyclic averaging finds a large fiber on which all pairs have the same exact sum. A dense subblock of that fiber has the property that each positive internal difference, after one common translation, belongs to the original sumset.

    Exact spectral measures

    For a signal Φ : ZMod N → ℂ, we proved Parseval’s identity for Mathlib’s unnormalized DFT:

    kΦ^(k)2=NjΦ(j)2. \sum_k |\widehat\Phi(k)|^2 =N\sum_j|\Phi(j)|^2.

    Weighting the Nth roots of unity by these squared Fourier magnitudes gives an exact probability spectral measure. Its Fourier coefficients are normalized cyclic autocorrelations, and its mass at the trivial character is the normalized squared mean of the signal.

    A cofinal ultrafilter and compactness of probability measures produce a limiting circle measure. Portmanteau’s theorem preserves a positive atom at 1, while positivity of a limiting Fourier coefficient forces the corresponding finite pattern to translate into the syndetic sumset.

    Wiener decomposition and piecewise Bohr structure

    For an atomless finite circle measure, we formalized Wiener’s lemma directly. The normalized geometric kernel tends to zero off the diagonal, the diagonal has product measure zero, and dominated convergence gives

    1Nn<Nμ^(n)20. \frac1N\sum_{n<N}|\widehat\mu(n)|^2\longrightarrow0.

    Every finite measure then splits into:

    • a countable atomic Fourier series, uniformly approximable by finitely many characters;
    • an atomless remainder with squared-Cesàro-null Fourier coefficients.

    The positive atom at 1 makes the finite atomic approximation uniformly positive on a finite-dimensional Bohr neighborhood. The error is smaller than a fixed threshold on a thick set. Their intersection is therefore contained in the Fourier-positivity set.

    Finally, compact-rotation return times are syndetic. This lets a smaller pure Bohr neighborhood embed into the piecewise-Bohr set, and the finite-embedding ultrafilter argument transfers it into the original sumset. This yields the full BFW theorem in exactly the finite-torus form required by the number-theoretic argument.

    Final assembly

    Apply BFW to two of the three disjoint syndetic finite-sum classes. Their sum contains a finite-dimensional piecewise-Bohr return set.

    The universally phase-divergent correction class has distinct subset-sum phases dense in the relevant closed torus subgroup. Compactness supplies finitely many corrections that move every large orbit point into the BFW open set. Because all source classes were chosen disjointly in advance, these corrections cannot reuse a base summand. The third syndetic class fills the remaining bounded gaps.

    Consequently, every sufficiently large natural number is represented by a finite set of distinct elements of A.

    Verification

    The formal statement was pinned independently before proof development. The checker byte-compares the canonical statement and root import, rejects every sorry or admit, deletes project build objects, rebuilds the complete dependency graph, kernel-checks the exact theorem type, and audits all transitive axioms.

    The accepted command was:

    cd /home/azureuser/snapshot && check_answer/verify.sh
    

    Its final output was:

    Build completed successfully (8617 jobs).
    Erdos254.erdos_254 : Erdos254.Statement
    'Erdos254.erdos_254' depends on axioms: [propext, Classical.choice, Quot.sound]
    PASS: canonical Erdős 254 statement has a placeholder-free kernel proof
    

    Thus the proof uses only Lean/Mathlib’s standard quotient, extensionality, and classical-choice axioms, with no project-added axiom or proof placeholder.

    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.

    ↓ Download full solution raw

  • 3) Erdős Problem #267Erdős Problem
    www.erdosproblems.com/267
    Question

    Let F1=F2=1F_1=F_2=1 and Fn+1=Fn+Fn1F_{n+1}=F_n+F_{n-1} be the Fibonacci sequence. Let n1<n2<n_1<n_2<\cdots be an infinite sequence with nk+1/nkc>1n_{k+1}/n_k \geq c>1. Mustk1Fnk\sum_k\frac{1}{F_{n_k}}be irrational?

    (Erdős Problem #267 — irrationality — https://www.erdosproblems.com/267)

    Result

    For every infinite sequence n₁ < n₂ < ⋯ with a uniform ratio gap n_{k+1}/n_k ≥ c for some c > 1, the sum Σ 1/F_{n_k} of reciprocal Fibonacci numbers is irrational. This holds for every c > 1, closing the range 1 < c < 2 that Badea (1993) left open.

    noncomputable def reciprocalFibSeries (n : ℕ → ℕ) : ℝ :=
      ∑' k : ℕ, (Nat.fib (n k) : ℝ)⁻¹
    
    /-- The problem's uniform ratio-gap condition. -/
    def HasRatioGap (n : ℕ → ℕ) : Prop :=
      ∃ c : ℝ, 1 < c ∧ ∀ k : ℕ, c ≤ (n (k + 1) : ℝ) / (n k : ℝ)
    
    /-- A faithful formalization of Erdős Problem 267. -/
    theorem erdos_problem_267
        (n : ℕ → ℕ)
        (hpos : ∀ k : ℕ, 0 < n k)
        (hmono : StrictMono n)
        (hgap : HasRatioGap n) :
        Irrational (reciprocalFibSeries n)
    Report

    Irrationality of Lacunary Fibonacci Reciprocal Sums

    The problem and why it is difficult

    Let F1=F2=1F_1=F_2=1, Fn+1=Fn+Fn1F_{n+1}=F_n+F_{n-1}, and let n1<n2<n_1<n_2<\cdots be any infinite index sequence with a uniform ratio gap nk+1/nkcn_{k+1}/n_k\ge c for some c>1c>1. Erdős asked whether

    k1Fnk \sum_k \frac{1}{F_{n_k}}

    must be irrational.

    For fast-growing gaps this is classical territory: when c2c\ge 2 the series is covered by known irrationality criteria for lacunary series (Badea, 1993). The genuinely open range was 1<c<21<c<2, where the terms shrink too slowly for size-based criteria — the tail of the series is not small enough compared with its leading term to force a contradiction from a single denominator. Any proof must instead exploit the precise arithmetic of Fibonacci numbers, not just their growth.

    Where the natural approaches stalled

    • Pure size arguments fail. Below c=2c=2, the tail j>k1/Fnj\sum_{j>k}1/F_{n_j} can be comparable to 1/Fnk1/F_{n_k}, so the classical "the fractional part cannot be that small" argument does not close.
    • Working modulo one denominator loses the structure. Individual FnF_n share deep divisibility relations (periods, gcd identities); rationality forces global coherence conditions across all selected indices simultaneously, which no single modulus sees.
    • Golden-ratio expansions need exactness. The identity 1/Fn=5j(1)njφ(2j+1)n1/F_n=\sqrt5\sum_j(-1)^{nj}\varphi^{-(2j+1)n} converts the series into a Lambert-type series in φ1\varphi^{-1}, but making "the coefficients cannot all cancel" rigorous requires controlling a lattice of quadratic integers, not an archimedean estimate.

    The proof architecture

    The formal proof assumes a rational (more generally, a scaled-golden) total and derives a contradiction in three stages.

    1. Exact Lambert and quadratic-norm infrastructure. The reciprocal Fibonacci expansion is collected into a locally finite integer coefficient word over Z[φ]\mathbb Z[\varphi]. A rational total forces normalized residuals to lie in a fixed lattice, and a sufficiently long equal / mismatch / equal comparison between two windows of the word produces a nonzero quadratic integer whose norm lies strictly between 00 and 11 — impossible. The rest of the proof engineers such a comparison.

    2. Reduction to bounded two-adic order. If the selected indices contain arbitrarily deep dyadic structure (unbounded two-adic order), they must contain a complete selected dyadic tail; such tails can be deleted exactly, preserving both the ratio gap and the scaled-golden total, and only finitely many disjoint tails can exist. This reduces any putative rational counterexample to one with uniformly bounded selected two-adic order.

    3. The reverse-window contradiction. For the bounded-order remainder, the proof selects arbitrarily late "genuinely new" prefix periods, makes the reduced period quotient odd, and controls compatibility conditions with an exact offset count on a linear-width budget. Protecting two affine window centers by a polynomial CRT density argument isolates a singleton target inside a short radius; a protected sieve plus the norm gate from stage 1 then contradicts the assumed total. The cutoff at which this happens is explicit — polynomial in the period data — so the argument closes without any unproved case.

    Combining the two branches eliminates every rational value, for every sequence with any uniform ratio gap c>1c>1.

    Verification

    The faithful statement quantifies over all index sequences with the exact quotient condition from the problem:

    theorem erdos_problem_267
        (n : ℕ → ℕ) (hpos : ∀ k, 0 < n k) (hmono : StrictMono n)
        (hgap : HasRatioGap n) :
        Irrational (reciprocalFibSeries n)
    

    where reciprocalFibSeries is the real tsum of (Nat.fib (n k))⁻¹ and HasRatioGap asserts one real c>1c>1 with cnk+1/nkc\le n_{k+1}/n_k for all kk. The pinned project builds with warnings promoted to errors (lake --wfail build), a source scan finds no proof placeholders, and #print axioms reports exactly [propext, Classical.choice, Quot.sound]. The download bundle contains the pinned statement project, the self-contained standalone artifact, and the checker documentation with the line-by-line fidelity audit.

    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.

    ↓ Download full solution raw

  • 4) Erdős Problem #320Erdős Problem
    www.erdosproblems.com/320
    Question

    Let S(N)S(N) count the number of distinct sums of the form nA1n\sum_{n\in A}\frac{1}{n} for A{1,,N}A\subseteq \{1,\ldots,N\}. Estimate S(N)S(N).

    (Erdős Problem #320 — number theory, unit fractions — https://www.erdosproblems.com/320)

    Result

    Let P(x)=1 for x≤exp(3) and P(x)=log(x)P(log(x)) for x>exp(3). There exist constants c,C>0 such that eventually c(N/log N)P(log log N)≤log S(N)≤C(N/log N)P(log log N); equivalently S(N)=exp(Θ((N/log N)∏_{j≥3, stopped}log_j N)).

    /-- Final machine-checked estimate: log S(N) is bounded above and below by
    positive constants times the fully stopped iterated-log product scale. -/
    theorem exists_two_sided_full_product_estimate :
        ∃ c C : ℝ, 0 < c ∧ 0 < C ∧ ∀ᶠ N : ℕ in atTop,
          c * ((N : ℝ) / Real.log N) *
              Research.renewalProduct N (Research.logLogNat N) ≤ Research.logS N ∧
          Research.logS N ≤ C * ((N : ℝ) / Real.log N) *
              Research.renewalProduct N (Research.logLogNat N)
    Report

    Erdős Problem 320: the number of distinct unit-fraction subset sums

    The problem and why it is hard

    Let

    S(N)={nA1n:A{1,,N}}. S(N)=\left|\left\{\sum_{n\in A}\frac1n:A\subseteq\{1,\dots,N\}\right\}\right|.

    There are 2N2^N subsets, but many can have the same sum. Estimating S(N)S(N) therefore means understanding an enormous family of exact rational collisions. Neither extreme is informative: counting subsets ignores collisions, while putting every fraction over lcm(1,,N)\operatorname{lcm}(1,\dots,N) gives a support interval far too large to reveal the true scale.

    The answer contains not just N/logNN/\log N, but a product of iterated logarithms. That makes the problem especially unforgiving: a fixed inefficiency at each renewal step becomes a factor such as clogNc^{\log^*N}, which is not a constant. A proof must retain asymptotic coefficient one through every active logarithmic level.

    Where natural approaches stall

    Three otherwise reasonable approaches lose exactly the information the problem needs.

    • A global common denominator is too coarse. It controls the range of possible numerators but discards the prime-by-prime structure responsible for most collisions.
    • Naive renewal estimates leak constants. Partitioning denominators by a large prime does produce the right recursive shape, but ordinary integral approximations introduce endpoint, floor, and prime-number-theorem losses. Repeating a factor smaller than one through logN\log^*N levels destroys the claimed order of magnitude.
    • Lower-bound constructions are not automatically collision-free. Multiplying a previously useful denominator by a new prime creates binary choices only if every possible signed reciprocal relation remains incompatible. A heuristic “the prime is large” argument is insufficient; numerator and reduced-denominator bounds must be exact.

    The central issue was thus not merely finding a recurrence. It was finding formulations in which the recurrence has unit leading coefficient and all remaining losses are summable across the full iterated-log depth.

    The approach that worked

    1. Turn equality of subset sums into a signed relation (Erdős's own starting point)

    This reformulation is not ours: it is the classical opening move of this subject, used by Bleicher and Erdős themselves in their 1975 lower-bound paper [BlEr75], as Xiao_Hu pointed out on the erdosproblems forum. Full credit to them; we state it here because everything after builds on it. Two subsets give the same value precisely when their symmetric difference yields

    n=1Nεnn=0,εn{1,0,1}. \sum_{n=1}^N \frac{\varepsilon_n}{n}=0, \qquad \varepsilon_n\in\{-1,0,1\}.

    This exact reformulation identifies “good” denominators: indices whose inclusion cannot be changed inside a zero signed relation. Every set of good indices contributes independent binary choices, giving

    U(N)log2logS(N). |U(N)|\log 2\le \log S(N).

    2. Use the unique large prime for the upper renewal

    A denominator has at most one prime factor above a chosen threshold. Partitioning by that prime separates the support into disjoint blocks. Smooth denominators are handled by a least-common-multiple bound; the other blocks reduce to smaller instances indexed by N/p\lfloor N/p\rfloor.

    The key technical device is an exact discrete benchmark

    Bk(n)=n(n+1)Pk(log2n)(log2(n+1)log2n). B_k(n)=n(n+1)P_k(\log_2 n) \bigl(\log_2(n+1)-\log_2n\bigr).

    Its renewal transform telescopes exactly. This avoids a Riemann-sum error at every level. A reserve term absorbs the smooth part and the finitely many low-index bins, yielding the full-depth upper bound.

    3. Propagate good denominators with compatible primes

    For the lower bound, the decisive arithmetic lemma is:

    If mm is good and pp is prime with p>mlcm(1,,m)p>m\operatorname{lcm}(1,\dots,m), then mpmp is good.

    The proof reduces every relevant rational sum, bounds its numerator, and uses coprimality with pp to rule out cancellation. Generated products are then shown to be pairwise disjoint, producing an exact lower renewal.

    A crude but explicit estimate

    mlcm(1,,m)<65536m m\operatorname{lcm}(1,\dots,m)<65536^m

    is sufficient. It permits all mm up to a constant multiple of logN\log N.

    4. Preserve coefficient one

    The lower recurrence closes in the form

    A(N)NlogN2v<log655362NA(v)v(v+1), A(N)\ge \frac{N}{\log N} \sum_{2\le v<\log_{65536^2}N}\frac{A(v)}{v(v+1)},

    with coefficient exactly one. Two effects make this possible:

    • since m2m\ge2, the strict gain log(N/m)<logN\log(N/m)<\log N absorbs both the clean prime-number-theorem error and the floor error;
    • discrete Abel summation makes the increasing exponential compatibility penalty enter with the favorable sign.

    This is the point at which the full iterated-log scale becomes attainable.

    5. Make the depth-dependent losses summable

    Even a unit renewal has finite-mesh losses. At height kk, the proof evaluates a power tail x1εkx^{1-\varepsilon_k} with

    εk=22k10. \varepsilon_k=2^{-2k-10}.

    The iterated-log product loses at most a factor (1εk)k(1-\varepsilon_k)^k. These losses are summable, and their total leaves a uniform coefficient at least 1/21/2, independent of the number of active levels. Adaptive tower cutoffs keep every tail inside the preceding induction range. At the maximal active height, the omitted terminal factors are bounded by one fixed constant, so the adaptive product is comparable to the fully stopped product.

    The resulting estimate

    Define

    P(x)={1,xe3,(logx)P(logx),x>e3. P(x)= \begin{cases} 1,&x\le e^3,\\ (\log x)P(\log x),&x>e^3. \end{cases}

    Then there are constants c,C>0c,C>0 such that, for all sufficiently large NN,

    cNlogNP(log2N)logS(N)CNlogNP(log2N). c\frac{N}{\log N}P(\log_2N) \le \log S(N)\le C\frac{N}{\log N}P(\log_2N).

    Equivalently,

    S(N)=exp ⁣(Θ ⁣(NlogNj3until stoppedlogjN)). S(N)=\exp\!\left(\Theta\!\left( \frac{N}{\log N} \prod_{j\ge3\,\text{until stopped}}\log_jN \right)\right).

    Verification

    The complete argument was formalized in Lean 4 + Mathlib. The final theorem is ResearchPNT.exists_two_sided_full_product_estimate in verified_math/F-038_two-sided-full-product-estimate/lean/ResearchPNT/FinalEstimate.lean.

    Verification is deliberately strict:

    • the checker rejects sorry, admit, custom axioms, opaque, and unsafe escape hatches;
    • it builds the complete combinatorial, analytic, upper-renewal, and lower-renewal chain;
    • it audits the exact final theorem with #print axioms;
    • the only reported axioms are Mathlib’s standard propext, Classical.choice, and Quot.sound;
    • the audited prime-number-theorem dependency is bundled locally, all remote revisions are pinned, and the project was rebuilt from an empty .lake directory.

    The clean build completed all 8,721 jobs and passed the theorem-closure audit. An independent referee reran the verification before accepting the result.

    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.

    ↓ Download full solution raw

  • 5) Erdős Problem #321Erdős Problem
    www.erdosproblems.com/321
    Question

    What is the size of the largest A{1,,N}A\subseteq \{1,\ldots,N\} such that all sums nS1n\sum_{n\in S}\frac{1}{n} are distinct for SAS\subseteq A?

    (Erdős Problem #321 — number theory, unit fractions — https://www.erdosproblems.com/321)

    Result

    If R(N) is the largest size of a subset of {1,…,N} whose reciprocal subset sums are all distinct, then R(N) = Θ((N/log N) ∏_{j=3}^{k(N)} log_j N), where k(N) is the last iterated logarithm above one fixed absolute threshold. Equivalently, there are absolute c,C>0 such that these two bounds hold for every sufficiently large N.

    theorem erdos321_asymptotic : ∃ N₀ : ℕ, ∃ B c C : ℝ, 3 ≤ N₀ ∧ 192 ≤ B ∧ 0 < c ∧ 0 ≤ C ∧ ∀ n, N₀ ≤ n → ∃ d : ℕ, d ≤ n ∧ IsTerminalLogDepth B n d ∧ c * terminalReciprocalScale n d ≤ (extremalSize n : ℝ) ∧ (extremalSize n : ℝ) ≤ C * terminalReciprocalScale n d
    Report

    Solving Erdős Problem 321

    The problem and the obstruction

    Let R(N)R(N) be the largest size of a set A{1,,N}A\subseteq\{1,\ldots,N\} for which all sums

    nS1n,SA, \sum_{n\in S}\frac1n,\qquad S\subseteq A,

    are distinct. The answer is

    R(N)=Θ ⁣(NlogNj=3k(N)logjN), R(N)=\Theta\!\left(\frac{N}{\log N} \prod_{j=3}^{k(N)}\log_j N\right),

    where k(N)k(N) is the last iterated logarithm above a fixed absolute threshold.

    The problem is difficult because a collision is an arbitrary signed reciprocal relation

    aAεaa=0,εa{1,0,1}, \sum_{a\in A}\frac{\varepsilon_a}{a}=0, \qquad \varepsilon_a\in\{-1,0,1\},

    not merely a pairwise coincidence. Local graph tests therefore miss the real obstruction. For example, even a set passing every relation of the form 1/a+1/b=1/c1/a+1/b=1/c can still contain a larger-support collision.

    There is a second, analytic difficulty. Each useful recursion replaces NN by a quantity on the scale of logN\log N, so iterating it generates the factors log3N,log4N,\log_3N,\log_4N,\ldots. A proof at any fixed number of iterations is not enough: the number of relevant iterations tends to infinity, albeit as slowly as logN\log^*N. Any fixed factor lost at every step becomes an unbounded error.

    Why the established approaches stalled

    Earlier lower-bound constructions used denominators with specially separated prime factors or a greedy compatible-prime rule. These methods successfully produced any fixed number of iterated-log factors, but controlling arbitrary signed relations forced substantial losses.

    The upper side counted all possible reciprocal subset sums using a common-denominator grid. This also produced iterated-log bounds, but in coordinates that did not transparently match the lower construction.

    The central gap was therefore not the first few logarithms. It was uniform depth:

    • lower and upper recurrences had to be put on the same kernel;
    • prime-distribution errors had to remain controlled along every recursion orbit;
    • constants could not be multiplied once per iterated logarithm;
    • the inhomogeneous source term could not simply be discarded.

    A midpoint-block argument illustrates the trap. It readily proves bounds involving log3Nlog4N\log_3N\log_4N, but loses a factor such as 1/21/2 at every additional level. That is harmless at fixed depth and fatal at terminal depth.

    The approach that worked

    1. Put both sides into one exact recurrence

    For the lower bound, denominators were grouped by their largest prime factor. Instead of selecting one cofactor per prime, an entire optimal reciprocal-dissociated cofactor code was inserted into each good prime fibre. Bad primes were charged globally through the prime divisors of exact signed-sum numerators.

    For the upper bound, let S(N)S(N) be the number of all reciprocal subset-sum values from {1,,N}\{1,\ldots,N\}, and put H(N)=logS(N)H(N)=\log S(N). Since every valid set of size R(N)R(N) creates 2R(N)2^{R(N)} values,

    R(N)log2H(N). R(N)\log 2\le H(N).

    A smooth/large-prime decomposition and an LCM-grid bound gave an entropy recurrence in the same quotient classes as the lower recurrence.

    A formally audited prime number theorem then showed that both normalized quantities are governed by the same positive discrete logarithmic operator

    (DTf)=t=2Tf(t)(t+1)logt, (\mathcal D_T f)=\sum_{t=2}^{T} \frac{f(t)}{(t+1)\log t},

    with a common adaptive endpoint TlogNT\asymp\log N.

    2. Replace the recurrences by one positive Neumann model

    After normalization by logN/N\log N/N, all kernel errors were shown to be summable along every adaptive recursion chain. This is stronger than merely proving that the one-step error tends to zero.

    The lower extremal function and upper entropy were then compared, up to fixed constants, with one stopped positive model

    MA(N)=1+Dν(N)AMA, M_A(N)=1+\mathcal D^{A}_{\nu(N)}M_A,

    where AA is a fixed terminal threshold and ν(N)logN\nu(N)\asymp\log N.

    This reduced the original problem to evaluating a single explicit finite Neumann series.

    3. Remove the depth loss

    The decisive estimate was a sharp additive comparison between one operator weight and the corresponding telescoping increment:

    1(t+1)logt(loglog(t+1)loglogt)1t(t+1). \left| \frac1{(t+1)\log t} -\bigl(\log\log(t+1)-\log\log t\bigr) \right| \le \frac1{t(t+1)}.

    Consequently, every truncated operator mass differs from its exact loglog\log\log difference by at most 1/A1/A. Unlike a factor-two estimate, this does not impose a fixed loss at every level.

    The lower proof then used depth-dependent logarithmic blocks. At remaining depth rr, only a fraction on the order of 2r2^{-r} of the available logarithmic interval is discarded. The mass losses are summable. The coordinate shifts are also summable because reverse logarithms separate geometrically: if all retained coordinates exceed a fixed threshold B4B\ge4, then

    2dlog[j+d]xlog[j]x. 2^d\log^{[j+d]}x\le \log^{[j]}x.

    This yields a fixed positive fraction of the complete terminal product, uniformly over all depths.

    4. Control the entire upper tail at once

    The Neumann model was expanded into nonnegative depth terms plus one exact remainder. Every retained depth term is at most three times its corresponding iterated-log product.

    Once the next iterate drops below BB, every possible leaf belongs to one fixed finite range. The model is bounded on that range by a fixed constant KK. Positivity then bounds the whole unexpanded remainder by KK times the terminal depth term. This avoids paying another constant for each post-terminal step.

    Earlier products form a geometric tail because each new retained factor is at least BB. Hence their sum is bounded by the deepest product.

    Combining both sides gives

    MA(N)j=3k(N)logjN, M_A(N)\asymp \prod_{j=3}^{k(N)}\log_jN,

    and transferring back through the normalized extremal/entropy comparison proves the result.

    Formal verification

    The proof was carried out in Lean 4 with Mathlib. The formalization includes:

    • exact rational reciprocal sums;
    • quantification over the full powerset;
    • an attained finite maximum defining R(N)R(N);
    • the combinatorial lower and entropy upper recurrences;
    • the audited prime-distribution input;
    • the uniform-depth Neumann analysis;
    • existence of the terminal iterated-log depth;
    • cancellation of the normalization to obtain the raw cardinality bound.

    The final theorem is Erdos321.erdos321_asymptotic. Its constants are chosen before NN, terminal-depth existence is part of the conclusion, and there is no depth-dependent hidden constant.

    The acceptance gate builds the complete source closure, recompiles every Lean file with hasSorry promoted to an error, and audits the final theorem's transitive axioms. The final axiom set is exactly

    [propext, Classical.choice, Quot.sound]
    

    with no sorry, admit, native_decide, or project-local axiom in the proof.

    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.

    ↓ Download full solution raw

  • 6) Erdős Problem #336Erdős Problem
    www.erdosproblems.com/336
    Question

    For r2r\geq 2 let h(r)h(r) be the maximal finite kk such that there exists a basis ANA\subseteq \mathbb{N} of order rr (so every large integer is the sum of at most rr integers from AA) and exact order kk (so every large integer is the sum of exactly kk integers from AA). Find the value oflimrh(r)r2.\lim_r \frac{h(r)}{r^2}.

    (Erdős Problem #336 — number theory, additive basis — https://www.erdosproblems.com/336)

    Result

    The limit is 1/3: for the attained maximal exact-order function h(r), lim_{r→∞} h(r)/r² = 1/3.

    /-- An extremal function exists, and h(r)/r² converges to c for every
    extremal function. -/
    def HasProblem336Value (c : ℝ) : Prop :=
      (∃ h : ℕ → ℕ, IsExtremalFunction h) ∧
        ∀ h : ℕ → ℕ, IsExtremalFunction h →
          Filter.Tendsto (fun r : ℕ => (h r : ℝ) / (r : ℝ) ^ 2)
            Filter.atTop (nhds c)
    
    theorem Erdos336.problem336 : HasProblem336Value (1 / 3 : ℝ)
    Report

    Erdős Problem 336: why the constant is one third

    The problem and why it is difficult

    For each r ≥ 2, let h(r) be the largest exact order of an asymptotic basis of variable order at most r. The problem asks for the limit of h(r)/r².

    The difficulty is not the lower bound: explicit periodic bases already suggest the quadratic scale and the coefficient 1/3. The hard direction is a uniform upper bound for every asymptotic basis. Three layers interact:

    • the original set is infinite and only represents sufficiently large integers;
    • after normalization, the relevant obstruction lives in finite cyclic groups;
    • the sharp coefficient depends on rank-one geometry, so a coarse small-doubling theorem loses too much.

    Even after reducing to a finite cyclic problem, one must show that a primitive set with short variable-length representations has a short common exact representation length. The extremal configurations resemble thin progressions, and every error of one fibre can change the sharp 1/3 coefficient.

    Where the natural approaches stalled

    A first route was to import a general inverse theorem for small-doubling sets. That was both much heavier than necessary and insufficiently sharp at the endpoint. A more specialized moderate-torsion route was sharper, but formalization exposed two genuine obstructions in the natural argument.

    First, a printed unique-difference estimate loses a factor of two. The claimed bound is contradicted by

    A = {0,1,3} ⊂ Z/6Z,
    

    which has four uniquely represented ordered differences although |A|²/4 = 9/4. The prose argument counts undirected Mantel edges as if they were ordered differences. The high-power setting repairs this through Ruzsa’s triangle inequality, but the printed lemma cannot simply be imported.

    Second, the endpoint representation-selection argument omits a critical three-point case. For

    C = {0,x,2x},
    

    the two new sums are 3x and 4x. Their unavoidable endpoint loads are 1 and 3, not the balanced bound 2 needed by the generic counting argument. Reorienting the progression does not fix this. Pure deficiency arithmetic remains short by exactly one far-fibre term, and treating the progression quotient as an immediate rank-one certificate is unsafe because its lift can retain two independent directions.

    These failures identified the real bottleneck: the proof needed exact endpoint geometry, not a broader inverse theorem.

    The route that worked

    The proof first transfers the infinite problem to a finite cyclic removal statement. A dyadic high-power argument finds a scale with doubling below 9/4. Dense alternatives, bounded quotient alternatives, and rank-one alternatives are then handled separately. The rank-one endgame is encoded by an exact two-generator lattice diagram; its L-shape area inequality gives

    3|G| ≤ (H+2)²,
    

    which is the geometric source of the coefficient 1/3.

    The central structural step rectifies a cyclic set into a graph

    T ⊂ ℤ × ZMod N
    

    supported between two occupied integer fibres, 0 and l. Quotienting by the displacement between these endpoints produces a finite endpoint quotient B. Let F be the Kneser stabilizer of B+B, let C=B/F, and let

    D = (C+C) \ C
    

    be the genuinely new sum classes.

    The proof then exhausts the endpoint possibilities:

    • |D|=0 gives the desired progression-plus-subgroup certificate directly;
    • |D|=1 is excluded by a sharp two-piece projection inequality;
    • |D|≥3 in the nonvertical branch is excluded by representation selection or a two-class/three-sum-class quotient;
    • a vertical stabilizer forces the double-set saturation defect to be no larger than the original-set defect, contradicting full primitivity;
    • the remaining |D|=2 nonvertical case is resolved by a complete classification of three-point critical sumsets.

    That final classification was the decisive local breakthrough. Every three-point set with five double sums has one of three forms:

    1. a load-two selector exists;
    2. a subgroup quotient has two classes for the set and three for its double;
    3. the set is the genuine progression {0,x,2x}.

    The first two forms are ruled out by the existing sharp inequalities. In the progression form, direct integer-projection fibre geometry supplies the missing information that deficiency counting could not see, and excludes the branch.

    From normalized endpoints back to the original set

    The endpoint theorem initially applies only to a normalized rectified graph. Four exact transport results connect it to the original cyclic set:

    • translation preserves cardinality, doubling, affine generation, and subgroup-saturation defects;
    • strict-half rectification preserves |A|, |A+A|, and the number of quotient fibres;
    • lifted progression certificates descend to cyclic rank certificates;
    • the homomorphism
    θ(i,x) = π(x) - i
    

    vanishes on the rectified graph. Consequently, the vertical preimage of the endpoint stabilizer lies inside the rectifying kernel π.ker.

    This last observation permits relative vertical primitivity instead of an unjustified absolute assumption. The normalized endpoint assembly therefore proves the fully primitive rectifiable theorem. Balanced and small-defect subgroup quotients then descend by strong induction, yielding the full rectifiable 3n-3 theorem. The finite high-power reduction and infinite transference complete the upper bound, while the periodic construction supplies the matching lower bound.

    A final statement audit also closed a logical loophole: merely proving convergence for every extremal function could be vacuous if no such function existed. Eventual cyclic bounds can be padded with retained zeros to cover every smaller parent length; they therefore bound every admissible exact order. Since exact order one is always attainable, Nat.findGreatest selects an attained finite maximum for each r≥2. The final theorem explicitly proves both existence and convergence.

    Verification

    The result is formalized in Lean 4.31.0 with Mathlib revision fabf563a7c95a166b8d7b6efca11c8b4dc9d911f.

    The executable checker:

    1. validates a SHA-256 manifest of all 191 research source files;
    2. builds the complete final dependency graph (8729 build jobs);
    3. checks an independently duplicated, nonvacuous statement of the problem;
    4. rejects sorry, admit, and project-declared axioms throughout the research tree;
    5. runs #print axioms on the final theorem.

    The only reported dependencies are Lean’s standard propext, Classical.choice, and Quot.sound. The checker ends with:

    PASS: Erdős Problem 336 has verified value 1/3.
    

    Thus the limit is exactly

    1/3.
    
    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.

    ↓ Download full solution raw

  • 7) Erdős Problem #394Erdős Problem
    www.erdosproblems.com/394
    Question

    Let tk(n)t_k(n) denote the least mm such thatnm(m+1)(m+2)(m+k1).n\mid m(m+1)(m+2)\cdots (m+k-1).Is it true thatnxt2(n)x2(logx)c\sum_{n\leq x}t_2(n)\ll \frac{x^2}{(\log x)^c}for some c>0c>0?Is it true that, for k2k\geq 2,nxtk+1(n)=o(nxtk(n))?\sum_{n\leq x}t_{k+1}(n) =o\left(\sum_{n\leq x}t_k(n)\right)?

    (Erdős Problem #394 — number theory — https://www.erdosproblems.com/394)

    Result

    Both questions in Erdős Problem 394 have affirmative answers: one may take c = 1/2048 in Σ_{n≤x} t₂(n) ≪ x²/(log x)^c. For every fixed integer k ≥ 2, one also has Σ_{n≤x} t_{k+1}(n) = o(Σ_{n≤x} t_k(n)) as x → ∞.

    /-- The affirmative assertion in the first question. -/
    def FirstQuestion : Prop :=
      ∃ c : ℝ, c > 0 ∧
        (fun x : ℝ ↦ Tsum 2 x) =O[atTop]
          (fun x : ℝ ↦ x ^ 2 / (Real.log x) ^ c)
    
    /-- The affirmative assertion in the second question. -/
    def SecondQuestion : Prop :=
      ∀ k : ℕ, k ≥ 2 →
        (fun x : ℝ ↦ Tsum (k + 1) x) =o[atTop]
          (fun x : ℝ ↦ Tsum k x)
    
    theorem erdos394_first_target : FirstQuestion
    theorem erdos394_second_target : SecondQuestion
    Report

    A Proof of Erdős Problem 394

    The problem—and the real obstruction

    For positive integers k,nk,n, let tk(n)t_k(n) be the least positive integer mm such that

    nm(m+1)(m+k1). n\mid m(m+1)\cdots(m+k-1).

    Erdős Problem 394 asks two average-order questions. Does some c>0c>0 satisfy

    nxt2(n)x2(logx)c? \sum_{n\le x}t_2(n)\ll \frac{x^2}{(\log x)^c}?

    And, for every fixed k2k\ge2, is

    nxtk+1(n)=o ⁣(nxtk(n))? \sum_{n\le x}t_{k+1}(n) =o\!\left(\sum_{n\le x}t_k(n)\right)?

    The difficulty is not merely that tk(n)t_k(n) is irregular. Its large values are structurally unavoidable. If pkp\ge k is prime, then

    tk(p)=p+1k; t_k(p)=p+1-k;

    in particular, t2(p)=p1t_2(p)=p-1. Thus no uniform pointwise saving can prove either assertion. Even the elementary monotonicity tk+1(n)tk(n)t_{k+1}(n)\le t_k(n) is far too weak: the second question asks for a ratio tending to zero after summation.

    Both questions nevertheless have affirmative answers. The first estimate holds with the explicit choice c=1/2048c=1/2048, and the adjacent sums satisfy the requested little-o relation for every fixed k2k\ge2.

    Why the natural attacks stalled

    The failed approaches exposed four distinct traps.

    • Pointwise estimates attack the wrong phenomenon. Prime inputs keep tk(n)t_k(n) nearly as large as nn. The saving exists only after the arithmetic structures of many integers are aggregated.
    • An upper-bound sieve proves only half the theorem. It is possible to make the tk+1t_{k+1}-sum small by sieving medium prime factors, but comparison with tkt_k also requires a denominator lower bound that preserves a stronger Euler factor.
    • Crude Euler estimates destroy the adjacent-length gap. The saving between kk and k+1k+1 is encoded in a precise powered inequality. Estimating the products separately loses exactly the small exponent difference needed at the end.
    • A sparse subsequence does not settle an all-xx asymptotic. An early hierarchy at cutoffs 16jD16^{j^D} gave valid and strong finite bounds. But neighboring cutoffs were separated by enormous factors, so monotonicity could not interpolate the ratio estimate. The finite work was useful; the grid itself was a dead end.

    The conceptual mistake behind the most natural sieve route was therefore to view the numerator as the whole problem. The decisive step was to build the numerator and denominator as a matched pair, retain their exact Euler-product relationship, and place both estimates on a dense multiplicative grid.

    The finite numerator mechanism

    Fix an adjacent length parameter KK, a cutoff XX, and an interval of medium primes P=(z,y]P=(z,y]. For each nXn\le X, extract the squarefree product qnq\mid n of the primes from PP which divide nn. Integers divisible by some p2p^2, with pPp\in P, form a controlled exceptional set.

    For all remaining integers, admissible starts can be encoded prime by prime. The proof packages these local choices into a finite root box. A lattice-counting and moment argument bounds the mean least admissible start over that box. It then combines this bound with an even Bonferroni truncation and a completely explicit finite Brun sieve.

    The result is a global upper bound for

    SK+1(X)=nXtK+1(n), S_{K+1}(X)=\sum_{n\le X}t_{K+1}(n),

    consisting of a sieve-density Euler main term and explicit square-prime and Brun-tail errors. Progression discrepancies, elementary-symmetric tails, and truncation losses are all handled as finite inequalities; no asymptotic sieve theorem is inserted as an unproved black box.

    The missing denominator

    For a selected squarefree modulus qq, attach a prime \ell larger than every medium prime and consider n=qn=q\ell. Most unit residue classes of (modq)\ell\pmod q avoid all short shifted-product representations. For a prime in one of those good classes, the least valid start is forced to be large, giving a lower bound for tK(q)t_K(q\ell).

    A second finite prime sieve lower-bounds the weighted mass of the good primes. These contributions can then be summed over many selected moduli qq. Because the attached prime \ell lies above the medium-prime range, unique factorization makes

    (q,)q (q,\ell)\longmapsto q\ell

    injective. No denominator mass is counted twice.

    After controlling floors and the subset truncation, this construction produces a lower bound for

    SK(X)=nXtK(n) S_K(X)=\sum_{n\le X}t_K(n)

    with an enhancement factor

    pP(1+1Kp). \prod_{p\in P}\left(1+\frac1{Kp}\right).

    That enhancement is the feature a generic lower bound misses, and it is precisely what makes adjacent lengths separate.

    The key insight: keep the Euler gap exact

    The numerator density and denominator enhancement obey an exact powered comparison. With

    M=(K+1)(2K+1), M=(K+1)(2K+1),

    the relevant products can be arranged into an inequality of the form

    (A/E)MBM+1. (A/E)^M\le B^{M+1}.

    The extra power on the right is the fixed saving. Rather than approximate each product independently, the proof carries this identity intact until elementary reciprocal-prime and endpoint-density estimates turn it into a logarithmic gain.

    This is the central mathematical insight of the proof: the little-o statement comes from an algebraic gap between two matched Euler products, not from a stronger standalone estimate for either sum.

    The dense hierarchy

    To turn the finite estimates into an asymptotic valid at every cutoff, use

    XN=16N,h=log2N, X_N=16^N, \qquad h=\lfloor\log_2N\rfloor,

    and choose the lower and upper medium-prime scales using the exponents h2h^2 and N/h4\lfloor N/h^4\rfloor. A generous polynomial dilution and an even Brun order leave enough room for all root-box, tail, and denominator conditions.

    The crucial strengthening is uniformity between grid points. For each fixed K2K\ge2, the formal proof establishes that, eventually in NN, every natural cutoff satisfying

    16NX16N+1 16^N\le X\le16^{N+1}

    obeys

    log2NSK+1(X)3SK(X). \boxed{ \lfloor\log_2N\rfloor\,S_{K+1}(X) \le 3S_K(X). }

    Unlike the abandoned sparse hierarchy, this grid has bounded multiplicative gaps, and the estimate already covers each entire gap.

    For a large real xx, take X=x+X=\lfloor x\rfloor_+ and N=log16XN=\lfloor\log_{16}X\rfloor. Exact natural-logarithm inequalities place XX in the required interval. Since log2N\lfloor\log_2N\rfloor\to\infty, for every ε>0\varepsilon>0 it eventually exceeds 3/ε3/\varepsilon. The boxed estimate then gives

    SK+1(X)εSK(X), S_{K+1}(X)\le\varepsilon S_K(X),

    which is exactly the epsilon definition of the desired little-o relation.

    Verification

    The proof is formalized in Lean 4 with Mathlib. The formal statement preserves every important detail of the original question:

    • t k n is the least positive start;
    • the consecutive product is exact natural-number arithmetic;
    • Tsum k x sums over Finset.Icc 1 ⌊x⌋₊;
    • the conclusions use Mathlib's IsBigO atTop and IsLittleO atTop;
    • the second assertion quantifies over every fixed natural k2k\ge2.

    The final archive contains 106 Lean source files. Its verifier scans every source for sorry, admit, and added axiom declarations, builds the complete dependency closure, and directly elaborates the file containing both final target theorems. The full build completed successfully, and the definitive output was:

    PASS: both faithful Erdős 394 targets are proof-escape-free and accepted by Lean

    The source-only closure was also rebuilt during independent review, and Colin accepted the result for publication.

    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.

    ↓ Download full solution raw

  • 8) Erdős Problem #450Erdős Problem
    www.erdosproblems.com/450
    Question

    How large must y=y(ϵ,n)y=y(\epsilon,n) be such that the number of integers in (x,x+y)(x,x+y) with a divisor in (n,2n)(n,2n) is at most ϵy\epsilon y?

    (Erdős Problem #450 — number theory, divisors — https://www.erdosproblems.com/450)

    Result

    For every fixed real ε>0 there is a constant C(ε) such that y≥C(ε)n suffices uniformly for every natural translate x and all sufficiently large n; concretely, if Sε is a finite set of primes at least 5 with ∑_{p∈Sε}1/p>152/ε, then C(ε)=∏_{p∈Sε}p²+2 works. Conversely, for every 0<ε<1 every sufficient eventual threshold is greater than n for all sufficiently large n, so the sharp fixed-ε order is Θ_ε(n).

    noncomputable def turanLinearAnswer (ε : ℝ) (n : ℕ) : ℕ :=
      n * (primeSquarePeriod (turanPrimeSet ε) + 2)
    
    /-- Main upper bound: Erdős Problem 450 admits a translate-uniform linear scale
    `y = C(ε)n`. -/
    theorem turanLinearAnswer_isSufficientScale :
        IsSufficientScale turanLinearAnswer
    
    /-- Every sufficient eventual threshold has to exceed `n` eventually for each
    fixed `0 < ε < 1`. -/
    theorem sufficientScale_eventually_gt_n
        (Y : ℝ → ℕ → ℕ) (hY : IsSufficientScale Y)
        (ε : ℝ) (hεpos : 0 < ε) (hεone : ε < 1) :
        ∃ N : ℕ, ∀ n : ℕ, N ≤ n → n < Y ε n
    Report

    A Linear-Scale Solution to Erdős Problem 450

    The problem and its hidden difficulty

    Erdős asked how large an interval length y=y(ϵ,n)y=y(\epsilon,n) must be before the integers in (x,x+y)(x,x+y) having a divisor in (n,2n)(n,2n) occupy at most an ϵ\epsilon-fraction of the interval.

    The natural uniform reading is adversarial in the translate: the estimate must hold for every xx, not merely for a typical interval. That distinction is the main difficulty. Global density estimates—even very strong ones—do not prevent exceptional translates from containing dense clusters.

    There is also a genuine linear obstruction. Immediately after a suitable factorial translate, an interval of length nn contains n1n-1 qualifying integers. Thus no answer of order o(n)o(n) can work for fixed 0<ϵ<10<\epsilon<1. The real question is whether one can prove a matching Oϵ(n)O_\epsilon(n) upper bound uniformly in xx.

    Where the earlier routes stalled

    The first exact approach used periodicity. For fixed nn, divisibility by some d(n,2n)d\in(n,2n) is periodic, so the problem has a precise period-density criterion. This led to a complete fixed-nn dichotomy: an eventual threshold exists exactly when ϵ\epsilon exceeds the density in one period.

    That result was correct but did not solve the asymptotic problem. Its period is enormous, and it left open the essential assertion that the density tends to zero with nn.

    A Möbius expansion improved the local discrepancy dramatically, replacing the full period by a subexponential coefficient norm. But this route still needed a formally imported global multiplication-table theorem, such as Ford's deep density estimate. More importantly, it obscured the simpler structure needed for a linear bound.

    The conceptual mismatch was this: global density machinery was being asked to solve a local, adversarial-translate problem. What was needed instead was a statistic that both concentrates on every long enough interval and behaves predictably when a bad integer is factored as m=dkm=dk.

    The key breakthrough: finite-prime scores

    Fix a finite set SS of primes, all at least five, and define

    U(m)=#{pS:pm}. U(m)=\#\{p\in S:p\mid m\}.

    A second, two-level score also records repeated selected prime factors:

    W(m)=U(m)+#{pS:p2m}. W(m)=U(m)+\#\{p\in S:p^2\mid m\}.

    The decisive pointwise inequality is

    U(d)+U(k)W(dk). U(d)+U(k)\le W(dk).

    If a selected prime divides both factors, its second occurrence is exactly what the p2p^2-term records. This turns the factorization m=dkm=dk, with n<d<2nn<d<2n, into a usable local trichotomy.

    Let

    μ=pS1p,Q=pSp2. \mu=\sum_{p\in S}\frac1p, \qquad Q=\prod_{p\in S}p^2.

    Both scores are periodic modulo QQ. Exact first and second moments over a complete period give

    m<Q(U(m)μ)2Qμ. \sum_{m<Q}(U(m)-\mu)^2\le Q\mu.

    Chebyshev's inequality therefore controls integers with unusually low score. A Markov estimate for square divisibility controls integers with unusually high two-level score. Periodicity transfers these estimates to every interval, with only one fixed period of boundary loss.

    The three-class decomposition

    For every bad integer mm, choose a divisor d(n,2n)d\in(n,2n) and write m=dkm=dk. Then at least one of the following holds:

    1. U(d)3μ/4U(d)\le 3\mu/4;
    2. U(k)3μ/4U(k)\le 3\mu/4;
    3. W(m)3μ/2W(m)\ge 3\mu/2.

    Indeed, if the first two alternatives fail, the product inequality forces the third.

    The three classes can be counted uniformly in the translate. Once QnQ\le n and yn(Q+2)y\ge n(Q+2), their weighted contributions are at most

    • 64y64y for low-score divisors;
    • 32y32y for low-score quotients;
    • 56y56y for high two-level score.

    Thus

    #{m(x,x+y):m has a divisor in (n,2n)}μ152y \#\{m\in(x,x+y):m\text{ has a divisor in }(n,2n)\}\,\mu\le 152y

    for every xx.

    The sum of the reciprocals of the primes diverges, so for each ϵ>0\epsilon>0 one may choose a finite SϵS_\epsilon with μ>152/ϵ\mu>152/\epsilon. The preceding inequality then gives the desired ϵy\epsilon y bound at the linear scale n(Qϵ+2)n(Q_\epsilon+2).

    Why the order is sharp

    The factorial dense block supplies the matching lower obstruction. At length y=ny=n, one explicit translate has exactly n1n-1 bad integers. For every fixed 0<ϵ<10<\epsilon<1, this violates the requested estimate for all sufficiently large nn.

    Consequently, every sufficient eventual threshold must exceed nn eventually, while the finite-prime argument gives a constant multiple of nn. The optimal fixed-epsilonepsilon growth order is therefore Θϵ(n)\Theta_\epsilon(n).

    Formal verification

    The complete argument was formalized in Lean 4 with Mathlib. The formal statement uses open intervals, natural translates, the real inequality “at most ϵy\epsilon y,” and requires the estimate for every length above the threshold.

    The main theorem is:

    theorem turanLinearAnswer_isSufficientScale :
        IsSufficientScale turanLinearAnswer
    

    A second theorem proves the matching eventual lower bound for every 0<ϵ<10<\epsilon<1.

    The hostile checker rejects sorry, admit, local axioms, and unsafe declarations before building the standalone proof project. It reports:

    Build completed successfully (8567 jobs).
    PASS: Lean build succeeded and local sources contain no forbidden escape hatch
    

    The proof is archived in verified_math/F-013_turan-linear-scale/.

    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.

    ↓ Download full solution raw

  • 9) Erdős Problem #489Erdős Problem
    www.erdosproblems.com/489
    Question

    Let ANA\subseteq \mathbb{N} be a set such that A[1,x]=o(x1/2)\lvert A\cap [1,x]\rvert=o(x^{1/2}). LetB={n1:an for all aA}.B=\{ n\geq 1 : a\nmid n\textrm{ for all }a\in A\}.If B={b1<b2<}B=\{b_1<b_2<\cdots\} then is it true thatlim1xbi<x(bi+1bi)2\lim \frac{1}{x}\sum_{b_i<x}(b_{i+1}-b_i)^2exists (and is finite)?

    (Erdős Problem #489 — number theory — https://www.erdosproblems.com/489)

    Result

    Yes. For every A ⊆ ℕ with |A ∩ [1,x]| = o(√x), whenever the positive integers divisible by no member of A form an infinite set B = {b₁ < b₂ < ⋯}, the quantity x⁻¹ Σ_{bᵢ<x}(bᵢ₊₁-bᵢ)² converges to a finite real limit.

    /-- A positive answer to Erdős Problem 489. -/
    theorem erdos489_statement :
        ∀ A : Set ℕ,
          (fun x : ℕ => (((Finset.Icc 1 x).filter (· ∈ A)).card : ℝ))
              =o[atTop] (fun x : ℕ => Real.sqrt (x : ℝ)) →
          (sievedSet A).Infinite →
          ∃ L : ℝ,
            Tendsto (fun x : ℕ => gapSumSq A x / (x : ℝ)) atTop (𝓝 L)
    Report

    A Positive Answer to Erdős Problem 489

    The problem—and the hidden difficulty

    Let ANA\subseteq\mathbb N be extremely sparse,

    A[1,x]=o(x), |A\cap[1,x]|=o(\sqrt x),

    and let B={b1<b2<}B=\{b_1<b_2<\cdots\} be the positive integers divisible by no member of AA. Erdős asked whether

    1xbi<x(bi+1bi)2 \frac1x\sum_{b_i<x}(b_{i+1}-b_i)^2

    always has a finite limit.

    At first sight this resembles a routine finite-sieve approximation. Any sieve using only finitely many forbidden divisors is periodic, so its gap statistics have exact limiting averages. Sparse AA also forces the reciprocals of its increasing enumeration to be summable. Neither observation is enough: the expression is a second moment, and a tiny amount of mass can escape to increasingly long gaps. Pointwise convergence of every fixed gap-length contribution does not justify exchanging a limit with the infinite sum.

    That uniform-integrability obstruction is the real content of the problem.

    Where the natural approaches stalled

    Several plausible routes fail at exactly this boundary.

    • Take larger finite periodic sieves and pass to the limit. This controls every bounded gap pattern, but not the squared mass of gaps whose lengths grow with the cutoff. We formalized an abstract escaping-mass counterexample to this limit-exchange step.
    • Sum shifted CRT estimates term by term. Counting one congruence class costs a harmless endpoint error, but paying that error independently for every divisor pair and every shift produces a divergent rank error.
    • Use a stronger reciprocal moment. A direct incidence argument works under an extra hypothesis such as r/ar<\sum r/a_r<\infty, where ara_r is the forbidden enumeration. That misses the sharp regime allowed by ar/r2a_r/r^2\to\infty, including the logarithmic boundary models that make the problem difficult.
    • Rely only on a maximum-gap estimate. Thinness does prevent gaps comparable with the whole prefix eventually, but this alone gives no summable control of the collective squared tail.

    The successful proof therefore needed two ingredients at once: a global charge for long gaps that does not accumulate CRT endpoint errors, and a separate finite-word argument for bounded gaps.

    The breakthrough: charge primitive coprime witness pairs

    Write the infinite forbidden set increasingly as a0<a1<a_0<a_1<\cdots. Thinness gives three crucial consequences:

    1. eventually (r+1)2ar(r+1)^2\le a_r;
    2. r1/ar<\sum_r 1/a_r<\infty;
    3. the rank-pair kernel
    r,smin(r+1,s+1)aras \sum_{r,s}\frac{\min(r+1,s+1)}{a_ra_s}

    is summable, with uniformly small high-rank tails.

    The task is to make every long actual gap pay into this kernel.

    A Mertens-free affine sieve

    Inside a long covered gap, we look only at positions

    n1(modQ), n\equiv1\pmod Q,

    where Q=Y!Q=Y! for a suitably chosen roughness threshold YY. This coordinate change has two decisive effects.

    • Any forbidden modulus sharing a prime factor with QQ is automatically unable to divide such an nn.
    • For the remaining moduli, affine finite-sieve density is the same periodic product density as in the ordinary sieve.

    Thus no Mertens estimate is needed. The loss of density contributes a factor Q1Q^{-1}, while the bad-pair estimate below gains exactly Q2Q^{-2}; those powers cancel after squaring the candidate density.

    A uniform interval-density lemma supplies linearly many affine candidates in every sufficiently long gap. Because the reciprocal mass of remote forbidden ranks is small, a divisor-label counting inequality

    SGrlabels(S)1ar+labels(S) |S|\le G\sum_{r\in\mathrm{labels}(S)}\frac1{a_r}+|\mathrm{labels}(S)|

    forces linearly many distinct high-rank divisor witnesses.

    Quadratically many coprime pairs

    Among affine positions, pairs with a common prime divisor are rare. A common prime p>Yp>Y forces their difference to be divisible by QpQp, so each prime fiber is widely spaced. Summing the exact fiber bounds shows that the linearly many witnesses contain quadratically many ordered pairs of coprime positions. Quantitatively, each long gap of length GG receives enough pairs to pay for G2G^2 with one fixed constant.

    Coprimality is the key structural move. If positions labelled by ar,asa_r,a_s are written as

    n=aru,m=asv, n=a_ru, \qquad m=a_sv,

    then coprimality of n,mn,m makes the quotient vector (u,v)(u,v) primitive. Repeated scalar dilations—the obstruction that defeated the naive pair count—disappear.

    Primitive-ray capacity and global charging

    For fixed labels (r,s)(r,s), all quotient vectors lie in a thin diagonal strip: their covered coordinates are bounded by the prefix, while their difference is bounded by the gap length. Sorting primitive lattice rays by slope and summing consecutive determinants gives a sharp fan-area estimate. In formal cross-multiplied form, the number of possible occurrences satisfies

    arascapacity4XCmin(r+1,s+1)+2aras. a_ra_s\,\mathrm{capacity} \le 4XC\min(r+1,s+1)+2a_ra_s.

    Distinct successive gaps inject into distinct quotient pairs, so this is a global capacity bound rather than a separate CRT estimate for each gap. Summing all pair payments yields

    G2K(X(r,s)Jmin(r+1,s+1)aras+J). \sum G^2 \le K\left( X\sum_{(r,s)\in J} \frac{\min(r+1,s+1)}{a_ra_s} + |J| \right).

    The first term is uniformly small for high ranks by kernel summability. The endpoint term J|J| is at most the square of the forbidden counting function, hence is o(X)o(X). A witness-forced maximum-gap lemma ensures all charged coordinates lie below a controlled multiple of the prefix. Together these facts prove uniform integrability of the actual squared gaps: for every ε>0\varepsilon>0, some HH makes the normalized contribution of all gaps at least HH eventually smaller than ε\varepsilon.

    From uniform tails to an actual limit

    Long-gap control solves only half the problem. For a fixed cutoff HH, define a local word cost at an integer nn: it is d2d^2 when a sieve gap of length d<Hd<H starts at nn, and zero otherwise. Summing these local costs over [0,x)[0,x) is exactly the sum of squared enumerated gaps shorter than HH.

    A finite forbidden prefix makes this local word periodic, so its normalized average converges to its one-period mean. The full sieve and a sufficiently remote finite prefix disagree on few points: a canonical tail divisor labels every disagreement, and the same reciprocal-mass inequality bounds their density by

    \text{tail reciprocal mass}+ rac{A(x)}x.

    Only starts whose length-HH window meets such a disagreement can change their local cost. Therefore every fixed truncated full-sieve average is eventually approximated arbitrarily well by a convergent periodic average, and hence converges.

    Finally, the exact gap sum is the truncated average plus its long-gap tail. Applying the same uniform-approximation principle a second time gives convergence of the full normalized second moment.

    Finite forbidden sets require a small separate argument: the sieve is periodic after the initial point, every gap is at most one product period, and a shifted periodic Cesàro average converges.

    Formal verification

    The proof was formalized in Lean 4.31.0 against Mathlib revision fabf563a7c95a166b8d7b6efca11c8b4dc9d911f. It proves the exact statement audited in check_answer/README.md, including the original inclusive counting function, the Nat.nth gap enumeration, and real squared differences.

    Two independent project builds passed:

    cd workspace/experiments/experiment_1_formal_statement/lean
    PATH="$HOME/.elan/bin:$HOME/.cargo/bin:$PATH" LEAN_NUM_THREADS=28 lake build
    # Build completed successfully (8618 jobs).
    

    The archival package contains the complete dependency closure:

    cd verified_math/F-061_erdos-489-positive-answer
    PATH="$HOME/.elan/bin:$PATH" lake update
    LEAN_NUM_THREADS=28 lake build
    # Build completed successfully (8608 jobs).
    

    A source audit also found no sorry or admit in the F-061 Lean files. The independent referee reran the verification, checked statement fidelity, and accepted the solution.

    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.

    ↓ Download full solution raw

  • 10) Erdős Problem #538Erdős Problem
    www.erdosproblems.com/538
    Question

    Let r2r\geq 2 and suppose that A{1,,N}A\subseteq\{1,\ldots,N\} is such that, for any mm, there are at most rr solutions to m=pam=pa where pp is prime and aAa\in A. Give the best possible upper bound fornA1n.\sum_{n\in A}\frac{1}{n}.

    (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.MatchingOrder
    Report

    Erdős Problem #538: the matching-order bound

    The problem and why it is hard

    For fixed r2r\ge 2, let A{1,,N}A\subseteq\{1,\dots,N\} satisfy the condition that every integer mm has at most rr representations

    m=pa, m=pa,

    with pp prime and aAa\in A. The problem asks for the best possible upper bound on

    S(A)=aA1a. S(A)=\sum_{a\in A}\frac1a.

    A weighted incidence count gives the natural upper scale

    S(A)=Or ⁣(logNloglogN). S(A)=O_r\!\left(\frac{\log N}{\log\log N}\right).

    The difficulty was proving that this scale is attainable. On a squarefree layer with exactly kk prime factors, write an integer as its kk-element set of prime divisors. The representation condition becomes a hypergraph condition: among the k+1k+1 facets of every (k+1)(k+1)-set, at most rr may be selected. For r=2r=2, this is the H3kH_3^k daisy problem.

    The elementary upper density is of order 1/k1/k, but previously available general constructions were only around 1/k21/k^2, up to logarithmic improvements. That missing factor of kk became exactly the missing factor of loglogN\log\log N in the number-theoretic problem.

    Where the standard approaches stalled

    Many natural constructions impose a checksum, coloring, or deletion code on each kk-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 1/k1/k, leaving density 1/k21/k^2. 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 aNa\le N, 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 k=d+1k=d+1 and an odd finite field K=FqK=\mathbb F_q, with qq comparable to kk. Label each ground vertex vv by

    (ϕv,cv)Kd×K. (\phi_v,c_v)\in K^d\times K.

    For a kk-set SS, define

    ΨS(λ)=vSλvϕv,BS(λ,μ)=vScvλvμv. \Psi_S(\lambda)=\sum_{v\in S}\lambda_v\phi_v, \qquad B_S(\lambda,\mu)=\sum_{v\in S}c_v\lambda_v\mu_v.

    Call SS favorable when:

    • ΨS\Psi_S is surjective, so its relation space is a line;
    • a generator λ\lambda of that line has full support;
    • BS(λ,λ)=0B_S(\lambda,\lambda)=0; and
    • the coefficient vector (cv)vS(c_v)_{v\in S} 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 (k+1)(k+1)-set TT. A selected facet missing xx contributes an isotropic relation in the parent relation space whose unique zero coordinate is xx. 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 u,vu,v are two isotropic generators and w=au+bvw=au+bv is a third distinct isotropic line, then a,b0a,b\ne0 and

    0=B(w,w)=2abB(u,v), 0=B(w,w)=2abB(u,v),

    so B(u,v)=0B(u,v)=0 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 Ω(1/k)\Omega(1/k)

    The favorable samples admit an injective finite-field parameterization. Its exact cardinality is

    (q1)d(i=0d1(qdqi))(qd1). (q-1)^d \left(\prod_{i=0}^{d-1}(q^d-q^i)\right) (q^d-1).

    When q2kq\ge 2k, this gives favorable density at least 1/(8q)1/(8q).

    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

    1q2. \frac1{q^2}.

    On a ground set with 2(mk)q22(m-k)\le q^2, 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 1/(16q)1/(16q).

    Bertrand's postulate supplies an odd prime 2k<p4k2k<p\le4k. Taking q=pq=p and m=2k2m=2k^2 gives, for every k2k\ge2, a cap-two kk-uniform family of density at least

    164k. \frac1{64k}.

    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 kk-prime-factor layer. First, color prime supports into 2k22k^2 colors so that at least half of the reciprocal weight is rainbow. Then average over permutations of the colors so that at least a 1/(64k)1/(64k) fraction of that rainbow weight lands in the safe-kernel palette.

    The resulting integer subfamily retains at least

    1128k \frac1{128k}

    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 mm come from one Ω\Omega-layer. Truncating at KloglogNK\asymp\log\log N, and using the squarefree harmonic-mass and first-moment estimates, gives an admissible cap-two family satisfying the explicit inequality

    log(N+1)4+8192(1+log2log2N)S(A). \log(N+1) \le 4+8192\bigl(1+\lfloor\log_2\lfloor\log_2N\rfloor\rfloor\bigr)S(A).

    Thus

    S(A)=Ω ⁣(logNloglogN). S(A)=\Omega\!\left(\frac{\log N}{\log\log N}\right).

    Together with the incidence upper bound, the best possible order for every fixed r2r\ge2 is

    Θr ⁣(logNloglogN). \boxed{\Theta_r\!\left(\frac{\log N}{\log\log N}\right)}.

    Verification

    The entire argument was formalized in Lean 4 with Mathlib. The final theorem uses the exact audited definitions of:

    • a finite set A[1,N]A\subseteq[1,N];
    • every solution pair (p,a)(p,a) to m=pam=pa;
    • the universal cap over every mm; and
    • the rational reciprocal mass aA1/a\sum_{a\in A}1/a.

    The verified chain includes the finite-field counts, injectivity of the favorable parameterization, the exact 1/q21/q^2 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.

    ↓ Download full solution raw

  • 11) Erdős Problem #662Erdős Problem
    www.erdosproblems.com/662
    Question

    Consider the triangular lattice with minimal distance between two points 11. Denote by f(t)f(t) the number of distances from any points t\leq t. For example f(1)=6f(1)=6, f(3)=12f(\sqrt{3})=12, and f(3)=18f(3)=18.Let x1,,xnR2x_1,\ldots,x_n\in \mathbb{R}^2 be such that d(xi,xj)1d(x_i,x_j)\geq 1 for all iji\neq j. Is it true that, provided nn is sufficiently large depending on tt, the number of distances d(xi,xj)td(x_i,x_j)\leq t is less than or equal to f(t)f(t) with equality perhaps only for the triangular lattice?In particular, is it true that the number of distances 3ϵ\leq \sqrt{3}-\epsilon is less than 11?

    (Erdős Problem #662 — geometry, distances — https://www.erdosproblems.com/662)

    Result

    The source-authenticated absolute-threshold/triangular-shell conjecture in Erdős Problem #662 is false: arbitrarily large one-separated planar sets exceed the triangular-lattice short-pair comparison under both closed and strict shell readings, with either the printed or corrected comparison values. In particular, a rational oblique lattice has 128 radius-6 offsets versus 126 triangular offsets, while another has 1078 offsets strictly below the genuine shell sqrt(300) versus corrected comparison 1074.

    Closed shell witness: basis u=(1,0), v=(136/305,273/305). The identity 305m^2+305n^2+272mn = 136(m+n)^2+169m^2+169n^2 proves one-separation. It has 128 nonzero offsets of radius at most 6, versus 126 for the triangular lattice. A 365x365 patch has 16,786,618 directed short pairs, exceeding 126*133,225 by 268; separated replicas make the counterexamples arbitrarily large.
    
    Strict shell witness: basis u=(1,0), v=(276/565,493/565). At squared radius 300 it has 1078 strict offsets, versus triangular closed comparison 1074. A 4535x4535 patch exceeds the directed allowance by 3296 and the unordered allowance by 1648. The key Lean conclusions are `Research.triangular_shell_six_global_average_reading_false` and `Research.strict_shell_readings_false`.
    Report

    Solving Erdős Problem #662

    Why this problem was unusually difficult

    Erdős Problem #662 asks whether the triangular lattice is extremal for the number of short distances in a large one-separated planar set. The natural comparison function counts triangular-lattice neighbours up to a threshold, and Erdős also proposed a stronger version at the lattice’s distance shells.

    The main obstacle was not initially the geometry. The surviving statement is corrupt. Its sample values disagree with the natural cumulative lattice count, its final “less than 1” clause is impossible as printed, and the total/local normalization is unclear. This created two incompatible historical narratives:

    • a threshold or shell extremal conjecture, which might be false;
    • Vesztergombi’s theorem on the multiplicities of the two smallest distances, which is true and was published in 1987.

    The maintained problem page consequently remained open and explicitly said that Erdős’s intent was unknown. A proof about any self-selected repair could be mathematically correct yet fail to answer the historical problem.

    There was a second trap. The triangular lattice is the densest planar lattice packing, so it is tempting to expect it to maximize every fixed-radius neighbour count. Density is an asymptotic invariant; finite-shell coordination is not. A slightly less dense oblique lattice can place more lattice points inside one particular ball.

    Where the earlier routes stalled

    Several natural attacks clarified the ambiguity but did not resolve it.

    • Square-grid blocks immediately defeat continuous-threshold average-degree readings between the first triangular shells. This is elementary, however, and does not address a conjecture restricted to genuine triangular-lattice shell radii.
    • A 38-point packing gives one point 37 neighbours below radius 3, beating the corrected triangular local count 36. That disproves a local interpretation, but not the global average-degree version suggested by the “sufficiently large” qualifier.
    • Formalizing Vesztergombi’s bound proved a beautiful theorem, but primary literature showed that it was already known and concerned the first two distinct distance values—not an absolute threshold.
    • Even exact counterexamples to closed shell readings were not enough while the 1997 source remained unauthenticated. The possible interpretations gave opposite answers.

    The recurring mistake was to treat statement repair and mathematical proof as one task. They had to be separated: first identify the historical subject externally, then cover the remaining damaged formula conventions rather than silently choosing one.

    Breakthrough 1: recovering the primary passage

    The missing source was found in the National Diet Library of Japan:

    • NDL PID 10996926;
    • DOI 10.11501/10996926;
    • Mathematica Japonica 46(3), November 1997;
    • P. Erdős, “Some of my favourite unsolved problems,” pp. 527–537.

    The scan images require authorized library or personal transmission, but the NDL explicitly permits anonymous full-text snippets. Twenty-eight exact-phrase responses from the target content were captured. Their OCR windows overlap to reconstruct 943 consecutive characters with no gap and no conflicting character.

    The primary text itself contains, in order:

    • the triangular lattice and the function f(t);
    • an arbitrary separated point sequence;
    • the comparison between its number of short distances and f(t);
    • the possible triangular-lattice equality case;
    • the particular sub-√3 question; and
    • Erdős’s stronger conjecture over the distance shells of the triangular lattice.

    This settled the historical fork. The 1997 problem really is about absolute thresholds and triangular shells. It is not Vesztergombi’s separate 1987 multiplicity theorem. The OCR is poor on displayed formulas, so it does not justify inventing one missing factor; instead, all natural local/global and printed/corrected conventions were treated separately.

    Breakthrough 2: finite-shell coordination beats density

    For the corrected closed global reading, consider the rational oblique lattice with basis

    u = (1,0),   v = (136/305, 273/305).
    

    It is one-separated because every integer offset satisfies

    305m² + 305n² + 272mn
      = 136(m+n)² + 169m² + 169n² ≥ 305
    

    when (m,n) ≠ (0,0).

    At ordinary radius 6, exact enumeration gives:

    triangular lattice: 126 nonzero offsets
    oblique lattice:    128 nonzero offsets.
    

    A finite patch needs boundary correction; an infinite-lattice count alone is not a counterexample to an eventual finite statement. For a 365 × 365 patch, exact incidence counting gives

    n = 133,225
    directed short pairs = 16,786,618
    126n                 = 16,786,350
    excess               = 268.
    

    Equivalently, there are 8,393,309 unordered short pairs, 134 more than 63n. Far-separated translated copies preserve the excess and produce counterexamples above every requested cardinality. Thus “sufficiently large” cannot rescue the conjecture.

    Breakthrough 3: the strict shell version also fails

    The quoted stronger conjecture uses strict inequalities at shell thresholds. A second rational lattice handles that version:

    u = (1,0),   v = (276/565, 493/565).
    

    Its separation follows from

    565m² + 565n² + 552mn
      = 276(m+n)² + 289m² + 289n² ≥ 565.
    

    Squared radius 300 is a genuine triangular shell, since 300 = 10² + 10² + 10·10. Exact counts are

    oblique offsets strictly below 300: 1078
    triangular offsets through 300:     1074
    triangular offsets strictly below:  1068.
    

    For a 4535 × 4535 patch:

    n = 20,566,225
    directed strict pairs = 22,088,128,946
    1074n                 = 22,088,125,650
    excess                = 3,296
    unordered excess      = 1,648.
    

    Again, separated replicas remove every cutoff. Under the printed comparison f(3)=18, the exact 38-point block already has 710 directed and 355 unordered pairs strictly below 3, exceeding 18·38=684 and 9·38=342; its central degree 37 also defeats both the printed local bound 18 and corrected local bound 36.

    The answer to the shell-extremality question is therefore no, under closed or strict thresholds and under the printed or corrected comparison conventions. The natural repaired particular statement below √3 is nevertheless true: angular separation gives fewer than 12 neighbours at every point and fewer than 6n unordered pairs.

    Verification

    Every geometric and counting claim was formalized in Lean 4 with Mathlib.

    • One-separation is derived symbolically from the displayed positive quadratic decompositions.
    • Offset windows are proved complete, not sampled.
    • Small finite censuses use kernel decide, never floating point or native_decide.
    • Huge patch counts are proved through dependent incidence types and injective endpoint maps; Lean does not enumerate billions of pairs.
    • Replication theorems quantify over every requested cutoff.
    • Independent Python scripts recompute all integer counts and boundary sums.
    • The source gate hash-checks the NDL captures and semantically verifies all 28 OCR overlaps offline.

    Running check_answer/verify.sh checks provenance hashes, reconstructs the primary OCR, runs both independent arithmetic audits, clean-builds 8570 Lean jobs, rejects sorry, admit, and native_decide, and prints an axiom audit. The only reported axioms are the standard Mathlib axioms propext, Classical.choice, and Quot.sound.

    Prior work

    Przemek Chojecki's April 2026 note, "Reconstructing a corrupted Erdos problem on small distances" (posted on the problem's erdosproblems thread), diagnosed the corrupted printed text first and worked out two repaired variants: a threshold-count repair with true breakpoint sqrt(2), and the historically intended shell-multiplicity reading via Vesztergombi's 1987 theorem. Full credit to him for the first public diagnosis and those repairs. Our submission treats different readings of the extremality question (closed and strict thresholds, both comparison conventions, at general radius), proved in Lean.

    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.

    ↓ Download full solution raw

  • 12) Erdős Problem #796Erdős Problem
    www.erdosproblems.com/796
    Question

    Let k2k\geq 2 and let gk(n)g_k(n) be the largest possible size of A{1,,n}A\subseteq \{1,\ldots,n\} such that every mm has <k<k solutions to m=a1a2m=a_1a_2 with a1<a2Aa_1<a_2\in A.Is it true thatg3(n)=loglognlognn+(c+o(1))nlogng_3(n)=\frac{\log\log n}{\log n}n+(c+o(1))\frac{n}{\log n}for some constant cc?

    (Erdős Problem #796 — number theory — https://www.erdosproblems.com/796)

    Result

    (g₃(n) − n·loglog n/log n)/(n/log n) → M + variationalLimit — the second-order term of g₃ converges to an explicit constant (answers the open follow-up on the problem thread)

    Report

    Erdős Problem #796 — exact second-order constant (accepted 2026-07-14)

    Proved an affirmative answer to Erdős Problem 796 in Lean. The closed theorem Erdos796.erdos796_statement : Erdos796.Statement proves that the faithful normalized residual converges to Mertens.M + variationalLimit, hence the requested constant exists. The two-gate upper reduction is closed by smoothRemainderGate_proved and the new extractedTailGate_proved; F-032 supplies the matching lower bound.

    Exact verifier command: cd /root/snapshot && check_answer/verify.sh workspace/experiments/experiment_4_upper_decomposition/lean Most recent output ends: Build completed successfully (8737 jobs). PASS: authored sources are placeholder-free and Lean accepts the project

    Axiom audit for both Erdos796.extractedTailGate_proved and Erdos796.erdos796_statement reports exactly [propext, Classical.choice, Quot.sound], with no sorryAx. Final verified record: F-054.

    Referee

    The agent claims a Lean-verified affirmative answer to Erdős 796: a closed theorem erdos796_statement proving ∃c with (g₃(n) − n·loglog n/log n)/(n/log n) → c (c = Mertens.M + variationalLimit). I audited the formal statement line-by-line against problem.md (faithful, quantifier-for-quantifier, identical to the pre-registered canonical file), re-ran the verifier myself (PASS, 8737 jobs), independently re-ran #print axioms (only propext/Classical.choice/Quot.sound — no sorryAx and no ofReduceBool, so the native_decide lemmas and the sorried PrimeNumberTheoremAnd declarations are provably outside the final proof's dependency cone), and re-elaborated Basic.lean and CanonicalTail.lean live from source. The proof is closed, hypothesis-free, machine-checked, and answers exactly the posed problem.

    Independent verification (separate hardware)

    Full environment reconstruction on a fresh GCP box (project + pinned sorry-free PrimeNumberTheoremAnd fork): lake build clean, pinned verifier PASS, #print axioms Erdos796.erdos796_statement → [propext, Classical.choice, Quot.sound]. The workspace's incidental native_decide lemmas and upstream sorried PNT declarations are provably outside the dependency cone.

    Public bundles

    https://pub-23f3a588e04a481196ed22d7e3a6f48d.r2.dev/verify/erdos-796/erdos-796-solution.zip (+ verify-cursor / verify-claude-code / verify-codex)

    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.

    ↓ Download full solution raw

  • 13) Erdős Problem #1188Erdős Problem
    www.erdosproblems.com/1188
    Question

    Call a set of distinct integers 1<n1<<nk1<n_1<\cdots<n_k with associated congruence classes ai(modni)a_i\pmod{n_i} a distinct covering system if every integer satisfies at least one of these congruences. A minimal distinct covering system is one such that no proper subset forms a covering system.Let F(x)F(x) count the number of minimal distinct covering systems with all moduli in [1,x][1,x]. Estimate F(x)F(x).

    (Erdős Problem #1188 — number theory, covering systems — https://www.erdosproblems.com/1188)

    Result

    The number F(x) of minimal covering systems with all moduli in [1,x] satisfies log log F(x) / log x → 1 — that is, F(x) = exp(x^{1+o(1)}). Erdős expected F(x) to grow 'very slowly'; it in fact grows nearly double-exponentially.

    theorem erdos1188_loglog_ratio_tendsto_one :
        Tendsto (fun x : ℕ =>
          Real.log (Real.log (coveringCount x : ℝ)) / Real.log (x : ℝ))
          atTop (𝓝 1)
    Report

    Counting Minimal Covering Systems: F(x) = exp(x^{1+o(1)})

    The problem

    A distinct covering system is a finite set of congruences ai(modni)a_i\pmod{n_i} with pairwise distinct moduli 1<n1<<nk1<n_1<\cdots<n_k whose classes cover every integer; it is minimal if no proper subset covers. Let F(x)F(x) count the minimal distinct covering systems with all moduli in [1,x][1,x]. Erdős asked to estimate F(x)F(x) — he reportedly expected slow growth.

    The answer is nearly doubly exponential:

    theorem erdos1188_loglog_ratio_tendsto_one :
        Tendsto (fun x => Real.log (Real.log (coveringCount x)) / Real.log x)
          atTop (𝓝 1)
    

    that is, loglogF(x)logx\log\log F(x)\sim\log x, equivalently F(x)=exp ⁣(x1+o(1))F(x)=\exp\!\big(x^{1+o(1)}\big).

    Why matching bounds are the whole game

    The upper bound at this scale is straightforward — there are at most nx(n+1)=exp(O(xlogx))\prod_{n\le x}(n+1)=\exp(O(x\log x)) ways to pick at most one residue per modulus, and being a covering system only cuts this down. The problem lives entirely in the lower bound: one must construct enormously many genuinely distinct, minimal covering systems with bounded moduli. An earlier squarefree construction here produced a much weaker lower scale, and the first submission was rejected by the independent referee precisely because the lower and upper estimates did not meet. The accepted proof closes that gap with a sparser construction.

    The sparse no-axis construction

    Classical covering systems lean on a "primorial axis" — congruences whose moduli are products of all small primes — which is rigid and wastes modulus budget. The construction removes it entirely.

    Fix base CRT prime coordinates p0,,pm1p_0,\dots,p_{m-1} and a closing prime pmp_m. For each late coordinate ii, set ri=log2(i+1)+1r_i=\lfloor\log_2(i+1)\rfloor+1 and a window hi=2048rih_i=2048\,r_i, and assign every nonzero residue of pip_i injectively to a cross-pair support {u,v}\{u,v\} with u<hiv<iu<h_i\le v<i; an explicit prime estimate guarantees enough pairs. Every residue of the closing coordinate receives its own support (empty, singletons, then cross-pairs), with reserved singletons keeping each base spike private — this yields coverage and a private witness for every congruence, which is exactly minimality. CRT transport converts the abstract frame into a minimal distinct integer covering system.

    Counting. At every late coordinate the range of the residue-to-support injection is a free choice, and the finished system determines every choice (the family map is injective). This gives at least 2Em2^{E_m} systems with Em(mB2)E_m\ge\binom{m-B}{2}, while every support uses at most three primes of controlled size, so all moduli fit under an explicit cutoff polynomial in mm (up to log factors). Interpolating the parametric family at all cutoffs and comparing with the upper bound yields the limit statement.

    Verification

    The faithful counting object pins the exact convention: canonical residues, pairwise distinct moduli >1>1, coverage quantified over all integers, minimality as "no proper subfamily covers", systems counted as unordered sets. The final theorem builds sorry-free from a fresh directory with pinned toolchain and manifest, rejecting sorry/admit/native_decide (8,592 jobs; axioms [propext, Classical.choice, Quot.sound]). A concrete 70-class witness below modulus 1000 is verified by an independent exact Rust checker (with negative tests), tying the abstract construction to a concrete covering system anyone can inspect.

    The download bundle contains the pinned definitions, the full proof chain, the witness and checker, and the one-command verifier.

    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.

    ↓ Download full solution raw

Partial Solutions (6)

Real, machine-checked results on the problem, where the problem as posed asks for more.

  • 1) Erdős Problem #130Erdős Problem
    www.erdosproblems.com/130
    Question

    Let AR2A\subset\mathbb{R}^2 be an infinite set which contains no three points on a line and no four points on a circle. Consider the graph with vertices the points in AA, where two vertices are joined by an edge if and only if they are an integer distance apart. How large can the chromatic number and clique number of this graph be? In particular, can the chromatic number be infinite?

    (Erdős Problem #130 — graph theory, chromatic number — https://www.erdosproblems.com/130)

    Result

    There exists an infinite set A in R^2 containing no three collinear points and no four concyclic points such that, for every natural number k, the graph joining pairs at positive integer distance has no proper k-coloring. Thus the chromatic number in Erdos Problem #130 can be infinite.

    theorem Erdos130.erdos130_infinite_chromatic :
        Exists fun A : Set Point =>
          And A.Infinite
            (And (GeneralPosition A)
              (forall k : Nat, Not (HasKColoring A k))) := by
      exact InfiniteAssembly.erdos130_infinite_chromatic_solution
    Report

    An Infinite-Chromatic Integer-Distance Graph in General Position

    The problem and the obstruction

    Erdős Problem #130 asks whether an infinite set of points in the real plane can simultaneously satisfy two demands that pull in opposite directions:

    • strong general position: no three points are collinear and no four are concyclic;
    • arithmetic density: the graph joining pairs at positive integer distance has infinite chromatic number.

    The difficulty is not merely finding many integer distances. Classical constructions can realize complicated finite graphs by integer distances, but they often put all vertices on one circle. Conversely, placing points on a parabola or another rigid curve makes general position nearly automatic, but turns integer distance into a sparse Diophantine condition whose chromatic behavior is opaque.

    Even the clique version illustrates the rigidity: a general-position integral clique of size seven is known, while the next case has resisted direct attack. An infinite-chromatic graph cannot therefore be expected to arise from simply enlarging cliques.

    Where the natural approaches stalled

    Several standard coordinate systems expose only one half of the problem.

    • Universal finite-graph realizations control distances but are typically cocircular, violating the no-four-on-a-circle condition in the strongest possible way.
    • Parabola and hyperbola parametrizations solve the incidence problem, but reduce adjacency to Pythagorean sum or product graphs over the rationals. Exact searches found small chromatic examples, not a mechanism forcing unbounded chromatic number.
    • Finite-field parabola caps avoid collinear triples but produced low-degeneracy integer-distance graphs and many cyclic configurations.
    • Naive homothetic Ramsey constructions can force chromatic complexity, but a finite homothetic Ramsey witness necessarily contains structured collinear subsets. General position cannot simply be appended afterward.

    The underlying mismatch was trying to make the points themselves carry both the Ramsey structure and the incidence genericity. The successful construction assigns those jobs to different geometric objects and different stages.

    The change of coordinates: circles first, points later

    The key move is to construct a graph as a circle tangency graph and only afterward extract planar points.

    For positive circles with rational centers and rational radii, external tangency gives

    cicj=ri+rj. |c_i-c_j|=r_i+r_j.

    Thus tangency already supplies rational center distances. After a common scaling, those distances become integers. Circle configurations also have enough continuous algebraic freedom to impose genericity without destroying their prescribed tangencies.

    This separates the proof into three independent tasks:

    1. build finite rational circle tangency graphs of arbitrarily high chromatic number;
    2. use circle inversion to make their centers geometrically generic;
    3. place countably many finite point blocks together without creating mixed degeneracies.

    The Hales--Jewett tangency booster

    Suppose a finite circle family indexed by an alphabet α has no proper coloring by k colors. Hales--Jewett supplies a finite word dimension ι such that every coloring of the words ι → α contains a monochromatic combinatorial line.

    For positive weights γᵢ, each word determines weighted center and radius data. The construction introduces:

    • a large circle for every word;
    • a small homothetic copy of the old family for every combinatorial line;
    • one matched tangency between each word on that line and its corresponding circle in the small copy.

    If the new family had a (k+1)-coloring, Hales--Jewett would give a monochromatic line among the large circles. If a matched small circle used that color, its matched tangency would be monochromatic. Otherwise the entire small copy avoids that color and induces a k-coloring of the old family, again impossible. This raises the required number of colors by one.

    The combinatorial identity is easy; preserving geometry is not. The induction maintains a GoodFamily invariant:

    • every radius is positive;
    • centers are injectively indexed;
    • no distinct pair is internally tangent;
    • no distinctly indexed triple is coaxial.

    Every possible failure for the large word circles is represented by an explicit multivariate polynomial in the weights and large radius. Pair and triple nonidentity lemmas show that their finite product is nonzero. Polynomial extensionality on an infinite rational box then chooses positive rational weights and a sufficiently large rational radius avoiding every failure simultaneously.

    Each small line copy is adjoined in a rational direction on the unit circle. A second finite product of univariate exceptional polynomials excludes mixed center collisions, internal tangencies, and coaxial triples. Iterating from one circle yields finite positive rational good circle families with arbitrarily high tangency chromatic number.

    Why inversion fixes general position

    Taking the original circle centers would not suffice. Instead, invert the circles about a generic rational center O. For a circle with center c_i and radius r_i, write

    Di=ciO2ri2. D_i=|c_i-O|^2-r_i^2.

    When D_i≠0, the image circle has relative center

    pi=ciODi. p_i=\frac{c_i-O}{D_i}.

    Three such centers are collinear precisely when a denominator-cleared determinant vanishes. As a polynomial in O, that determinant is identically zero exactly for a coaxial source triple. The induction has already excluded those triples.

    The quadruple condition is subtler. Its cleared cyclic determinant is again a polynomial in O. If it vanished identically, a Lorentzian circle-space argument would force four positive circle vectors into a forbidden pairwise-orthogonal configuration. The formal Gram-determinant identity rules this out whenever the relevant source triples are noncoaxial.

    There are only finitely many denominator, triple, and quadruple conditions. Their product is a nonzero bivariate polynomial, so one rational inversion center avoids all of them. The inverse centers therefore have nonzero orientation for every distinct triple and nonzero cyclic determinant for every distinct quadruple.

    Tangency survives in the exact form

    pipj2=(riDi+rjDj)2. |p_i-p_j|^2= \left(\frac{r_i}{D_i}+\frac{r_j}{D_j}\right)^2.

    All terms are rational. A single positive natural multiplier clears the denominators of every signed transformed radius. Uniformly scaling the inverse centers then turns every required tangency edge into a positive integer-distance edge while preserving general position.

    The final obstacle: combining all finite witnesses

    Unbounded finite chromatic number is not yet one infinite example. Arbitrary translations of finite blocks preserve their internal integer distances, but may create new collinear triples or concyclic quadruples involving several blocks.

    The blocks are inserted recursively. A new block is translated by

    (t,t3). (t,t^3).

    For each insertion, every mixed collision, orientation, and cyclic determinant becomes an explicit univariate polynomial in t. The one-moving and three-moving cases have a leading coefficient equal, up to sign, to a nonzero orientation. The decisive two-moving/two-fixed cyclic case has coefficients

    K6=(AxBx)(CyDy)(AyBy)(CxDx),K4=2((AxBx)(CxDx)(AyBy)(CyDy)). \begin{aligned} K_6&=-(A_x-B_x)(C_y-D_y)-(A_y-B_y)(C_x-D_x),\\ K_4&=-2\big((A_x-B_x)(C_x-D_x)-(A_y-B_y)(C_y-D_y)\big). \end{aligned}

    If both vanished, the product

    AB2CD2 |A-B|^2\,|C-D|^2

    would vanish. Both pairs are distinct, so this is impossible. Hence every mixed exceptional polynomial is genuine. A rational t avoids their finite product.

    A verified prefix state stores all parameters chosen so far together with a proof of strong general position. Earlier parameters remain unchanged when a block is added. Any finite tuple of points in the eventual countable union appears in some later verified prefix, so global general position follows. Translation preserves every within-block distance, and the kth block still defeats every k-coloring. Therefore the final integer-distance graph has no finite proper coloring.

    Formal verification

    The proof is fully machine-checked in Lean 4 + Mathlib against the original pinned statement, not a weakened surrogate. The final theorem is:

    theorem Erdos130.erdos130_infinite_chromatic :
        ∃ A : Set Point,
          A.Infinite ∧ GeneralPosition A ∧ ∀ k : ℕ, ¬ HasKColoring A k
    

    Verification included:

    • a clean lake clean && lake build of the checker project;
    • an empty scan for sorry, admit, or declared axioms;
    • an axiom audit showing only Mathlib's standard propext, Classical.choice, and Quot.sound;
    • a second self-contained build of the archived F-017 proof project;
    • an independent referee rerun and acceptance.

    The final proof artifact is verified_math/F-017_erdos130-infinite-chromatic-solution/Research/InfiniteAssembly.lean; the exact verifier-facing theorem is in Research/Basic.lean in the same archived project.

    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.

    ↓ Download full solution raw

  • 2) Erdős Problem #709Erdős Problem
    www.erdosproblems.com/709
    Question

    Let f(n)f(n) be minimal such that, for any A={a1,,an}[2,)NA=\{a_1,\ldots,a_n\}\subseteq [2,\infty)\cap\mathbb{N} of size nn, in any interval II of f(n)max(A)f(n)\max(A) consecutive integers there exist distinct x1,,xnIx_1,\ldots,x_n\in I such that aixia_i\mid x_i.Obtain good bounds for f(n)f(n), or even an asymptotic formula.

    (Erdős Problem #709 — number theory — https://www.erdosproblems.com/709)

    Result

    log₂n/(log₂(log₂n+1)+1) ≤ f(n) ≤ 7(⌊(n³)^(1/7)⌋+1) ≤ 14·n^(3/7) — first improvement of the Erdős–Surányi (1959) √n upper bound

    Report

    Erdős Problem #709 — f(n) ≤ 14·n^(3/7) (accepted 2026-07-14)

    Resubmission fixing the sole issue in the latest review. The referee explicitly confirmed that the canonical statement is faithful and successfully force-compiled the full three-sevenths proof with only standard Mathlib axioms; it rejected only because the exact script could not find lake when sandbox HOME differed from /root.

    That exact portability defect is fixed in check_answer/verify.sh: it now prepends /root/.elan/bin and /root/.cargo/bin, sets fallback ELAN_HOME=/root/.elan, also checks caller-HOME locations, and emits a clear error if lake is absent. I tested the unchanged command under a deliberately hostile environment:

    env -u ELAN_HOME HOME=/tmp/f030-hostile-home PATH=/usr/bin:/bin LEAN_NUM_THREADS=28 ./check_answer/verify.sh PASS: canonical Erdos 709 statement and all attached proofs compile without proof escapes

    The log is attached as F-030/verification-hostile-home.txt.

    Mathematical claim (already force-compiled by the latest referee): for the faithful natural least scale f(n), ScaleWorks n (7*(Nat.nthRoot 7 (n^3)+1)), (f(n):R) <= 14n^(3/7) for n>=1. Thus delta=1/14 below the historical 1/2 exponent. The explicit binary-log lower endpoint remains proved. The new #709 contribution is the Katz--Tao four-projection transfer through multiples 0,3,4,6, disjoint 7max(A) blocks, aggregation, and exact Hall.

    Exact verifier required by the project: ./check_answer/verify.sh Current output: PASS: canonical Erdos 709 statement and all attached proofs compile without proof escapes

    Referee

    The agent claims a machine-verified exponent improvement for Erdős #709: the exact minimal natural scale satisfies log₂n/(log₂(log₂n+1)+1) ≤ f(n) ≤ 7(⌊(n³)^{1/7}⌋+1) ≤ 14n^{3/7}, beating the 1959 Erdős–Surányi √n upper bound via a self-contained Lean formalization of the Katz–Tao four-projection theorem. I audited the canonical statement quantifier-by-quantifier against problem.md (faithful), re-ran the exact claimed verifier in both normal and hostile-HOME environments (exit 0, PASS), and independently rebuilt everything in a clean workspace from sources only with pinned Mathlib fetched fresh from official servers (8043 jobs, success) with my own #print axioms showing only propext/Classical.choice/Quot.sound. This meets the acceptance bar explicitly set in the prior referee round (an exponent change, f(n) ≤ n^{1/2−δ}, here δ=1/14); note for human review that this is a strict improvement of the published upper-bound exponent on a still-open problem, not a matching-order asymptotic formula.

    Independent verification (separate hardware)

    Self-contained archive rebuilt on a fresh GCP box: portable verifier PASS (8,043 jobs), axiom audit exactly [propext, Classical.choice, Quot.sound].

    Public bundles

    https://pub-23f3a588e04a481196ed22d7e3a6f48d.r2.dev/verify/erdos-709/erdos-709-solution.zip (+ verify-cursor / verify-claude-code / verify-codex)

    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.

    ↓ Download full solution raw

  • 3) Erdős Problem #769Erdős Problem
    www.erdosproblems.com/769
    Question

    Let c(n)c(n) be minimal such that if kc(n)k\geq c(n) then the nn-dimensional unit cube can be decomposed into kk homothetic nn-dimensional cubes. Give good bounds for c(n)c(n) - in particular, is it true that c(n)nnc(n) \gg n^n?

    (Erdős Problem #769 — number theory, geometry — https://www.erdosproblems.com/769)

    Result

    c(n) ≫ n^n is FALSE: c(n) = o(n^n) along odd dimensions (explicit threshold n·2^n·⌈49n/100⌉^n + 2)

    Report

    Erdős Problem #769 — negative resolution (accepted 2026-07-14)

    Unconditional negative solution to Erdős Problem 769: for every odd n>=201, every k >= n2^nceil(49n/100)^n+2 is an exact cubical tiling count, and this threshold is o(n^n). Hence c(n)/n^n tends to zero along odd dimensions and c(n) >> n^n is false. The self-contained Lean theorem is Erdos769.erdos769_lower_bound_false : ¬ Erdos769LowerBound. Exact verification: cd verified_math/F-020_elementary-asymptotic-disproof/lean && /root/.elan/bin/lake update && /root/.elan/bin/lake exe cache get && LEAN_NUM_THREADS=28 /root/.elan/bin/lake build && cd ../../.. && check_answer/verify.sh --disproof verified_math/F-020_elementary-asymptotic-disproof/lean. Output: PASS: canonical Erdős 769 lower-bound proposition disproved by Lean with no sorry/admit/custom axioms (only propext, Classical.choice, Quot.sound).

    Referee

    The agent claims a negative resolution of Erdős 769: Lean proves ¬Erdos769LowerBound, because for odd n ≥ 201 every k ≥ n·2^n·⌈49n/100⌉^n + 2 = o(n^n) is an exact homothetic-cube tiling count of the unit n-cube, so c(n) ≫ n^n is false. I audited the canonical formal statement line-by-line against problem.md (axis-parallel positive homothets, half-open exact cover equivalent to the standard closed decomposition, IsCutoff pinning the true minimal c(n), A/B-rational rendering of ≫ — all faithful, with no vacuous-negation loophole since the disproof must and does construct genuine tilings and a genuine minimal cutoff via well-ordering), confirmed the spec/lakefile/toolchain are byte-identical to the checker's pinned copies, scanned all local sources for sorry/admit/axiom/native_decide/extern/unsafe (none), and re-ran the official verifier myself: PASS with only propext, Classical.choice, Quot.sound. To rule out tampered build artifacts I additionally copied the project, deleted all local build products, revalidated the Mathlib cache against the official origin, recompiled all 13 Research modules from source (all freshly Built, zero errors), and re-ran the gate on that clean copy: PASS again. The mathematical chain (regular-grid tilings, substitution increments m^n−1, gcd-one for the 49/100-truncated increments in odd dimensions, quantitative Bézout conductor mod 2^n−1, o(n^n) decay, negation bridge) is internally coherent, elementary, consistent with the ledger and with known bounds; the kernel certifies the rest.

    Independent verification (separate hardware)

    Fresh GCP box, source-only archive: lake exe cache get && lake build → Build completed successfully (8,571 jobs); #print axioms Erdos769.erdos769_lower_bound_false → [propext, Classical.choice, Quot.sound]; escape-hatch grep clean.

    Public bundles

    https://pub-23f3a588e04a481196ed22d7e3a6f48d.r2.dev/verify/erdos-769/erdos-769-solution.zip (+ verify-cursor / verify-claude-code / verify-codex variants)

    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.

    ↓ Download full solution raw

  • 4) Erdős Problem #959Erdős Problem
    www.erdosproblems.com/959
    Question

    Let AR2A\subset \mathbb{R}^2 be a set of size nn and let {d1,,dk}\{d_1,\ldots,d_k\} be the set of distinct distances determined by AA. Let f(d)f(d) be the number of times the distance dd is determined, and suppose the did_i are ordered such thatf(d1)f(d2)f(dk).f(d_1)\geq f(d_2)\geq \cdots \geq f(d_k).Estimatemax(f(d1)f(d2)),\max (f(d_1)-f(d_2)),where the maximum is taken over all AA of size nn.

    (Erdős Problem #959 — geometry, distances — https://www.erdosproblems.com/959)

    Result

    M(n) ≥ n^(1 + 1/(50000·log log n)) for all large n — superlinear lower bound on the top-two distance-multiplicity gap (previous best Ω(n log n))

    Report

    Erdős Problem #959 — superlinear lower bound (accepted 2026-07-14)

    Proved a fully formal explicit superlinear lower estimate for the faithful maximum-gap reformulation of Erdos Problem 959: with c=1/50000, for every sufficiently large n, (n : R)^(1 + c/log(log n)) <= M(n)=extremalGap(n). This resolves the explicit modern question whether M(n) >= n^(1+c/log log n); it does not claim a matching upper bound or exact asymptotic order. The proof constructs normalized replicated lattice disks indexed by subsets of primes 1 mod 4, suppresses every competitor by reduced-denominator support, places blocks and padding points generically, chooses replication adaptively for every n, and uses a formal PNT in arithmetic progressions for the asymptotics.

    Exact local verifier command: check_answer/verify.sh Exact final output: PASS: faithful formal quantity and all current Lean proofs compile without placeholders The verifier also prints: 'chebyshev_asymptotic_pnt' depends on axioms: [propext, Classical.choice, Quot.sound], and rejects sorryAx. Final theorem: Erdos959.erdos959_superlinear_lower_bound in Research/FinalLowerBound.lean and verified_math/F-044_erdos959-superlinear-lower-bound/FinalLowerBound.lean.

    Post-referee hardening

    Two trivial native_decide certificates (both Nat.totient 4 = 2) were replaced with kernel decide after referee approval; the full pinned verifier re-ran PASS.

    Referee

    The agent claims a fully formal Lean proof that Erdős #959's extremal top-two distance-multiplicity gap satisfies M(n) ≥ n^(1+1/(50000·log log n)) for all sufficiently large n — a superlinear lower bound resolving the modern lower-bound question (previous best was Ω(n log n)); it explicitly does not claim a matching upper bound or exact order. I audited the formal definitions line-by-line against problem.md (faithful: exact real squared distances, unordered pairs, correct gap semantics including ties, true maximum over all n-point sets), rebuilt the entire 8624-job Lean project from a cleared build cache and reproduced the verifier's PASS (exit 0), and ran my own #print axioms on the final theorem: clean except two native_decide certificates that reduce to Nat.totient 4 = 2, which I re-proved by kernel decide. The result is machine-verified, honestly scoped, and answers the explicit superlinear-gap question; note when reviewing that the exact asymptotic order of M(n) (versus the O(n^(4/3)) unit-distance ceiling) remains open and is not claimed.

    Independent verification (separate hardware)

    Fresh GCP box, correct snapshot layout (project + pinned PNT fork): full lake build PASS; #print axioms Erdos959.erdos959_superlinear_lower_bound → [propext, Classical.choice, Quot.sound]; word-boundary escape-hatch grep clean.

    Public bundles

    https://pub-23f3a588e04a481196ed22d7e3a6f48d.r2.dev/verify/erdos-959/erdos-959-solution.zip (+ verify-cursor / verify-claude-code / verify-codex)

    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.

    ↓ Download full solution raw

  • 5) Erdős Problem #1183Erdős Problem
    www.erdosproblems.com/1183
    Question

    Let f(n)f(n) be maximal such that in any 22-colouring of the subsets of {1,,n}\{1,\ldots,n\} there is always a monochromatic family of at least f(n)f(n) sets which is closed under taking unions and intersections. Estimate f(n)f(n).Let F(n)F(n) be defined similarly, except that we only require the family be closed under taking unions. Estimate F(n)F(n). In particular, is it true that F(n)nω(n)F(n)\geq n^{\omega(n)} for some ω(n)\omega(n)\to \infty as nn\to \infty, and F(n)<(1+o(1))nF(n)<(1+o(1))^n?

    (Erdős Problem #1183 — combinatorics, ramsey theory — https://www.erdosproblems.com/1183)

    Result

    For every k and every n >= 2^(2^(2^(k+16))), F(n) >= n^k, while for n >= 121 one has F(n) <= n^(floor(sqrt(n))+1); hence F(n) is superpolynomial and subexponential. For every n, the lattice parameter satisfies (n+2)/2 <= f(n) <= n^2+n+1.

    def quantitativeUnionThreshold (k : Nat) : Nat :=
      2 ^ (2 ^ (2 ^ (k + 16)))
    
    theorem unionRamsey_quantitative_lower :
        forall k n : Nat, quantitativeUnionThreshold k <= n ->
          n ^ k <= unionRamseyNumber n
    
    theorem unionRamsey_superpolynomial :
        Superpolynomial unionRamseyNumber
    
    theorem unionRamsey_subexponential :
        Subexponential unionRamseyNumber
    
    theorem latticeRamsey_estimate :
        forall n : Nat, (n + 2) / 2 <= latticeRamseyNumber n /\
          latticeRamseyNumber n <= n + n * n + 1
    Report

    Solving Erdős Problem #1183

    The problem and why it is difficult

    Given a red-blue colouring of every subset of an n-element set, let F(n) be the largest size of a monochromatic family that is closed under unions. Let f(n) be the analogous quantity when the family must be closed under both unions and intersections.

    A chain immediately gives a lower bound of about n/2, but a chain does not reveal the true scale of the problem. The central question was whether arbitrary colourings must contain union-closed families that are simultaneously superpolynomial in n and subexponential in 2^n. These requirements pull in opposite directions: closure gives useful algebraic structure, but an adversarial colouring can destroy most familiar structured subfamilies.

    The difficulty is especially sharp for lower bounds. Producing one fixed-dimensional monochromatic Boolean cube is a finite Ramsey statement; producing n^k compatible sets for every fixed k, in every sufficiently large dimension, requires a supersaturation mechanism and a way to make many local cubes coexist inside one closed family.

    Where the established approaches stalled

    Several natural routes expose real structure but do not solve the arbitrary-colouring lower bound.

    • Chains only give the classical linear lower bound.
    • Rank colourings are too special. Howorka's restricted result concerns colourings determined by set size, whereas the problem quantifies over every colouring.
    • Free tuples and VC dimension are powerful for upper bounds: complements convert free union generators into shattered sets, and a random-colouring argument suppresses high free rank. This yields subexponential upper bounds, but it does not force large monochromatic families.
    • A recent preprint obtained a quasipolynomial upper bound for F(n) and an O(n log n) upper bound for f(n), while explicitly leaving open whether F(n) is polynomial or superpolynomial.
    • A bare finite Hales--Jewett theorem supplies a monochromatic block cube of each fixed dimension, but its seed is only existential. By itself it gives no usable dependence between the target power and the ambient dimension.

    Computational reconnaissance also ruled out tempting shortcuts. Products of chains did not amplify the lower bound in small exact cases; standard set-family compressions could increase the objective; and a lazy SAT search for the next small value thrashed without producing asymptotic structure.

    The approach that worked

    1. Turn one Ramsey cube into many same-shaped cubes

    Fix a target exponent k and set d=k+2. Begin with a dimension N in which every two-colouring contains a monochromatic d-dimensional block cube.

    Now count all N-coordinate intervals inside 2^[n]. Each interval contains such a cube. Double-counting interval-cube incidences, followed by pigeonholing the ordered block-size vector and the common top, produces more than n^(s-1) monochromatic cubes of one shape, where d≤s≤N is their support size.

    This is the first key change of viewpoint: instead of asking one Ramsey theorem to produce a huge family directly, use it only as a local seed, then obtain abundance from the ambient Boolean lattice.

    2. Colour-code the cubes into globally disjoint atoms

    Many cubes are not automatically compatible: their blocks may overlap in arbitrary ways. A finite colour-coding argument labels every ground-set point by a block type and one of 2n slots. Averaging shows that one labelling retains more than n^(d-2) cubes while assigning each block to its own reserved label fibre.

    Those fibres are globally disjoint atoms. Each retained cube becomes a d-edge on the atom pool, and every subedge corresponds to a monochromatic face. Taking the downward closure of the edges and mapping an atom set to the corresponding block deletion gives a monochromatic union-closed family. Union of deletion sets becomes intersection of atom-index sets, exactly the operation preserved by downward closure.

    Thus the construction yields more than

    n^(d-2) = n^k
    

    monochromatic union-closed sets.

    3. Make the Ramsey seed quantitative via Lubell mass

    The qualitative proof still hid the seed dimension N. The decisive quantitative insight was to replace general Hales--Jewett bounds by a direct Boolean-cube theorem based on random maximal chains.

    For a family on at most N points, define recursively

    T(N,0)   = 1,
    T(N,r+1) = 1 + sqrt(2 N T(N,r)).
    

    Lubell mass is the expected number Y of family members met by a uniformly random maximal chain. The second factorial moment E[choose(Y,2)] admits an exact decomposition over nonempty gaps S: each term is the reciprocal-binomial weight of S multiplied by the Lubell mass of the paired lower-endpoint family associated with that gap.

    If no (r+1)-cube exists, none of those paired families contains an r-cube. Induction bounds their masses, while convexity gives the matching lower bound

    L(L-1)/2 ≤ E[choose(Y,2)].
    

    This proves that Lubell mass above T(N,r) forces an (r+1)-cube. Iterating the recurrence gives

    T(N,r)^(2^r) ≤ (8N)^(2^r-1),
    

    and hence T(N,r)<N/2 whenever N>16^(2^r).

    The two colour classes have Lubell masses summing to N+1, so one exceeds N/2. Therefore an explicit double-exponential dimension suffices for the block-cube seed. Substituting

    d = k+2,
    N = 2^(2^(k+4))
    

    into the supersaturation construction and bounding both finite construction constants by 2^(4N²) yields the fully explicit theorem

    n ≥ 2^(2^(2^(k+16)))  ⇒  F(n) ≥ n^k.
    

    This proves that F(n) is superpolynomial. Independently, the free-rank/VC-dimension argument gives the explicit upper bound

    F(n) ≤ n^(floor(sqrt(n))+1)    for n≥121,
    

    which is subexponential.

    4. Give a direct estimate for the lattice parameter

    A separate canonical encoding gives a concise all-n estimate for f(n). For a nonempty family L closed under union and intersection, let B be its bottom element. For each coordinate i, let G_i be the intersection of all members containing i, using B if there is no such member. Then

    A = B ∪ ⋃_{i∈A} G_i    for every A∈L.
    

    Thus L is reconstructed injectively from B and the function i↦G_i. There are at most

    2^n (2^n)^n = 2^(n+n²)
    

    such codes. An exact property-B union bound produces a colouring with no monochromatic lattice family of size n²+n+2. Together with the chain construction, this gives

    (n+2)/2 ≤ f(n) ≤ n²+n+1
    

    for every natural n.

    Verification

    The entire argument was formalised in Lean 4 with Mathlib. The canonical file contains faithful finite definitions of subsets, colourings, monochromaticity, union/intersection closure, both exact Ramsey maxima, and all four final theorems.

    The verifier does more than grep for proof holes:

    • it compiles the complete self-contained Lean source;
    • it rejects custom axiom and constant declarations;
    • it rejects any target depending on sorryAx;
    • it audits #print axioms for every final theorem;
    • it permits only Mathlib's standard propext, Classical.choice, and Quot.sound dependencies.

    The final command is

    ./check_answer/verify.sh final
    

    and its final line is

    PASS: Lean accepted all four faithful target theorems without proof holes or custom axioms
    

    An independent referee reran the verifier, audited statement fidelity against the original problem, and accepted the solution.

    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.

    ↓ Download full solution raw

  • 6) Erdős Problem #1186Erdős Problem
    www.erdosproblems.com/1186
    Question

    Let δk\delta_k be such that in any 22-colouring of {1,,n}\{1,\ldots,n\} there exist at least (δk+o(1))n2(\delta_k+o(1))n^2 many monochromatic kk-term arithmetic progressions. Give reasonable bounds (or even an asymptotic formula) for δk\delta_k.

    (Erdős Problem #1186 — additive combinatorics, arithmetic progressions — https://www.erdosproblems.com/1186)

    Result

    δ₃ = 117/2192 exactly: every 2-coloring of {1,…,n} contains at least (117/2192 + o(1))·n² monochromatic 3-term arithmetic progressions, and the known 548-bead coloring attains it — settling the Parrilo–Robertson–Saracino conjecture (2008) and the question Graham put a prize on in 1999. The matching lower bound is an exact rational sum-of-squares certificate verified by two independent exact-arithmetic checkers; its discrete-to-continuum reduction is hand-verified. Update (2026-07-13): the 548-cell census at the heart of the upper bound is now additionally kernel-checked in Lean itself (theorem Erdos1186Census.score_eq, axiom audit: [propext] only, no native_decide) — the first brick of the in-progress full formalization.

    /-- A finite, division-free formulation of the two bounds on δ_k. -/
    theorem erdos1186_explicit_bounds
        {k W : ℕ} (hk : 2 ≤ k) (hvdw : VanDerWaerdenProperty k W) :
        (∀ (n : ℕ) (c : ℕ → Bool),
          4 * (W - 1) * ((W - 1) / (k - 1)).factorial ≤ n →
          ((W - 1) / (k - 1)).factorial.totient * (n * n) ≤
            16 * (W - 1) * ((W - 1) / (k - 1)).factorial * (W - k + 1) *
              (monochromaticAPs n k c).card) ∧
        (∀ n : ℕ, ∃ c : ℕ → Bool,
          2 ^ k * (k - 1) * (monochromaticAPs n k c).card ≤ n * n)
    
    -- plus the exact rational RLT/PSD certificate: delta_3 = 117/2192
    -- (checker: check_answer/, exact integer arithmetic, two independent verifiers)
    Report

    δ₃ = 117/2192: The Exact Minimum Density of Monochromatic 3-APs

    The problem and its history

    For a 2-coloring cc of {1,,n}\{1,\dots,n\}, count the monochromatic 3-term arithmetic progressions (positive common difference, each progression once). Let δ3\delta_3 be the liminf over nn of the minimum over colorings, normalized by n2n^2. Erdős Problem #1186 asks for bounds — Graham attached prize money to the question in 1999.

    Parrilo, Robertson and Saracino (2007–08) proved 167532768δ31172192\frac{1675}{32768}\le\delta_3\le\frac{117}{2192} and conjectured the upper bound is exact, the extremal coloring being a specific twelve-block pattern. Later work (2023) verified optimality only within restricted classes (anti-symmetric colorings with at most 12 blocks). The full conjecture — every coloring, including arbitrarily rapid alternation — remained open.

    This solve determines the constant exactly: δ3=117/2192\delta_3 = 117/2192, settling the PRS conjecture.

    Why the lower bound is the hard direction

    The upper bound is a construction: the 548-bead periodic word with run lengths 28,6,28,37,59,116,116,59,37,28,6,2828,6,28,37,59,116,116,59,37,28,6,28 achieves 117/2192117/2192, verified by exact counting. The lower bound must defeat every coloring. SDP relaxations asymptote strictly below the target; block-structure assumptions (periodicity, bounded block count, anti-symmetry) exclude exactly the adversarial colorings that matter. The proof must be simultaneously exact (no floating point at the extremal value — the bound is attained) and assumption-free.

    The final argument

    Work with the continuum quadratic form Q(x)=2Dx(u)x(v)dudvQ(x)=2\iint_D x(u)x(v)\,du\,dv over D={(u,v):02uv1}D=\{(u,v):0\le 2u-v\le1\}. The PRS three-role identity gives, for every coloring, M3(n,c)n2  116+Q(x)8+o(1),\frac{M_3(n,c)}{n^2}\ \ge\ \frac1{16}+\frac{Q(x)}8+o(1), with the omitted endpoint-parity term provably nonnegative. A fixed 548-cell macroscopic partition makes this uniform in the coloring — full lattice rectangles give products of cell color proportions, boundary polygons obey one-sided bounds, and the fixed partition contributes only O(n)O(n) — with no block-count, periodicity, or regularity assumption.

    Let ss be the twelve-run candidate, with Q(s)=10/137Q(s)=-10/137. Writing an arbitrary spin profile as a perturbation x=s(12p)x=s(1-2p) (complementing so the perturbation mass is at most 1/21/2), exact expansion produces a first-variation field plus a signed quadratic kernel. The checker proves the field values are uniformly distributed on integer intervals cell-by-cell; a bathtub bound and conservative cell-rectangle classification reduce everything to a finite optimization 5482Q(x)Q(s)4  mTp+pT ⁣(C+diag(c/2))p,0pi1, pi274,548^2\,\frac{Q(x)-Q(s)}4\ \ge\ m^{\mathsf T}p+p^{\mathsf T}\!\big(C+\mathrm{diag}(c/2)\big)p,\qquad 0\le p_i\le1,\ \textstyle\sum p_i\le 274, and the certificate exhibits this quantity as an exact sum of PSD, nonnegative-matrix, pi(1pj)p_i(1-p_j), mass-slack, and linear nonnegative terms. Reflection splits the PSD check into two 274-dimensional sectors, each certified by integer factor matrices plus diagonally-dominant residuals — a proof of positive semidefiniteness that needs only integer arithmetic. Hence Q10/137Q\ge-10/137 for every profile, and the matching lower bound 117/2192117/2192 follows.

    What is machine-checked, and how

    • The certificates (field distributions, row budgets, both PSD sectors, the candidate score) are verified by an exact Rust checker using checked integer arithmetic, and independently re-verified by an arbitrary-precision Python implementation sharing no code.
    • The certificate schemas (Bell/SOS and RLT soundness: "any certificate of this shape implies the inequality") are sorry-free Lean theorems.
    • The discrete-to-continuum reduction (the three-role identity and the O(n)O(n) partition bookkeeping) is a short, fully written-out double-counting argument — the same architecture as PRS's peer-reviewed paper, checked by hand.

    This is a computer-assisted proof in the classical sense of the four-color theorem or Kepler: exact certificates, independent checkers, and a short human-checkable core. A full Lean-kernel formalization of the remaining reduction is in progress as a follow-up project.

    Verification

    The download bundle contains the exact 548-cell certificate, both independent checkers with their test fixtures, the Lean schema proofs, and the reduction write-up. One command rebuilds and re-verifies everything:

    PASS: all 548 field distributions and RLT row budgets exact
    PASS: symmetric/antisymmetric PSD residual margins …
    PASS: continuum lower bound equals candidate; delta_3 = 117/2192
    

    Formalization progress (2026-07-13)

    The 548-cell census — the exact combinatorial count anchoring the upper bound — is now kernel-checked in Lean directly: Erdos1186Census.score_eq proves the extremal word's weighted monochromatic score is exactly 128232 (bitmask-encoded word, balanced-split evaluation, 2m19s in the kernel, axiom audit [propext] only, no native_decide), and word_density_eq closes the arithmetic to 117/2192. Both modules ship in the download bundle and build with the project. The remaining non-Lean steps (the 548×548 PSD certificate in-kernel and the discrete-to-continuum reduction) are an active formalization project.

    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.

    ↓ Download full solution raw

Formal Proofs (8, not counted above)

Others arrived at these results first and deserve full credit for the problems. The entries below are, to our knowledge, complete machine-checked proofs of those results.

  • 1) Erdős Problem #129Erdős Problem

    Full credit to Antonio Girão for this problem. He solved it first; my system solved it after.

    www.erdosproblems.com/129
    Question

    Let R(n;k,r)R(n;k,r) be the smallest NN such that if the edges of KNK_N are rr-coloured then there is a set of nn vertices which does not contain a copy of KkK_k in at least one of the rr colours. Prove that there is a constant C=C(r)>1C=C(r)>1 such thatR(n;3,r)<Cn.R(n;3,r) < C^{\sqrt{n}}.

    (Erdős Problem #129 — graph theory, ramsey theory — https://www.erdosproblems.com/129)

    Result

    The proposed bound is false: for every natural n ≥ 120, 2^(⌊n/120⌋) < R(n;3,2) ≤ 2^(2n), so no constant C > 1 can satisfy R(n;3,2) < C^(√n) for all n. Consequently the exact formal proposition LiteralProblem129 is false.

    theorem not_literalProblem129 : ¬ LiteralProblem129 := by
      intro h
      exact not_claimedBoundFor_two (h 2 (by omega))
    
    theorem R3_two_global_exponential_sandwich (n : ℕ) (hn : 120 ≤ n) :
        2 ^ (n / 120) < R3 n 2 ∧ R3 n 2 ≤ 2 ^ (2 * n) := by
      exact ⟨two_pow_div_120_lt_R3_two n hn,
        R3_two_le_two_pow_two_mul n⟩
    Report

    Erdős Problem 129: a formally verified disproof

    The problem and why it was deceptive

    Erdős Problem 129 defines a Ramsey-type threshold R(n;3,r): the least order N such that every r-colouring of the edges of K_N has an n-vertex set on which at least one colour contains no triangle. The proposed bound was

    R(n;3,r) < C(r)^(√n).

    At first sight this looks like a difficult upper-bound problem in multicolour Ramsey theory. There was an additional historical obstacle: the modern Erdős Problems database already recorded Antonio Girão's observation that the displayed statement is false, but retained an OPEN label on the theory that the 1997 source must have intended some different, unstated definition.

    That ambiguity mattered. Disproving a mistranscription would not solve the intended problem, while silently inventing a replacement would not answer the published question. The work therefore had to settle both the mathematics and the statement-fidelity issue.

    What earlier reasoning missed

    The decisive probabilistic estimate comes from looking at many edge-disjoint triangles inside every tested vertex set.

    A random red-blue colouring makes any fixed triangle monochromatic in a specified colour with probability 1/8. If an n-set contains quadratically many edge-disjoint triangles, those events use disjoint edge variables and are independent. Consequently, the probability that the set has no triangle in a specified colour is exponentially small in , not merely in n.

    This is enough to union-bound over all n-subsets of a graph whose order is exponential in n. The printed exp(c√n) lower estimate was therefore simply a weak true estimate; it was not logically inconsistent with the published definition and did not force the existence of a missing condition.

    There were also two formal dead ends:

    • An initial counting proof used Lean's native_decide. Although computationally correct, this introduced generated axioms and was unsuitable for a kernel-only certificate. It was replaced by kernel decide.
    • The first endpoint negated an operational least-order formulation, while the formal statement defined R using a natural-number infimum. That gap required a finite Ramsey theorem and a proof that the infimum is attained.

    The construction that works

    For each parameter t≥1, take an arbitrary set of 60t vertices and divide it into three equal parts. Latin-square triples of the form

    (i, j, i+j)

    produce a quadratic family of pairwise edge-disjoint triangles. The formal construction supplies 6(60t²+2) such triangles for every enumeration of the set.

    For one target colour, a colouring that avoids a monochromatic packed triangle has at most

    7^L · 2^(|E|-3L)

    possibilities, where L is the packing size. Union-bounding over both colours and all enumerated 60t-sets shows that some colouring of K_(2^t) makes every 60t-set contain both a red triangle and a blue triangle. Thus the Ramsey property fails at ambient order 2^t.

    This already defeats every square-root-exponential upper bound. To identify the actual scale, an elementary canonical-sequence proof gives the complementary finite Ramsey estimate R(n;3,2)≤2^(2n). Monotonicity in the tested set size then extends the packed lower bound from the subsequence n=60t to every n≥120:

    2^(⌊n/120⌋) < R(n;3,2) ≤ 2^(2n).

    So the literal threshold is exponential with exponent linear in n, whereas the conjectured upper bound has exponent only √n.

    Resolving the source ambiguity

    The publisher scan of Erdős's 1997 paper was checked directly. It defines f_k^(r)(n) as the largest order admitting an r-colouring in which every n-set contains a K_k in every colour. Lean proves that, for k=3 and two colours, this admissibility condition is exactly the negation of the website's Ramsey predicate.

    The investigation then followed the historical alternatives rather than assuming the scan was conclusive:

    • Erdős and Gyárfás's Split and balanced colorings of complete graphs defines different minimum-order split and balanced parameters, with polynomial rather than square-root-exponential behaviour.
    • Their A variant of the classical Ramsey problem studies (p,q)-colourings and a different extremal function.
    • Gyárfás's 2013 retrospective discusses both projects but gives no corrected version of Problem 129.
    • A searchable corpus of all 218 PDFs linked from Gyárfás's publication page revealed no later correction or alternative formulation.

    The source's weak probabilistic lower bound therefore does not identify another problem, and no primary source supplies one. The formally verified disproof answers the only definite published statement. Girão retains priority for the elementary probabilistic objection; the contribution here is the complete formal certificate, exact threshold diagnosis, and source audit.

    Verification

    The proof is a standalone Lean 4 + Mathlib project. It includes:

    • the faithful definitions of edge colourings, monochromatic triangles, RamseyAt, and the exact infimum R3;
    • the Latin-square triangle packing and exact colouring count;
    • the union-bound construction;
    • ambient and test-size monotonicity;
    • finite Ramsey existence and infimum attainment;
    • the exact negation of the proposed theorem and the global exponential sandwich.

    The verifier builds all 8572 targets, directly checks the final theorem file, and rejects native_decide, sorry, admit, or any declared axiom. The final theorems depend only on Mathlib's standard logical principles propext, Classical.choice, and Quot.sound.

    cd verified_math/F-015_global-exponential-threshold/lean && bash verify.sh
    

    The run ends with:

    Build completed successfully (8572 jobs).
    PASS: global exponential sandwich kernel-checked; no forbidden proof escape
    
    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.

    ↓ Download full solution raw

  • 2) Erdős Problem #415Erdős Problem

    Full credit to Przemek Chojecki for this problem. He solved it first; my system solved it after.

    www.erdosproblems.com/415
    Question

    For any nn let F(n)F(n) be the largest kk such that any of the k!k! possible ordering patterns appears in some sequence of ϕ(m+1),,ϕ(m+k)\phi(m+1),\ldots,\phi(m+k) with m+knm+k\leq n. Is it true thatF(n)=(c+o(1))logloglognF(n)=(c+o(1))\log\log\log nfor some constant cc? Is the first pattern which fails to appear alwaysϕ(m+1)>ϕ(m+2)>>ϕ(m+k)?\phi(m+1)>\phi(m+2)>\cdots >\phi(m+k)?Is it true that the 'natural' ordering which mimics what happens to ϕ(1),,ϕ(k)\phi(1),\ldots,\phi(k) is the most likely to appear?

    (Erdős Problem #415 — number theory — https://www.erdosproblems.com/415)

    Result

    All three questions answered. (1) No — F(n) = o(log log log n), so no constant c > 0 gives F(n) = (c+o(1))·logloglog n; kernel-proved via the decreasing-run bound and the F ≤ G bridge. (2) No — the decreasing pattern is not always the first to fail: F(826)=3 while φ(823)>φ(824)>φ(825)>φ(826), certified by an independent exact Euler-sieve checker. (3) No — the 'natural' ordering (which has a tie, φ(1)=φ(2), so it is formalized with weak patterns) is not the most frequent: kernel theorems refute it under both the eventual-maximality and limiting-frequency readings.

    /-- The longest decreasing run is little-oh of the triple logarithm. -/
    theorem G_ratio_tendsto_zero :
        Tendsto (fun X : ℕ ↦ (G X : ℝ) / tripleLog X) atTop (𝓝 0)
    Report

    The Ordering Patterns of Consecutive Totients: All Three Questions

    The problem and its interpretation

    For n1n\ge1 let F(n)F(n) be the largest kk such that every one of the k!k! ordering patterns occurs in some block φ(m+1),,φ(m+k)\varphi(m+1),\dots,\varphi(m+k) with m+knm+k\le n. Erdős Problem #415 asks three questions:

    1. Is F(n)=(c+o(1))logloglognF(n)=(c+o(1))\log\log\log n for some constant cc?
    2. Is the first pattern that fails to appear always the strictly decreasing one?
    3. Is the "natural" ordering — the one mimicking φ(1),,φ(k)\varphi(1),\dots,\varphi(k) — the most likely to appear?

    For the first two questions, "the k!k! possible ordering patterns" is formalized as strict permutations (tied blocks realize no strict pattern), matching the problem's own count of k!k!. The third question cannot be read strictly, because φ(1)=φ(2)=1\varphi(1)=\varphi(2)=1 — the natural reference pattern has a tie. It is therefore formalized with weak comparison patterns and answered under both standard asymptotic readings: eventual cumulative maximality, and maximal limiting cumulative frequency.

    Question 1: no — the proposed asymptotic fails

    The formal theorem proves F(n)/logloglogn0F(n)/\log\log\log n \to 0, so no constant c>0c>0 can satisfy the displayed asymptotic.

    The mechanism: for all k!k! patterns to occur, the strictly decreasing pattern must occur, so F(n)G(n)F(n)\le G(n), the longest strictly decreasing run of totient values up to nn. A decreasing run of length kk forces consecutive integers whose prime-loss profiles descend kk times in a row; an elementary prime-loss analysis shows such runs are shorter than every fixed multiple of logloglogn\log\log\log n. Kernel theorems G_ratio_tendsto_zero and not_AsymptoticQuestion close the question.

    Question 2: no — an exact finite counterexample

    F(826)=3F(826)=3, yet φ(823),φ(824),φ(825),φ(826)=822,408,400,348\varphi(823),\varphi(824),\varphi(825),\varphi(826)=822,408,400,348 is strictly decreasing. So at the first failing length the decreasing pattern is present, and something else is missing. The value F(826)=3F(826)=3 and the run are certified by an independent exact Rust checker (Euler sieve, exhaustive block scan, rank-vector census) that shares no code with the search that found the witness.

    Question 3: no — equality cannot dominate

    At k=2k=2 the natural reference order is equality (φ(1)=φ(2)\varphi(1)=\varphi(2)), so the question becomes: do ties φ(n)=φ(n+1)\varphi(n)=\varphi(n+1) dominate both strict orders in frequency? The proof shows they cannot.

    Write the totient loss as L(n)=pnlog(11/p)L(n)=\sum_{p\mid n}-\log(1-1/p) and truncate at a prime cutoff ZZ. Equal consecutive totients force the exact identity L(n+1)L(n)=log(n+1)lognL(n+1)-L(n)=\log(n+1)-\log n, which is eventually tiny. The finite-prime part of the adjacent difference splits into a six-periodic base (primes 2 and 3) with a positive minimum separation gg, plus a period-MM extra term coprime to 6. A CRT injection shows at most MM of every 6M6M indices can land within g/3g/3 of any target — concentration is impossible beyond density 1/61/6-ish. Combining this with mean tail bounds for the omitted large primes, the density of ties is eventually below 3/103/10, while equality, increase, and decrease partition all two-blocks. So some strict order beats the natural (equality) order at every large cutoff, and if the three limiting frequencies exist they sum to one with equality's at most 3/103/10. Kernel theorems refute both EventuallyNaturalIsMostFrequentK2 and LimitingNaturalIsMostFrequentK2.

    Verification

    All Lean results build sorry-free with standard axioms only (propext, Classical.choice, Quot.sound); the finite witness passes the independent exact checker. The download bundle contains the pinned strict formalization, the proof project, the counterexample candidate with its checker, and the fidelity audit documenting every interpretation choice above.

    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.

    ↓ Download full solution raw

  • 3) Erdős Problem #521Erdős Problem

    Full credit to Brayden Letwin, Terence Tao, and Vjekoslav Kovač for this problem. They solved it first; my system solved it after.

    www.erdosproblems.com/521
    Question

    Let (ϵk)k0(\epsilon_k)_{k\geq 0} be independently uniformly chosen at random from {1,1}\{-1,1\}. If RnR_n counts the number of real roots of fn(z)=0knϵkzkf_n(z)=\sum_{0\leq k\leq n}\epsilon_k z^k then is it true that, almost surely,limnRnlogn=2π?\lim_{n\to \infty}\frac{R_n}{\log n}=\frac{2}{\pi}?

    (Erdős Problem #521 — analysis, polynomials, probability — https://www.erdosproblems.com/521)

    Result

    No — the almost-sure convergence fails: for i.i.d. ±1 coefficients, R_n/log n does not converge to 2/π almost surely (the real-root count fluctuates by ≫ log n along nearby degrees). Erdős–Offord's 1956 in-expectation asymptotic stands, and the almost-sure law does hold for the roots inside [−1,1] (Do 2024) — the divergence comes from the outer roots, so this also resolves Pritsker's 2019 full-line strong-law question (AIM Problem 1.2) in the negative.

    /-- The proposed almost-sure convergence of the real-root count. -/
    def Claim : Prop :=
      ∀ {Ω} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ]
        (ε : ℕ → Ω → Bool), (∀ k, Measurable (ε k)) → iIndepFun ε μ →
        (∀ k, μ {ω | ε k ω = true} = 1/2) →
        ∀ᵐ ω ∂μ,
          Tendsto (fun n => (realRootCount ε n ω : ℝ) / Real.log n)
            atTop (𝓝 (2 / Real.pi))
    
    theorem erdos_521_negative : ¬ Claim
    Report

    The Almost-Sure Law for Real Roots of Random ±1 Polynomials Fails

    The problem and its history

    Let ε0,ε1,\varepsilon_0,\varepsilon_1,\dots be independent fair ±1\pm1 signs and let RnR_n count the real roots of fn(z)=knεkzkf_n(z)=\sum_{k\le n}\varepsilon_k z^k. Erdős–Offord (1956) proved the in-expectation asymptotic ERn=(2π+o(1))logn\mathbb E R_n = (\tfrac2\pi+o(1))\log n, and convergence in probability followed in the same tradition (Ibragimov–Maslova). Erdős Problem #521 asks whether the convergence is almost sure:

    Rnlogn? a.s.2π. \frac{R_n}{\log n}\xrightarrow{?\ \text{a.s.}}\frac2\pi .

    The same question was posed to the community by Pritsker at the 2019 AIM workshop on zeros of random polynomials (Problem 1.2). The state of the art before this work: Yen Do (arXiv:2403.06353, 2024) proved the almost-sure law for the roots inside [1,1][-1,1] and explicitly noted his method's limitation on the full real line — the outer roots, governed by the newest high-degree coefficients, were the open case.

    The answer: no

    The formal theorem is a disproof:

    Erdos521.erdos_521_negative : ¬ Erdos521.Claim
    

    Almost surely, Rn/lognR_n/\log n does not converge to 2/π2/\pi: along a sparse sequence of "record" degrees the real-root count fluctuates by a positive multiple of logn\log n. Combined with Do's inner-interval theorem, the divergence is localized entirely in the roots outside [1,1][-1,1] — the two results are complementary, and together they resolve Pritsker's full-line question in the negative.

    Why this is delicate

    A second-moment computation makes the a.s. law look plausible: Var(Rn)logn\operatorname{Var}(R_n)\asymp\log n, so deviations of order logn\log n at any fixed degree are rare. The failure mechanism is not one bad degree but infinitely many mildly bad windows: each new block of high-degree coefficients re-randomizes the outer root count, and rare deviations recur infinitely often by independence across scales. Turning that heuristic into a proof requires quantitative lower bounds on the probability of large root-count deviations conditioned on the past — precisely what classical CLT-type results do not give.

    Proof architecture

    1. Reduction to a first-moment gate. Record times with positive-probability conditioning cones convert the asserted almost-sure limit into an upper bound for fourth-integrated crossing counts: if the a.s. law held, the late cone-conditioned crossing mean would eventually be at most 0.23log(recordDegree n)0.23\log(\text{recordDegree }n).
    2. Sharp early crossing mean. The unconditioned iid crossing mean is computed exactly at the needed scale.
    3. Local limit for signed strips. Splitting crossing events into balanced horizontal/vertical coordinates, a critical-cutoff local limit theorem is proved with explicit constant (logN/N\asymp\sqrt{\log N}/N), then bridged to exact finite axis words with all perturbation tails O((k+1)4)O((k+1)^{-4}).
    4. Transfer to conditioned paths. The four event types transfer to quadrant-good paths with an explicit conditioning factor and exponentially small schedule error; an odd-coefficient twist identifies with a schedule-complement rotation.
    5. The contradiction. Summing conditioning weights bounds the normalized late mean by Clog(2n+1)+256n(n+1)en/8=o(log(recordDegree n))C\sqrt{\log(2n+1)}+256\,n(n+1)e^{-n/8} = o(\log(\text{recordDegree }n)) — strictly below the gate. Hence the a.s. law fails.

    All constants in the chain are explicit; nothing is asymptotic hand-waving, because every step had to pass the kernel.

    Verification

    The statement quantifies over any probability space carrying iid fair Boolean coordinates (canonically, Mathlib's countable product measure), counts distinct real roots of the Littlewood polynomial, and asserts the a.s. limit; the theorem is its negation. The verifier rebuilds the source closure, rejects sorry/admit/axiom throughout, checks the exact theorem type, and prints the axiom audit:

    Erdos521.erdos_521_negative : ¬Erdos521.Claim
    axioms: [propext, Classical.choice, Quot.sound]
    

    The download bundle contains the full proof project (3,770 build jobs) and the one-command verifier (verified_math/F-123_erdos-521-negative/verify.sh).

    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.

    ↓ Download full solution raw

  • 4) Erdős Problem #522Erdős Problem

    Full credit to Przemek Chojecki and ykwon for this problem. They solved it first; my system solved it after.

    www.erdosproblems.com/522
    Question

    Let f(z)=0knϵkzkf(z)=\sum_{0\leq k\leq n} \epsilon_k z^k be a random polynomial, where ϵk{1,1}\epsilon_k\in \{-1,1\} independently uniformly at random for 0kn0\leq k\leq n. Is it true that, if RnR_n is the number of roots of f(z)f(z) in {zC:z1}\{ z\in \mathbb{C} : \lvert z\rvert \leq 1\}, thenRnn/21\frac{R_n}{n/2}\to 1almost surely?

    (Erdős Problem #522 — analysis, polynomials, probability — https://www.erdosproblems.com/522)

    Result

    For every i.i.d. fair ±1 (Rademacher) coefficient sequence, the number of roots of ε₀ + ε₁z + ⋯ + εₙzⁿ in the closed unit disk, divided by n/2, converges to 1 almost surely — the almost-sure strengthening of Yakir's 2021 in-probability theorem.

    /-- Roots in |z| ≤ 1, counted with algebraic multiplicity. -/
    noncomputable def R {Ω : Type*} (ξ : ℕ → Ω → Bool) (n : ℕ) (ω : Ω) : ℕ :=
      closedUnitRootCount (littlewoodPolynomial ξ n ω)
    
    def Erdos522Claim : Prop :=
      ∀ {Ω : Type u_erdos} [MeasurableSpace Ω]
        (μ : Measure Ω) [IsProbabilityMeasure μ]
        (ξ : ℕ → Ω → Bool),
        (∀ k, Measurable (ξ k)) →
        iIndepFun ξ μ →
        (∀ k, μ {ω | ξ k ω = true} = (1 : ENNReal) / 2) →
        ∀ᵐ ω ∂μ,
          Tendsto (fun n => (R ξ n ω : ℝ) / ((n : ℝ) / 2)) atTop (𝓝 1)
    
    theorem erdos_522 : Erdos522Claim
    Report

    Almost-Sure Root Concentration for Random ±1 Polynomials

    The problem and why it is difficult

    Let ε0,ε1,\varepsilon_0,\varepsilon_1,\dots be independent fair ±1\pm1 signs and let RnR_n count the roots of fn(z)=knεkzkf_n(z)=\sum_{k\le n}\varepsilon_k z^k in the closed unit disk z1|z|\le1. Erdős asked whether

    Rnn/21almost surely. \frac{R_n}{n/2}\to 1 \quad\text{almost surely.}

    Random Littlewood polynomials concentrate their roots near the unit circle, and by symmetry roughly half the roots fall inside the closed disk on average. Yakir (2021) proved the corresponding statement in probability. The almost-sure statement is strictly stronger: it must control the entire sequence at once, ruling out rare-but-recurring degree ranges where the count drifts, and the natural route — Borel–Cantelli — needs deviation probabilities that are summable in nn, far beyond what an in-probability argument provides.

    Where the natural approaches stalled

    • Upgrading by subsequences fails. Almost-sure convergence along a fast subsequence plus interpolation works for monotone quantities; the disk root count is not monotone in nn, and consecutive-degree fluctuations are exactly the danger.
    • Soft compactness arguments lose quantitative control. The root measure converges weakly to the uniform measure on the circle almost surely, but weak convergence says nothing about the closed disk boundary count at the needed rate — half the roots sit within distance O(1/n)O(1/n) of the boundary circle.
    • Direct small-ball estimates on fnf_n near the circle are too weak per-degree. They give power decay for one radius, not the joint angular control over all radii and shifts that a summable bound requires.

    The argument that works

    The engine is a quantitative angular (radial-cosine) moment estimate: for explicit exponents,

    (2n+1)2048Mn,s,t    Cs((n+1)1024+(n+1)At1/8192), \left(\frac{2}{n+1}\right)^{2048} M_{n,s,t} \;\le\; C_s\Big((n+1)^{-1024}+(n+1)^{A}\,\|t\|^{-1/8192}\Big),

    where Mn,s,tM_{n,s,t} is a high mixed moment of the polynomial's angular oscillation data and t\|t\| measures the frequency shift. The proof of this estimate combines an exact count of exceptional sign tuples with a sparse finite-type van der Corput bound for the oscillatory sums that appear; the edge case n=0n=0 is handled by the trivial probability-measure bound. Instantiating the general almost-sure root-count machinery with these exponents (q=1024q=1024, H=8192H=8192) yields deviation bounds summable in nn, and Borel–Cantelli delivers the full almost-sure limit

    Rnn/21a.s. \frac{R_n}{n/2}\longrightarrow 1 \qquad\text{a.s.}

    — the almost-sure strengthening of Yakir's theorem, with roots counted with algebraic multiplicity in the closed disk, exactly as the problem asks.

    Verification

    The pinned statement is immutable and universe-polymorphic; the acceptance gate permits only import Erdos522Statement, so the 133 proof modules are amalgamated (dependency-closed, topologically ordered, freshly sectioned) into one candidate file with no sorry, admit, new axioms, unsafe code, or forbidden metaprogramming. The gate re-elaborates the candidate against the pinned statement and audits axioms:

    PASS: kernel-checked proof of the pinned Erdős 522 statement
    axioms: [propext, Classical.choice, Quot.sound]
    

    The download bundle contains the pinned statement project, the exact accepted Candidate.lean with its SHA-256-logged transcript, the amalgamation script, and the one-command checker (check_answer/check.sh verified_math/F-132_erdos-522-final/Candidate.lean).

    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.

    ↓ Download full solution raw

  • 5) Erdős Problem #584Erdős Problem

    Full credit to Przemek Chojecki for this problem. He solved it first; my system solved it after.

    www.erdosproblems.com/584
    Question

    Let GG be a graph with nn vertices and δn2\delta n^{2} edges. Are there subgraphs H1,H2GH_1,H_2\subseteq G such that H1H_1 has δ3n2\gg \delta^3n^2 edges and every two edges in H1H_1 are contained in a cycle of length at most 66, and furthermore if two edges share a vertex they are on a cycle of length 44, and H2H_2 has δ2n2\gg \delta^2n^2 edges and every two edges in H2H_2 are contained in a cycle of length at most 88.

    (Erdős Problem #584 — graph theory, cycles — https://www.erdosproblems.com/584)

    Result

    The statement as written is false: there are graphs with δn² edges (with δ allowed to shrink) containing no cycle of length ≤ 8 at all, so no subgraph with ≫ δ²n² edges can have every two edges on a short cycle. The fixed-density version of the problem remains open.

    /-- The literal second bullet of Erdős Problem 584 is false. -/
    theorem not_secondBullet : ¬ SecondBullet.{0}
    
    /-- Therefore the conjunction asked in the literal problem statement is false. -/
    theorem not_problemStatement : ¬ ProblemStatement.{0}
    Report

    Erdős Problem #584: The Literal Statement Is False

    The problem, as printed

    Let GG be a graph with nn vertices and δn2\delta n^2 edges. The problem asserts the existence of two subgraphs: H1H_1 with δ3n2\gg\delta^3n^2 edges in which every two edges lie on a cycle of length at most 6 (and edges sharing a vertex lie on a 4-cycle), and H2H_2 with δ2n2\gg\delta^2n^2 edges in which every two edges lie on a cycle of length at most 8.

    Read literally, nothing constrains δ\delta: it is simply e(G)/n2e(G)/n^2 and may shrink with nn. That reading matters, because the statement is false in that generality — and the falsity is provable in Lean.

    The counterexample mechanism

    Take graphs with no cycle of length at most 8 at all. In such a graph, any subgraph in which every two distinct edges must lie on a short internal cycle can contain at most one edge (there are no short cycles to lie on). So the H2H_2 bullet fails as soon as a short-cycle-free graph has e(G)2>CV2e(G)^2 > C\,|V|^2 for the proposed implicit constant CC — i.e., as soon as high-girth graphs can have super-linear edge counts, which they famously can.

    A self-contained high-girth construction

    Standard sources invoke algebraic constructions (generalized hexagons, D(5,q)D(5,q) graphs) for dense high-girth graphs. Formalizing those would drag in heavy finite-field machinery. The accepted proof instead uses a short maximal-graph argument, fully self-contained:

    Given a target constant CC, set d=4(C+1)d=4(C+1), r=8r=8, B=rdrB=r\,d^r, N=2B+1N=2B+1. Among graphs on NN vertices with maximum degree d\le d and no cycle of length r\le r, pick one maximal under edge inclusion. Maximality forces any two low-degree vertices to be within distance r1r-1 (otherwise the connecting edge could be added, preserving both constraints). Fixing one low-degree vertex, all others lie in its radius-(r1)(r-1) ball, which has at most rdr=Br\,d^r=B vertices. Hence at least B+1B+1 vertices have full degree dd; handshaking gives e(G)(C+1)Ne(G)\ge(C+1)N, so e(G)2>CN2e(G)^2>CN^2 — while the graph still has no cycle of length 8\le 8. The obstruction lemma then rules out every H2H_2 witness, refuting the second bullet and with it the conjunction:

    theorem not_secondBullet : ¬ SecondBullet.{0}
    theorem not_problemStatement : ¬ ProblemStatement.{0}
    

    What remains open — stated honestly

    The historically intended problem plausibly carries a fixed-density qualifier (fixed δ>0\delta>0, nn\to\infty), under which the question remains open and interesting. The supplied problem text does not include one, and the fidelity audit records this interpretation point explicitly rather than silently repairing the statement. What is proved here is exactly: the statement as printed, quantified over all densities, is false.

    Verification

    The final project is self-contained (definitions, obstruction, high-girth construction, negation) and passes the acceptance gate: pinned Mathlib fetch, full lake build (1,147 jobs), and rejection of sorry/admit/user axioms, ending in

    PASS: Lean verified ¬SecondBullet and ¬ProblemStatement (sorry/admit/axiom-free).
    

    The download bundle contains the faithful definitions, the complete proof project, and the line-by-line fidelity audit in check_answer/README.md.

    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.

    ↓ Download full solution raw

  • 6) Erdős Problem #638Erdős Problem

    Full credit to InfiniteInsights for this problem. He solved it first; my system solved it after.

    www.erdosproblems.com/638
    Question

    Let SS be a family of finite graphs such that for every nn there is some GnSG_n\in S such that if the edges of GnG_n are coloured with nn colours then there is a monochromatic triangle.Is it true that for every infinite cardinal \aleph there is a graph GG of which every finite subgraph is in SS and if the edges of GG are coloured with \aleph many colours then there is a monochromatic triangle.

    (Erdős Problem #638 — graph theory, ramsey theory — https://www.erdosproblems.com/638)

    Result

    The answer is no, even for the substantive hereditary reading: there is a subgraph-closed family of finite graphs containing n-color triangle-Ramsey members for every finite n, yet admitting no graph whose finite subgraphs all lie in the family and which is triangle-Ramsey for infinitely many colors.

    /-- The triangle-containing family meets every finite-color Ramsey hypothesis. -/
    theorem triangleContainingFamily_finitelyTriangleRamseyRich :
        triangleContainingFamily.FinitelyTriangleRamseyRich
    
    /-- The literal assertion in problem.md is false, uniformly in the universe
    of infinite cardinals. -/
    theorem erdos638_literal_answer_is_no.{u} : ¬ LiteralClaim.{u}
    Report

    Erdős Problem #638: No — Even for the Hereditary Reading

    The problem

    Let SS be a family of finite graphs such that for every nn there is some GnSG_n\in S that is nn-color triangle-Ramsey: every nn-coloring of GnG_n's edges contains a monochromatic triangle. Erdős asked: must there then be, for every infinite cardinal \aleph, a graph GG all of whose finite subgraphs lie in SS, such that every \aleph-coloring of GG's edges contains a monochromatic triangle?

    Two readings, both answered no

    The literal reading. The printed text does not require SS to be closed under subgraphs. Under that reading the answer is no, by a formal counterexample family:

    theorem erdos638_literal_answer_is_no.{u} : ¬ LiteralClaim.{u}
    

    The independent referee accepted this theorem as genuine but ruled that the substantive question requires SS closed under taking ordinary (not merely induced) subgraphs — otherwise membership can be gerrymandered. That strengthened target was then also proved:

    theorem erdos638_ordinaryHereditary_answer_is_no.{u} : HereditaryTarget.{u}
    

    So the answer is no even when the isomorphism-closed family is required to be closed under ordinary finite subgraphs — the strongest natural version. Both statements are universe-polymorphic, so "every infinite cardinal" genuinely means every one.

    The mathematical heart: sparse triangle-Ramsey graphs

    The counterexample family needs finite graphs that are simultaneously (a) triangle-Ramsey for arbitrarily many colors and (b) globally sparse in a strong incidence sense, so that no infinite graph with all finite subgraphs in the family can stay Ramsey for infinitely many colors. The key constructive theorem: for every q2q\ge2 and every gg, there is a finite qq-color triangle-Ramsey graph whose edge/triangle incidence graph has ordinary girth greater than gg.

    The construction formalizes Nešetřil–Rödl-style partite amalgamation with Hales–Jewett focusing:

    1. Finite multicolor triangle-Ramsey hosts exist (classical, formalized from Hales–Jewett).
    2. Bipartite partite focusing plus a strict Berge/incidence-girth induction produces Ramsey constituent systems of arbitrary incidence girth.
    3. Induced full graph-partite amalgamation with an edge-star encoding lifts the sparsity through each amalgamation round; a sheet-tag argument shows no new triangle ever crosses amalgamation sheets, so triangle structure stays exactly controlled.
    4. Distinguished labels biject with geometric triangles (a repeated triangle would force an incidence cycle of length 4\le4, contradicting girth), and explicit isomorphisms transfer everything to a canonical Fin-labeled host.

    A verified compactness/core/block reduction then converts these sparse Ramsey graphs into an isomorphism-closed, ordinary-hereditary family witnessing the negative answer.

    Verification

    Three independent gates pass: the sparse-triangle-Ramsey verifier, the hereditary-target verifier, and the final checker, which byte-compares the pinned statement files against immutable copies, scans all sources for sorry/admit/native_decide/local axioms, rebuilds the project, and audits the final theorems:

    axioms: [propext, Classical.choice, Quot.sound]
    

    The download bundle contains the pinned statements, the F-027/F-028 proof projects, the reduction, and the fidelity audit documenting both readings and why the hereditary one is the substantive target.

    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.

    ↓ Download full solution raw

  • 7) Erdős Problem #793Erdős Problem

    Full credit to Przemek Chojecki for this problem. He solved it first; my system solved it after.

    www.erdosproblems.com/793
    Question

    Let F(n)F(n) be the maximum possible size of a subset A{1,,n}A\subseteq\{1,\ldots,n\} such that abca\nmid bc whenever a,b,cAa,b,c\in A with aba\neq b and aca\neq c. Is there a constant CC such thatF(n)=π(n)+(C+o(1))n2/3(logn)2?F(n)=\pi(n)+(C+o(1))n^{2/3}(\log n)^{-2}?

    (Erdős Problem #793 — number theory — https://www.erdosproblems.com/793)

    Result

    F(n) = π(n) + (27/2 + o(1))·n^(2/3)/log²(n) — exact second-order asymptotic with constant 27/2 for the a∤bc extremal family problem

    Report

    Erdős Problem #793 — F(n) = π(n) + (27/2+o(1))·n^(2/3)/log²n (accepted 2026-07-14)

    Affirmative solution of Erdős Problem #793: for the exact condition allowing b=c, the extremal function satisfies F(n)=pi(n)+(27/2+o(1))*n^(2/3)/log(n)^2. The final Lean theorem is Erdos793.affirmative_target : erdos793 in verified_math/F-036_erdos793-affirmative/ExtremalAsymptotic.lean; its statement module is byte-for-byte identical to the pinned F-001 statement. The exact standalone verifier is the verifier: command in F-036's entry.md. It rebuilt PrimeNumberTheoremAnd.Consequences, rejected sorry/admit/axiom in every copied source, compiled the complete copied chain, and accepted the final file. Final output: 'Erdos793.affirmative_target' depends on axioms: [propext, Classical.choice, Quot.sound]. No sorryAx occurs; build.log records the run.

    Referee

    The agent claims an affirmative solution of Erdős #793: F(n) = π(n) + (27/2 + o(1))·n^(2/3)/log²n, backed by a sorry-free Lean 4 (Mathlib 4.21.0) proof whose final theorem 'Erdos793.affirmative_target : erdos793' I audited line-by-line against problem.md and found faithful (exact ground set {1,…,n}, the a∤bc condition with only a≠b and a≠c so b=c is allowed, true max-cardinality F(n), exact π(n), scale n^(2/3)/(log n)², and existence of C with an explicit ε(n)→0 in an eventual exact equality — no weakening). I re-ran the exact verifier command from entry.md myself (exit 0, sorry/admit/axiom gate clean, all 32 dependency modules recompiled, final axiom report exactly [propext, Classical.choice, Quot.sound] — no sorryAx, no ofReduceBool), and additionally performed my own clean-room rebuild of the entire 33-module chain from the audited sources in a fresh directory with the experiment's prebuilt oleans excluded from LEAN_PATH, which also passed with the identical clean axiom report, closing the stale-artifact hole in the original verifier. Supporting checks: all attached sources are byte-identical to the ledger and experiment copies; the pinned statement file is byte-identical across F-001, the experiment, and F-036; the external PrimeNumberTheoremAnd checkout and Mathlib sources match their pristine tarballs; the external package's four known sorried theorems (pn_asymptotic, lambda_pnt, mu_pnt, mu_pnt_alt) provably do not enter the closure since the kernel's axiom report is clean, and the chain only uses the fully-proved pi_alt. Residual trust base Colin should confirm in human review: the Mathlib/PNT tarballs against upstream GitHub hashes (no network access here) and the stock Lean 4.21.0 toolchain binary; an external lean4checker pass over the final environment would be a worthwhile belt-and-suspenders step before any announcement.

    Independent verification

    Canonical entry.md verifier reproduced end-to-end after a full rebuild of the required Research modules: all 31 F-036 chain modules re-elaborated from source, final gate compiled, in-file axiom audits print exactly [propext, Classical.choice, Quot.sound] for Erdos793.affirmative_target (also exists_extremal_family, tendsto_normalizedExtremal); chain escape-hatch grep clean.

    Priority disclosure

    Przemek Chojecki posted a full solution to this problem, with the explicit constant 27/2, on the erdosproblems forum on 2026-07-13, before our submission. A formalization of that proof (via Aristotle, taking the prime number theorem as its one additional axiom) was posted by Wouter van Doorn on 2026-07-14. Full credit to Chojecki for this problem; he solved it first, and our system solved it after. What this archive adds is a machine-verified proof whose axiom audit prints exactly [propext, Classical.choice, Quot.sound], with no additional axioms.

    Public bundles

    https://pub-23f3a588e04a481196ed22d7e3a6f48d.r2.dev/verify/erdos-793/erdos-793-solution.zip (+ verify-cursor / verify-claude-code / verify-codex)

    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.

    ↓ Download full solution raw

  • 8) Erdős Problem #1189Erdős Problem

    Full credit to Wouter van Doorn for this problem. He solved it first; my system solved it after.

    www.erdosproblems.com/1189
    Question

    Call a set of distinct integers 1<n1<<nk1<n_1<\cdots<n_k a covering set if there is a choice of ai(modni)a_i\pmod{n_i} for 1ik1\leq i\leq k such that every integer satisfies at least one of these congruences. A set is an irreducible covering set if no proper subset is a covering set. How many irreducible covering sets of size kk are there?What is the minimum and maximum that nkn_k can be?Determine or estimate max1ni\max \sum\frac{1}{n_i}, where the maximum ranges over all irreducible covering sets of size kk.Are there infinitely many nn such that the divisors of nn (which are >1>1) form an irreducible covering set?

    (Erdős Problem #1189 — number theory, covering systems — https://www.erdosproblems.com/1189)

    Result

    Kernel-proved in Lean: the largest possible modulus of an irreducible covering set of size k is EXACTLY 3·2^{k−3} for every k ≥ 5 (sharpening Simpson's 1985 bound); the least possible maximum modulus is k^{1+o(1)}; the maximal reciprocal sum is Θ(log k); and there are infinitely many n whose nontrivial divisors form an irreducible covering set (the family 2^{p−1}p of Z.-W. Sun, formalized). The count of irreducible covering sets of size k, exp((4√τ/3 + o(1))·k^{3/2}/√(log k)), is proved modulo the published BBMST enumeration theorem, carried as an explicit named hypothesis in the Lean statement — every other step is kernel-checked.

    /-- Exact answer to the maximum-largest-modulus question. -/
    theorem maximum_largest_modulus_answer {k : ℕ} (hk : 5 ≤ k) :
        IsGreatest (LargestModulusValues k) (3 * 2 ^ (k - 3))
    
    /-- Near-linear answer to the minimum-largest-modulus question. -/
    theorem minimum_largest_modulus_answer :
        (∀ k m : ℕ, m ∈ LargestModulusValues k → k + 1 ≤ m) ∧
        (∃ K₀ : ℕ, ∀ k ≥ K₀, ∃ S : Finset ℕ, Irreducible S ∧ S.card = k ∧
          ∀ d ∈ S, d ≤ minimumConstant * k * (logScale k) ^ 6)
    
    -- plus reciprocal_sum_answer (Θ(log k)) and count_answer_reduction
    -- (the BBMST-conditional counting asymptotic), all in Research/FinalClaims.lean
    Report

    Irreducible Covering Sets: Four Questions, Four Answers

    The problem

    Call a set of distinct integers 1<n1<<nk1<n_1<\cdots<n_k a covering set if some choice of residues ai(modni)a_i\pmod{n_i} covers every integer, and irreducible if no proper subset is a covering set (even with entirely fresh residues — irredundancy of one displayed cover is not enough, and the formalization is careful to use the stronger notion). Erdős Problem #1189 asks: (1) how many irreducible covering sets of size kk are there? (2) what are the minimum and maximum possible values of nkn_k? (3) determine or estimate the maximal reciprocal sum max1/ni\max\sum 1/n_i; (4) are there infinitely many nn whose nontrivial divisors form an irreducible covering set?

    The answers

    Writing I(k)I(k) for the count, M(k)/m(k)M(k)/m(k) for the max/min largest modulus, and R(k)R(k) for the maximal reciprocal sum:

    1. logI(k)=(4τ3+o(1))k3/2/logk\log I(k)=\big(\tfrac{4\sqrt\tau}{3}+o(1)\big)\,k^{3/2}/\sqrt{\log k}, where τ=t1log2 ⁣(t+1t)\tau=\sum_{t\ge1}\log^2\!\big(\tfrac{t+1}{t}\big) — proved modulo the published BBMST enumeration theorem, carried as explicit named hypotheses in the Lean statement (see below).
    2. M(k)=32k3M(k)=3\cdot2^{k-3} exactly, for every k5k\ge5 — sharpening Simpson's 1985 bound to equality; and m(k)=k1+o(1)m(k)=k^{1+o(1)}, with kernel-proved bounds k+1m(k)671088640000k(log2(k+1)+1)6k+1\le m(k)\le 671088640000\,k\,(\log_2(k{+}1)+1)^6 eventually.
    3. R(k)=Θ(logk)R(k)=\Theta(\log k): a harmonic upper bound and an explicit base-64 logarithmic construction.
    4. Yes: for every odd prime pp, the nontrivial divisors of 2p1p2^{p-1}p form an irreducible covering set (an infinite family due to Z.-W. Sun, formalized here), so infinitely many such nn exist.

    Exact gated small values: I(1)==I(4)=0I(1)=\cdots=I(4)=0 and I(5),,I(11)=1,4,15,65,318,2102,17040I(5),\dots,I(11)=1,4,15,65,318,2102,17040, cross-checked by an exhaustive census through k=5k=5 and an independent exact Rust checker.

    The mathematics

    Maximum modulus. The arithmetic Simpson argument is pushed to an exact extremal analysis: doubling chains force the largest modulus to at most 32k33\cdot2^{k-3}, and an explicit chain construction attains it for every k5k\ge5.

    Minimum modulus. The near-linear upper bound comes from a mixed frame with regular seed prime-power digits and exact-cardinality seed pairs — enough congruence classes are packed under a nearly-linear modulus cutoff while preserving irreducibility via private witnesses (fresh-residue frame obstructions). The kernel theorem exhibits, for every large kk, an irreducible size-kk set with all moduli Ck(log2(k+1)+1)6\le C\,k\,(\log_2(k{+}1)+1)^6.

    Reciprocal sum. Upper: harmonic comparison. Lower: an explicit construction pushing Θ(logk)\Theta(\log k) reciprocal mass through the frame.

    The count, and exactly what is conditional. The Lean development machine-checks the entire reduction around the literature: finite-fiber and arbitrary-gap reductions, the upper injection, strong-frame conversion under fresh residues, and division by the (k!)2(k!)^2 residue multiplicity. The single external input is BBMST (arXiv:1904.04806, Theorem 1.1 with their Section 5/6 counting) — their enumeration of minimal systems at the dense sizes. It enters as two explicit named hypotheses (BBMSTLowerDatum, BBMSTUpperHypothesis) in the final statement, so a reader can see precisely what is assumed and what is proved. Nothing else in any of the four answers is conditional. (The paper's all-size padding step repeats a modulus, so the reduction deliberately avoids it; the injectivity cost is o(k3/2/logk)o(k^{3/2}/\sqrt{\log k}) in the log count.)

    Verification

    The final wrappers expose all quantifiers for the four questions, with the count's external hypotheses retained visibly and #print axioms output recorded; everything else is sorry-free with standard axioms only. The download bundle contains the complete pinned Lean project (with build-and-audit instructions), the census checker with fixtures, and the reduction documents including the line-by-line BBMST audit.


    Update 2026-07-13 — COUNT lower bound now UNCONDITIONAL in Lean (mission deliverable 1/3, accepted)

    The dedicated formalization mission proved the LOWER half of the count asymptotic with no BBMST hypothesis: BBMSTLower.explicitLowerDatum constructs an explicit frame family (fiber bound 1) along dense sizes k_m, and BBMSTLower.eventually_log_irreducible_count_lower gives

    (log 2 / 4096) * k * sqrt(k / log(k+1))  <=  log |IrreducibleOfSize k|
    

    i.e. the strong irreducible-modulus-set count is exp(Omega(k^(3/2)/sqrt(log k))) unconditionally.

    Verification: independent rebuild on separate hardware (fresh GCP box, byte-identical pinned archive, sha256 12151af2…) — lake build clean, axioms exactly [propext, Classical.choice, Quot.sound], no sorry/admit/native_decide (grep-clean). Referee approved (R-78ffbd).

    Evidence bundle (public): https://pub-23f3a588e04a481196ed22d7e3a6f48d.r2.dev/verify/erdos-1189/erdos-1189-bbmst-lower-update.zip

    Remaining for 100%% end-to-end: the UPPER half (deliverable 2), in progress.

    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.

    ↓ Download full solution raw

Untested (623)

  • 1) Erdős Problem #1Erdős Problem
    www.erdosproblems.com/1
    Question

    If A{1,,N}A\subseteq \{1,\ldots,N\} with A=n\lvert A\rvert=n is such that the subset sums aSa\sum_{a\in S}a are distinct for all SAS\subseteq A thenN2n.N \gg 2^{n}.

    (Erdős Problem #1 — prize: $500 — number theory, additive combinatorics — https://www.erdosproblems.com/1)

  • 2) Erdős Problem #3Erdős Problem
    www.erdosproblems.com/3
    Question

    Erdős–Turán Conjecture on Arithmetic Progressions (Erdős Problem #3).

    If ANA \subseteq \mathbb{N} has nA1n=\sum_{n \in A} \frac{1}{n} = \infty, then must AA contain arbitrarily long arithmetic progressions?

    Prove (or disprove) this conjecture.

    Equivalently, this is asking for good bounds on rk(N)r_k(N), the size of the largest subset of {1,,N}\{1, \ldots, N\} without a non-trivial kk-term arithmetic progression. For example, a bound like rk(N)kN(logN)(loglogN)2r_k(N) \ll_k \frac{N}{(\log N)(\log\log N)^2} would be sufficient.

  • 3) Erdős Problem #5Erdős Problem
    www.erdosproblems.com/5
    Question

    Let C0C\geq 0. Is there an infinite sequence of nin_i such thatlimipni+1pnilogni=C?\lim_{i\to \infty}\frac{p_{n_i+1}-p_{n_i}}{\log n_i}=C?

    (Erdős Problem #5 — number theory, primes — https://www.erdosproblems.com/5)

  • 4) Erdős Problem #7Erdős Problem
    www.erdosproblems.com/7
    Question

    Is there a distinct covering system all of whose moduli are odd?

    (Erdős Problem #7 — number theory, covering systems — https://www.erdosproblems.com/7)

  • 5) Erdős Problem #9Erdős Problem
    www.erdosproblems.com/9
    Question

    Let AA be the set of all odd integers 1\geq 1 not of the form p+2k+2lp+2^{k}+2^l (where k,l0k,l\geq 0 and pp is prime). Is the upper density of AA positive?

    (Erdős Problem #9 — number theory, additive basis, primes — https://www.erdosproblems.com/9)

  • 6) Erdős Problem #10Erdős Problem
    www.erdosproblems.com/10
    Question

    Is there some kk such that every large integer is the sum of a prime and at most kk powers of 2?

    (Erdős Problem #10 — number theory, additive basis, primes — https://www.erdosproblems.com/10)

  • 7) Erdős Problem #11Erdős Problem
    www.erdosproblems.com/11
    Question

    Is every large odd integer nn the sum of a squarefree number and a power of 2?

    (Erdős Problem #11 — number theory, additive basis — https://www.erdosproblems.com/11)

  • 8) Erdős Problem #12Erdős Problem
    www.erdosproblems.com/12
    Question

    Let AA be an infinite set such that there are no distinct a,b,cAa,b,c\in A such that a(b+c)a\mid (b+c) and b,c>ab,c>a. Is there such an AA withlim infA{1,,N}N1/2>0?\liminf \frac{\lvert A\cap\{1,\ldots,N\}\rvert}{N^{1/2}}>0?Does there exist some absolute constant c>0c>0 such that there are always infinitely many NN withA{1,,N}<N1c?\lvert A\cap\{1,\ldots,N\}\rvert<N^{1-c}?Is it true thatnA1n<?\sum_{n\in A}\frac{1}{n}<\infty?

    (Erdős Problem #12 — number theory — https://www.erdosproblems.com/12)

  • 9) Erdős Problem #14Erdős Problem
    www.erdosproblems.com/14
    Question

    Let ANA\subseteq \mathbb{N}. Let BNB\subseteq \mathbb{N} be the set of integers which are representable in exactly one way as the sum of two elements from AA.Is it true that for all ϵ>0\epsilon>0 and large NN{1,,N}\BϵN1/2ϵ?\lvert \{1,\ldots,N\}\backslash B\rvert \gg_\epsilon N^{1/2-\epsilon}?Is it possible that{1,,N}\B=o(N1/2)?\lvert \{1,\ldots,N\}\backslash B\rvert =o(N^{1/2})?

    (Erdős Problem #14 — number theory, sidon sets, additive combinatorics — https://www.erdosproblems.com/14)

  • 10) Erdős Problem #15Erdős Problem
    www.erdosproblems.com/15
    Question

    Is it true thatn=1(1)nnpn\sum_{n=1}^\infty(-1)^n\frac{n}{p_n}converges, where pnp_n is the sequence of primes?

    (Erdős Problem #15 — number theory, primes — https://www.erdosproblems.com/15)

  • 11) Erdős Problem #17Erdős Problem
    www.erdosproblems.com/17
    Question

    Are there infinitely many primes pp such that every even number np3n\leq p-3 can be written as a difference of primes n=q1q2n=q_1-q_2 where q1,q2pq_1,q_2\leq p?

    (Erdős Problem #17 — number theory, primes — https://www.erdosproblems.com/17)

  • 12) Erdős Problem #18Erdős Problem
    www.erdosproblems.com/18
    Question

    We call mm practical if every integer 1n<m1\leq n<m is the sum of distinct divisors of mm. If mm is practical then let h(m)h(m) be such that h(m)h(m) many divisors always suffice.Are there infinitely many practical mm such thath(m)<(loglogm)O(1)?h(m) < (\log\log m)^{O(1)}?Is it true that h(n!)<no(1)h(n!)<n^{o(1)}? Or perhaps even h(n!)<(logn)O(1)h(n!)<(\log n)^{O(1)}?

    (Erdős Problem #18 — number theory, divisors, factorials — https://www.erdosproblems.com/18)

  • 13) Erdős Problem #19Erdős Problem
    www.erdosproblems.com/19
    Question

    If GG is an edge-disjoint union of nn copies of KnK_n then is χ(G)=n\chi(G)=n?

    (Erdős Problem #19 — prize: $500 — graph theory, chromatic number — https://www.erdosproblems.com/19)

  • 14) Erdős Problem #20Erdős Problem
    www.erdosproblems.com/20
    Question

    Let f(n,k)f(n,k) be minimal such that every family F\mathcal{F} of nn-uniform sets with Ff(n,k)\lvert \mathcal{F}\rvert \geq f(n,k) contains a kk-sunflower. Is it true thatf(n,k)<cknf(n,k) < c_k^nfor some constant ck>0c_k>0?

    (Erdős Problem #20 — prize: $1000 — combinatorics — https://www.erdosproblems.com/20)

  • 15) Erdős Problem #23Erdős Problem
    www.erdosproblems.com/23
    Question

    Can every triangle-free graph on 5n5n vertices be made bipartite by deleting at most n2n^2 edges?

    (Erdős Problem #23 — graph theory — https://www.erdosproblems.com/23)

  • 16) Erdős Problem #25Erdős Problem
    www.erdosproblems.com/25
    Question

    Let 1n1<n2<1\leq n_1<n_2<\cdots be an arbitrary sequence of integers, each with an associated residue class ai(modni)a_i\pmod{n_i}. Let AA be the set of integers nn such that for every ii either n<nin<n_i or n≢ai(modni)n\not\equiv a_i\pmod{n_i}. Must the logarithmic density of AA exist?

    (Erdős Problem #25 — number theory — https://www.erdosproblems.com/25)

  • 17) Erdős Problem #28Erdős Problem
    www.erdosproblems.com/28
    Question

    If ANA\subseteq \mathbb{N} is such that A+AA+A contains all but finitely many integers then lim sup1A1A(n)=\limsup 1_A\ast 1_A(n)=\infty.

    (Erdős Problem #28 — prize: $500 — number theory, additive basis — https://www.erdosproblems.com/28)

  • 18) Erdős Problem #30Erdős Problem
    www.erdosproblems.com/30
    Question

    Let h(N)h(N) be the maximum size of a Sidon set in {1,,N}\{1,\ldots,N\}. Is it true that, for every ϵ>0\epsilon>0,h(N)=N1/2+Oϵ(Nϵ)?h(N) = N^{1/2}+O_\epsilon(N^\epsilon)?

    (Erdős Problem #30 — prize: $1000 — number theory, sidon sets, additive combinatorics — https://www.erdosproblems.com/30)

  • 19) Erdős Problem #32Erdős Problem
    www.erdosproblems.com/32
    Question

    Is there a set ANA\subset\mathbb{N} such thatA{1,,N}=o((logN)2)\lvert A\cap\{1,\ldots,N\}\rvert = o((\log N)^2)and such that every large integer can be written as p+ap+a for some prime pp and aAa\in A? Can the bound O(logN)O(\log N) be achieved? Must such an AA satisfylim infA{1,,N}logN>1?\liminf \frac{\lvert A\cap\{1,\ldots,N\}\rvert}{\log N}> 1?

    (Erdős Problem #32 — number theory, additive basis — https://www.erdosproblems.com/32)

  • 20) Erdős Problem #33Erdős Problem
    www.erdosproblems.com/33
    Question

    Let ANA\subset\mathbb{N} be such that every large integer can be written as n2+an^2+a for some aAa\in A and n0n\geq 0. What is the smallest possible value oflim supA{1,,N}N1/2?\limsup \frac{\lvert A\cap\{1,\ldots,N\}\rvert}{N^{1/2}}?Islim infA{1,,N}N1/2>1?\liminf \frac{\lvert A\cap\{1,\ldots,N\}\rvert}{N^{1/2}}>1?

    (Erdős Problem #33 — number theory, additive basis — https://www.erdosproblems.com/33)

  • 21) Erdős Problem #36Erdős Problem
    www.erdosproblems.com/36
    Question

    Find the optimal constant c>0c>0 such that the following holds. For all sufficiently large NN, if AB={1,,2N}A\sqcup B=\{1,\ldots,2N\} is a partition into two equal parts, so that A=B=N\lvert A\rvert=\lvert B\rvert=N, then there is some xx such that the number of solutions to ab=xa-b=x with aAa\in A and bBb\in B is at least cNcN.

    (Erdős Problem #36 — number theory, additive combinatorics — https://www.erdosproblems.com/36)

  • 22) Erdős Problem #39Erdős Problem
    www.erdosproblems.com/39
    Question

    Is there an infinite Sidon set ANA\subset \mathbb{N} such thatA{1,N}ϵN1/2ϵ\lvert A\cap \{1\ldots,N\}\rvert \gg_\epsilon N^{1/2-\epsilon}for all ϵ>0\epsilon>0?

    (Erdős Problem #39 — prize: $500 — number theory, sidon sets, additive combinatorics — https://www.erdosproblems.com/39)

  • 23) Erdős Problem #40Erdős Problem
    www.erdosproblems.com/40
    Question

    For what functions g(N)g(N)\to \infty is it true thatA{1,,N}N1/2g(N)\lvert A\cap \{1,\ldots,N\}\rvert \gg \frac{N^{1/2}}{g(N)}implies lim sup1A1A(n)=\limsup 1_A\ast 1_A(n)=\infty?

    (Erdős Problem #40 — prize: $500 — number theory, additive basis — https://www.erdosproblems.com/40)

  • 24) Erdős Problem #41Erdős Problem
    www.erdosproblems.com/41
    Question

    Let ANA\subset\mathbb{N} be an infinite set such that the triple sums a+b+ca+b+c are all distinct for a,b,cAa,b,c\in A (aside from the trivial coincidences). Is it true thatlim infA{1,,N}N1/3=0?\liminf \frac{\lvert A\cap \{1,\ldots,N\}\rvert}{N^{1/3}}=0?

    (Erdős Problem #41 — prize: $500 — number theory, sidon sets, additive combinatorics — https://www.erdosproblems.com/41)