Research notes on every problem, and a library of the papers behind them. Built from the open erdos repository.
Updated
Claim. Let denote the greatest prime factor of , and call a
pair of distinct primes strange when no integer has
. The main theorem of the Lean file, erdos_649 (alias
infinite_strange_pairs): there are infinitely many primes such that
is a strange pair. For such a no has and
, so the statement of
Problem 649, which asks for
such an for every pair of primes, is false. The statement proved is the
one Problem 6 of the 12th Romanian Master of Mathematics competition (2020)
asked for, which the erdosproblems.com commentary records beside Tong's and
Sampaio's arguments without an author or a citation of its published solution;
the competition result has no claim page of its own, for the reason the problem
page records, and this page carries it through the Lean file, which declares
itself a formalization of the competition's solution and names no informal
author.
Submission note. Posted to the erdosproblems.com forum by Boris Alexeev on 7 February 2026:
[This comment has been updated.]
All of the results from the problem description above have been formalized by ChatGPT and Aristotle.
This includes , Tong's counterexamples, Tong's question (no answer), Sampaio's counterexample, and a solution to Problem 6 in the 12th Romanian Master of Mathematics Competitions in 2020.
Previously, this file assumed Mahler's result (mentioned parenthetically), but it has been updated to avoid that dependence. Now it uses the formalization of part of Problem 368. Because that file is imported, it cannot be typechecked on "Lean 4 Web". But I still have an old version around. Type-check it online!
Argument. As the file's docstrings describe it: if are primes with the same multiplicative order of , then is strange. For suppose has : the term with greatest prime factor is a power , and the other term is divisible by , so or ; since has the same order modulo , the same congruence holds modulo , so divides that term, which contradicts its greatest prime factor being . And for every prime the number has at least two prime factors , each with of order . The primes so produced grow with , which gives infinitely many strange pairs .
Companion theorems. The same file proves conjecture_false, the pair
; tong_counterexamples, the family of
Tong's claim;
and sampaio_counterexample, the pair of
Sampaio's claim;
it states Tong's question as the proposition tong_question without an
answer. Those two theorems are formalizations of the named claimants' results
and are recorded as links on their pages; this page records only the
strange-pairs theorem, which has no named informal author.
Depends on. Nothing in this wiki.
Acceptance. Formalized. This corpus's verification built Alexeev's
lean-proofs repository, the third link above, at the pinned commit 8822f7dd of
2026-09-15. It used the repository's src/latest folder with that folder's
toolchain (Lean v4.33.0, Mathlib v4.33.0). It compiled the module
ErdosProblems.Erdos649 of the file src/latest/ErdosProblems/Erdos649.lean,
the module ErdosProblems.Erdos368b that it imports, and the repository's
comparator challenge for the problem,
src/latest/ComparatorChallenges/ErdosProblems/Erdos649.lean. It checked the
axioms of Erdos649.erdos_649, which are exactly propext, Classical.choice
and Quot.sound.
The challenge states that theorem without proof, together with the definitions
Erdos649.P and Erdos649.StrangePair that its type reaches. The fingerprints
of the theorem and of both definitions were found identical in the module and
the challenge. The module's definitions and statement are textually the
challenge's. The imported module defines nothing in the Erdos649 namespace.
Neither file contains sorry, axiom or native_decide.
The statement was audited clause by clause against the problem's Statement. P
is the greatest prime factor for , with the junk value at and
. StrangePair is the definition stated above. So each in the
theorem's set is a prime other than with for every
. Hence no natural number has and : for
the product would be , and . A negative reduces to the
swapped pair, and with , which is excluded in the
same way. So the theorem gives infinitely many pairs of distinct primes, and
such a , with no such . It refutes the Statement whether or not the
Statement allows . This is the full-scope disproof this page claims.
The build certifies erdos_649 alone. The same file proves conjecture_false,
tong_counterexamples and sampaio_counterexample, but no challenge compares
them. So this build gives no formalized evidence for
Tong's page or
Sampaio's page.
Boris Alexeev published the file in that repository (GitHub plby). Alexeev
announced it in the erdosproblems.com thread on 2026-02-07 as a formalization,
by ChatGPT and Aristotle, of every result in the problem's description, the
Romanian Master of Mathematics solution among them. Alexeev is the claimant as
the publisher. An earlier version of the file took Mahler's bound as a
hypothesis. The archived copy linked above, of 2026-02-17, names ChatGPT and
Aristotle as the systems that formalized the results. It is a single file that
includes part of the Problem 368 formalization in its own namespace. It proves
the finiteness of the solutions for each fixed pair without Mahler's bound, uses
native_decide twice, and can be type-checked online. Its main theorem is
infinite_strange_pairs.
The revision built presents itself as "a Lean formalization of a solution to
Erdős Problem 649". It names ChatGPT, Aristotle and Boris Alexeev as formal
authors and names no informal author. It imports a module of the Problem 368
formalization instead, and it names its main theorem erdos_649. Its #print axioms line for erdos_649 (line 1123) is followed by a comment recording the
output. That comment is the file's own record, written for the alias, and it
names only propext, Classical.choice and Quot.sound. The file's last line
(1126) declares infinite_strange_pairs an alias of erdos_649. The build is
of that revision, not of the file announced on 2026-02-07 or of the archived
copy.
The formal-conjectures statement erdos_649 has a sorry body. Its
formal_proof attribute points at line 488 of the revision built, the
sampaio_counterexample theorem. The collection's variant
erdos_649.variants.rmm_2020 states the competition's result with a sorry
body. The statement file is not a formalization link. A thread post of
2026-06-01 reports a revision that removes the proof's two uses of
native_decide, in the Jayyhk/erdos-lean folder linked above.
Not reviewed: the erdosproblems.com label refers to the file, and its remarks record the competition's result without an author. But no outside reviewer of the file is named, and no examination of it is published. Not refereed: the file has no journal publication.