Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 765

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Give an asymptotic formula for ex(n;C4)\mathrm{ex}(n; C_4).

Erdős and Klein [Er38] proved ex(n;C4)≍n3/2\mathrm{ex}(n; C_4) \asymp n^{3/2}, and Reiman [Re58] proved 122≤lim⁡ex(n;C4)n3/2≤12.\frac{1}{2\sqrt 2} \le \lim \frac{\mathrm{ex}(n; C_4)}{n^{3/2}} \le \frac12. Erdős and Rényi [ERS66], and independently Brown [Br66], gave a construction showing that if n=q2+q+1n = q^2 + q + 1 with qq a prime power then ex(n;C4)≥12q(q+1)2\mathrm{ex}(n; C_4) \ge \frac12 q (q+1)^2; together with Reiman's upper bound this gives ex(n;C4)∼12n3/2\mathrm{ex}(n; C_4) \sim \frac12 n^{3/2}. Füredi [Fu83] proved ex(n;C4)=12q(q+1)2\mathrm{ex}(n; C_4) = \frac12 q (q+1)^2 for q>13q > 13.

Subjects:Combinatorics (math.CO)
MSC classes:05
Tags:formal_proof
Cite as:NS.03117 [math.CO] · NS.03117v1 for this version
Declaration:Erdos765.erdos_765
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:9386046ebc912ba92923b17c7f690642f475c426666f1dd4afff3aa61555bccf
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/765.lean

Formal statement

theorem erdos_765 :
    (fun n : ℕ ↦ (SimpleGraph.extremalNumber n (SimpleGraph.cycleGraph 4) : ℝ)) ~[atTop]
      fun n : ℕ ↦ (n : ℝ) ^ (3 / 2 : ℝ) / 2
Show the full Challenge.lean (81 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 765

*References:*
- [erdosproblems.com/765](https://www.erdosproblems.com/765)
- [Er38] Erdős, P., *On sequences of integers no one of which divides the product of two others
  and on related problems*. Tomsk. Gos. Univ. Ucen Zap. (1938), 74-82.
- [Re58] Reiman, I., *Über ein Problem von K. Zarankiewicz*. Acta Math. Acad. Sci. Hungar. 9
  (1958), 269-273.
- [ERS66] Erdős, P. and Rényi, A. and Sós, V. T., *On a problem of graph theory*. Studia Sci. Math.
  Hungar. (1966), 215--235.
- [Br66] Brown, W. G., *On graphs that do not contain a Thomsen graph*. Canad. Math. Bull. (1966),
  281-285.
- [Er75] Erdős, P., *Some recent progress on extremal problems in graph theory*. Congr. Numer.
  (1975), 3-14.
- [Fu83] Füredi, Z., *Graphs without quadrilaterals*. J. Combin. Theory Ser. B 34 (1983),
  187-190.
- [Er93] Erdős, Paul, *Some of my favorite solved and unsolved problems in graph theory*.
  Quaestiones Math. (1993), 333-350.
- [MaYa23] Ma, Jie and Yang, Tianchi, *Upper bounds on the extremal number of the 4-cycle*. Bull.
  Lond. Math. Soc. (2023), 1655--1667.
-/

@[expose] public section

open Filter Asymptotics

namespace Erdos765

set_option linter.style.formal_proof_palomar false in
/--
Give an asymptotic formula for $\mathrm{ex}(n; C_4)$.

Erdős and Klein [Er38] proved $\mathrm{ex}(n; C_4) \asymp n^{3/2}$, and Reiman [Re58] proved
$$\frac{1}{2\sqrt 2} \le \lim \frac{\mathrm{ex}(n; C_4)}{n^{3/2}} \le \frac12.$$
Erdős and Rényi [ERS66], and independently Brown [Br66], gave a construction showing that if
$n = q^2 + q + 1$ with $q$ a prime power then $\mathrm{ex}(n; C_4) \ge \frac12 q (q+1)^2$; together
with Reiman's upper bound this gives $\mathrm{ex}(n; C_4) \sim \frac12 n^{3/2}$. Füredi [Fu83] proved
$\mathrm{ex}(n; C_4) = \frac12 q (q+1)^2$ for $q > 13$.
-/
@[category research solved, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos765.lean#L24"]
theorem erdos_765 :
    (fun n : ℕ ↦ (SimpleGraph.extremalNumber n (SimpleGraph.cycleGraph 4) : ℝ)) ~[atTop]
      fun n : ℕ ↦ (n : ℝ) ^ (3 / 2 : ℝ) / 2 := by
  sorry

/--
Erdős [Er93] conjectured that $\mathrm{ex}(n; C_4) = \frac{n^{3/2}}{2} + \frac n4 + O(n^{1/2})$ for all
$n$, having proved the upper bound $\mathrm{ex}(n; C_4) \le \frac{n^{3/2}}{2} + \frac n4 + O(n^{1/2})$
in [Er75]. This is false: Ma and Yang [MaYa23] proved that, for some absolute constant $c > 0$ and
a positive density set of $n$, $\mathrm{ex}(n; C_4) \le \frac{n^{3/2}}{2} + (\frac14 - c) n$.
-/
@[category research solved, question, AMS 5]
theorem erdos_765.variants.second_term :
    ¬ (fun n : ℕ ↦ (SimpleGraph.extremalNumber n (SimpleGraph.cycleGraph 4) : ℝ) -
      (n : ℝ) ^ (3 / 2 : ℝ) / 2 - (n : ℝ) / 4) =O[atTop] fun n : ℕ ↦ (n : ℝ) ^ (1 / 2 : ℝ) := by
  sorry

end Erdos765

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos765.erdos_765 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_765 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-765
nosorry submit erdos-765 nosorry/erdos-765/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.