{
  "id": "594",
  "ident": "NS.00594",
  "slug": "erdos-1079",
  "title": "Erdős Problem 1079",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $r\\geq 4$. If $G$ is a graph on $n$ vertices with at least $\\mathrm{ex}(n;K_r)$ edges then\nmust $G$ contain a vertex with degree $d\\gg_r n$ whose neighbourhood contains at least\n$\\mathrm{ex}(d;K_{r-1})$ edges?\n\nAs Erdős [Er75] says 'if true this would be a nice generalisation of Turán's theorem'. This is\ntrue (unless $G$ it itself the Turán graph), and was proved by Bollobás and Thomason [BoTh81].\nBondy [Bo83b] showed that if $G$ has $>\\mathrm{ex}(n;K_r)$ edges then the corresponding vertex\ncan be chosen to be of maximum degree in $G$.\n\nThe number of edges in the neighbourhood of $v$ is the number of edges of $G$ both of whose\nendpoints are adjacent to $v$. Graphs on a single vertex are excluded, since there every degree\nis $0$.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1079.erdos_1079",
  "statement_lean": "theorem erdos_1079 : ∀ r : ℕ, 4 ≤ r → ∃ c : ℝ, 0 < c ∧ ∀ n : ℕ, 2 ≤ n →\n    ∀ G : SimpleGraph (Fin n), extremalNumber n (completeGraph (Fin r)) ≤ G.edgeSet.ncard →\n      ∃ v : Fin n, c * n ≤ G.degree v ∧\n        extremalNumber (G.degree v) (completeGraph (Fin (r - 1))) ≤\n          {e ∈ G.edgeSet | ∀ x ∈ e, G.Adj v x}.ncard",
  "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-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 1079\n\n*References:*\n- [erdosproblems.com/1079](https://www.erdosproblems.com/1079)\n- [Er75] Erdős, P., *Some recent progress on extremal problems in graph theory*. Congr. Numer.\n  (1975), 3-14.\n- [BoTh81] Bollobás, Béla and Thomason, Andrew, *Dense neighbourhoods and Turán's theorem*. J.\n  Combin. Theory Ser. B (1981), 111--114.\n- [Bo83b] Bondy, J. A., *Large dense neighbourhoods and Turán's theorem*. J. Combin. Theory Ser.\n  B (1983), 109--111.\n-/\n\n@[expose] public section\n\nopen SimpleGraph\n\nnamespace Erdos1079\n\nopen scoped Classical in\n/--\nLet $r\\geq 4$. If $G$ is a graph on $n$ vertices with at least $\\mathrm{ex}(n;K_r)$ edges then\nmust $G$ contain a vertex with degree $d\\gg_r n$ whose neighbourhood contains at least\n$\\mathrm{ex}(d;K_{r-1})$ edges?\n\nAs Erdős [Er75] says 'if true this would be a nice generalisation of Turán's theorem'. This is\ntrue (unless $G$ it itself the Turán graph), and was proved by Bollobás and Thomason [BoTh81].\nBondy [Bo83b] showed that if $G$ has $>\\mathrm{ex}(n;K_r)$ edges then the corresponding vertex\ncan be chosen to be of maximum degree in $G$.\n\nThe number of edges in the neighbourhood of $v$ is the number of edges of $G$ both of whose\nendpoints are adjacent to $v$. Graphs on a single vertex are excluded, since there every degree\nis $0$.\n-/\n@[category research solved, question, AMS 5]\ntheorem erdos_1079 : ∀ r : ℕ, 4 ≤ r → ∃ c : ℝ, 0 < c ∧ ∀ n : ℕ, 2 ≤ n →\n    ∀ G : SimpleGraph (Fin n), extremalNumber n (completeGraph (Fin r)) ≤ G.edgeSet.ncard →\n      ∃ v : Fin n, c * n ≤ G.degree v ∧\n        extremalNumber (G.degree v) (completeGraph (Fin (r - 1))) ≤\n          {e ∈ G.edgeSet | ∀ x ∈ e, G.Adj v x}.ncard := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nBondy's strengthening [Bo83b]: if $G$ has more than $\\mathrm{ex}(n;K_r)$ edges then some vertex\n$v$ of maximum degree has $d(v) \\geq n/2$ and its neighbourhood contains more than\n$\\mathrm{ex}(d(v);K_{r-1})$ edges.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1079.lean#L424\"]\ntheorem erdos_1079.variants.bondy (r n : ℕ) (hr : 4 ≤ r) (G : SimpleGraph (Fin n))\n    [DecidableRel G.Adj]\n    (hG : extremalNumber n (completeGraph (Fin r)) < G.edgeSet.ncard) :\n    ∃ v : Fin n, G.degree v = G.maxDegree ∧ n ≤ 2 * G.degree v ∧\n      extremalNumber (G.degree v) (completeGraph (Fin (r - 1))) <\n        {e ∈ G.edgeSet | ∀ x ∈ e, G.Adj v x}.ncard := by\n  sorry\n\nend Erdos1079\n",
  "statement_hash": "3190fd77fc30413c410ac22d27d851a65d3ef2a33dce3865d6aaf35af40d26b2",
  "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."
}