{
  "id": "1517",
  "ident": "NS.01517",
  "slug": "erdos-272",
  "title": "Erdős Problem 272",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $N\\geq 1$. What is the largest $t$ such that there are\n$A_1,\\ldots,A_t\\subseteq \\{1,\\ldots,N\\}$ with $A_i\\cap A_j$ a non-empty\narithmetic progression for all $i\\neq j$?",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/272",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos272.erdos_272",
  "statement_lean": "theorem erdos_272 :\n    ∀ N ≥ 1, maxArithInterCard N = erdos_272.answer 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 272\n\n*Reference:* [erdosproblems.com/272](https://www.erdosproblems.com/272)\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics Finset\n\nnamespace Erdos272\n\n/-- Let $N \\in\\mathbb{N}$. We say that $\\{A_1, ..., A_t\\}\\subseteq\n\\mathcal{P}(\\{1, \\dots, N\\})$ is an arithmetic intersection set if\n$A_i \\cap A_j$ is a non-empty arithmetic progression for each $i \\neq j$.\n-/\ndef IsArithInterSet (N : ℕ) (A : Finset (Finset ℕ)) : Prop :=\n  A ⊆ (Finset.Icc 1 N).powerset ∧\n    (SetLike.coe A).Pairwise fun S T ↦ ∃ l > 0, (SetLike.coe (S ∩ T)).IsAPOfLength l\n\n/-- For each $N > 0$, let $t$ be the largest size of an arithmetic\nintersection set. -/\nnoncomputable def maxArithInterCard (N : ℕ) : ℕ :=\n  sSup {#A | (A : _) (_ : IsArithInterSet N A)}\n\ndef erdos_272.answer : ℕ → ℕ := sorry\n\n/--\nLet $N\\geq 1$. What is the largest $t$ such that there are\n$A_1,\\ldots,A_t\\subseteq \\{1,\\ldots,N\\}$ with $A_i\\cap A_j$ a non-empty\narithmetic progression for all $i\\neq j$?\n-/\n@[category research open, question value, AMS 5]\ntheorem erdos_272 :\n    ∀ N ≥ 1, maxArithInterCard N = erdos_272.answer N := by\n  sorry\n\n/--\nSimonovits and Sós have shown that $t\\ll N^2$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_272.variants.isBigO_sq :\n    (fun N ↦ (maxArithInterCard N : ℝ)) =O[atTop] fun N ↦ (N : ℝ) ^ 2 := by\n  sorry\n\n/-- Szabo showed that the maximal $t$ is equal to\n$$\n  \\frac{N^2}{2} + O(N^{5/3}\\log^3N).\n$$\n-/\n@[category research solved, AMS 5]\ntheorem erdos_272.variants.szabo :\n    (fun N ↦ (maxArithInterCard N - N ^ 2 / 2 : ℝ)) =O[atTop]\n      fun N : ℕ ↦ N ^ ((5 : ℝ) /  3) * (Real.log N) ^ 3 := by\n  sorry\n\n/-- Szabo asks whether the maximal $t$ is given by\n$$\n  \\frac{N^2}{2} + O(N)\n$$\n-/\n@[category research open, AMS 5]\ntheorem erdos_272.variants.szabo_strong :\n    (fun N ↦ (maxArithInterCard N - N ^ 2 / 2 : ℝ)) =O[atTop] fun N : ℕ ↦ (N : ℝ) := by\n  sorry\n\nend Erdos272\n",
  "statement_hash": "0cb0ce577a44238bf48789de396bba72ce5ffedef6a3572a4a233561a3596418",
  "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."
}