{
  "id": "3117",
  "ident": "NS.03117",
  "slug": "erdos-765",
  "title": "Erdős Problem 765",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Give an asymptotic formula for $\\mathrm{ex}(n; C_4)$.\n\nErdős and Klein [Er38] proved $\\mathrm{ex}(n; C_4) \\asymp n^{3/2}$, and Reiman [Re58] proved\n$$\\frac{1}{2\\sqrt 2} \\le \\lim \\frac{\\mathrm{ex}(n; C_4)}{n^{3/2}} \\le \\frac12.$$\nErdős and Rényi [ERS66], and independently Brown [Br66], gave a construction showing that if\n$n = q^2 + q + 1$ with $q$ a prime power then $\\mathrm{ex}(n; C_4) \\ge \\frac12 q (q+1)^2$; together\nwith Reiman's upper bound this gives $\\mathrm{ex}(n; C_4) \\sim \\frac12 n^{3/2}$. Füredi [Fu83] proved\n$\\mathrm{ex}(n; C_4) = \\frac12 q (q+1)^2$ for $q > 13$.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos765.erdos_765",
  "statement_lean": "theorem erdos_765 :\n    (fun n : ℕ ↦ (SimpleGraph.extremalNumber n (SimpleGraph.cycleGraph 4) : ℝ)) ~[atTop]\n      fun n : ℕ ↦ (n : ℝ) ^ (3 / 2 : ℝ) / 2",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\n\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 765\n\n*References:*\n- [erdosproblems.com/765](https://www.erdosproblems.com/765)\n- [Er38] Erdős, P., *On sequences of integers no one of which divides the product of two others\n  and on related problems*. Tomsk. Gos. Univ. Ucen Zap. (1938), 74-82.\n- [Re58] Reiman, I., *Über ein Problem von K. Zarankiewicz*. Acta Math. Acad. Sci. Hungar. 9\n  (1958), 269-273.\n- [ERS66] Erdős, P. and Rényi, A. and Sós, V. T., *On a problem of graph theory*. Studia Sci. Math.\n  Hungar. (1966), 215--235.\n- [Br66] Brown, W. G., *On graphs that do not contain a Thomsen graph*. Canad. Math. Bull. (1966),\n  281-285.\n- [Er75] Erdős, P., *Some recent progress on extremal problems in graph theory*. Congr. Numer.\n  (1975), 3-14.\n- [Fu83] Füredi, Z., *Graphs without quadrilaterals*. J. Combin. Theory Ser. B 34 (1983),\n  187-190.\n- [Er93] Erdős, Paul, *Some of my favorite solved and unsolved problems in graph theory*.\n  Quaestiones Math. (1993), 333-350.\n- [MaYa23] Ma, Jie and Yang, Tianchi, *Upper bounds on the extremal number of the 4-cycle*. Bull.\n  Lond. Math. Soc. (2023), 1655--1667.\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\n\nnamespace Erdos765\n\nset_option linter.style.formal_proof_palomar false in\n/--\nGive an asymptotic formula for $\\mathrm{ex}(n; C_4)$.\n\nErdős and Klein [Er38] proved $\\mathrm{ex}(n; C_4) \\asymp n^{3/2}$, and Reiman [Re58] proved\n$$\\frac{1}{2\\sqrt 2} \\le \\lim \\frac{\\mathrm{ex}(n; C_4)}{n^{3/2}} \\le \\frac12.$$\nErdős and Rényi [ERS66], and independently Brown [Br66], gave a construction showing that if\n$n = q^2 + q + 1$ with $q$ a prime power then $\\mathrm{ex}(n; C_4) \\ge \\frac12 q (q+1)^2$; together\nwith Reiman's upper bound this gives $\\mathrm{ex}(n; C_4) \\sim \\frac12 n^{3/2}$. Füredi [Fu83] proved\n$\\mathrm{ex}(n; C_4) = \\frac12 q (q+1)^2$ for $q > 13$.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos765.lean#L24\"]\ntheorem erdos_765 :\n    (fun n : ℕ ↦ (SimpleGraph.extremalNumber n (SimpleGraph.cycleGraph 4) : ℝ)) ~[atTop]\n      fun n : ℕ ↦ (n : ℝ) ^ (3 / 2 : ℝ) / 2 := by\n  sorry\n\n/--\nErdős [Er93] conjectured that $\\mathrm{ex}(n; C_4) = \\frac{n^{3/2}}{2} + \\frac n4 + O(n^{1/2})$ for all\n$n$, having proved the upper bound $\\mathrm{ex}(n; C_4) \\le \\frac{n^{3/2}}{2} + \\frac n4 + O(n^{1/2})$\nin [Er75]. This is false: Ma and Yang [MaYa23] proved that, for some absolute constant $c > 0$ and\na positive density set of $n$, $\\mathrm{ex}(n; C_4) \\le \\frac{n^{3/2}}{2} + (\\frac14 - c) n$.\n-/\n@[category research solved, question, AMS 5]\ntheorem erdos_765.variants.second_term :\n    ¬ (fun n : ℕ ↦ (SimpleGraph.extremalNumber n (SimpleGraph.cycleGraph 4) : ℝ) -\n      (n : ℝ) ^ (3 / 2 : ℝ) / 2 - (n : ℝ) / 4) =O[atTop] fun n : ℕ ↦ (n : ℝ) ^ (1 / 2 : ℝ) := by\n  sorry\n\nend Erdos765\n",
  "statement_hash": "9386046ebc912ba92923b17c7f690642f475c426666f1dd4afff3aa61555bccf",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}