Research notes on every problem, and a library of the papers behind them. Built from the open erdos repository.
Updated
Claim. Let be the largest number of edges of a finite simple graph on vertices containing no cycle of length four. Then
that is, as through all positive integers. This is Corollary 2 (printed p. 219) of P. Erdős, A. Rényi and V. T. Sós, On a problem of graph theory, Studia Sci. Math. Hungar. 1 (1966), 215--235 (received 1 February 1966; the volume carries the year only, so this page's name uses its first day). The paper's source card records it and pages the statement at Corollary 2. The lower bound comes from the polarity graph of a finite projective plane, Theorem 1, whose graph has at least edges for every prime power (display (1.6), p. 218) and exactly for prime (the footnote on p. 218), so that , carried to every large by the monotonicity of and a prime in a short interval just below (, the paper's (1.15), so that ); the upper bound is the common-neighbor count, Reiman's inequality , with Cauchy--Schwarz. The paper's footnote on p. 219 records Brown's independent proof of the same asymptotic by the same construction (Canad. Math. Bull. 9 (1966), 281--285), recorded on Brown's claim page, and cites Reiman (1958) for the upper asymptotic.
For Problem 765, which asks for an asymptotic formula for , this is the formula: the leading term with an remainder. It asserts no second-order term; Erdős's later conjecture of a second term with an remainder is false by Ma and Yang (2023), as the problem page records, and no replacement second-order asymptotic is known.
Acceptance. Refereed: Studia Scientiarum Mathematicarum Hungarica. Reviewed: the site's curator, Thomas Bloom, labels the problem solved and records the asymptotic as the answer in the problem's commentary, crediting the construction to Erdős and Rényi and to Brown and the upper bound to Reiman; Füredi (1983) and Ma and Yang (2023), in refereed papers, credit the asymptotic to Erdős, Rényi and Sós by name, with Brown's independent proof beside it. The result page records Corollary 2 and its proof pointers at the author level; this corpus has not audited the prime-distribution input and supplies no independent whole-proof review.
Formalization. A Lean 4 development proving this asymptotic was posted
on 2026-05-16 in the site's discussion thread by
Jeremy Tan Jie Rui (the forum account parclytaxel), who describes it as a
proof found with the prover Aristotle following the exposition in Aigner and
Ziegler's Proofs from THE BOOK (Chapter 28.5 of the sixth edition). The
gist (Erdos765.lean, 492 lines, for the Mathlib v4.28.0 project of the
online Lean editor; its version of 2026-05-16 is its only revision) proves
erdos765: the function , as Mathlib's
SimpleGraph.extremalNumber of the development's own four-cycle
C4 : SimpleGraph (Fin 4) cast to the reals, is asymptotically equivalent
(~[atTop]) to , by the polarity-graph lower bound at
prime-power orders, Reiman's inequality for the upper bound, and the passage
to all through one axiom, prime_between, which asserts that for every
and all large real there is a prime in
and stands in for a statement of the PNT+ library. The copy hosted in Boris
Alexeev's lean-proofs repository (plby/lean-proofs; the file
src/latest/ErdosProblems/Erdos765.lean, Lean v4.33.0, Mathlib v4.33.0,
added 2026-08-26, 52 lines at the pinned commit of 2026-09-15, importing the
repository's Erdos765.Asymptotics development) is the same proof adapted to
that repository; its header names Reiman, Erdős, Rényi and Brown as the
informal authors (so the file is also linked on
Brown's claim page)
and Aristotle and Jeremy Tan Jie Rui as the formal authors, says that the
original axiom is discharged by the repository's PNT+ library, and closes
with #print axioms erdos_765 and a comment reporting propext,
Classical.choice and Quot.sound. The formal-conjectures statement of the
problem,
FormalConjectures/ErdosProblems/765.lean
(added 2026-09-18; linked at its revision of 2026-09-27), states the
asymptotic as erdos_765 for Mathlib's SimpleGraph.cycleGraph 4, tags it
research solved and names the repository copy in its formal_proof
attribute; this corpus has not checked the identification of that graph with
the development's C4. This corpus has built, replayed and audited none of
these artifacts, the axiom output is the file's own comment, and no outside
reviewer has published an examination of the statement's fidelity, so the
page lists no formalized evidence.