{
  "id": "2930",
  "ident": "NS.02930",
  "slug": "erdos-703",
  "title": "Erdős Problem 703",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $r\\geq 1$ and define $T(n,r)$ to be maximal such that there exists a family $\\mathcal{F}$ of\nsubsets of $\\{1,\\ldots,n\\}$ of size $T(n,r)$ such that $\\lvert A\\cap B\\rvert\\neq r$ for all\n$A,B\\in \\mathcal{F}$.\n\nEstimate $T(n,r)$ for $r\\geq 2$. In particular, is it true that for every $\\epsilon>0$ there\nexists $\\delta>0$ such that for all $\\epsilon n<r<(1/2-\\epsilon) n$ we have\n$$T(n,r)<(2-\\delta)^n?$$\n\nThe answer is yes, proved by Frankl and Rödl [FrRo87].",
  "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": "Erdos703.erdos_703",
  "statement_lean": "theorem erdos_703 :\n    ∀ ε : ℝ, 0 < ε → ∃ δ : ℝ, 0 < δ ∧\n      ∀ (n r : ℕ), ε * n < r → r < (1 / 2 - ε) * n → (T n r : ℝ) < (2 - δ) ^ n",
  "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 703\n\n*References:*\n- [erdosproblems.com/703](https://www.erdosproblems.com/703)\n- [Er75f] Erdős, Paul, _On some problems of elementary and combinatorial geometry_. Ann. Mat.\n  Pura Appl. (4) (1975), 99-108.\n- [Er76b] Erdős, P., _Problems and results in graph theory and combinatorial analysis_.\n  Proceedings of the Fifth British Combinatorial Conference (Univ. Aberdeen, Aberdeen, 1975)\n  (1976), 169-192.\n- [Er81] Erdős, P., _On the combinatorial problems which I would most like to see solved_.\n  Combinatorica (1981), 25-42.\n- [Er82e] Erdős, Paul, _Some of my favourite problems which recently have been solved_. (1982),\n  59--79.\n- [FrFu84b] Frankl, P. and Füredi, Z., _On hypergraphs without two edges intersecting in a given\n  number of vertices_. J. Combin. Theory Ser. A (1984), 230-236.\n- [Fr77b] Frankl, P., _An intersection problem for finite sets_. Acta Math. Acad. Sci. Hungar.\n  (1977), 371-373.\n- [FrRo87] Frankl, Peter and Rödl, Vojtech, _Forbidden intersections_. Trans. Amer. Math. Soc.\n  (1987), 259-286.\n-/\n\n@[expose] public section\n\nopen Finset\n\nnamespace Erdos703\n\n/-- `T n r` is maximal such that there exists a family $\\mathcal{F}$ of subsets of\n$\\{1,\\ldots,n\\}$ of size `T n r` such that $\\lvert A\\cap B\\rvert\\neq r$ for all\n$A,B\\in \\mathcal{F}$ (including $A=B$). -/\nnoncomputable def T (n r : ℕ) : ℕ :=\n  sSup {k | ∃ 𝓕 : Finset (Finset (Fin n)),\n    (∀ A ∈ 𝓕, ∀ B ∈ 𝓕, (A ∩ B).card ≠ r) ∧ 𝓕.card = k}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $r\\geq 1$ and define $T(n,r)$ to be maximal such that there exists a family $\\mathcal{F}$ of\nsubsets of $\\{1,\\ldots,n\\}$ of size $T(n,r)$ such that $\\lvert A\\cap B\\rvert\\neq r$ for all\n$A,B\\in \\mathcal{F}$.\n\nEstimate $T(n,r)$ for $r\\geq 2$. In particular, is it true that for every $\\epsilon>0$ there\nexists $\\delta>0$ such that for all $\\epsilon n<r<(1/2-\\epsilon) n$ we have\n$$T(n,r)<(2-\\delta)^n?$$\n\nThe answer is yes, proved by Frankl and Rödl [FrRo87].\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/Erdos703.lean#L331\"]\ntheorem erdos_703 :\n    ∀ ε : ℝ, 0 < ε → ∃ δ : ℝ, 0 < δ ∧\n      ∀ (n r : ℕ), ε * n < r → r < (1 / 2 - ε) * n → (T n r : ℝ) < (2 - δ) ^ n := by\n  sorry\n\n/-- It is trivial that $T(n,0)=2^{n-1}$. -/\n@[category textbook, AMS 5]\ntheorem erdos_703.variants.zero (n : ℕ) (hn : 1 ≤ n) : T n 0 = 2 ^ (n - 1) := by\n  have : Nonempty (Fin n) := ⟨⟨0, hn⟩⟩\n  have hcard : Fintype.card (Finset (Fin n)) = 2 * 2 ^ (n - 1) := by\n    rw [Fintype.card_finset, Fintype.card_fin, ← pow_succ']\n    congr 1\n    omega\n  have hiff : ∀ A B : Finset (Fin n), (A ∩ B).card ≠ 0 ↔ ¬ Disjoint A B := by\n    intro A B\n    rw [Ne, Finset.card_eq_zero, Finset.disjoint_iff_inter_eq_empty]\n  unfold T\n  apply le_antisymm\n  · refine csSup_le' ?_\n    rintro _ ⟨𝓕, h𝓕, rfl⟩\n    have h : (𝓕 : Set (Finset (Fin n))).Intersecting := by\n      intro A hA B hB\n      exact (hiff A B).1 (h𝓕 A (Finset.mem_coe.1 hA) B (Finset.mem_coe.1 hB))\n    have := h.card_le\n    omega\n  · have h0 : ((∅ : Finset (Finset (Fin n))) : Set (Finset (Fin n))).Intersecting := by\n      simp [Set.intersecting_empty]\n    obtain ⟨t, -, ht, hti⟩ := h0.exists_card_eq\n    refine le_csSup ⟨2 ^ n, ?_⟩ ⟨t, fun A hA B hB ↦ (hiff A B).2\n      (hti (Finset.mem_coe.2 hA) (Finset.mem_coe.2 hB)), by omega⟩\n    rintro _ ⟨𝓕, -, rfl⟩\n    exact (Finset.card_le_univ 𝓕).trans (by rw [Fintype.card_finset, Fintype.card_fin])\n\n/--\nFrankl and Füredi [FrFu84b] proved that, for fixed $r$ and $n$ sufficiently large in terms of\n$r$, the maximal $T(n,r)$ is achieved by taking\n$$\\mathcal{F} = \\left\\{ A\\subseteq \\{1,\\ldots,n\\} : \\lvert A\\rvert> \\frac{n+r}{2}\\textrm{ or }\n\\lvert A\\rvert < r\\right\\}$$\nwhen $n+r$ is odd, and\n$$\\mathcal{F} = \\left\\{ A\\subseteq \\{1,\\ldots,n\\} : \\lvert A\\backslash \\{1\\}\\rvert\\geq\n\\frac{n+r}{2}\\textrm{ or }\\lvert A\\rvert < r\\right\\}$$\nwhen $n+r$ is even.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_703.variants.frankl_furedi (r : ℕ) : ∀ᶠ n : ℕ in Filter.atTop,\n    T n r = if (n + r) % 2 = 1 then\n      ((univ : Finset (Finset (Fin n))).filter fun A ↦\n        (n + r : ℝ) / 2 < A.card ∨ A.card < r).card\n    else\n      ((univ : Finset (Finset (Fin n))).filter fun A ↦\n        (n + r : ℝ) / 2 ≤ (A.filter fun i : Fin n ↦ (i : ℕ) ≠ 0).card ∨\n          A.card < r).card := by\n  sorry\n\nend Erdos703\n",
  "statement_hash": "a05e55fab0bf39c810fc7c02f67f0dfcd080a73e9a2ce92ea2ad261ca7c99edb",
  "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."
}