{
  "id": "3669",
  "ident": "NS.03669",
  "slug": "erdos-934",
  "title": "Erdős Problem 934",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $h_t(d)$ be minimal such that every graph $G$ with $h_t(d)$ edges and maximal degree\n$\\leq d$ contains two edges whose shortest path between them has length $\\geq t$.\n\nEstimate $h_t(d)$.\n\nA problem of Erdős and Nešetřil [Er88]. Erdős wrote 'This problem seems to be interesting only\nif there is a nice expression for $h_t(d)$.' We read \"estimate\" as asking for an exact\nexpression, as in that remark: `h t d = erdos_934.answer t d` for all `1 ≤ t` and all `d`.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos934.erdos_934",
  "statement_lean": "theorem erdos_934 : ∀ t d : ℕ, 1 ≤ t → h t d = erdos_934.answer t d",
  "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 934\n\n*References:*\n- [erdosproblems.com/934](https://www.erdosproblems.com/934)\n- [Er88] Erdős, P., *Problems and results in combinatorial analysis and graph theory*.\n  Discrete Math. 72 (1988), 81-92.\n- [BBPP83] Bermond, J.-C., Bond, J., Paoli, M. and Peyrat, C., *Graphs and interconnection\n  networks: diameter and vulnerability*. Surveys in Combinatorics (Southampton, 1983), London Math.\n  Soc. Lecture Note Ser. 82, Cambridge Univ. Press (1983), 1-30.\n- [CGTT90] Chung, F. R. K., Gyárfás, A., Tuza, Z. and Trotter, W. T., *The maximum number of\n  edges in $2K_2$-free graphs of bounded degree*. Discrete Math. 81 (1990), 129-135.\n- [CCJK22] Cambie, S., Cames van Batenburg, W., de Joannis de Verclos, R. and Kang, R. J.,\n  *Maximising line subgraphs of diameter at most $t$*. SIAM J. Discrete Math. 36 (2022),\n  939-950. [arXiv:2103.11898](https://arxiv.org/abs/2103.11898)\n- [KMP26] Kumar, H., Mohar, B. and Pragada, S., *An improved bound for the strong clique index\n  of graphs*. [arXiv:2607.02698](https://arxiv.org/abs/2607.02698) (2026).\n- [CvBK26] Cames van Batenburg, W. and Korsky, S., *Asymptotically attaining the Moore bound*.\n  [arXiv:2608.03965](https://arxiv.org/abs/2608.03965) (2026).\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos934\n\n/-- The graph `G` has two edges at distance at least `t`: there are edges `uv` and `wx` of `G`\nsuch that every vertex of `{u, v}` is at graph distance at least `t` from every vertex of\n`{w, x}`, i.e. the shortest path between the two edges has length at least `t`. We use the\nextended distance `SimpleGraph.edist`, so vertices in different components are at distance `⊤`.\nFor `1 ≤ t` the two edges are automatically distinct (indeed vertex-disjoint): `t = 1` means\nvertex-disjoint edges and `t = 2` means an induced `2K₂`. Only `1 ≤ t` is intended. -/\ndef HasFarEdges {V : Type*} (G : SimpleGraph V) (t : ℕ) : Prop :=\n  ∃ u v w x : V, G.Adj u v ∧ G.Adj w x ∧\n    ∀ a ∈ ({u, v} : Set V), ∀ b ∈ ({w, x} : Set V), (t : ℕ∞) ≤ G.edist a b\n\n/-- `h t d` is $h_t(d)$: the least `m` such that every graph with at least `m` edges and maximum\ndegree at most `d` contains two edges at distance at least `t`. As in [CCJK22] and [KMP26],\n\"at least `m` edges\" is used, so `h t d - 1` is the largest number of edges of a graph with\nmaximum degree at most `d` in which any two edges are at distance less than `t`, i.e. whose line\ngraph has diameter at most `t`. Graphs on `Fin n` for arbitrary `n` cover all finite graphs. The\nset is nonempty (for example `3 * d ^ t / 2 + 1` belongs to it by [CCJK22, Theorem 6]), so\n`sInf` is a genuine minimum. -/\nnoncomputable def h (t d : ℕ) : ℕ :=\n  sInf {m : ℕ | ∀ (n : ℕ) (G : SimpleGraph (Fin n)),\n    (∀ v, (G.neighborSet v).ncard ≤ d) → m ≤ G.edgeSet.ncard → HasFarEdges G t}\n\n/-- If every graph with at least `m` edges and maximum degree at most `d` has two edges at\ndistance at least `t`, then `h t d ≤ m`. -/\n@[category API, AMS 5]\ntheorem h_le {t d m : ℕ}\n    (hm : ∀ (n : ℕ) (G : SimpleGraph (Fin n)),\n      (∀ v, (G.neighborSet v).ncard ≤ d) → m ≤ G.edgeSet.ncard → HasFarEdges G t) :\n    h t d ≤ m := by\n  unfold h\n  exact Nat.sInf_le hm\n\ndef erdos_934.answer : ℕ → ℕ → ℕ := sorry\n\n/--\nLet $h_t(d)$ be minimal such that every graph $G$ with $h_t(d)$ edges and maximal degree\n$\\leq d$ contains two edges whose shortest path between them has length $\\geq t$.\n\nEstimate $h_t(d)$.\n\nA problem of Erdős and Nešetřil [Er88]. Erdős wrote 'This problem seems to be interesting only\nif there is a nice expression for $h_t(d)$.' We read \"estimate\" as asking for an exact\nexpression, as in that remark: `h t d = erdos_934.answer t d` for all `1 ≤ t` and all `d`.\n-/\n@[category research open, question value, AMS 5]\ntheorem erdos_934 : ∀ t d : ℕ, 1 ≤ t → h t d = erdos_934.answer t d := by\n  sorry\n\n/--\nIt is easy to see that $h_t(d)\\leq 2d^t$ always and $h_1(d)=d+1$.\n\nThe site (and [CCJK22, p. 1]) states $h_1(d)=d+1$ without restriction; it fails for $d=2$ (the\ntriangle has three pairwise intersecting edges, so $h_1(2)=4$), hence we assume $d\\neq 2$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_934.variants.h_one : ∀ d : ℕ, d ≠ 2 → h 1 d = d + 1 := by\n  sorry\n\n/--\nErdős and Nešetřil and Bermond, Bond, Paoli, and Peyrat [BBPP83] independently conjectured that\n$h_2(d) \\leq \\tfrac{5}{4}d^2+1$, with equality for even $d$. This was proved by Chung, Gyárfás,\nTuza, and Trotter [CGTT90].\n-/\n@[category research solved, AMS 5]\ntheorem erdos_934.variants.h_two :\n    (∀ d : ℕ, 4 * h 2 d ≤ 5 * d ^ 2 + 4) ∧\n      ∀ d : ℕ, Even d → 4 * h 2 d = 5 * d ^ 2 + 4 := by\n  sorry\n\n/--\nCambie, Cames van Batenburg, de Joannis de Verclos, and Kang [CCJK22, Theorem 2] proved that $h_3(3)=23$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_934.variants.h_three_three : h 3 3 = 23 := by\n  sorry\n\n/--\nThe same authors prove that for all $t\\geq 1$ we have\n$$h_t(d) \\leq \\tfrac{3}{2}d^t+1.$$\nSee [CCJK22, Theorem 6]. Here the inequality is stated as `2 * h t d ≤ 3 * d ^ t + 2`.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_934.variants.upper :\n    ∀ t d : ℕ, 1 ≤ t → 2 * h t d ≤ 3 * d ^ t + 2 := by\n  sorry\n\n/--\nThe same authors prove that, if $t$ is large, then there are infinitely many $d$ such that\n$h_t(d) \\geq 0.629^td^t$. See [CCJK22, Proposition 5].\n-/\n@[category research solved, AMS 5]\ntheorem erdos_934.variants.lower_large_t :\n    ∃ t₀ : ℕ, ∀ t : ℕ, t₀ ≤ t →\n      ∃ᶠ d : ℕ in atTop, ((629 : ℝ) / 1000) ^ t * (d : ℝ) ^ t ≤ (h t d : ℝ) := by\n  sorry\n\n/--\nCambie, Cames van Batenburg, de Joannis de Verclos, and Kang [CCJK22] conjectured that\n$h_3(d) \\leq d^3-d^2+d+2$ (with equality if $d-1$ is a prime power; the site writes \"if and only\nif\", while [CCJK22, Conjecture 1] says \"if\"). Kumar, Mohar and Pragada [KMP26, Lemma 3.1]\nrefute the inequality: the odd graph $KG(7,3)$ has $35$ vertices, is $4$-regular, has $70$ edges\nand any two of its edges are at distance less than $3$, so $h_3(4)\\geq 71 > 54$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_934.variants.kmp_h_three_four : 71 ≤ h 3 4 := by\n  sorry\n\n/--\nThe inequality $h_3(d) \\leq d^3-d^2+d+2$ conjectured in [CCJK22] is false [KMP26, Conjecture 1.9\nand Lemma 3.1]. Here the inequality is stated as `h 3 d + d ^ 2 ≤ d ^ 3 + d + 2`.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_934.variants.ccjk_conjecture_false :\n    ¬ ∀ d : ℕ, h 3 d + d ^ 2 ≤ d ^ 3 + d + 2 := by\n  sorry\n\n/--\nKumar, Mohar and Pragada [KMP26, Theorem 1.11] proved\n$$\\liminf_{d\\to\\infty}\\frac{h_3(d)}{d^3}\\geq \\frac{253}{225}.$$\nIn particular the conjecture of [CCJK22] that $h_t(d)\\leq (1+o(1))d^t$ is false for $t=3$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_934.variants.kmp_liminf :\n    ∀ ε > (0 : ℝ), ∀ᶠ d : ℕ in atTop, (253 / 225 - ε) * (d : ℝ) ^ 3 ≤ (h 3 d : ℝ) := by\n  sorry\n\n/--\nFor every fixed $t\\geq 2$, $\\liminf_{d\\to\\infty} h_t(d)/d^t \\geq 1$ [CvBK26, Corollary 1.2]. This\nconfirms, in a strong form, the conjecture of [CCJK22] that $h_t(d)\\geq (1-o(1))d^t$ for\ninfinitely many $d$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_934.variants.lower_liminf :\n    ∀ t : ℕ, 2 ≤ t → ∀ ε > (0 : ℝ), ∀ᶠ d : ℕ in atTop,\n      (1 - ε) * (d : ℝ) ^ t ≤ (h t d : ℝ) := by\n  sorry\n\nend Erdos934\n",
  "statement_hash": "c2673a611541bc0d4ef6ff0236eb8c20eb7ea128e1af4a780ed1a69a8192ce37",
  "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."
}