{
  "id": "3124",
  "ident": "NS.03124",
  "slug": "erdos-766",
  "title": "Erdős Problem 766",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $f(n;k,l)=\\min \\mathrm{ex}(n;G)$, where $G$ ranges over all graphs with $k$ vertices and $l$\nedges.\n\nGive good estimates for $f(n;k,l)$ in the range $k<l\\leq k^2/4$.\n\nIn [Er64c, p. 33] this question is asked for $f_1(n;k,l)$ (`Erdos766.forcingNumber`), which\nforces at least one graph with $k$ vertices and $l$ edges rather than one fixed graph; we follow\nthe source. The question for the function of erdosproblems.com is\n`Erdos766.erdos_766.variants.minExtremalNumber_estimate`.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos766.erdos_766.parts.i",
  "statement_lean": "theorem erdos_766.parts.i :\n    ∀ k l : ℕ, k < l → l ≤ k ^ 2 / 4 →\n      (fun n ↦ (forcingNumber n k l : ℝ)) =Θ[atTop] erdos_766.parts.i.answer k l",
  "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 766\n\n*References:*\n- [erdosproblems.com/766](https://www.erdosproblems.com/766)\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  [PDF](https://www.renyi.hu/~p_erdos/1964-06.pdf)\n-/\n\n@[expose] public section\n\nopen Filter\nopen scoped SimpleGraph\n\nnamespace Erdos766\n\n/-- $f(n;k,l)$ in the sense of [Er64c], where it is called $f_1(n;k,l)$: the least $m$ such that\nevery graph with $n$ vertices and $m$ edges contains at least one graph with $k$ vertices and\n$l$ edges as a (not necessarily induced) subgraph. There is no graph with $n$ vertices and more\nthan $\\binom{n}{2}$ edges, so the set is nonempty. -/\nnoncomputable def forcingNumber (n k l : ℕ) : ℕ :=\n  sInf {m : ℕ | ∀ G : SimpleGraph (Fin n), G.edgeSet.ncard = m →\n    ∃ H : SimpleGraph (Fin k), H.edgeSet.ncard = l ∧ H ⊑ G}\n\n/-- If every graph with $n$ vertices and $m$ edges contains a graph with $k$ vertices and $l$\nedges, then $f(n;k,l) \\leq m$. -/\n@[category API, AMS 5]\ntheorem forcingNumber_le {n k l m : ℕ} (h : ∀ G : SimpleGraph (Fin n), G.edgeSet.ncard = m →\n    ∃ H : SimpleGraph (Fin k), H.edgeSet.ncard = l ∧ H ⊑ G) : forcingNumber n k l ≤ m :=\n  Nat.sInf_le h\n\n/-- For $k \\leq n$ every graph on $n$ vertices contains the empty graph on $k$ vertices, so\n$f(n;k,0) = 0$. -/\n@[category test, AMS 5]\ntheorem forcingNumber_zero {n k : ℕ} (hkn : k ≤ n) : forcingNumber n k 0 = 0 :=\n  Nat.eq_zero_of_le_zero <| forcingNumber_le fun _ _ ↦\n    ⟨⊥, by simp, SimpleGraph.bot_isContained_iff_card_le.2 (by simpa using hkn)⟩\n\n/-- $f(n;k,l) \\leq \\mathrm{ex}(n;G) + 1$ for every graph $G$ with $k$ vertices and $l$ edges,\nsince a graph with more than $\\mathrm{ex}(n;G)$ edges contains $G$. Here $\\mathrm{ex}(n;G)$ is\n`SimpleGraph.extremalNumber n G`, the maximum number of edges of a graph on $n$ vertices with no\ncopy of $G$. -/\n@[category test, AMS 5]\ntheorem forcingNumber_le_extremalNumber_add_one (n : ℕ) {k l : ℕ} (G : SimpleGraph (Fin k))\n    (h : G.edgeSet.ncard = l) : forcingNumber n k l ≤ SimpleGraph.extremalNumber n G + 1 := by\n  classical\n  refine forcingNumber_le fun G' hG' ↦ ⟨G, h, ?_⟩\n  refine SimpleGraph.IsContained.of_extremalNumber_lt_card_edgeFinset ?_\n  rw [Fintype.card_fin, ← Set.ncard_coe_finset, SimpleGraph.coe_edgeFinset, hG']\n  exact Nat.lt_succ_self _\n\n/-- The function of erdosproblems.com: the minimum of $\\mathrm{ex}(n;G)$ over all graphs $G$ with\n$k$ vertices and $l$ edges. In [Er64c] the least $m$ such that every graph with $n$ vertices and\n$m$ edges contains one fixed graph with $k$ vertices and $l$ edges is called $f_2(n;k,l)$, so\nthis is $f_2(n;k,l) - 1$. The value is in `ℕ∞` and is `⊤` when no such graph $G$ exists. -/\nnoncomputable def minExtremalNumber (n k l : ℕ) : ℕ∞ :=\n  ⨅ (G : SimpleGraph (Fin k)) (_ : G.edgeSet.ncard = l), (SimpleGraph.extremalNumber n G : ℕ∞)\n\n/-- The minimum is at most $\\mathrm{ex}(n;G)$ for every graph $G$ with $k$ vertices and $l$\nedges. -/\n@[category API, AMS 5]\ntheorem minExtremalNumber_le (n : ℕ) {k l : ℕ} (G : SimpleGraph (Fin k))\n    (h : G.edgeSet.ncard = l) : minExtremalNumber n k l ≤ SimpleGraph.extremalNumber n G :=\n  iInf₂_le G h\n\n/-- There is no graph with $0$ vertices and $1$ edge, so the minimum is `⊤`. -/\n@[category test, AMS 5]\ntheorem minExtremalNumber_zero_one (n : ℕ) : minExtremalNumber n 0 1 = ⊤ := by\n  simp [minExtremalNumber, Set.eq_empty_of_isEmpty]\n\ndef erdos_766.parts.i.answer : ℕ → ℕ → ℕ → ℝ := sorry\n\n/--\nLet $f(n;k,l)=\\min \\mathrm{ex}(n;G)$, where $G$ ranges over all graphs with $k$ vertices and $l$\nedges.\n\nGive good estimates for $f(n;k,l)$ in the range $k<l\\leq k^2/4$.\n\nIn [Er64c, p. 33] this question is asked for $f_1(n;k,l)$ (`Erdos766.forcingNumber`), which\nforces at least one graph with $k$ vertices and $l$ edges rather than one fixed graph; we follow\nthe source. The question for the function of erdosproblems.com is\n`Erdos766.erdos_766.variants.minExtremalNumber_estimate`.\n-/\n@[category research open, question value, AMS 5]\ntheorem erdos_766.parts.i :\n    ∀ k l : ℕ, k < l → l ≤ k ^ 2 / 4 →\n      (fun n ↦ (forcingNumber n k l : ℝ)) =Θ[atTop] erdos_766.parts.i.answer k l := by\n  sorry\n\n/--\nFor fixed $k$ and large $n$ is $f(n;k,l)$ a strictly monotone function of $l$?\n\nAs in `Erdos766.erdos_766.parts.i`, $f$ is $f_1$ of [Er64c], and we use the range\n$k<l\\leq k^2/4$ in which the question is asked there; here `k ^ 2 / 4` is $\\lfloor k^2/4\\rfloor$.\nThe question for the function of erdosproblems.com is\n`Erdos766.erdos_766.variants.minExtremalNumber_strictMonoOn`.\n-/\n@[category research open, question, AMS 5]\ntheorem erdos_766.parts.ii :\n    ∀ k : ℕ, ∀ᶠ n : ℕ in atTop,\n      StrictMonoOn (forcingNumber n k) (Set.Ioc k (k ^ 2 / 4)) := by\n  sorry\n\n/--\nDirac and Erdős proved independently that when $l=\\lfloor k^2/4\\rfloor+1$\n$$f(n;k,l)\\leq \\lfloor n^2/4\\rfloor+1.$$\n\n[Er64c, p. 34] states this for every $k \\leq n$. We assume $k \\geq 3$, since for $k \\leq 2$ there\nis no graph with $k$ vertices and $\\lfloor k^2/4\\rfloor+1$ edges.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-19-000006\"]\ntheorem erdos_766.variants.dirac_erdos (n k : ℕ) (hk : 3 ≤ k) (hkn : k ≤ n) :\n    forcingNumber n k (k ^ 2 / 4 + 1) ≤ n ^ 2 / 4 + 1 := by\n  sorry\n\ndef erdos_766.variants.minExtremalNumber_estimate.answer : ℕ → ℕ → ℕ → ℝ := sorry\n\n/--\nThe estimate question of `Erdos766.erdos_766.parts.i` for the function\n$\\min \\mathrm{ex}(n;G)$ of erdosproblems.com (`Erdos766.minExtremalNumber`).\n-/\n@[category research open, question value, AMS 5]\ntheorem erdos_766.variants.minExtremalNumber_estimate :\n    ∀ k l : ℕ, k < l → l ≤ k ^ 2 / 4 →\n      (fun n ↦ ((minExtremalNumber n k l).toNat : ℝ)) =Θ[atTop]\n        erdos_766.variants.minExtremalNumber_estimate.answer k l := by\n  sorry\n\n/--\nThe monotonicity question of `Erdos766.erdos_766.parts.ii` for the function\n$\\min \\mathrm{ex}(n;G)$ of erdosproblems.com (`Erdos766.minExtremalNumber`).\n-/\n@[category research open, question, AMS 5]\ntheorem erdos_766.variants.minExtremalNumber_strictMonoOn :\n    ∀ k : ℕ, ∀ᶠ n : ℕ in atTop,\n      StrictMonoOn (minExtremalNumber n k) (Set.Ioc k (k ^ 2 / 4)) := by\n  sorry\n\nend Erdos766\n",
  "statement_hash": "b63bed731cfbadca8650c41503111d1d3d80423f54d8377bffc4f20365d8a2ab",
  "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."
}