/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ module public import FormalConjecturesUtil /-! # Erdős Problem 272 *Reference:* [erdosproblems.com/272](https://www.erdosproblems.com/272) -/ @[expose] public section open Filter Asymptotics Finset namespace Erdos272 /-- Let $N \in\mathbb{N}$. We say that $\{A_1, ..., A_t\}\subseteq \mathcal{P}(\{1, \dots, N\})$ is an arithmetic intersection set if $A_i \cap A_j$ is a non-empty arithmetic progression for each $i \neq j$. -/ def IsArithInterSet (N : ℕ) (A : Finset (Finset ℕ)) : Prop := A ⊆ (Finset.Icc 1 N).powerset ∧ (SetLike.coe A).Pairwise fun S T ↦ ∃ l > 0, (SetLike.coe (S ∩ T)).IsAPOfLength l /-- For each $N > 0$, let $t$ be the largest size of an arithmetic intersection set. -/ noncomputable def maxArithInterCard (N : ℕ) : ℕ := sSup {#A | (A : _) (_ : IsArithInterSet N A)} def erdos_272.answer : ℕ → ℕ := sorry /-- Let $N\geq 1$. What is the largest $t$ such that there are $A_1,\ldots,A_t\subseteq \{1,\ldots,N\}$ with $A_i\cap A_j$ a non-empty arithmetic progression for all $i\neq j$? -/ @[category research open, question value, AMS 5] theorem erdos_272 : ∀ N ≥ 1, maxArithInterCard N = erdos_272.answer N := by sorry /-- Simonovits and Sós have shown that $t\ll N^2$. -/ @[category research solved, AMS 5] theorem erdos_272.variants.isBigO_sq : (fun N ↦ (maxArithInterCard N : ℝ)) =O[atTop] fun N ↦ (N : ℝ) ^ 2 := by sorry /-- Szabo showed that the maximal $t$ is equal to $$ \frac{N^2}{2} + O(N^{5/3}\log^3N). $$ -/ @[category research solved, AMS 5] theorem erdos_272.variants.szabo : (fun N ↦ (maxArithInterCard N - N ^ 2 / 2 : ℝ)) =O[atTop] fun N : ℕ ↦ N ^ ((5 : ℝ) / 3) * (Real.log N) ^ 3 := by sorry /-- Szabo asks whether the maximal $t$ is given by $$ \frac{N^2}{2} + O(N) $$ -/ @[category research open, AMS 5] theorem erdos_272.variants.szabo_strong : (fun N ↦ (maxArithInterCard N - N ^ 2 / 2 : ℝ)) =O[atTop] fun N : ℕ ↦ (N : ℝ) := by sorry end Erdos272