chars
int64
40
24k
content_type
stringclasses
9 values
id
stringlengths
13
64
source
stringclasses
5 values
subset
stringclasses
31 values
text
stringlengths
40
24k
212
leanexplore_declaration
leanexplore:382275
leanexplore_sqlite
leanexplore_declarations
/-- The sequence $P$ begins $23, 29, 59, 61, 67, 71, ...$ -/ @[category test, AMS 11] theorem erdos_1074.variants.PillaiPrimes_init : nth PillaiPrimes '' (Set.Icc 0 5) = {23, 29, 59, 61, 67, 71} := by sorry
212
leanexplore_declaration
leanexplore:382276
leanexplore_sqlite
leanexplore_declarations
/-- The sequence $S$ begins $8, 9, 13, 14, 15, 16, 17, ...$ -/ @[category test, AMS 11] theorem erdos_1074.variants.EHSNumbers_init : nth EHSNumbers '' (Set.Icc 0 6) = {8, 9, 13, 14, 15, 16, 17} := by sorry
186
leanexplore_declaration
leanexplore:382277
leanexplore_sqlite
leanexplore_declarations
/-- Erdős, Hardy, and Subbarao proved that $P$ is infinite. -/ @[category research solved, AMS 11] theorem erdos_1074.variants.PillaiPrimes_infinite : PillaiPrimes.Infinite := by sorry
417
leanexplore_declaration
leanexplore:382278
leanexplore_sqlite
leanexplore_declarations
/-- Erdős, Hardy, and Subbarao proved that $S$ is infinite. Formal proof linked here provided by AlphaProof. -/ @[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/mzhorvath1/formal-conjectures/blob/3dec597bd1a73778760b761712a1fc5fb24bc5d7/FormalConjectures/ErdosProblems/10...
316
leanexplore_declaration
leanexplore:382279
leanexplore_sqlite
leanexplore_declarations
/-- Pillai [Pi30] raised the question of whether there exist any primes in $P$. This was answered by Chowla, who noted that, for example, $14! + 1 \equiv 18! + 1 \equiv 0 \pmod{23}$. -/ @[category test, AMS 11] theorem erdos_1074.variants.mem_pillaiPrimes : 23 ∈ PillaiPrimes := by norm_num exact ⟨14, by decide⟩
338
leanexplore_declaration
leanexplore:382280
leanexplore_sqlite
leanexplore_declarations
/-- Similarly, if $P$ is the set of all primes $p$ such that there exists an $m$ with $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$, then what is $$ \lim\frac{|P\cap[1, x]|}{\pi(x)}? $$ -/ @[category research open, AMS 11] theorem erdos_1074.parts.iv : PillaiPrimes.HasDensity answer(sorry) {p | p.Pr...
347
leanexplore_declaration
leanexplore:382281
leanexplore_sqlite
leanexplore_declarations
/-- Similarly, if $P$ is the set of all primes $p$ such that there exists an $m$ with $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$, then does $$ \lim\frac{|P\cap[1, x]|}{\pi(x)} $$ exist? -/ @[category research open, AMS 11] theorem erdos_1074.parts.iii : answer(sorry) ↔ ∃ c, PillaiPrimes.HasDensity c ...
293
leanexplore_declaration
leanexplore:382282
leanexplore_sqlite
leanexplore_declarations
/-- Let $S$ be the set of all $m\geq 1$ such that there exists a prime $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$. What is $$ \lim\frac{|S\cap[1, x]|}{x}? $$ -/ @[category research open, AMS 11] theorem erdos_1074.parts.ii : EHSNumbers.HasDensity answer(sorry) := by sorry
304
leanexplore_declaration
leanexplore:382283
leanexplore_sqlite
leanexplore_declarations
/-- Let $S$ be the set of all $m\geq 1$ such that there exists a prime $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$. Does $$ \lim\frac{|S\cap[1, x]|}{x} $$ exist? -/ @[category research open, AMS 11] theorem erdos_1074.parts.i : answer(sorry) ↔ ∃ c, EHSNumbers.HasDensity c := by sorry
116
leanexplore_declaration
leanexplore:382284
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem twentyThree_mem_pillaiPrimes : 23 ∈ PillaiPrimes := by norm_num use 14 decide
202
leanexplore_declaration
leanexplore:382285
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem two_not_mem_pillaiPrimes : ¬ 2 ∈ PillaiPrimes := by norm_num intro m hm h exact (Nat.dvd_factorial (by decide) (hm.lt_of_ne (by bound))).modEq_zero_nat.add_right 1
230
leanexplore_declaration
leanexplore:382286
leanexplore_sqlite
leanexplore_declarations
/-- The Pillai primes are those primes $p$ such that there exists an $m \ge 1$ with $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$-/ abbrev PillaiPrimes : Set ℕ := {p | p.Prime ∧ ∃ m ≥ 1, ¬p ≡ 1 [MOD m] ∧ p ∣ m ! + 1}
256
leanexplore_declaration
leanexplore:382287
leanexplore_sqlite
leanexplore_declarations
/-- The EHS numbers (after Erdős, Hardy, and Subbarao) are those $m\geq 1$ such that there exists a prime $p\not\equiv 1\pmod{m}$ such that $m! + 1 \equiv 0\pmod{p}$. -/ abbrev EHSNumbers : Set ℕ := {m | 1 ≤ m ∧ ∃ p, p.Prime ∧ ¬p ≡ 1 [MOD m] ∧ p ∣ m ! + 1}
754
leanexplore_declaration
leanexplore:382288
leanexplore_sqlite
leanexplore_declarations
/-- We call a graph $D$-balanced (or $D$-almost-regular) if the maximum degree is at most $D$ times the minimum degree. Let $ε, α > 0$ and $D$ and $n$ be sufficiently large. If $G$ is a graph on $n$ vertices with at least $n^{1+α}$ edges, then must $G$ contain a $D$-balanced subgraph on $m > n^{1-α}$ vertices with at ...
506
leanexplore_declaration
leanexplore:382289
leanexplore_sqlite
leanexplore_declarations
/-- The current best bound is due to Holmsen, Mojarrad, Pach, and Tardos [HMPT20], who prove $$ f(n) ≤ 2^{n+O(\sqrt{n\log n})}. $$ [HMPT20] Holmsen, Andreas F. and Mojarrad, Hossein Nassajian and Pach, János and Tardos, Gábor, _Two extensions of the Erdős-Szekeres problem_. J. Eur. Math. Soc. (JEMS) (2020), 3981-3...
322
leanexplore_declaration
leanexplore:382290
leanexplore_sqlite
leanexplore_declarations
/-- Suk [Su17] proved $$ f(n) ≤ 2^{(1+o(1))n}. $$ [Su17] Suk, Andrew, _On the Erdős-Szekeres convex polygon problem_. J. Amer. Math. Soc. (2017), 1047-1053. -/ @[category research solved, AMS 52] theorem su_bound : ∃ r : ℕ → ℝ, r =o[atTop] (fun n => (n : ℝ)) ∧ ∀ n ≥ 3, (f n : ℝ) ≤ 2^(n + r n) := by sor...
545
leanexplore_declaration
leanexplore:382291
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Szekeres proved the bounds $$ 2^{n-2} + 1 ≤ f(n) ≤ \binom{2n-4}{n-2} + 1 $$ ([ErSz60] and [ErSz35] respectively). [ErSz60] Erdős, P. and Szekeres, G., _On some extremum problems in elementary geometry_. Ann. Univ. Sci. Budapest. Eötvös Sect. Math. (1960/61), 53-62. [ErSz35] Erdős, P. and Szekeres, G...
67
leanexplore_declaration
leanexplore:382292
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 52] theorem f_three_eq : f 3 = 3 := by sorry
250
leanexplore_declaration
leanexplore:382293
leanexplore_sqlite
leanexplore_declarations
/-- Depending on details of definitions, the statement is false or trivial for $n < 3$. -/ @[category test, AMS 52] theorem f_zero_eq : f 0 = 0 := by have : ∀ P, HasConvexNGon 0 P := by intro; use ∅; simp [ConvexIndep] simp [f, cardSet, this]
221
leanexplore_declaration
leanexplore:382294
leanexplore_sqlite
leanexplore_declarations
/-- For every $n ≥ 3$, there exists $N$ such that any $N$ points, no three on a line, contain a convex $n$-gon. -/ @[category research solved, AMS 52] theorem nonempty_cardSet : ∀ n ≥ 3, (cardSet n).Nonempty := by sorry
296
leanexplore_declaration
leanexplore:382295
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be minimal such that any $f(n)$ points in $ℝ^2$, no three on a line, contain $n$ points which form the vertices of a convex $n$-gon. Prove that $f(n) = 2^{n-2} + 1$. -/ @[category research open, AMS 52] theorem erdos_107 : answer(sorry) ↔ ∀ n ≥ 3, f n = 2^(n - 2) + 1 := by sorry
106
leanexplore_declaration
leanexplore:382296
leanexplore_sqlite
leanexplore_declarations
/-- The function $f(n)$ specified in `erdos_107`. -/ noncomputable def f (n : ℕ) : ℕ := sInf (cardSet n)
225
leanexplore_declaration
leanexplore:382297
leanexplore_sqlite
leanexplore_declarations
/-- The set of $N$ such that any $N$ points in the plane, no three on a line, contain a convex $n$-gon. -/ def cardSet (n : ℕ) := { N | ∀ (pts : Finset ℝ²), pts.card = N → NonTrilinear (pts : Set ℝ²) → HasConvexNGon n pts }
1,328
leanexplore_declaration
leanexplore:382298
leanexplore_sqlite
leanexplore_declarations
/-- Let $G$ be a bipartite graph on $n$ vertices such that one part has $\lfloor n^{2/3}\rfloor$ vertices. Is there a constant $c>0$ such that if $G$ has at least $cn$ edges then $G$ must contain a $C_6$? The answer is no, as shown by De Caen and Székely [DeSz92], who in fact show a stronger result. Let $f(n,m)$ be th...
241
leanexplore_declaration
leanexplore:382299
leanexplore_sqlite
leanexplore_declarations
/-- `IsBipartition G X Y` means that `X` and `Y` form a bipartition of the vertices of `G`. -/ def IsBipartition {V : Type*} (G : SimpleGraph V) (X Y : Set V) : Prop := Disjoint X Y ∧ X ∪ Y = Set.univ ∧ ∀ ⦃u v⦄, G.Adj u v → (u ∈ X ↔ v ∈ Y)
1,070
leanexplore_declaration
leanexplore:382300
leanexplore_sqlite
leanexplore_declarations
/-- Let $A\subset \mathbb{R}^2$ be a set of $n$ points with no three on a line. Must there exist a single point from which there are at least $\lfloor n/2\rfloor$ distinct distances? This question has been answered negatively by Xichuan in the [comments](https://www.erdosproblems.com/forum/thread/1082), who gave a set...
336
leanexplore_declaration
leanexplore:382301
leanexplore_sqlite
leanexplore_declarations
/-- Let $A\subset \mathbb{R}^2$ be a set of $n$ points with no three on a line. Does $A$ determine at least $\lfloor n/2\rfloor$ distinct distances? -/ @[category research open, AMS 51] theorem erdos_1082.parts.i : answer(sorry) ↔ ∀ (A : Finset ℝ²) (hA_n3c : NonTrilinear (A : Set ℝ²)), A.card / 2 ≤ distinctDistance...
347
leanexplore_declaration
leanexplore:382302
leanexplore_sqlite
leanexplore_declarations
/-- Erdős claims the existence of two constants $c_1, c_2 > 0$ such that $6n - c_1 n^{2/3} ≤ f_3(n) \le 6n - c_2 n^{2/3}$. -/ @[category research solved, AMS 52] theorem erdos_1084.variants.upper_lower_d3 : ∃ c₁ : ℝ, ∃ c₂ > (0 : ℝ), ∀ᶠ n in atTop, 6 * n - c₁ * n ^ (2 / 3 : ℝ) ≤ f 3 n ∧ f 3 n ≤ 6 * n - c₂ * n ...
345
leanexplore_declaration
leanexplore:382303
leanexplore_sqlite
leanexplore_declarations
/-- Erdős conjectured that the triangular lattice is best possible in 2D, in particular that $f_2(3n^2 + 3n + 1) < 9n^2 + 3n$. Note: in [Er75f] is read $9n^2 + 6n$, but this seems to be a typo. -/ @[category research open, AMS 52] theorem erdos_1084.variants.triangular_optimal_d2 : f 2 (3 * n ^ 2 + 3 * n + 1) = 9 * n ...
232
leanexplore_declaration
leanexplore:382304
leanexplore_sqlite
leanexplore_declarations
/-- Erdős showed that there is some constant $c > 0$ such that $f_2(n) < 3n - c n^{1/2}$. -/ @[category research solved, AMS 52] theorem erdos_1084.variants.upper_d2 : ∃ c > (0 : ℝ), ∀ n > 0, f 2 n < 3 * n - c * sqrt n := by sorry
167
leanexplore_declaration
leanexplore:382305
leanexplore_sqlite
leanexplore_declarations
/-- It is easy to check that $f_2(n) < 3n$. -/ @[category research solved, AMS 52] theorem erdos_1084.variants.easy_upper_d2 (hn : n ≠ 0) : f 2 n < 3 * n := by sorry
152
leanexplore_declaration
leanexplore:382306
leanexplore_sqlite
leanexplore_declarations
/-- It is easy to check that $f_1(n) = n - 1$. -/ @[category research solved, AMS 52] theorem erdos_1084.variants.upper_d1 : f 1 n = n - 1 := by sorry
254
leanexplore_declaration
leanexplore:382307
leanexplore_sqlite
leanexplore_declarations
/-- The maximal number of pairs of points which are distance 1 apart that a set of `n` 1-separated points in `ℝ^d` make. -/ noncomputable def f (d n : ℕ) : ℕ := ⨆ (s : Finset (ℝ^ d)) (_ : s.card = n) (_ : IsSeparated' 1 (s : Set (ℝ^ d))), unitDistNum s
547
leanexplore_declaration
leanexplore:382308
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Pach showed that, for $d \ge 5$ odd, there exist constants $c_1(d), c_2(d) > 0$ such that $\frac{p - 1}{2p} n^2 - c_1 n^{4/3} ≤ f_d(n) \le \frac{p - 1}{2p} n^2 + c_2 n^{4/3}$ where $p = \lfloor\frac d2\rfloor$. -/ @[category research solved, AMS 52] theorem erdos_1085.variants.upper_lower_d5_odd (hd : 5 ≤...
344
leanexplore_declaration
leanexplore:382309
leanexplore_sqlite
leanexplore_declarations
/-- Erdős showed that, for $d \ge 4$, $f_d(n) \le \left(\frac{p - 1}{2p} + o(1)\right) n^2$ where $p = \lfloor\frac d2\rfloor$. -/ @[category research solved, AMS 52] theorem erdos_1085.variants.upper_d4_erdos (hd : 4 ≤ d) : ∃ g : ℕ → ℝ, Tendsto g atTop (𝓝 0) ∧ ∀ n, f d n ≤ (↑(d / 2 - 1) / (2 * ↑(d / 2)) + g...
295
leanexplore_declaration
leanexplore:382310
leanexplore_sqlite
leanexplore_declarations
/-- Lenz showed that, for $d \ge 4$, $f_d(n) \ge \frac{p - 1}{2p} n^2 - O(1)$ where $p = \lfloor\frac d2\rfloor$. -/ @[category research solved, AMS 52] theorem erdos_1085.variants.lower_d4_lenz (hd : 4 ≤ d) : ∃ C : ℝ, ∀ n : ℕ, ↑(d / 2 - 1) / (2 * ↑(d / 2)) * n ^ 2 - C ≤ f d n := by sorry
260
leanexplore_declaration
leanexplore:382311
leanexplore_sqlite
leanexplore_declarations
/-- Is the $n^{4/3}\log\log n$ lower bound in 3D also an upper bound?. -/ @[category research open, AMS 52] theorem erdos_1085.variants.upper_d3 : answer(sorry) ↔ (fun n ↦ (f 3 n : ℝ)) =O[atTop] (fun n : ℕ ↦ (n : ℝ) ^ (4/3 : ℝ) * log (log n)) := by sorry
225
leanexplore_declaration
leanexplore:382312
leanexplore_sqlite
leanexplore_declarations
/-- Erdős showed $f_3(n) = Ω(n^{4/3}\log\log n)$. -/ @[category research solved, AMS 52] theorem erdos_1085.variants.lower_d3 : (fun n : ℕ ↦ (n : ℝ) ^ (4/3 : ℝ) * log (log n)) =O[atTop] (fun n ↦ (f 3 n : ℝ)) := by sorry
219
leanexplore_declaration
leanexplore:382313
leanexplore_sqlite
leanexplore_declarations
/-- Spencer, Szemerédi, and Trotter showed $f_2(n) = O(n^{4/3})$. -/ @[category research solved, AMS 52] theorem erdos_1085.variants.upper_d2 : (fun n ↦ (f 2 n : ℝ)) =O[atTop] (fun n ↦ (n : ℝ) ^ (4/3 : ℝ)) := by sorry
234
leanexplore_declaration
leanexplore:382314
leanexplore_sqlite
leanexplore_declarations
/-- Erdős showed $f_2(n) > n^{1+c/\log\log n}$ for some $c > 0$. -/ @[category research solved, AMS 52] theorem erdos_1085.variants.lower_d2 : ∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop, (n : ℝ) ^ (1 + c / log (log n)) < f 2 n := by sorry
202
leanexplore_declaration
leanexplore:382315
leanexplore_sqlite
leanexplore_declarations
/-- The maximal number of pairs of points which are distance 1 apart that a set of `n` points in `ℝ^d` make. -/ noncomputable def f (d n : ℕ) : ℕ := ⨆ (s : Finset (ℝ^ d)) (_ : s.card = n), unitDistNum s
499
leanexplore_declaration
leanexplore:382316
leanexplore_sqlite
leanexplore_declarations
/-- For every r ≥ 4 and k ≥ 2 is there some finite f(k,r) such that every graph of chromatic number ≥ f(k,r) contains a subgraph of girth ≥ r and chromatic number ≥ k? -/ @[category research open, AMS 5] theorem erdos_108 : answer(sorry) ↔ ∀ r ≥ 4, ∀ k ≥ (2 : ℕ), ∃ (f : ℕ), ∀ (V : Type u) (G : SimpleGraph V) (_...
172
leanexplore_declaration
leanexplore:382317
leanexplore_sqlite
leanexplore_declarations
@[category research open, AMS 5] theorem f_asymptotic_general : answer(sorry) ↔ ∀ r : ℕ, (fun n : ℕ => ((r : ℝ) * n)) =o[atTop] (fun n : ℕ => (f r n : ℝ)) := by sorry
155
leanexplore_declaration
leanexplore:382318
leanexplore_sqlite
leanexplore_declarations
@[category research open, AMS 5] theorem f_asymptotic_2 : answer(sorry) ↔ (fun (n : ℕ) => (n : ℝ)) =o[atTop] (fun (n : ℕ) => (f 2 n : ℝ)) := by sorry
471
leanexplore_declaration
leanexplore:382319
leanexplore_sqlite
leanexplore_declarations
/-- $f_r(n)$ is maximal such that, if a graph $G$ on $n$ vertices has the property that every subgraph $H$ on $m$ vertices has chromatic number $\leq r+1$ once we remove $f_r(m)$ edges from it. -/ noncomputable def f (r n : ℕ) : ℕ := sSup {k : ℕ | ∀ G : SimpleGraph (Fin n), (∀ H : Subgraph G, ∃ E : ...
287
leanexplore_declaration
leanexplore:382320
leanexplore_sqlite
leanexplore_declarations
/-- Are there only finitely many binomial coefficients with deficiency > 1? -/ @[category research open, AMS 5] theorem erdos_1093.parts.ii : {x : ℕ × ℕ | let k := x.1; let n := x.2; 2 * k ≤ n ∧ deficiency n k > 1 ∧ ∀ p, p.Prime → (p ∣ choose n k) → k < p}.Finite := by sorry
299
leanexplore_declaration
leanexplore:382321
leanexplore_sqlite
leanexplore_declarations
/-- Are there infinitely many binomial coefficients with deficiency 1? -/ @[category research open, AMS 5] theorem erdos_1093.parts.i : answer(sorry) ↔ {x : ℕ × ℕ | let k := x.1; let n := x.2; 2 * k ≤ n ∧ deficiency n k = 1 ∧ ∀ p, p.Prime → (p ∣ choose n k) → k < p}.Infinite := by sorry
185
leanexplore_declaration
leanexplore:382322
leanexplore_sqlite
leanexplore_declarations
/-- If defined, the deficiency is the count of $0 \le i < k$ such that $n - i$ is $k$-smooth. -/ noncomputable def deficiency (n k : ℕ) : ℕ := #{i ∈ range k | n - i ∈ smoothNumbers k}
277
leanexplore_declaration
leanexplore:382323
leanexplore_sqlite
leanexplore_declarations
/-- For all $n\ge 2k$ the least prime factor of $\binom{n}{k}$ is $\le\max(n/k,k)$, with only finitely many exceptions. -/ @[category research open, AMS 11] theorem erdos_1094 : {(n, k) : ℕ × ℕ | 0 < k ∧ 2 * k ≤ n ∧ (n.choose k).minFac > max (n / k) k}.Finite := by sorry
255
leanexplore_declaration
leanexplore:382324
leanexplore_sqlite
leanexplore_declarations
/-- Sorenson, Sorenson, and Webster [SSWE20] give heuristic evidence that $\log g(k) \asymp \frac{k}{\log k}$. -/ @[category research open, AMS 11] theorem erdos_1095.variants.log_equivalent : (fun k ↦ log (g k)) ~[atTop] (fun k ↦ k / log k) := by sorry
307
leanexplore_declaration
leanexplore:382325
leanexplore_sqlite
leanexplore_declarations
/-- Erdős, Lacampagne, and Selfridge [ELS93] write 'it is clear to every right-thinking person' that $g(k)\geq\exp(c\frac{k}{\log k})$ for some constant $c>0$. -/ @[category research open, AMS 11] theorem erdos_1095.variants.lower_conjecture : ∃ c > 0, ∀ᶠ k in atTop, g k ≥ exp (c * k / log k) := by sorry
261
leanexplore_declaration
leanexplore:382326
leanexplore_sqlite
leanexplore_declarations
/-- Ecklund, Erdős, and Selfridge [EES74] conjectured $g(k)\leq \exp((1+o(1))k)$. -/ @[category research open, AMS 11] theorem erdos_1095.variants.upper_conjecture : ∃ f : ℕ → ℝ, Tendsto f atTop (𝓝 0) ∧ ∀ᶠ k in atTop, g k ≤ exp (k * (1 + f k)) := by sorry
267
leanexplore_declaration
leanexplore:382327
leanexplore_sqlite
leanexplore_declarations
/-- The current record is $g(k) \gg \exp(c(\log k)^2)$ for some $c>0$, due to Konyagin [Ko99b]. --/ @[category research solved, AMS 11] theorem erdos_1095.variants.lower_solved : ∃ c > 0, (fun k : ℕ ↦ exp (c * log k ^ 2)) =O[atTop] fun k ↦ (g k : ℝ) := by sorry
179
leanexplore_declaration
leanexplore:382328
leanexplore_sqlite
leanexplore_declarations
/-- Let $g(k)>k+1$ be the smallest $n$ such that all prime factors of $\binom{n}{k}$ are $>k$. -/ noncomputable def g (k : ℕ) : ℕ := sInf {m | k + 1 < m ∧ k < (m.choose k).minFac}
408
leanexplore_declaration
leanexplore:382329
leanexplore_sqlite
leanexplore_declarations
/-- A trivial lower bound: for sufficiently large `n` there exist sets $A$ with $|A| = n$ that contain at least $\Omega(n)$ distinct common differences of three-term arithmetic progressions. -/ @[category undergraduate, AMS 11] theorem erdos_1097.variants.lower_bound : ∃ c > (0 : ℝ), ∀ᶠ n in Filter.atTop, ∃ (A : Finset...
235
leanexplore_declaration
leanexplore:382330
leanexplore_sqlite
leanexplore_declarations
/-- A weaker bound has been proven: there are always at most $n^2$ such values of $d$. -/ @[category undergraduate, AMS 11] theorem erdos_1097.variants.weaker : ∀ A, (CommonDifferencesThreeTermAP A).ncard ≤ A.card ^ 2 := by sorry
369
leanexplore_declaration
leanexplore:382331
leanexplore_sqlite
leanexplore_declarations
/-- The main conjecture: for any finite set of integers $A$ with $|A| = n$, the number of distinct common differences in three-term arithmetic progressions is $O(n^{3/2})$. -/ @[category research open, AMS 11] theorem erdos_1097 : answer(sorry) ↔ ∃ C > (0 : ℝ), ∀ (A : Finset ℤ), (CommonDifferencesThreeTermAP A).nca...
382
leanexplore_declaration
leanexplore:382332
leanexplore_sqlite
leanexplore_declarations
/-- Given a finite set of integers `A` (modelled as a `Finset ℤ`), the set `CommonDifferencesThreeTermAP A` consists of all integers `d` such that there is a non-trivial three-term arithmetic progression `a, b, c ∈ A` with `b - a = d` and `c - b = d`. -/ def CommonDifferencesThreeTermAP (A : Finset ℤ) : Set ℤ := {d :...
363
leanexplore_declaration
leanexplore:382333
leanexplore_sqlite
leanexplore_declarations
/-- Any $A\subseteq \mathbb{N}$ of positive upper density contains a sumset $B+C$ where both $B$ and $C$ are infinite. The Erdős sumset conjecture. Proved by Moreira, Richter, and Robertson [MRR19]. -/ @[category research solved, AMS 5] theorem erdos_109 (A : Set ℕ) (h : A.upperDensity > 0) : ∃ B C : Set ℕ, B.Infi...
515
leanexplore_declaration
leanexplore:382334
leanexplore_sqlite
leanexplore_declarations
/-- Bogdan Grechuk has observed that $1117175146$ is not the sum of a prime and at most $3$ powers of $2$, and pointed out that parity considerations, coupled with the fact that there are many integers not the sum of a prime and $2$ powers of $2$ suggest that there exist infinitely many even integers which are not the ...
240
leanexplore_declaration
leanexplore:382335
leanexplore_sqlite
leanexplore_declarations
/-- There are infinitely many even integers not the sum of a prime and $2$ powers of $2$ -/ @[category research solved, AMS 5 11] theorem erdos_10.variants.two_pows : Set.Infinite <| {n : ℕ | Even n} \ sumPrimeAndTwoPows 2 := by sorry
243
leanexplore_declaration
leanexplore:382336
leanexplore_sqlite
leanexplore_declarations
/-- Bogdan Grechuk has observed that `1117175146` is not the sum of a prime and at most $3$ powers of $2$. -/ @[category research solved, AMS 5 11] theorem erdos_10.variants.grechuk_example : 1117175146 ∉ sumPrimeAndTwoPows 3 := by sorry
512
leanexplore_declaration
leanexplore:382337
leanexplore_sqlite
leanexplore_declarations
/-- Granville and Soundararajan [GrSo98] have conjectured that at most $3$ powers of $2$ suffice for all odd integers, and hence at most $4$ powers of $2$ suffice for all even integers. Ref: Granville, A. and Soundararajan, K., _A Binary Additive Problem of Erdős and the Order of $2$ mod $p^2$_ -/ @[category research ...
421
leanexplore_declaration
leanexplore:382338
leanexplore_sqlite
leanexplore_declarations
/-- Gallagher [Ga75] has shown that for any $ϵ > 0$ there exists $k(ϵ)$ such that the set of integers which are the sum of a prime and at most $k(ϵ)$ many powers of $2$ has lower density at least $1 - ϵ$. Ref: Gallagher, P. X., _Primes and powers of 2_. -/ @[category research solved, AMS 5 11] theorem erdos_10.variant...
232
leanexplore_declaration
leanexplore:382339
leanexplore_sqlite
leanexplore_declarations
/-- Is there some $k$ such that every integer is the sum of a prime and at most $k$ powers of $2$? -/ @[category research open, AMS 5 11] theorem erdos_10 : answer(sorry) ↔ ∃ k, sumPrimeAndTwoPows k = Set.univ \ {0, 1} := by sorry
249
leanexplore_declaration
leanexplore:382340
leanexplore_sqlite
leanexplore_declarations
/-- The set of natural numbers that can be written as a sum of a prime and at most $k$ powers of $2$. -/ abbrev sumPrimeAndTwoPows (k : ℕ) : Set ℕ := { p + (pows.map (2 ^ ·)).sum | (p : ℕ) (pows : Multiset ℕ) (_ : p.Prime) (_ : pows.card ≤ k)}
220
leanexplore_declaration
leanexplore:382341
leanexplore_sqlite
leanexplore_declarations
/-- 2. There is a good sequence with sub-exponential growth. -/ @[category research open, AMS 11] theorem erdos_1101.parts.ii : ∃ u, IsGood u ∧ (fun n => Real.log (u n : ℝ)) =o[atTop] (fun n => (n : ℝ)) := by sorry
221
leanexplore_declaration
leanexplore:382342
leanexplore_sqlite
leanexplore_declarations
/-- 1. There is NO good sequence with polynomial growth. -/ @[category research open, AMS 11] theorem erdos_1101.parts.i : ¬ ∃ u, IsGood u ∧ ∃ k : ℕ, (fun n => (u n : ℝ)) =O[atTop] (fun n => (n : ℝ) ^ k) := by sorry
463
leanexplore_declaration
leanexplore:382343
leanexplore_sqlite
leanexplore_declarations
/-- A sequence is "good" if 1. it is strictly monotone 2. it is pairwise coprime 3. the sum of reciprocals converges 4. the gap between consecutive elements in A(u) is bounded relative to t_x. -/ def IsGood (u : ℕ → ℕ) : Prop := StrictMono u ∧ (∀ i j, i ≠ j → Coprime (u i) (u j)) ∧ Summable (fun n => 1 / (u n : ℝ...
153
leanexplore_declaration
leanexplore:382344
leanexplore_sqlite
leanexplore_declarations
/-- t_x such that u_0 ... u_{t_x-1} ≤ x < u_0 ... u_{t_x}. -/ noncomputable def t (u : ℕ → ℕ) (x : ℕ) : ℕ := sSup { k | ∏ i ∈ Finset.range k, u i ≤ x }
185
leanexplore_declaration
leanexplore:382345
leanexplore_sqlite
leanexplore_declarations
/-- The sequence of integers A_u which are not divisible by any u_i arranged in a monotonic sequence. -/ noncomputable def A (u : ℕ → ℕ) (n : ℕ) : ℕ := Nat.nth (fun a => a ∈ ASet u) n
109
leanexplore_declaration
leanexplore:382346
leanexplore_sqlite
leanexplore_declarations
/-- The set of integers not divisible by any u_i. -/ def ASet (u : ℕ → ℕ) : Set ℕ := { a | ∀ i, ¬ u i ∣ a }
541
leanexplore_declaration
leanexplore:382347
leanexplore_sqlite
leanexplore_declarations
/-- There exists an infinite sequence $A = {a₁ < a₂ < …} ⊂ \mathsf{SF}$ where $\mathsf{SF} := \mathbb{N} \setminus \bigcup_{p} p^{2}\mathbb{N}$, i.e. the set of squarefree numbers. The set `A` has property `Q` and natural density `6 / π^2`. Equivalently, `(j / a_j) → 6/π^2` as `j → ∞`. -/ @[category research solved, AM...
296
leanexplore_declaration
leanexplore:382348
leanexplore_sqlite
leanexplore_declarations
/-- Every sequence with property Q has upper density at most `6 / π^2`. -/ @[category research solved, AMS 11] theorem erdos_1102.upper_density_Q (A : ℕ → ℕ) (h_inc : StrictMono A) (hQ : HasPropertyQ (range A)) : limsup (fun j : ℕ ↦ (j / A j : ℝ)) atTop ≤ 6 / Real.pi^2 := by sorry
455
leanexplore_declaration
leanexplore:382349
leanexplore_sqlite
leanexplore_declarations
/-- Conversely, for any function `f : ℕ → ℕ` that goes to infinity, there exists a strictly increasing sequence `A = {a₁ < a₂ < …}` with property P such that `(a_j / j) ≤ f(j)` for all `j`. -/ @[category research solved, AMS 11] theorem erdos_1102.exists_sequence_with_P (f : ℕ → ℕ) (h_inf : Tendsto f atTop atTop) ...
336
leanexplore_declaration
leanexplore:382350
leanexplore_sqlite
leanexplore_declarations
/-- If `A = {a₁ < a₂ < …}` has property P, then `A` has natural density `0`. Equivalently, `(a_j / j) → ∞` as `j → ∞`. -/ @[category research solved, AMS 11] theorem erdos_1102.density_zero_of_P (A : ℕ → ℕ) (h_inc : StrictMono A) (hP : HasPropertyP (range A)) : Tendsto (fun j => (A j / j : ℝ)) atTop atT...
242
leanexplore_declaration
leanexplore:382351
leanexplore_sqlite
leanexplore_declarations
/-- Property Q : A set $A ⊆ ℕ $ has property Q, if the set $\{n ∈ ℕ | ∀ a ∈ A, n > a\text{ implies }n + a\text{ is squarefree}\}$ is infinite. -/ def HasPropertyQ (A : Set ℕ) : Prop := {n : ℕ | ∀ a ∈ A, a < n → Squarefree (n + a)}.Infinite
216
leanexplore_declaration
leanexplore:382352
leanexplore_sqlite
leanexplore_declarations
/-- Property P : A set $A ⊆ ℕ $ has property P, if for all $n ≥ 1$ the set $ \{a ∈ A | n + a\text{ is squarefree}\}$ is finite. -/ def HasPropertyP (A : Set ℕ) : Prop := ∀ n ≥ 1, {a ∈ A | Squarefree (n + a)}.Finite
542
leanexplore_declaration
leanexplore:382353
leanexplore_sqlite
leanexplore_declarations
/-- Upper bound (Davies–Illingworth 2022). There exists a constant $c_2 \ge 2$ such that, for sufficiently large $n$, $$ f(n) \le c_2 \sqrt{\frac{n}{\log n}}, $$ where $f(n)$ denotes the maximum chromatic number of a triangle-free graph on $n$ vertices, formalized as `triangleFreeMaxChromatic n`. -/ @[category research...
560
leanexplore_declaration
leanexplore:382354
leanexplore_sqlite
leanexplore_declarations
/-- Lower bound (Hefty–Horn–King–Pfender 2025). There exists a constant $c_1 \in (0,1]$ such that, for sufficiently large $n$, $$ c_1 \sqrt{\frac{n}{\log n}} \le f(n), $$ where $f(n)$ denotes the maximum chromatic number of a triangle-free graph on $n$ vertices, formalized as `triangleFreeMaxChromatic n`. -/ @[category...
210
leanexplore_declaration
leanexplore:382355
leanexplore_sqlite
leanexplore_declarations
/-- Maximum chromatic number of a triangle-free graph on `n` vertices. -/ noncomputable def triangleFreeMaxChromatic (n : ℕ) : ℕ := sSup {χ | ∃ G : SimpleGraph (Fin n), G.CliqueFree 3 ∧ G.chromaticNumber = χ}
697
leanexplore_declaration
leanexplore:382356
leanexplore_sqlite
leanexplore_declarations
/-- Let $P_k$ be the path on $k$ vertices and $\ell=\lfloor\frac{k-1}{2}\rfloor$. If $n\geq k\geq 5$ then is $\mathrm{AR}(n,P_k)$ equal to $\max\left(\binom{k-2}{2}+1, \binom{\ell-1}{2}+(\ell-1)(n-\ell+1)+\epsilon\right)$where $\epsilon=1$ if $k$ is odd and $\epsilon=2$ otherwise? A proof of the formula for $\mathrm{A...
791
leanexplore_declaration
leanexplore:382357
leanexplore_sqlite
leanexplore_declarations
/-- The anti-Ramsey number $\mathrm{AR}(n,G)$ is the maximum possible number of colours in which the edges of $K_n$ can be coloured without creating a rainbow copy of $G$ (i.e. one in which all edges have different colours). Let $C_k$ be the cycle on $k$ vertices. Is it true that $\mathrm{AR}(n,C_k)=\left(\frac{k-2}{2...
314
leanexplore_declaration
leanexplore:382358
leanexplore_sqlite
leanexplore_declarations
/-- Let $p(n)$ be the partition number of $n$ and $F(n)$ be the number of distinct prime factors of $∏_{i= 1} ^ {n} p(n)$, $F(n)>n$ for sufficiently large $n$. -/ @[category research open, AMS 11] theorem erdos_1106.parts.ii : answer(sorry) ↔ ∀ᶠ n in atTop, #(∏ i ∈ Icc 1 n, p i).primeFactors > n := by sorry
346
leanexplore_declaration
leanexplore:382359
leanexplore_sqlite
leanexplore_declarations
/-- Let $p(n)$ be the partition number of $n$ and $F(n)$ be the number of distinct prime factors of $∏_{i= 1} ^ {n} p(n)$, then $F(n)$ tends to infinity when $n$ tends to infinity. -/ @[category research open, AMS 11] theorem erdos_1106.parts.i : answer(sorry) ↔ Tendsto (fun n => #(∏ i ∈ Icc 1 n, p i).primeFactors)...
205
leanexplore_declaration
leanexplore:382360
leanexplore_sqlite
leanexplore_declarations
/-- The partition function p(n) is the number of ways to write n as a sum of positive integers (where the order of the summands does not matter). -/ def p : ℕ → ℕ := fun n => Fintype.card (Nat.Partition n)
217
leanexplore_declaration
leanexplore:382361
leanexplore_sqlite
leanexplore_declarations
/-- Heath-Brown [He88] proved every large integer the sum of at most three $2$-powerful numbers. -/ @[category research solved, AMS 11] theorem erdos_1107.variants.two : ∀ᶠ n in atTop, SumOfRPowerful 2 n := by sorry
210
leanexplore_declaration
leanexplore:382362
leanexplore_sqlite
leanexplore_declarations
/-- Let $r \ge 2$. Is every large integer the sum of at most $r + 1$ many $r$-powerful numbers? -/ @[category research open, AMS 11] theorem erdos_1107 : ∀ r ≥ 2, ∀ᶠ n in atTop, SumOfRPowerful r n := by sorry
201
leanexplore_declaration
leanexplore:382363
leanexplore_sqlite
leanexplore_declarations
/-- Helper Property: $n$ is the sum of at most $r+1$ numbers, each of which is $r$-full. -/ def SumOfRPowerful (r n : ℕ) : Prop := ∃ s : List ℕ, s.length ≤ r + 1 ∧ (∀ x ∈ s, Nat.Full r x) ∧ s.sum = n
321
leanexplore_declaration
leanexplore:382364
leanexplore_sqlite
leanexplore_declarations
/-- Does the set $A = \left\{ \sum_{n\in S}n! : S\subset \mathbb{N}\text{ finite}\right\}$ of all finite sums of distinct factorials contain only finitely many powerful numbers? -/ @[category research open, AMS 11] theorem erdos_1108.parts.ii : answer(sorry) ↔ {a ∈ FactorialSums | IsPowerful a}.Finite := by sorr...
362
leanexplore_declaration
leanexplore:382365
leanexplore_sqlite
leanexplore_declarations
/-- For each $k \geq 2$, does the set $A = \left\{ \sum_{n\in S}n! : S\subset \mathbb{N}\text{ finite}\right\}$ of all finite sums of distinct factorials contain only finitely many $k$-th powers? -/ @[category research open, AMS 11] theorem erdos_1108.parts.i : answer(sorry) ↔ ∀ k ≥ 2, Set.Finite { a | a ∈ Factoria...
154
leanexplore_declaration
leanexplore:382366
leanexplore_sqlite
leanexplore_declarations
/-- A number is powerful if each prime factor appears with exponent at least 2. -/ def IsPowerful (n : ℕ) : Prop := ∀ p : ℕ, p.Prime → p ∣ n → p ^ 2 ∣ n
213
leanexplore_declaration
leanexplore:382367
leanexplore_sqlite
leanexplore_declarations
/-- The set $A = \left\{ \sum_{n\in S}n! : S\subset \mathbb{N}\text{ finite}\right\}$ of all finite sums of distinct factorials. -/ def FactorialSums : Set ℕ := {m : ℕ | ∃ S : Finset ℕ, m = ∑ n ∈ S, n.factorial}
330
leanexplore_declaration
leanexplore:382368
leanexplore_sqlite
leanexplore_declarations
/-- **Filaseta–Finch–Kozek conjecture (2008).** Every Sierpiński number is either a perfect power or possesses a finite covering set of primes. -/ @[category research open, AMS 11] theorem erdos_1113.variants.filaseta_finch_kozek : ∀ k, k.IsSierpinskiNumber → k.IsPerfectPower ∨ HasFinitePrimeCoveringSet k := ...
403
leanexplore_declaration
leanexplore:382369
leanexplore_sqlite
leanexplore_declarations
/-- **Erdős Problem 1113.** Do there exist Sierpiński numbers that possess no finite covering set of primes? Erdős and Graham [ErGr80] conjectured that the answer is yes. A negative answer would imply that there are infinitely many Fermat primes. -/ @[category research open, AMS 11] theorem erdos_1113 : answer(sor...
341
leanexplore_declaration
leanexplore:382370
leanexplore_sqlite
leanexplore_declarations
/-- Sierpiński [Si60] proved that there are infinitely many Sierpiński numbers, using covering systems to construct suitable covering sets for any $k$ satisfying a certain congruence. -/ @[category research solved, AMS 11] theorem erdos_1113.variants.infinitely_many_sierpinski : Set.Infinite {k : ℕ | k.IsSierpinski...
301
leanexplore_declaration
leanexplore:382371
leanexplore_sqlite
leanexplore_declarations
/-- A *covering set* for a positive odd integer $k$ is a finite set of primes $P$ such that every number of the form $k \cdot 2^n + 1$ is divisible by at least one prime in $P$. -/ def HasFinitePrimeCoveringSet (k : ℕ) : Prop := ∃ P : Finset ℕ, (∀ p ∈ P, p.Prime) ∧ ∀ n, ∃ p ∈ P, p ∣ (k * 2 ^ n + 1)
269
leanexplore_declaration
leanexplore:382372
leanexplore_sqlite
leanexplore_declarations
/-- The Collatz conjecture states that for any positive integer $n$, there exists a natural number $m$ such that the $m$-th term of the sequence is 1. -/ @[category research open, AMS 11 37] theorem erdos_1135 : type_of% CollatzConjecture.collatz_conjecture := by sorry
413
leanexplore_declaration
leanexplore:382373
leanexplore_sqlite
leanexplore_declarations
/-- Let $d_n=p_{n+1}-p_n$, where $p_n$ denotes the $n$th prime. Is it true that $$\frac{\max_{n < x}d_{n}d_{n-1}}{(\max_{n < x}d_n)^2}\to 0$$ as $x\to \infty$? -/ @[category research open, AMS 11] theorem erdos_1137 : answer(sorry) ↔ Tendsto (fun x ↦ (((range x).sup (fun n ↦ (primeGap n) * (primeGap (n...
411
leanexplore_declaration
leanexplore:382374
leanexplore_sqlite
leanexplore_declarations
/-- Let $1\leq u_1 < u_2 < \cdots$ be the sequence of integers with at most $2$ prime factors. Is it true that $$\limsup_{k \to \infty} \frac{u_{k+1}-u_k}{\log k}=\infty?$$ -/ @[category research open, AMS 11] theorem erdos_1139 : answer(sorry) ↔ letI u := Nat.nth (fun n ↦ 0 < n ∧ Ω n ≤ 2) atTop.limsup ...