{
  "id": "426",
  "ident": "NS.00426",
  "slug": "erdos-1034",
  "title": "Erdős Problem 1034",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $G$ be a graph on $n$ vertices with $>n^2/4$ many edges. Must there be a triangle $T$ in $G$\nand vertices $y_1,\\ldots,y_t$, where $t>(\\frac{1}{2}-o(1))n$, such that every $y_i$ is joined to\nat least two vertices of $T$?\n\nA conjecture of Erdős and Faudree; a stronger version of [905].\n\nThis has been solved in the negative by Ma and Tang [MaTa25], who construct a graph with $n$\nvertices and $>n^2/4$ edges in which every triangle has at most $(2-(5/2)^{1/2}+o(1))n$ vertices\nadjacent to at least two of its vertices (note that $2-(5/2)^{1/2}\\approx 0.4189$).",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1034.erdos_1034",
  "statement_lean": "theorem erdos_1034 :\n    ¬ ∀ ε : ℝ, 0 < ε → ∀ᶠ (n : ℕ) in atTop, ∀ G : SimpleGraph (Fin n),\n      (n : ℝ) ^ 2 / 4 < (G.edgeSet.ncard : ℝ) →\n        ∃ T : Finset (Fin n), G.IsNClique 3 T ∧ ∃ Y : Finset (Fin n),\n          JoinedToTwo G T Y ∧ (1 / 2 - ε) * (n : ℝ) < (Y.card : ℝ)",
  "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 1034\n\n*References:*\n- [erdosproblems.com/1034](https://www.erdosproblems.com/1034)\n- [Er93] Erdős, Paul, *Some of my favorite solved and unsolved problems in graph theory*.\n  Quaestiones Math. (1993), 333-350.\n- [MaTa25] Ma, Jie and Tang, Quanyu, *On Erdős problem #1034*.\n  [staff.ustc.edu.cn/~jiema/Erdos-1034.pdf](http://staff.ustc.edu.cn/~jiema/Erdos-1034.pdf)\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos1034\n\n/--\n`JoinedToTwo G T Y` holds when every vertex of `Y` is joined to at least two (distinct)\nvertices of `T`.\n-/\ndef JoinedToTwo {V : Type*} (G : SimpleGraph V) (T Y : Finset V) : Prop :=\n  ∀ y ∈ Y, ∃ u ∈ T, ∃ v ∈ T, u ≠ v ∧ G.Adj y u ∧ G.Adj y v\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $G$ be a graph on $n$ vertices with $>n^2/4$ many edges. Must there be a triangle $T$ in $G$\nand vertices $y_1,\\ldots,y_t$, where $t>(\\frac{1}{2}-o(1))n$, such that every $y_i$ is joined to\nat least two vertices of $T$?\n\nA conjecture of Erdős and Faudree; a stronger version of [905].\n\nThis has been solved in the negative by Ma and Tang [MaTa25], who construct a graph with $n$\nvertices and $>n^2/4$ edges in which every triangle has at most $(2-(5/2)^{1/2}+o(1))n$ vertices\nadjacent to at least two of its vertices (note that $2-(5/2)^{1/2}\\approx 0.4189$).\n-/\n@[category research solved, question, AMS 5, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos1034.lean\"]\ntheorem erdos_1034 :\n    ¬ ∀ ε : ℝ, 0 < ε → ∀ᶠ (n : ℕ) in atTop, ∀ G : SimpleGraph (Fin n),\n      (n : ℝ) ^ 2 / 4 < (G.edgeSet.ncard : ℝ) →\n        ∃ T : Finset (Fin n), G.IsNClique 3 T ∧ ∃ Y : Finset (Fin n),\n          JoinedToTwo G T Y ∧ (1 / 2 - ε) * (n : ℝ) < (Y.card : ℝ) := by\n  sorry\n\n/--\nErdős and Faudree asked about the threshold $h(n)$ such that every graph with $n$ vertices and\n$>n^2/4$ edges contained a triangle and $h(n)$ other vertices which are connected to at least two\nvertices of the triangle. The fact that every graph with $>n^2/4$ edges contains a book of size\n$n/6$ shows that\n$$(1/6-o(1))n \\leq h(n).$$\n-/\n@[category research solved, AMS 5]\ntheorem erdos_1034.variants.lower_bound (ε : ℝ) (hε : 0 < ε) :\n    ∀ᶠ (n : ℕ) in atTop, ∀ G : SimpleGraph (Fin n),\n      (n : ℝ) ^ 2 / 4 < (G.edgeSet.ncard : ℝ) →\n        ∃ T : Finset (Fin n), G.IsNClique 3 T ∧ ∃ Y : Finset (Fin n),\n          JoinedToTwo G T Y ∧ (1 / 6 - ε) * (n : ℝ) ≤ (Y.card : ℝ) := by\n  sorry\n\n/--\nThe construction of Ma and Tang [MaTa25] of a graph with $n$ vertices and $>n^2/4$ edges in which\nevery triangle has at most $(2-(5/2)^{1/2}+o(1))n$ vertices adjacent to at least two of its\nvertices shows that, for the threshold $h(n)$ of `erdos_1034.variants.lower_bound`,\n$$h(n) \\leq (2-(5/2)^{1/2}+o(1))n.$$\n-/\n@[category research solved, AMS 5]\ntheorem erdos_1034.variants.upper_bound (ε : ℝ) (hε : 0 < ε) :\n    ∀ᶠ (n : ℕ) in atTop, ∃ G : SimpleGraph (Fin n),\n      (n : ℝ) ^ 2 / 4 < (G.edgeSet.ncard : ℝ) ∧\n        ∀ T : Finset (Fin n), G.IsNClique 3 T → ∀ Y : Finset (Fin n),\n          JoinedToTwo G T Y → (Y.card : ℝ) ≤ (2 - Real.sqrt (5 / 2) + ε) * (n : ℝ) := by\n  sorry\n\n/--\nErdős suggested that the answer is different if $G$ has no $K_4$. In the comments Ma and Tang\nsketch a proof that the conjecture remains false even if we assume that $G$ contains no $K_4$,\nconstructing a graph with $n$ vertices, $>n^2/4$ edges, and no $K_4$, in which every triangle has\nat most $(2\\sqrt{3}-3+o(1))n$ vertices adjacent to at least two of its vertices (note that\n$2\\sqrt{3}-3\\approx 0.464$).\n-/\n@[category research solved, AMS 5]\ntheorem erdos_1034.variants.k4_free (ε : ℝ) (hε : 0 < ε) :\n    ∀ᶠ (n : ℕ) in atTop, ∃ G : SimpleGraph (Fin n), G.CliqueFree 4 ∧\n      (n : ℝ) ^ 2 / 4 < (G.edgeSet.ncard : ℝ) ∧\n        ∀ T : Finset (Fin n), G.IsNClique 3 T → ∀ Y : Finset (Fin n),\n          JoinedToTwo G T Y → (Y.card : ℝ) ≤ (2 * Real.sqrt 3 - 3 + ε) * (n : ℝ) := by\n  sorry\n\nend Erdos1034\n",
  "statement_hash": "43c38ee5c3965aefa8d86fa21020f2012be88d7fd834195ecfa292a344d654f7",
  "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."
}