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
168
leanexplore_declaration
leanexplore:382576
leanexplore_sqlite
leanexplore_declarations
/-- An $S$-walk is a sequence where every difference is in $S$. -/ def IsSWalk {V : Type*} [AddCommGroup V] (S : Set V) (a : ℕ → V) : Prop := ∀ n, a (n + 1) - a n ∈ S
510
leanexplore_declaration
leanexplore:382577
leanexplore_sqlite
leanexplore_declarations
/-- Let $k\geq 3$. Must any ordering of $\mathbb{R}$ contain a monotone $k$-term arithmetic progression, that is, some $x_1 <\cdots < x_k$ which forms an increasing or decreasing $k$-term arithmetic progression? The answer is no, even for $k=3$, as shown by Ardal, Brown, and Jungić [ABJ11]. -/ @[category research solv...
186
leanexplore_declaration
leanexplore:382578
leanexplore_sqlite
leanexplore_declarations
/-- Adenwalla [Ad22] proved that k ≤ 4. -/ @[category research solved, AMS 5] theorem erdos_195.variants.leq_4_bound : 4 ≥ sSup {k : ℕ | ∀ f : ℤ ≃ ℤ, HasMonotoneAP f k} := by sorry
184
leanexplore_declaration
leanexplore:382579
leanexplore_sqlite
leanexplore_declarations
/-- Geneson [Ge19] proved that k ≤ 5. -/ @[category research solved, AMS 5] theorem erdos_195.variants.leq_5_bound : 5 ≥ sSup {k : ℕ | ∀ f : ℤ ≃ ℤ, HasMonotoneAP f k} := by sorry
290
leanexplore_declaration
leanexplore:382580
leanexplore_sqlite
leanexplore_declarations
/-- What is the largest $k$ such that in any permutation of $\mathbb{Z}$ there must exist a monotone $k$-term arithmetic progression $x_1 < \cdots < x_k$? -/ @[category research open, AMS 5] theorem erdos_195 : answer(sorry) = sSup {k : ℕ | ∀ f : ℤ ≃ ℤ, HasMonotoneAP f k} := by sorry
214
leanexplore_declaration
leanexplore:382581
leanexplore_sqlite
leanexplore_declarations
/-- Must every permutation of $\mathbb{N}$, contain a monotone 4-term arithmetic progression?-/ @[category research open, AMS 5 11] theorem erdos_196 : answer(sorry) ↔ ∀ (f : ℕ ≃ ℕ), HasMonotoneAP f 4 := by sorry
363
leanexplore_declaration
leanexplore:382582
leanexplore_sqlite
leanexplore_declarations
/-- Can $\mathbb{N}$ be partitioned into two sets, each of which can be permuted to avoid monotone 3-term arithmetic progressions? -/ @[category research open, AMS 5] theorem erdos_197 : answer(sorry) ↔ ∃ A B : Set ℕ, IsCompl A B ∧ (∃ f : ℕ ≃ A, ¬HasMonotoneAP (Subtype.val ∘ f) 3) ∧ (∃ g : ℕ ≃ B, ¬HasMo...
487
leanexplore_declaration
leanexplore:382583
leanexplore_sqlite
leanexplore_declarations
/-- In fact one such sequence is $n! + n$. This was found and proved by AlphaProof. It also found $(n + 1)! + n$. -/ @[category research solved, AMS 5 11, formal_proof using formal_conjectures at "https://github.com/mzhorvath1/formal-conjectures/blob/21f6780f84b406de468389571eb01717b8072f09/FormalConjectures/ErdosPro...
1,388
leanexplore_declaration
leanexplore:382584
leanexplore_sqlite
leanexplore_declarations
/-- The answer is no; Erdős and Graham report this was proved by Baumgartner, presumably referring to the paper [Ba75], which does not state this exactly, but the following simple construction is implicit in [Ba75]. Let $P_1,P_2,\ldots$ be an enumeration of all countably many infinite arithmetic progressions. We choos...
319
leanexplore_declaration
leanexplore:382585
leanexplore_sqlite
leanexplore_declarations
/-- The statement for which Baumgartner actually writes a proof. -/ @[category research solved, AMS 5] lemma baumgartner_headline (V : Type*) [AddCommGroup V] [Module ℚ V] : ∃ X : Set V, (∀ Y, IsAPOfLength Y ⊤ → (X ∩ Y).Nonempty) ∧ (∀ Y, IsAPOfLength Y 3 → (X ∩ Y).ncard ≤ 2) := baumgartner_strong V 3
642
leanexplore_declaration
leanexplore:382586
leanexplore_sqlite
leanexplore_declarations
/-- Let $V$ be a vector space over the rationals and let $k$ be a fixed positive integer. Then there is a set $X_k \subseteq V$ such that $X_k$ meets every infinite arithmetic progression in $V$ but $X_k$ intersects every $k$-element arithmetic progression in at most two points. At the end of [Ba75] the author claims ...
280
leanexplore_declaration
leanexplore:382587
leanexplore_sqlite
leanexplore_declarations
/-- The minimal value of $N$ such that there exists a sum-distinct set with nine elements is $161$. https://oeis.org/A276661 -/ @[category research solved, AMS 5 11] theorem erdos_1.variants.least_N_9 : IsLeast { N | ∃ A, IsSumDistinctSet A N ∧ A.card = 9 } 161 := by sorry
278
leanexplore_declaration
leanexplore:382588
leanexplore_sqlite
leanexplore_declarations
/-- The minimal value of $N$ such that there exists a sum-distinct set with five elements is $13$. https://oeis.org/A276661 -/ @[category research solved, AMS 5 11] theorem erdos_1.variants.least_N_5 : IsLeast { N | ∃ A, IsSumDistinctSet A N ∧ A.card = 5 } 13 := by sorry
1,095
leanexplore_declaration
leanexplore:382589
leanexplore_sqlite
leanexplore_declarations
/-- The minimal value of $N$ such that there exists a sum-distinct set with three elements is $4$. https://oeis.org/A276661 -/ @[category undergraduate, AMS 5 11] theorem erdos_1.variants.least_N_3 : IsLeast { N | ∃ A, IsSumDistinctSet A N ∧ A.card = 3 } 4 := by refine ⟨⟨{1, 2, 4}, ?_⟩, ?_⟩ · simp refine ⟨...
712
leanexplore_declaration
leanexplore:382590
leanexplore_sqlite
leanexplore_declarations
/-- A generalisation of the problem to sets $A \subseteq (0, N]$ of real numbers, such that the subset sums all differ by at least $1$ is proposed in [Er73] and [ErGr80]. [Er73] Erdős, P., _Problems and results on combinatorial number theory_. A survey of combinatorial theory (Proc. Internat. Sympos., Colorado State U...
286
leanexplore_declaration
leanexplore:382591
leanexplore_sqlite
leanexplore_declarations
/-- A finite set of real numbers is said to be sum-distinct if all the subset sums differ by at least $1$. -/ abbrev IsSumDistinctRealSet (A : Finset ℝ) (N : ℕ) : Prop := ↑A ⊆ Set.Ioc (0 : ℝ) N ∧ (A.powerset : Set (Finset ℝ)).Pairwise fun S₁ S₂ => 1 ≤ dist (S₁.sum id) (S₂.sum id)
432
leanexplore_declaration
leanexplore:382592
leanexplore_sqlite
leanexplore_declarations
/-- A number of improvements of the constant $\frac{1}{4}$ have been given, with the current record $\sqrt{2 / \pi}$ first provied in unpublished work of Elkies and Gleason. -/ @[category research solved, AMS 5 11] theorem erdos_1.variants.lb_strong : ∃ (o : ℕ → ℝ) (_ : o =o[atTop] (1 : ℕ → ℝ)), ∀ (N : ℕ) (A : Fins...
484
leanexplore_declaration
leanexplore:382593
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Moser [Er56] proved $$ N \geq (\tfrac{1}{4} - o(1)) \frac{2^n}{\sqrt{n}}. $$ [Er56] Erdős, P., _Problems and results in additive number theory_. Colloque sur la Th\'{E}orie des Nombres, Bruxelles, 1955 (1956), 127-137. -/ @[category research solved, AMS 5 11] theorem erdos_1.variants.lb : ∃ (o : ℕ → ℝ)...
1,211
leanexplore_declaration
leanexplore:382594
leanexplore_sqlite
leanexplore_declarations
/-- The trivial lower bound is $N \gg 2^n / n$. -/ @[category undergraduate, AMS 5 11] theorem erdos_1.variants.weaker : ∃ C > (0 : ℝ), ∀ (N : ℕ) (A : Finset ℕ) (_ : IsSumDistinctSet A N), N ≠ 0 → C * 2 ^ A.card / A.card < N := by refine ⟨1/3, by norm_num, fun N A ⟨hA1, hA2⟩ hN => ?_⟩ have key : 2 ^ A.card ≤ A....
325
leanexplore_declaration
leanexplore:382595
leanexplore_sqlite
leanexplore_declarations
/-- If $A\subseteq\{1, ..., N\}$ with $|A| = n$ is such that the subset sums $\sum_{a\in S}a$ are distinct for all $S\subseteq A$ then $$ N \gg 2 ^ n. $$ -/ @[category research open, AMS 5 11] theorem erdos_1 : ∃ C > (0 : ℝ), ∀ (N : ℕ) (A : Finset ℕ) (_ : IsSumDistinctSet A N), N ≠ 0 → C * 2 ^ A.card < N := by ...
318
leanexplore_declaration
leanexplore:382596
leanexplore_sqlite
leanexplore_declarations
/-- A finite set of naturals $A$ is said to be a sum-distinct set for $N \in \mathbb{N}$ if $A\subseteq\{1, ..., N\}$ and the sums $\sum_{a\in S}a$ are distinct for all $S\subseteq A$ -/ abbrev IsSumDistinctSet (A : Finset ℕ) (N : ℕ) : Prop := A ⊆ Finset.Icc 1 N ∧ (fun (⟨S, _⟩ : A.powerset) => S.sum id).Injective
302
leanexplore_declaration
leanexplore:382597
leanexplore_sqlite
leanexplore_declarations
/-- It follows from the prime number theorem that such a progression has length $\leq(1+o(1))\log N$. -/ @[category research solved, AMS 5 11] theorem erdos_200.variants.upper : ∃ (o : ℕ → ℝ) (_ : o =o[atTop] (1 : ℕ → ℝ)), ∀ n, longestPrimeArithmeticProgressions n ≤ (1 + o n) * log n := by sorry
272
leanexplore_declaration
leanexplore:382598
leanexplore_sqlite
leanexplore_declarations
/-- Does the longest arithmetic progression of primes in $\{1,\ldots,N\}$ have length $o(\log N)$? -/ @[category research open, AMS 5 11] theorem erdos_200 : answer(sorry) ↔ (fun n => (longestPrimeArithmeticProgressions n : ℝ)) =o[atTop] (fun n => log n) := by sorry
228
leanexplore_declaration
leanexplore:382599
leanexplore_sqlite
leanexplore_declarations
/-- The length of the longest arithmetic progression of primes in $\{1,\ldots,n\}$. -/ noncomputable def longestPrimeArithmeticProgressions (n : ℕ) : ℕ := sSup {(k : ℕ) | ∃ s ⊆ Set.Icc 1 n, s.IsAPOfLength k ∧ ∀ m ∈ s, m.Prime}
270
leanexplore_declaration
leanexplore:382600
leanexplore_sqlite
leanexplore_declarations
/-- Is there an integer $m$ with $(m, 6) = 1$ such that none of $2^k \cdot 3^\ell \cdot m + 1$ are prime, for any $k, \ell \ge 0$? -/ @[category research open, AMS 5] theorem erdos_203 : answer(sorry) ↔ ∃ m, m.Coprime 6 ∧ ∀ k l, ¬ (2^k * 3^l * m + 1).Prime := by sorry
957
leanexplore_declaration
leanexplore:382601
leanexplore_sqlite
leanexplore_declarations
/-- Are there $n$ such that there is a covering system with moduli the divisors of $n$ which is 'as disjoint as possible'? That is, for all $d\mid n$ with $d>1$ there is an associated $a_d$ such that every integer is congruent to some $a_d\pmod{d}$, and if there is some integer $x$ with \[x\equiv a_d\pmod{d}\textrm{ a...
339
leanexplore_declaration
leanexplore:382602
leanexplore_sqlite
leanexplore_declarations
/-- In [Er79] Erdős says perhaps $s_{n+1} - s_n \ll \log s_n$, but he is 'very doubtful'. [Er79] Erdős, Paul, __Some unconventional problems in number theory__. Math. Mag. (1979), 67-70. -/ @[category research open, AMS 11] theorem erdos_208.variants.log_bound : (fun n ↦ (s (n + 1) - s n : ℝ)) =O[atTop] fun n ↦ lo...
403
leanexplore_declaration
leanexplore:382603
leanexplore_sqlite
leanexplore_declarations
/-- Let $s_1 < s_2 < \dots$ be the sequence of squarefree numbers. Is it true that $s_{n + 1} - s_n \le (1 + o(1)) \cdot (\pi^2 / 6) \cdot \log (s_n) / \log (\log (s_n))$? -/ @[category research open, AMS 11] theorem erdos_208.parts.ii : answer(sorry) ↔ ∃ (c : ℕ → ℝ), (c =o[atTop] (1 : ℕ → ℝ)) ∧ ∀ᶠ n in atTop, s ...
341
leanexplore_declaration
leanexplore:382604
leanexplore_sqlite
leanexplore_declarations
/-- Let $s_1 < s_2 < \dots$ be the sequence of squarefree numbers. Is it true that for any $\epsilon > 0$ and large $n$, $s_{n+1} - s_n \ll_\epsilon s_n^\epsilon$? -/ @[category research open, AMS 11] theorem erdos_208.parts.i : answer(sorry) ↔ ∀ ε > (0 : ℝ), (fun n => (s (n + 1) - s n : ℝ)) =O[atTop] (fun n => (s ...
141
leanexplore_declaration
leanexplore:382605
leanexplore_sqlite
leanexplore_declarations
/-- The sequence of squarefree numbers, denoted by `s` as in Erdős problem 208. -/ noncomputable def erdos208.s : ℕ → ℕ := Nat.nth Squarefree
216
leanexplore_declaration
leanexplore:382606
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that $f(n,k) < c_k^n$ for some constant $c_k>0$ and for all $n > 0$? -/ @[category research open, AMS 5] theorem erdos_20 : answer(sorry) ↔ ∃ (c : ℕ → ℕ), ∀ n k, n > 0 → f n k < (c k) ^ n := by sorry
343
leanexplore_declaration
leanexplore:382607
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem f_0_1 : f 0 1 = 1 := by refine IsLeast.csInf_eq ⟨fun F hF ↦ ?_, fun n hn ↦ n.pos_of_ne_zero fun hn₀ ↦ ?_⟩ · obtain ⟨A, hA⟩ := F.nonempty_of_ncard_ne_zero (by omega) exact ⟨{A}, by simpa using ⟨hA, isSunflower_singleton _⟩⟩ · obtain ⟨S, hS⟩ := (hn (α := ℕ) {} (by simpa)) sim...
292
leanexplore_declaration
leanexplore:382608
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n,k)$ be minimal such that every $F$ family of $n$-uniform sets with $|F| \ge f(n,k)$ contains a $k$-sunflower. -/ noncomputable def f (n k : ℕ) : ℕ := sInf {m | ∀ {α : Type}, ∀ (F : Set (Set α)), ((∀ f ∈ F, f.ncard = n) ∧ m ≤ F.ncard) → ∃ S ⊆ F, S.ncard = k ∧ IsSunflower S}
143
leanexplore_declaration
leanexplore:382609
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem isSunflower_singleton (A : Set α) : IsSunflower {A} := by simp [IsSunflower, isSunflowerWithKernel_singleton]
137
leanexplore_declaration
leanexplore:382610
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem isSunflower_empty : IsSunflower (∅ : Set (Set α)) := by simp [IsSunflower, isSunflowerWithKernel_empty]
195
leanexplore_declaration
leanexplore:382611
leanexplore_sqlite
leanexplore_declarations
/-- A sunflower $F$ is a collection of sets in which all possible distinct pairs of sets share the same intersection. -/ def IsSunflower (F : Set (Set α)) : Prop := ∃ S, IsSunflowerWithKernel F S
158
leanexplore_declaration
leanexplore:382612
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem isSunflowerWithKernel_singleton (S : Set α) (A : Set α) : IsSunflowerWithKernel {A} S := by simp [IsSunflowerWithKernel]
137
leanexplore_declaration
leanexplore:382613
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5] theorem isSunflowerWithKernel_empty (S : Set α) : IsSunflowerWithKernel {} S := by simp [IsSunflowerWithKernel]
242
leanexplore_declaration
leanexplore:382614
leanexplore_sqlite
leanexplore_declarations
/-- A sunflower $F$ with kernel $S$ is a collection of sets in which all possible distinct pairs of sets share the same intersection $S$. -/ def IsSunflowerWithKernel (F : Set (Set α)) (S : Set α) : Prop := F.Pairwise (fun A B => A ∩ B = S)
249
leanexplore_declaration
leanexplore:382615
leanexplore_sqlite
leanexplore_declarations
/-- Is there a dense subset of ℝ^2 such that all pairwise distances are rational? -/ @[category research open, AMS 52] theorem erdos_212 : answer(sorry) ↔ ∃ u : Set ℂ, Dense u ∧ u.Pairwise fun c₁ c₂ => dist c₁ c₂ ∈ Set.range Rat.cast := by sorry
171
leanexplore_declaration
leanexplore:382616
leanexplore_sqlite
leanexplore_declarations
/-- The best construction to date, due to Kreisel and Kurz, has $n = 7$. -/ @[category research solved, AMS 52] theorem erdos_213.variants.KK08 : Erdos213For 7 := by sorry
266
leanexplore_declaration
leanexplore:382617
leanexplore_sqlite
leanexplore_declarations
/-- Let $n \geq 4$. Are there $n$ points in $\mathbb{R}^2$, no three on a line and no four on a circle, such that all pairwise distances are integers? -/ @[category research open, AMS 52] theorem erdos_213 : answer(sorry) ↔ ∀ n : ℕ, n ≥ 4 → Erdos213For n := by sorry
401
leanexplore_declaration
leanexplore:382618
leanexplore_sqlite
leanexplore_declarations
/-- The predicate (on $n$) that there exist $n$ points in $\mathbb{R}^2$, no three on a line and no four on a circle, such that all pairwise distances are integers. -/ def Erdos213For (n : ℕ) : Prop := ∃ S : Set ℝ², S.Finite ∧ S.ncard = n ∧ NonTrilinear S ∧ (∀ Q : Set ℝ², Q ⊆ S ∧ Q.ncard = 4 → ¬ EuclideanGeomet...
392
leanexplore_declaration
leanexplore:382619
leanexplore_sqlite
leanexplore_declarations
/-- There are infintely many indices $n$ such that the prime gap at $n$ is equal to the prime gap at $n+1$. This is equivalent to the existence of infinitely many arithmetic progressions of length $3$, see `erdos_141.variants.infinite_three`. -/ @[category research open, AMS 11] theorem erdos_218.variants.infinite_equa...
269
leanexplore_declaration
leanexplore:382620
leanexplore_sqlite
leanexplore_declarations
/-- The set of indices $n$ for which a prime gap is preceeded by a larger or equal prime gap has a natural density of $\frac 1 2$. -/ @[category research open, AMS 11] theorem erdos_218.variants.ge : {n | primeGap (n + 1) ≤ primeGap n}.HasDensity <| 1 / 2 := by sorry
268
leanexplore_declaration
leanexplore:382621
leanexplore_sqlite
leanexplore_declarations
/-- The set of indices $n$ for which a prime gap is followed by a larger or equal prime gap has a natural density of $\frac 1 2$. -/ @[category research open, AMS 11] theorem erdos_218.variants.le : {n | primeGap n ≤ primeGap (n + 1)}.HasDensity <| 1 / 2 := by sorry
327
leanexplore_declaration
leanexplore:382622
leanexplore_sqlite
leanexplore_declarations
/-- Are there arbitrarily long arithmetic progressions of primes? Solution: yes. Ref: Green, Ben and Tao, Terence, _The primes contain arbitrarily long arithmetic progressions_ -/ @[category research solved, AMS 5 11] theorem erdos_219 : answer(True) ↔ ∀ N : ℕ, ∃ l ∈ primeArithmeticProgressions, N ≤ ENat.card l := by ...
315
leanexplore_declaration
leanexplore:382623
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 5 11] lemma pair_mem_primeArithmeticProgressions {p q : ℕ} (hp : p.Prime) (hq : q.Prime) (hpq : p < q) : {p, q} ∈ primeArithmeticProgressions := by let ⟨n, h⟩ := Nat.exists_eq_add_of_lt hpq simpa [primeArithmeticProgressions, hp, hq] using ⟨2, by norm_num, Nat.isAPOfLength_pair hpq⟩
212
leanexplore_declaration
leanexplore:382624
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 5 11] lemma singleton_mem_primeArithmeticProgressions {p : ℕ} (hp : p.Prime) : {p} ∈ primeArithmeticProgressions := by simpa [primeArithmeticProgressions, hp] using ⟨1, one_pos, by simp⟩
195
leanexplore_declaration
leanexplore:382625
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 5 11] theorem empty_not_primeArithmeticProgression : ∅ ∉ primeArithmeticProgressions := by simpa [primeArithmeticProgressions] using fun _ hl ↦ Set.not_isAPOfLength_empty hl
163
leanexplore_declaration
leanexplore:382626
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5 11] theorem not_primeArithmeticProgression_1_2 : ¬{1, 2} ∈ primeArithmeticProgressions := by simp [primeArithmeticProgressions] norm_num
907
leanexplore_declaration
leanexplore:382627
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 5 11] theorem primeArithmeticProgression_3_5_7 : {3, 5, 7} ∈ primeArithmeticProgressions := by simp only [primeArithmeticProgressions, gt_iff_lt, Set.IsAPOfLength, Set.IsAPOfLengthWith, smul_eq_mul, exists_prop, exists_and_left, existsAndEq, true_and, Set.mem_setOf_eq, Set.mem_insert_iff,...
155
leanexplore_declaration
leanexplore:382628
leanexplore_sqlite
leanexplore_declarations
/-- The set of arithmetic progressions of primes -/ def primeArithmeticProgressions : Set (Set ℕ) := {s | (∀ p ∈ s, p.Prime) ∧ ∃ l > 0, s.IsAPOfLength l}
826
leanexplore_declaration
leanexplore:382629
leanexplore_sqlite
leanexplore_declarations
/-- Does there exist, for all large $n$, a polynomial $P$ of degree $n$, with coefficients $\pm1$, such that $$\sqrt n \ll |P(z)| \ll \sqrt n$$ for all $|z|=1$, with the implied constants independent of $z$ and $n$? The answer is yes, proved by Balister, Bollobás, Morris, Sahasrabudhe, and Tiba [BBMST19]. [BBMST19] B...
578
leanexplore_declaration
leanexplore:382630
leanexplore_sqlite
leanexplore_declarations
/-- Let $\{S_k\}$ be any sequence of sets in the complex plane, each of which has no finite limit point. Then there exists a sequence $\{n_k\}$ of positive integers and a transcendental entire function $f(z)$ such that $f^{(n_k)}(z) = 0$ if $z \in S_k$. -/ @[category research solved, AMS 30] theorem theorem_1 {S : ...
885
leanexplore_declaration
leanexplore:382631
leanexplore_sqlite
leanexplore_declarations
/-- Let $(S_n)_{n \ge 1}$ be a sequence of sets of complex numbers, none of which have a finite limit point. Does there exist an entire transcendental function $f(z)$ such that, for all $n \ge 1$, there exists some $k_n \ge 0$ such that $f^{(k_n)}(z) = 0$ for all $z \in S_n$. This is Problem 2.30 in [Ha74], where it i...
577
leanexplore_declaration
leanexplore:382632
leanexplore_sqlite
leanexplore_declarations
/-- The prime number theorem immediately implies a lower bound of $\gg N(\log N)^2$ for the sum of squares of gaps between consecutive primes. Formal proof linked here provided by AlphaProof. -/ @[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/mzhorvath1/formal-conjectur...
304
leanexplore_declaration
leanexplore:382633
leanexplore_sqlite
leanexplore_declarations
/-- Cramér proved an upper bound of $O(N(\log N)^4)$ conditional on the Riemann hypothesis. -/ @[category research solved, AMS 11] theorem erdos_233.variants.upper_bound (h : RiemannHypothesis) : (fun N => ((∑ n ∈ Finset.range N, (primeGap n) ^ 2) : ℝ)) =O[atTop] fun N => N * (log N)^4 := by sorry
296
leanexplore_declaration
leanexplore:382634
leanexplore_sqlite
leanexplore_declarations
/-- A conjecture by Heath-Brown: The sum of squares of the first $N$ gaps between consecutive primes behaves like $N * (log N)^2$. -/ @[category research open, AMS 11] theorem erdos_233 : (fun N => ((∑ n ∈ Finset.range N, (primeGap n) ^ 2) : ℝ)) =O[atTop] fun N => N * (log N)^2 := by sorry
334
leanexplore_declaration
leanexplore:382635
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that for all `c ≥ 0`, the density `f c` of integers for which `(p (n + 1) - p n) / log n < c` exists and is a continuous function of `c`? -/ @[category research open, AMS 11] theorem erdos_234 : answer(sorry) ↔ ∃ f : ℝ≥0 → ℝ, Continuous f ∧ ∀ c : ℝ≥0, HasDensity {n : ℕ | primeGap n / log n < c} (f c)...
245
leanexplore_declaration
leanexplore:382636
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ count the number of solutions to $n=p+2^k$ for prime $p$ and $k\geq 0$. Show that $f(n)=o(\log n)$. -/ @[category research open, AMS 5 11] theorem erdos_236: (fun n => (f n : ℝ)) =o[atTop] (fun n => Real.log (n : ℝ)) := by sorry
186
leanexplore_declaration
leanexplore:382637
leanexplore_sqlite
leanexplore_declarations
/-- $f(n)$ counts the number of solutions to $n=p+2^k$ for prime $p$ and $k\geq 0$. -/ def f (n : ℕ) : ℕ := ((List.range (Nat.log2 n + 1)).filter (fun k => Nat.Prime (n - 2^k))).length
376
leanexplore_declaration
leanexplore:382638
leanexplore_sqlite
leanexplore_declarations
/-- It is well-known that the conjecture above is true when `c₁` is sufficiently small. -/ @[category research solved, AMS 11] theorem erdos_238.variants.small_c1 : ∀ c₂ > 0, ∀ᶠ c₁ in 𝓝[>] 0, ∀ᶠ (x : ℝ) in atTop, ∃ (k : ℕ), c₁ * log x < k ∧ ∃ f : Fin k → ℕ, ∃ m, (∀ i, f i ≤ x ∧ f i = (m + i.1).nth Nat.Prime) ∧...
467
leanexplore_declaration
leanexplore:382639
leanexplore_sqlite
leanexplore_declarations
/-- Let `c₁, c₂ > 0`. Is it true that for any sufficiently large `x`, there exists more than `c₁ * log x` many consecutive primes `≤ x` such that the difference between any two is `> c₂`? -/ @[category research open, AMS 11] theorem erdos_238 : answer(sorry) ↔ ∀ᵉ (c₁ > 0) (c₂ > 0), ∀ᶠ (x : ℝ) in atTop, ∃ (k : ℕ), c...
508
leanexplore_declaration
leanexplore:382640
leanexplore_sqlite
leanexplore_declarations
/-- Let $f:\mathbb{N}\to \{-1,1\}$ be a multiplicative function. Is it true that \[ \lim_{N\to \infty}\frac{1}{N}\sum_{n\leq N}f(n)\] always exists? The answer is yes, as proved by Wirsing [Wi67], and generalised by Halász [Ha68]. -/ @[category research solved, AMS 11] theorem erdos_239 : answer(True) ↔ ∀ f : ℕ → ...
401
leanexplore_declaration
leanexplore:382641
leanexplore_sqlite
leanexplore_declarations
/-- Can every triangle-free graph on $5n$ vertices be made bipartite by deleting at most $n^2$ edges? -/ @[category research open, AMS 5] theorem erdos_23 : answer(sorry) ↔ ∀ (n : ℕ) (V : Type) [Fintype V], Fintype.card V = 5 * n → ∀ (G : SimpleGraph V), G.CliqueFree 3 → ∃ (H : SimpleGraph V), ...
366
leanexplore_declaration
leanexplore:382642
leanexplore_sqlite
leanexplore_declarations
/-- The blow-up of $C_5$ shows that the bound $n^2$ in Erdős Problem 23 is tight: any bipartite subgraph must omit at least $n^2$ edges. -/ @[category test, AMS 5] theorem blowupC5_tight (n : ℕ) (_hn : 0 < n) (H : SimpleGraph (ZMod 5 × Fin n)) (hH : H ≤ blowupC5 n) (hBip : H.IsBipartite) : n ^ 2 ≤ ((blowupC5 n)...
482
leanexplore_declaration
leanexplore:382643
leanexplore_sqlite
leanexplore_declarations
/-- The blow-up of the 5-cycle $C_5$: replace each vertex of $C_5$ with an independent set of $n$ vertices, and connect two vertices iff their corresponding vertices in $C_5$ are adjacent. The vertex set is $\mathbb{Z}/5\mathbb{Z} \times \{0, \ldots, n-1\}$, where $(i, a)$ and $(j, b)$ are adjacent iff $j = i + 1$ or $...
396
leanexplore_declaration
leanexplore:382644
leanexplore_sqlite
leanexplore_declarations
/-- There exists a triangle-free graph on $5$ vertices such that at least $1$ edge must be removed to make it bipartite. This shows the bound in `erdos_23_n1` is tight. -/ @[category test, AMS 5] theorem erdos_23.variants.n1_tight : ∃ (G : SimpleGraph (Fin 5)), G.CliqueFree 3 ∧ ∀ (H : SimpleGraph (Fin 5)), ...
365
leanexplore_declaration
leanexplore:382645
leanexplore_sqlite
leanexplore_declarations
/-- Every triangle-free graph on $5$ vertices can be made bipartite by removing at most $1$ edge. This is the $n = 1$ case of Erdős Problem 23. -/ @[category test, AMS 5] theorem erdos_23.variants.n1 : ∀ (G : SimpleGraph (Fin 5)), G.CliqueFree 3 → ∃ (H : SimpleGraph (Fin 5)), H ≤ G ∧ H.IsBipartite ∧ (G.edge...
177
leanexplore_declaration
leanexplore:382646
leanexplore_sqlite
leanexplore_declarations
/-- This is known only for $r=2$ (see [erdosproblems.com/30]). -/ @[category research solved, AMS 5] theorem erdos_241.variants.r_eq_2 : BoseChowlaConjecture 2 := by sorry
354
leanexplore_declaration
leanexplore:382647
leanexplore_sqlite
leanexplore_declarations
/-- More generally, Bose and Chowla [BoCh62] conjectured that the maximum size of $A\subseteq \{1,\ldots,N\}$ with all $r$-fold sums distinct (aside from the trivial coincidences) then $\lvert A\rvert \sim N^{1/r}.$ -/ @[category research open, AMS 5] theorem erdos_241.variants.generalization (r : ℕ) (hr : r ≥ 2) : Bo...
213
leanexplore_declaration
leanexplore:382648
leanexplore_sqlite
leanexplore_declarations
/-- The conjecture that the size of the set $A\subseteq \{1,\ldots,N\}$ is asymptotically $N^{1/r}$. -/ def BoseChowlaConjecture (r : ℕ) : Prop := (fun N ↦ (f N r : ℝ)) ~[atTop] (fun N ↦ (N : ℝ) ^ ((1 : ℝ) / r))
378
leanexplore_declaration
leanexplore:382649
leanexplore_sqlite
leanexplore_declarations
/-- The best upper bound known to date is due to Green [Gr01], $f(N) \leq ((7/2)^{1/3}+o(1))N^{1/3}$. (note that $(7/2)^{1/3}\approx 1.519$). -/ @[category research solved, AMS 5] theorem erdos_241.variants.upper_bound : ∃ ε : ℕ → ℝ, ε =o[atTop] (fun _ ↦ (1 : ℝ)) ∧ ∀ᶠ N in atTop, (f N 3 : ℝ) ≤ ((7 / 2 : ℝ) ^ ((...
324
leanexplore_declaration
leanexplore:382650
leanexplore_sqlite
leanexplore_declarations
/-- Bose and Chowla [BoCh62] provided a construction proving one half of this, namely $(1+o(1))N^{1/3}\leq f(N)$. -/ @[category research solved, AMS 5] theorem erdos_241.variants.lower_bound : ∃ ε : ℕ → ℝ, ε =o[atTop] (fun _ ↦ (1 : ℝ)) ∧ ∀ᶠ N in atTop, (1 + ε N) * (N : ℝ) ^ ((1 : ℝ) / 3) ≤ (f N 3 : ℝ) := by s...
292
leanexplore_declaration
leanexplore:382651
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that $f(N)\sim N^{1/3}$? Originally asked to Erdős by Bose. This is discussed in problem C11 of Guy's collection [Gu04]. -/ @[category research open, AMS 5] theorem erdos_241 : answer(sorry) ↔ (fun N ↦ (f N 3 : ℝ)) ~[atTop] (fun N ↦ (N : ℝ) ^ ((1 : ℝ) / 3)) := by sorry
492
leanexplore_declaration
leanexplore:382652
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(N)$ be the maximum size of $A\subseteq \{1,\ldots,N\}$ such that the sums $a+b+c$ with $a,b,c\in A$ are all distinct (aside from the trivial coincidences). Formalization note: this is generalized to allow for different $r$. -/ noncomputable def f (N r : ℕ) : ℕ := letI candidates := (Icc 1 N).powerset.filt...
482
leanexplore_declaration
leanexplore:382653
leanexplore_sqlite
leanexplore_declarations
/-- Schinzel conjectured (see [Si56]) the generalisation that, for any fixed $a$, if $n$ is sufficiently large in terms of $a$ then there exist distinct integers $1\leq x < y < z$ such that $\frac{a}{n} = \frac{1}{x}+\frac{1}{y}+\frac{1}{z}.$ -/ @[category research open, AMS 11] theorem erdos_242.variants.schinzel_gene...
299
leanexplore_declaration
leanexplore:382654
leanexplore_sqlite
leanexplore_declarations
/-- For every $n>2$ there exist distinct integers $1 ≤ x < y < z$ such that $\frac 4 n = \frac 1 x + \frac 1 y + \frac 1 z$. -/ @[category research open, AMS 11] theorem erdos_242 (n : ℕ) (hn : 2 < n) : ∃ x y z : ℕ, 1 ≤ x ∧ x < y ∧ y < z ∧ (4 / n : ℚ) = 1 / x + 1 / y + 1 / z := by sorry
494
leanexplore_declaration
leanexplore:382655
leanexplore_sqlite
leanexplore_declarations
/-- Let $a_1 < a_2 < \dots$ be a sequence of integers such that $\lim_{n\to\infty} \frac{a_n}{a_{n-1}^2} = 1$ and $\sum \frac{1}{a_n} \in \mathbb{Q}$. Then, for all sufficiently large $n \ge 1$, $a_n = a_{n-1}^2 - a_{n-1} + 1$. -/ @[category research open, AMS 40] theorem erdos_243 (a : ℕ → ℕ) (ha₀ : StrictMono a) ...
347
leanexplore_declaration
leanexplore:382656
leanexplore_sqlite
leanexplore_declarations
/-- Romanoff [Ro34] proved that the answer is yes if $C$ is an integer. [Ro34] Romanoff, N. P., _Über einige Sätze der additiven Zahlentheorie_. Math. Ann. (1934), 668-678. -/ @[category research solved, AMS 11] theorem erdos_244.variants.Romanoff {C : ℕ} (hC : 1 < C) : 0 < { p + ⌊C ^ k⌋₊ | (p) (k) (_ : p.Prime) }...
297
leanexplore_declaration
leanexplore:382657
leanexplore_sqlite
leanexplore_declarations
/-- Let $C > 1$. Does the set of integers of the form $p + \lfloor C^k \rfloor$, for some prime $p$ and $k\geq 0$, have density $>0$? -/ @[category research open, AMS 11] theorem erdos_244 : answer(sorry) ↔ ∀ C > (1 : ℝ), 0 < { p + ⌊C ^ k⌋₊ | (p) (k) (_ : p.Prime) }.lowerDensity := by sorry
497
leanexplore_declaration
leanexplore:382658
leanexplore_sqlite
leanexplore_declarations
/-- Let $A\subseteq\mathbb{N}$ be an infinite set such that $|A\cap \{1, ..., N\}| = o(N)$. Then $$ \limsup_{N\to\infty}\frac{|(A + A)\cap \{1, ..., N\}|}{|A \cap \{1, ..., N\}|} \geq 2. $$ -/ @[category research solved, AMS 5 11] theorem erdos_245.variants.two (A : Set ℕ) (h_inf : A.Infinite) (hf : atTop.Tendsto (...
658
leanexplore_declaration
leanexplore:382659
leanexplore_sqlite
leanexplore_declarations
/-- Let $A\subseteq\mathbb{N}$ be an infinite set such that $|A\cap \{1, ..., N\}| = o(N)$. Is it true that $$ \limsup_{N\to\infty}\frac{|(A + A)\cap \{1, ..., N\}|}{|A \cap \{1, ..., N\}|} \geq 3? $$ The answer is yes, proved by Freiman [Fr73]. [Fr73] Fre\u{\i}man, G. A., _Foundations of a structural theory of set a...
552
leanexplore_declaration
leanexplore:382660
leanexplore_sqlite
leanexplore_declarations
/-- Erdős proved the answer is yes under the stronger condition that $\limsup \frac{n_k}{k^t} = \infty$ for all $t\geq 1$. [ErGr80] Erdős, P. and Graham, R., _Old and new problems and results in combinatorial number theory_. Monographies de L'Enseignement Mathematique (1980). -/ @[category research solved, AMS 11] the...
392
leanexplore_declaration
leanexplore:382661
leanexplore_sqlite
leanexplore_declarations
/-- Let $n_1 < n_2 < \cdots$ be a sequence of integers such that $$ \limsup \frac{n_k}{k} = \infty. $$ Is $$ \sum_{k=1}^{\infty} \frac{1}{2^{n_k}} $$ transcendental? -/ @[category research open, AMS 11] theorem erdos_247 : answer(sorry) ↔ ∀ (n : ℕ → ℕ), (StrictMono n) → atTop.limsup (fun k => (n k / k.succ : ER...
285
leanexplore_declaration
leanexplore:382662
leanexplore_sqlite
leanexplore_declarations
/-- Are there infinitely many $n$ such that $\omega(n + k) \ll k$ for all $k \geq 1$? Here $\omega(n)$ is the number of distinct prime divisors of $n$. -/ @[category research solved, AMS 11] theorem erdos_248 : (∃ C > (0 : ℝ), { n | ∀ k ≥ 1, ω (n + k) ≤ C * k }.Infinite) := by sorry
220
leanexplore_declaration
leanexplore:382663
leanexplore_sqlite
leanexplore_declarations
/-- Is $$\sum_{n} \frac{\phi(n)}{2^n}$$ irrational? Here $\phi$ is the Euler totient function. -/ @[category research open, AMS 11] theorem erdos_249 : answer(sorry) ↔ Irrational (∑' n : ℕ, (φ n) / (2 ^ n)) := by sorry
440
leanexplore_declaration
leanexplore:382664
leanexplore_sqlite
leanexplore_declarations
/-- Is $$ \sum_{n=1}^\infty \frac{\sigma(n)}{2^n} $$ irrational? Here $\sigma(n)$ is the sum of divisors function. The answer is yes, as shown by Nesterenko [Ne96]. [Ne96] Nesterenko, Yu V., _Modular functions and transcendence questions_, Mat. Sb. 187 *9* (1996), 1319--1348. -/ @[category research solved, AMS 11] ...
252
leanexplore_declaration
leanexplore:382665
leanexplore_sqlite
leanexplore_declarations
/-- Is $\sum_{n=1}^\infty \frac{p_n}{2^n}$ irrational? Here $p_n$ is the $n$-th prime ($p_1=2, p_2=3, \dots$). -/ @[category research open, AMS 11] theorem erdos_251 : answer(sorry) ↔ Irrational (∑' n : ℕ, (Nat.nth Nat.Prime n) / (2 ^ n)) := by sorry
419
leanexplore_declaration
leanexplore:382666
leanexplore_sqlite
leanexplore_declarations
/-- If the prime `k`-tuples conjecture is true, then `∑ σ k n / n!` is irrational. This is proved in [FLC07]. -/ @[category research solved, AMS 11] theorem erdos_252.variants.prime_tuples {k : ℕ} (hk : 4 ≤ k) (hp : ∀ (a : Fin k → ℕ+) (b : Fin k → ℕ) (hab : ∀ p, p.Prime → ∃ n, ¬ p ∣ ∏ i, (a i * n + b i)), Set.I...
412
leanexplore_declaration
leanexplore:382667
leanexplore_sqlite
leanexplore_declarations
/-- If Schinzel's conjecture is true, then `∑ σ k n / n!` is irrational for all `k`. This is proved in [ScPu06]. -/ @[category research solved, AMS 11] theorem erdos_252.variants.schinzel (hs : ∀ (fs : Finset (Polynomial ℤ)), (∀ f ∈ fs, BunyakovskyCondition f) → SchinzelCondition fs → Infinite ↑{n | ∀ f ∈ fs, P...
203
leanexplore_declaration
leanexplore:382668
leanexplore_sqlite
leanexplore_declarations
/-- For a fixed `k ≥ 5`, is `∑ σ k n / n!` irrational?. -/ @[category research open, AMS 11] theorem erdos_252.variants.k_ge_five : answer(sorry) ↔ ∀ k ≥ 5, Irrational (erdos_252_sum k) := by sorry
180
leanexplore_declaration
leanexplore:382669
leanexplore_sqlite
leanexplore_declarations
/-- `∑ σ 4 n / n!` is irrational. This is proved in [Pr22]. -/ @[category research solved, AMS 11] theorem erdos_252.variants.k_eq_four : Irrational (erdos_252_sum 4) := by sorry
195
leanexplore_declaration
leanexplore:382670
leanexplore_sqlite
leanexplore_declarations
/-- `∑ σ 3 n / n!` is irrational. This is proved in [ScPu06] and [FLC07]. -/ @[category research solved, AMS 11] theorem erdos_252.variants.k_eq_three : Irrational (erdos_252_sum 3) := by sorry
181
leanexplore_declaration
leanexplore:382671
leanexplore_sqlite
leanexplore_declarations
/-- `∑ σ 2 n / n!` is irrational. This is proved in [ErKa54]. -/ @[category research solved, AMS 11] theorem erdos_252.variants.k_eq_two : Irrational (erdos_252_sum 2) := by sorry
181
leanexplore_declaration
leanexplore:382672
leanexplore_sqlite
leanexplore_declarations
/-- `∑ σ 1 n / n!` is irrational. This is proved in [ErSt74]. -/ @[category research solved, AMS 11] theorem erdos_252.variants.k_eq_one : Irrational (erdos_252_sum 1) := by sorry
182
leanexplore_declaration
leanexplore:382673
leanexplore_sqlite
leanexplore_declarations
/-- `∑ σ 0 n / n!` is irrational. This is proved in [ErSt71]. -/ @[category research solved, AMS 11] theorem erdos_252.variants.k_eq_zero : Irrational (erdos_252_sum 0) := by sorry
125
leanexplore_declaration
leanexplore:382674
leanexplore_sqlite
leanexplore_declarations
@[category research open, AMS 11] theorem erdos_252 : answer(sorry) ↔ ∀ k ≥ 1, Irrational (erdos_252_sum k) := by sorry
104
leanexplore_declaration
leanexplore:382675
leanexplore_sqlite
leanexplore_declarations
/-- The series `∑ σ k n / n!`. -/ noncomputable def erdos_252_sum (k : ℕ) : ℝ := ∑' n, σ k n / (n ! : ℝ)