{
  "id": "3129",
  "ident": "NS.03129",
  "slug": "erdos-767",
  "title": "Erdős Problem 767",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $g_k(n)$ be the maximal number of edges possible on a graph with $n$ vertices which does not\ncontain a cycle with $k$ chords incident to a vertex on the cycle. Is it true that\n$$g_k(n)=(k+1)n-(k+1)^2$$\nfor $n$ sufficiently large?\n\nThe answer is yes: the conjectured equality was proved for $n\\geq 3k+3$ by Jiang [Ji04].",
  "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": "Erdos767.erdos_767",
  "statement_lean": "theorem erdos_767 :\n    ∀ k ≥ 1, ∀ n ≥ 3 * k + 3, g k n = (k + 1) * n - (k + 1) ^ 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-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 767\n\n*References:*\n- [erdosproblems.com/767](https://www.erdosproblems.com/767)\n- [Er64c] Erdős, P., _Extremal problems in graph theory_. Theory of Graphs and its Applications\n  (Proc. Sympos. Smolenice, 1963) (1964), 29-36.\n- [Er69b] Erdős, P., _Problems and results in chromatic graph theory_. Proof Techniques in Graph\n  Theory (Proc. Second Ann Arbor Graph Theory Conf., Ann Arbor, Mich., 1968) (1969), 27-35.\n- [Er75] Erdős, P., _Some recent progress on extremal problems in graph theory_. Congr. Numer.\n  (1975), 3-14.\n- [Ji04] Jiang, Tao, _A note on a conjecture about cycles with many incident chords_. J. Graph\n  Theory (2004), 180-182.\n-/\n\n@[expose] public section\n\nopen SimpleGraph\n\nnamespace Erdos767\n\n/-- `G` contains a cycle with `k` chords incident to a vertex on the cycle. -/\ndef HasCycleWithIncidentChords {V : Type*} (G : SimpleGraph V) (k : ℕ) : Prop :=\n  ∃ (v : V) (c : G.Walk v v), c.IsCycle ∧\n    ∃ f : Fin k → V, Function.Injective f ∧ ∀ i, c.IsChord s(v, f i)\n\nopen scoped Classical in\n/-- `g k n` is the maximal number of edges possible on a graph with `n` vertices which does not\ncontain a cycle with `k` chords incident to a vertex on the cycle. -/\nnoncomputable def g (k n : ℕ) : ℕ :=\n  sSup {m | ∃ G : SimpleGraph (Fin n),\n    ¬ HasCycleWithIncidentChords G k ∧ G.edgeFinset.card = m}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $g_k(n)$ be the maximal number of edges possible on a graph with $n$ vertices which does not\ncontain a cycle with $k$ chords incident to a vertex on the cycle. Is it true that\n$$g_k(n)=(k+1)n-(k+1)^2$$\nfor $n$ sufficiently large?\n\nThe answer is yes: the conjectured equality was proved for $n\\geq 3k+3$ by Jiang [Ji04].\n-/\n@[category research solved, question, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos767.lean#L1566\"]\ntheorem erdos_767 :\n    ∀ k ≥ 1, ∀ n ≥ 3 * k + 3, g k n = (k + 1) * n - (k + 1) ^ 2 := by\n  sorry\n\n/-- Czipszer proved that $g_k(n)\\leq (k+1)n$. -/\n@[category research solved, AMS 5]\ntheorem erdos_767.variants.czipszer (k n : ℕ) : g k n ≤ (k + 1) * n := by\n  sorry\n\n/-- Pósa proved that $g_1(n)=2n-4$ for $n\\geq 4$. -/\n@[category research solved, AMS 5]\ntheorem erdos_767.variants.posa (n : ℕ) (hn : 4 ≤ n) : g 1 n = 2 * n - 4 := by\n  sorry\n\nend Erdos767\n",
  "statement_hash": "16be64f750b7685e2fec0fe4a441059db0ccb6f1cc70bed18a0f39689dd7263b",
  "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."
}