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
563
leanexplore_declaration
leanexplore:382778
leanexplore_sqlite
leanexplore_declarations
/-- The corresponding question is also false if one replaces sequences such that $a_{i+1} - a_i = O(1)$ with sets of positive density, as follows from [Bl21]. The statement is as follows: If $A \subset \mathbb{N}$ has positive upper density (and hence certainly if $A$ has positive density) then there is a finite $S \s...
680
leanexplore_declaration
leanexplore:382779
leanexplore_sqlite
leanexplore_declarations
/-- Is there an infinite sequence $a_1 < a_2 < \dots$ such that $a_{i+1} - a_i = O(1)$ and no finite sum of $\frac{1}{a_i}$ is equal to 1? There does not exist such a sequence, which follows from the positive solution to [erdosproblems.com/298] by Bloom [Bl21]. This was formalized in Lean 3 by Bloom and Mehta. -/ @[c...
807
leanexplore_declaration
leanexplore:382780
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that in any finite colouring of the integers there exists a monochromatic solution to $\frac 1 a = \frac 1 b + \frac 1 c$ with distinct $a, b, c$? This is true, as proved by Brown and Rödl [BrRo91]. This was formalized in Lean by Yuan using Seed-Prover. -/ @[category research solved, AMS 5 11, formal_p...
229
leanexplore_declaration
leanexplore:382781
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that $$N(b) \ll \log \log b$$? -/ @[category research open, AMS 11] theorem upper_bound : answer(sorry) ↔ (fun b : ℕ => (smallestCollectionTo b : ℝ)) =O[atTop] (fun b : ℕ => Real.log (Real.log b)) := by sorry
345
leanexplore_declaration
leanexplore:382782
leanexplore_sqlite
leanexplore_declarations
/-- In 1985 Vose [Vo85] proved the upper bound $$N(b) \ll \sqrt{\log b}$$. [Vo85] Vose, Michael D., Egyptian fractions. Bull. London Math. Soc. (1985), 21-24. -/ @[category research solved, AMS 11] theorem erdos_304.variants.upper_1985 : (fun b => (smallestCollectionTo b : ℝ)) =O[atTop] (fun b => Real.sqrt (R...
417
leanexplore_declaration
leanexplore:382783
leanexplore_sqlite
leanexplore_declarations
/-- In 1950, Erdős [Er50c] proved the lower bound $$\log \log b \ll N(b)$$. [Er50c] Erdős, P., Az ${1}/{x_1} + {1}/{x_2} + \ldots + {1}/{x_n} =A/B$ egyenlet eg\'{E}sz sz\'{A}m\'{u} megold\'{A}sairól. Mat. Lapok (1950), 192-210. -/ @[category research solved, AMS 11] theorem erdos_304.variants.lower_1950 : (fun b : ...
435
leanexplore_declaration
leanexplore:382784
leanexplore_sqlite
leanexplore_declarations
/-- In 1950, Erdős [Er50c] proved the upper bound $$N(b) \ll \log b / \log \log b$$. [Er50c] Erdős, P., Az ${1}/{x_1} + {1}/{x_2} + \ldots + {1}/{x_n} =A/B$ egyenlet eg\'{E}sz sz\'{A}m\'{u} megold\'{A}sairól. Mat. Lapok (1950), 192-210. -/ @[category research solved, AMS 11] theorem erdos_304.variants.upper_1950 : ...
158
leanexplore_declaration
leanexplore:382785
leanexplore_sqlite
leanexplore_declarations
/-- Write $$N(b) = max_{1 \leq a < b} N(a, b)$$. -/ noncomputable def smallestCollectionTo (b : ℕ) : ℕ := sSup {smallestCollection a b | a ∈ Finset.Ico 1 b}
508
leanexplore_declaration
leanexplore:382786
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] lemma smallestCollection_two_fifteen : smallestCollection 2 15 = 2 := by have h : 2 ∈ unitFractionExpressible 2 15 := by use {10, 30} norm_num [Finset.card_insert_of_notMem, Finset.card_singleton] have : smallestCollection 2 15 ≤ 2 := Nat.sInf_le h have : 0 < smallestCollection 2 ...
269
leanexplore_declaration
leanexplore:382787
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 11] lemma dvd_of_smallestCollection_eq_one {a b : ℕ} (h : smallestCollection a b = 1) : a ∣ b := by have : 1 ∈ unitFractionExpressible a b := h ▸ Nat.sInf_mem (Nat.nonempty_of_sInf_eq_succ h) apply dvd_of_one_mem_unitFractionExpressible this
310
leanexplore_declaration
leanexplore:382788
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 11] lemma eq_one_of_smallestCollection_eq_one {a b : ℕ} (h : smallestCollection a b = 1) : ∃ m : ℕ, 1 < m ∧ (a / b : ℚ) = (m : ℚ)⁻¹ := by have : 1 ∈ unitFractionExpressible a b := h ▸ Nat.sInf_mem (Nat.nonempty_of_sInf_eq_succ h) apply eq_inv_of_one_mem_unitFractionExpressible this
385
leanexplore_declaration
leanexplore:382789
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 11] lemma smallestCollection_left_one (b : ℕ) (hb : 1 < b) : smallestCollection 1 b = 1 := by have : 1 ∈ unitFractionExpressible 1 b := ⟨{b}, by simpa⟩ have : smallestCollection 1 b ≤ 1 := Nat.sInf_le this have : 0 ∉ unitFractionExpressible 1 b := by simp; omega have : smallestCollection 1 b...
309
leanexplore_declaration
leanexplore:382790
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 11] lemma smallestCollection_pos {a b : ℕ} (ha : a ≠ 0) (hb : b ≠ 0) (h : (unitFractionExpressible a b).Nonempty) : 0 < smallestCollection a b := by suffices smallestCollection a b ≠ 0 by omega intro h' have : 0 ∈ unitFractionExpressible a b := h' ▸ Nat.sInf_mem h simp_all
281
leanexplore_declaration
leanexplore:382791
leanexplore_sqlite
leanexplore_declarations
/-- Let $$N(a, b)$$, denoted here by `smallestCollection a b` be the minimal k such that there exist integers $1 < n_1 < n_2 < \dots < n_k$ with $$\frac{a}{b} = \sum_{i=1}^k \frac{1}{n_i}$$ -/ noncomputable def smallestCollection (a b : ℕ) : ℕ := sInf (unitFractionExpressible a b)
326
leanexplore_declaration
leanexplore:382792
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 11] lemma dvd_of_one_mem_unitFractionExpressible {a b : ℕ} (h : 1 ∈ unitFractionExpressible a b) : a ∣ b := by obtain ⟨m, hm₁, hm⟩ := eq_inv_of_one_mem_unitFractionExpressible h have : b ≠ 0 := by rintro rfl simp [eq_comm] at hm omega use m field_simp at hm exact mod_cast h...
385
leanexplore_declaration
leanexplore:382793
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 11] lemma eq_inv_of_one_mem_unitFractionExpressible {a b : ℕ} (h : 1 ∈ unitFractionExpressible a b) : ∃ m : ℕ, 1 < m ∧ (a / b : ℚ) = (m : ℚ)⁻¹ := by simp only [unitFractionExpressible, gt_iff_lt, Set.mem_setOf_eq, Finset.card_eq_one] at h obtain ⟨_, ⟨m, rfl⟩, h₁, h₂⟩ := h simp only [Finset...
172
leanexplore_declaration
leanexplore:382794
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 11] lemma zero_notMem_unitFractionExpressible {a b : ℕ} : 0 ∉ unitFractionExpressible a b ↔ a ≠ 0 ∧ b ≠ 0 := by simp_all [unitFractionExpressible]
157
leanexplore_declaration
leanexplore:382795
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 11] lemma unitFractionExpressible_zero_right {a : ℕ} : unitFractionExpressible a 0 = {0} := unitFractionExpressible_of_zero (by simp)
156
leanexplore_declaration
leanexplore:382796
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 11] lemma unitFractionExpressible_zero_left {b : ℕ} : unitFractionExpressible 0 b = {0} := unitFractionExpressible_of_zero (by simp)
634
leanexplore_declaration
leanexplore:382797
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 11] lemma unitFractionExpressible_of_zero {a b : ℕ} (h : a = 0 ∨ b = 0) : unitFractionExpressible a b = {0} := by simp only [Set.eq_singleton_iff_unique_mem, zero_mem_unitFractionExpressible_iff, *] have : (a / b : ℚ) = 0 := by simpa simp only [unitFractionExpressible, gt_iff_lt, Set.mem_s...
179
leanexplore_declaration
leanexplore:382798
leanexplore_sqlite
leanexplore_declarations
@[category API, simp, AMS 11] lemma zero_mem_unitFractionExpressible_iff {a b : ℕ} : 0 ∈ unitFractionExpressible a b ↔ a = 0 ∨ b = 0 := by simp_all [unitFractionExpressible]
235
leanexplore_declaration
leanexplore:382799
leanexplore_sqlite
leanexplore_declarations
/-- The set of `k` for which `a / b` can be expressed as a sum of `k` distinct unit fractions. -/ def unitFractionExpressible (a b : ℕ) : Set ℕ := {k | ∃ s : Finset ℕ, s.card = k ∧ (∀ n ∈ s, n > 1) ∧ (a / b : ℚ) = ∑ n ∈ s, (n : ℚ)⁻¹}
499
leanexplore_declaration
leanexplore:382800
leanexplore_sqlite
leanexplore_declarations
/-- Every positive integer can be expressed as an Egyptian fraction where each denominator is the product of three distinct primes. -/ @[category research solved, AMS 11] theorem erdos_306.variants.integer_three_primes (m : ℕ) (h : 0 < m) : ∃ k > (0 : ℕ), ∃ (n : Fin (k + 1) → ℕ), n 0 = 1 ∧ ∀ i, (hik : i < k) → ...
516
leanexplore_declaration
leanexplore:382801
leanexplore_sqlite
leanexplore_declarations
/-- Let $\frac a b\in \mathbb{Q}_{>0}$ with $b$ squarefree. Are there integers $1 < n_1 < \dots < n_k$, each the product of two distinct primes, such that $\frac{a}{b}=\frac{1}{n_1}+\cdots+\frac{1}{n_k}$? -/ @[category research open, AMS 11] theorem erdos_306 : answer(sorry) ↔ ∀ (q : ℚ), 0 < q → Squarefree q.den → ...
392
leanexplore_declaration
leanexplore:382802
leanexplore_sqlite
leanexplore_declarations
/-- There are no examples known of the weakened coprime version if we insist that $1\not\in P\cup Q$. -/ @[category research open, AMS 5 11] theorem erdos_307.variants.coprime_one_notMem : answer(sorry) ↔ ∃ P Q : Finset ℕ, 0 ∉ P ∩ Q ∧ 1 ∉ P ∪ Q ∧ 1 < #P ∧ 1 < #Q ∧ Set.Pairwise P Nat.Coprime ∧ Set.Pairwise Q Nat.Cop...
696
leanexplore_declaration
leanexplore:382803
leanexplore_sqlite
leanexplore_declarations
/-- Instead of asking for sets of primes, ask only that all elements in the sets be relatively coprime. Cambie has found several examples when this weakened version is true. For example, $$ 1=\left(1+\frac{1}{5}\right)\left(\frac{1}{2}+\frac{1}{3}\right) $$ and $$ 1=\left(1+\frac{1}{41}\right)\left(\frac{1}{2}+\frac{1...
471
leanexplore_declaration
leanexplore:382804
leanexplore_sqlite
leanexplore_declarations
/-- Are there two finite set of primes $P$ and $Q$ such that $$ 1 = \left( \sum_{p \in P} \frac{1}{p} \right) \left( \sum_{q \in Q} \frac{1}{q} \right) $$ ? Asked by Barbeau [Ba76]. [Ba76] Barbeau, E. J., _Computer challenge corner: Problem 477: A brute force program._ -/ @[category research open, AMS 11] theorem er...
268
leanexplore_declaration
leanexplore:382805
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that, for every $\varepsilon > 0$, $h(N) = \sqrt N + O_{\varespilon}(N^\varespilon) -/ @[category research open, AMS 11] theorem erdos_30 : answer(sorry) ↔ ∀ᵉ (ε > 0), (fun N => h N - (N : Real).sqrt) =O[atTop] fun N => (N : ℝ)^(ε : ℝ) := by sorry
155
leanexplore_declaration
leanexplore:382806
leanexplore_sqlite
leanexplore_declarations
/-- Let $h(N)$ be the maximum size of a Sidon set in $\{1, \dots, N\}$. -/ noncomputable abbrev h (N : ℕ) : ℕ := Finset.maxSidonSubsetCard (Finset.Icc 1 N)
653
leanexplore_declaration
leanexplore:382807
leanexplore_sqlite
leanexplore_declarations
/-- Does there exist a constant `c > 0` such that, for any `K > 1`, whenever `A` is a sufficiently large finite multiset of integers with $\sum_{n \in A} 1/n > K$ there exists some $S \subseteq A$ such that $1 - \exp(-(c*K)) < \sum_{n \in S} 1/n \le 1$? -/ @[category research open, AMS 5 11] theorem erdos_312 : ans...
231
leanexplore_declaration
leanexplore:382808
leanexplore_sqlite
leanexplore_declarations
/-- There are at least 8 primary pseudoperfect numbers. -/ @[category undergraduate, AMS 11] theorem erdos_313.variants.exists_at_least_eight_primary_pseudoperfect : 8 ≤ (Set.encard {n | IsPrimaryPseudoperfect n}) := by sorry
243
leanexplore_declaration
leanexplore:382809
leanexplore_sqlite
leanexplore_declarations
/-- It is conjectured that the set of primary pseudoperfect numbers is infinite. -/ @[category research open, AMS 11] theorem erdos_313.variants.primary_pseudoperfect_are_infinite : Set.Infinite {n | IsPrimaryPseudoperfect n} := by sorry
214
leanexplore_declaration
leanexplore:382810
leanexplore_sqlite
leanexplore_declarations
/-- An integer `n` is a **primary pseudoperfect number** if it is the denominator `m` in a solution `(m, P)` to the Erdős 313 problem. -/ def IsPrimaryPseudoperfect (n : ℕ) : Prop := ∃ P, (n, P) ∈ erdos313Solutions
144
leanexplore_declaration
leanexplore:382811
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem erdos_313.variants.solution_42_2_3_7 : (42, {2, 3, 7}) ∈ erdos313Solutions := by norm_num [erdos313Solutions]
137
leanexplore_declaration
leanexplore:382812
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem erdos_313.variants.solution_6_2_3 : (6, {2, 3}) ∈ erdos313Solutions := by norm_num [erdos313Solutions]
310
leanexplore_declaration
leanexplore:382813
leanexplore_sqlite
leanexplore_declarations
/-- Are there infinitely many pairs `(m, P)` where `m ≥ 2` is an integer and `P` is a set of distinct primes such that the following equation holds: $\sum_{p \in P} \frac{1}{p} = 1 - \frac{1}{m}$? -/ @[category research open, AMS 11] theorem erdos_313 : answer(sorry) ↔ erdos313Solutions.Infinite := by sorry
396
leanexplore_declaration
leanexplore:382814
leanexplore_sqlite
leanexplore_declarations
/-- This set contains all solutions `(m, P)` to the Erdős problem 313. A solution is a pair where `m` is an integer `≥ 2` and `P` is a non-empty, finite set of distinct prime numbers, such that the sum of the reciprocals of the primes in `P` equals `1 - 1/m`. -/ def erdos313Solutions : Set (ℕ × Finset ℕ) := {(m, P) |...
642
leanexplore_declaration
leanexplore:382815
leanexplore_sqlite
leanexplore_declarations
/-- This is not true in general, as shown by Sándor [Sa97], who observed that the proper divisors of $120$ form a counterexample. More generally, Sándor shows that for any $n\geq 2$ there exists a finite set $A\subseteq \mathbb{N}\backslash\{1\}$ with $\sum_{k\in A}\frac{1}{k} < n$ and no partition into $n$ parts each ...
811
leanexplore_declaration
leanexplore:382816
leanexplore_sqlite
leanexplore_declarations
/-- This is not true if $A$ is a multiset, for example $2,3,3,5,5,5,5$. -/ @[category high_school, AMS 5 11] lemma erdos_316.variants.multiset : ∃ A : Multiset ℕ, 0 ∉ A ∧ 1 ∉ A ∧ (A.map ((1 : ℚ) / ·)).sum < 2 ∧ ∀ (A₁ A₂ : Multiset ℕ), A = A₁ + A₂ → 1 ≤ (A₁.map ((1 : ℚ) / ·)).sum ∨ 1 ≤ (A₂.map ((1 : ℚ)...
1,229
leanexplore_declaration
leanexplore:382817
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that if $A \subseteq \mathbb{N}\setminus\{1\}$ is a finite set with $\sum_{n \in A} \frac{1}{n} < 2$ then there is a partition $A=A_1 \sqcup A_2$ such that $\sum_{n \in A_i} \frac{1}{n} < 1$ for $i=1,2$? This is not true in general, as shown by Sándor [Sa97]. The minimal counterexample is $\{2,3,4,5,6,...
440
leanexplore_declaration
leanexplore:382818
leanexplore_sqlite
leanexplore_declarations
/-- `erdos_317.variants.claim2` fails for small $n$, for example \[\frac{1}{2}-\frac{1}{3}-\frac{1}{4}=-\frac{1}{12}.\] -/ @[category graduate, AMS 11] theorem erdos_317.variants.counterexample : ¬ (∀ δ : (Fin 4) → ℚ, δ '' Set.univ ⊆ {-1,0,1} → letI lhs := |∑ k, ((δ k : ℚ) / (k + 1))| lhs ≠ 0 → lhs > (1 : ℚ) /...
319
leanexplore_declaration
leanexplore:382819
leanexplore_sqlite
leanexplore_declarations
/-- Inequality in `erdos_317.variants.claim2` is obvious, the problem is strict inequality. -/ @[category undergraduate, AMS 11] lemma claim2_inequality : ∀ᶠ n in atTop, ∀ δ : (Fin n) → ℚ, δ '' Set.univ ⊆ {-1,0,1} → letI lhs := |∑ k, ((δ k : ℚ) / (k + 1))| lhs ≠ 0 → lhs ≥ 1 / (Icc 1 n).lcm id := by sorry
468
leanexplore_declaration
leanexplore:382820
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that for sufficiently large $n$, for any $\delta_k\in \{-1,0,1\}$, \[\left\lvert \sum_{1\leq k\leq n}\frac{\delta_k}{k}\right\rvert > \frac{1}{[1,\ldots,n]}\] whenever the left-hand side is not zero? -/ @[category research open, AMS 11] theorem erdos_317.variants.claim2 : answer(sorry) ↔ ∀ᶠ n in atTo...
451
leanexplore_declaration
leanexplore:382821
leanexplore_sqlite
leanexplore_declarations
/-- Is there some constant $c>0$ such that for every $n\geq 1$ there exists some $\delta_k\in \{-1,0,1\}$ for $1\leq k\leq n$ with \[0< \left\lvert \sum_{1\leq k\leq n}\frac{\delta_k}{k}\right\rvert < \frac{c}{2^n}?\] -/ @[category research open, AMS 11] theorem erdos_317 : answer(sorry) ↔ ∃ c > 0, ∀ n ≥ 1, ∃ δ : F...
184
leanexplore_declaration
leanexplore:382822
leanexplore_sqlite
leanexplore_declarations
/-- Does the set of squares excluding 1 have property `P₁`? -/ @[category research open, AMS 11] theorem erdos_318.parts.ii : answer(sorry) ↔ P₁ ({n | IsSquare n} \ {1}) := by sorry
222
leanexplore_declaration
leanexplore:382823
leanexplore_sqlite
leanexplore_declarations
/-- Every infinite arithmetic progression has property `P₁`. This is proved in [Sa82b]. -/ @[category research solved, AMS 11] theorem erdos_318.variants.infinite_AP {A : Set ℕ} (hA : A.IsAPOfLength ⊤) : P₁ A := by sorry
270
leanexplore_declaration
leanexplore:382824
leanexplore_sqlite
leanexplore_declarations
/-- There exists a set `A` with positive density that does not have property `P₁`. #TODO: prove this lemma by assuming `erdos_318.contain_single_even`. -/ @[category research solved, AMS 11] theorem erdos_318.parts.i : ∃ A : Set ℕ, HasPosDensity A ∧ ¬ P₁ A := by sorry
343
leanexplore_declaration
leanexplore:382825
leanexplore_sqlite
leanexplore_declarations
/-- For any set `A` containing exactly one even number, `A` does not have property `P₁`. Sattler [Sa82] credits this observation to Erdős, who presumably found this after [ErGr80]. -/ @[category research solved, AMS 11] theorem erdos_318.variants.contain_single_even {A : Set ℕ} (hA : {n | n ∈ A ∧ Even n}.ncard = 1) : ...
2,472
leanexplore_declaration
leanexplore:382826
leanexplore_sqlite
leanexplore_declarations
/-- The set of squares does not have property `P₁`. -/ @[category test, AMS 11] theorem erdos_318.variants.squares : ¬ P₁ ({n | IsSquare n}) := by simp only [P₁, not_forall, not_exists, not_and] -- Consider the function `f` that sends `1` to `1` and sends all other numbers to `-1`. refine ⟨fun n => if n = 1 then ...
176
leanexplore_declaration
leanexplore:382827
leanexplore_sqlite
leanexplore_declarations
/-- Sattler proved in [Sa75] that the set of odd numbers has property `P₁`. -/ @[category research solved, AMS 11] theorem erdos_318.variants.odd : P₁ {n | Odd n} := by sorry
149
leanexplore_declaration
leanexplore:382828
leanexplore_sqlite
leanexplore_declarations
/-- `ℕ` has property `P₁`. This is proved in [ErSt75]. -/ @[category research solved, AMS 11] theorem erdos_318.variants.univ : P₁ univ := by sorry
488
leanexplore_declaration
leanexplore:382829
leanexplore_sqlite
leanexplore_declarations
/-- A set `A : Set ℕ` is said to have propery `P₁` if for any nonconstant sequence `f : A → {-1, 1}`, one can always select a finite, nonempty subset `S ⊆ A \ {0}` such that `∑ n ∈ S, fₙ / n = 0`. This is defined in [Sa82b]. -/ def P₁ (A : Set ℕ) : Prop := ∀ (f : ℕ → ℝ), f ∘ (Subtype.val : (A \ {0} : Set ℕ) → ℕ) ≠ (f...
622
leanexplore_declaration
leanexplore:382830
leanexplore_sqlite
leanexplore_declarations
/-- Adenwalla has observed that a lower bound (on the maximum size of $A$) of $$ |A| \geq (1 - \frac{1}{e} + o(1))N $$ follows from the main result of Croot [Cr01]. [Cr01] Croot, III, Ernest S., _On unit fractions with denominators in short intervals_. Acta Arith. (2001), 99-114. -/ @[category research solved, AMS 5...
665
leanexplore_declaration
leanexplore:382831
leanexplore_sqlite
leanexplore_declarations
/-- Let $c(N)$ be the size of the largest $A\subseteq\{1, \dots, N\}$ such that there is a function $\delta : A \to \{-1, 1\}$ such that $$ \sum_{n\in A} \frac{\delta n}{n} = 0 $$ and $$ \sum_{n\in A'}\frac{\delta n}{n} \neq 0 $$ for all non-empty $A'\subsetneq A$. Find the simplest $g(N)$ such that $c(N) = o(g(N))...
662
leanexplore_declaration
leanexplore:382832
leanexplore_sqlite
leanexplore_declarations
/-- Let $c(N)$ be the size of the largest $A\subseteq\{1, \dots, N\}$ such that there is a function $\delta : A \to \{-1, 1\}$ such that $$ \sum_{n\in A} \frac{\delta n}{n} = 0 $$ and $$ \sum_{n\in A'}\frac{\delta n}{n} \neq 0 $$ for all non-empty $A'\subsetneq A$. Find the simplest $g(N)$ such that $c(N) = O(g(N))...
634
leanexplore_declaration
leanexplore:382833
leanexplore_sqlite
leanexplore_declarations
/-- Let $c(N)$ be the size of the largest $A\subseteq\{1, \dots, N\}$ such that there is a function $\delta : A \to \{-1, 1\}$ such that $$ \sum_{n\in A} \frac{\delta n}{n} = 0 $$ and $$ \sum_{n\in A'}\frac{\delta n}{n} \neq 0 $$ for all non-empty $A'\subsetneq A$. What is $\Theta(c(N))$?-/ @[category research open...
527
leanexplore_declaration
leanexplore:382834
leanexplore_sqlite
leanexplore_declarations
/-- What is the size of the largest $A\subseteq\{1, \dots, N\}$ such that there is a function $\delta : A \to \{-1, 1\}$ such that $$ \sum_{n\in A} \frac{\delta n}{n} = 0 $$ and $$ \sum_{n\in A'}\frac{\delta n}{n} \neq 0 $$ for all non-empty $A'\subsetneq A$. -/ @[category research open, AMS 5] theorem erdos_319 (N...
838
leanexplore_declaration
leanexplore:382835
leanexplore_sqlite
leanexplore_declarations
/-- Let $R(N)$ be the maximal such size. Results of Bleicher and Erdős from [BlEr75] and [BlEr76b] imply that $$ R(N) \le \frac{1}{\log 2} \log_r N \left( \frac{N}{\log N} \prod_{i=3}^{r} \log_i N \right), $$ valid for any $k \ge 4$ with $\log_k N \ge k$ and any $r \ge 1$ with $\log_{2r} N \ge 1$. (In these bounds $\lo...
769
leanexplore_declaration
leanexplore:382836
leanexplore_sqlite
leanexplore_declarations
/-- Let $R(N)$ be the maximal such size. Results of Bleicher and Erdős from [BlEr75] and [BlEr76b] imply that $$ \frac{N}{\log N} \prod_{i=3}^{k} \log_i N \le R(N), $$ valid for any $k \ge 4$ with $\log_k N \ge k$ and any $r \ge 1$ with $\log_{2r} N \ge 1$. (In these bounds $\log_i n$ denotes the $i$-fold iterated loga...
348
leanexplore_declaration
leanexplore:382837
leanexplore_sqlite
leanexplore_declarations
/-- Let $R(N)$ be the size of the largest $A\subseteq\{1, ..., N\}$ such that all sums $\sum_{n\in S} \frac{1}{n}$ are distinct for $S\subseteq A$. Find the simplest $g(N)$ such that $R(N) = o(g(N))$. -/ @[category research open, AMS 11] theorem erdos_321.variants.isLittleO : (fun N ↦ (R N : ℝ)) =o[atTop] (answer(s...
345
leanexplore_declaration
leanexplore:382838
leanexplore_sqlite
leanexplore_declarations
/-- Let $R(N)$ be the size of the largest $A\subseteq\{1, ..., N\}$ such that all sums $\sum_{n\in S} \frac{1}{n}$ are distinct for $S\subseteq A$. Find the simplest $g(N)$ such that $R(N) = O(g(N))$. -/ @[category research open, AMS 11] theorem erdos_321.variants.isBigO : (fun N ↦ (R N : ℝ)) =O[atTop] (answer(sorr...
317
leanexplore_declaration
leanexplore:382839
leanexplore_sqlite
leanexplore_declarations
/-- Let $R(N)$ be the size of the largest $A\subseteq\{1, ..., N\}$ such that all sums $\sum_{n\in S} \frac{1}{n}$ are distinct for $S\subseteq A$. What is $\Theta(R(N))$? -/ @[category research open, AMS 11] theorem erdos_321.variants.isTheta : (fun N ↦ (R N : ℝ)) =Θ[atTop] (answer(sorry) : ℕ → ℝ) := by sorry
266
leanexplore_declaration
leanexplore:382840
leanexplore_sqlite
leanexplore_declarations
/-- Let $R(N)$ be the size of the largest $A\subseteq\{1, ..., N\}$ such that all sums $\sum_{n\in S} \frac{1}{n}$ are distinct for $S\subseteq A$. What is $R(N)$? -/ @[category research open, AMS 11] theorem erdos_321 (N : ℕ) : R N = answer(sorry) := by sorry
307
leanexplore_declaration
leanexplore:382841
leanexplore_sqlite
leanexplore_declarations
/-- Let $R(N)$ be the size of the largest $A\subseteq\{1, ..., N\}$ such that all sums $\sum_{n\in S} \frac{1}{n}$ are distinct for $S\subseteq A$. -/ noncomputable def R (N : ℕ) : ℕ := sSup { #A | (A) (_ : A ⊆ Finset.Icc 1 N) (_ : Set.InjOn (fun (S : Finset ℕ) ↦ ∑ n ∈ S, (1 : ℚ) / n) A.powerset) }
231
leanexplore_declaration
leanexplore:382842
leanexplore_sqlite
leanexplore_declarations
/-- For $k>2$ it is not known if $f_{k,k}(x)=o(x)$. -/ @[category research open, AMS 11] theorem erdos_323.variants.k_gt_2 : answer(sorry) ↔ ∀ k > 2, (fun (x : ℕ) ↦ (f k k x : ℝ)) =o[atTop] (fun (x : ℕ) ↦ (x : ℝ)) := by sorry
327
leanexplore_declaration
leanexplore:382843
leanexplore_sqlite
leanexplore_declarations
/-- The case $k=2$ was resolved by Landau, who showed $f_{2,2}(x) \sim \frac{cx}{\sqrt{\log x}}$ for some constant $c>0$. -/ @[category research solved, AMS 11] theorem erdos_323.variants.k_eq_2 : ∃ c > 0, (fun (x : ℕ) ↦ (f 2 2 x : ℝ)) ~[atTop] (fun (x : ℕ) ↦ c * (x : ℝ) / Real.sqrt (Real.log (x : ℝ))) := by ...
307
leanexplore_declaration
leanexplore:382844
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that if $m < k$ then $f_{k,m}(x) \gg x^{m/k}$ for sufficiently large $x$? -/ @[category research open, AMS 11] theorem erdos_323.parts.ii : answer(sorry) ↔ ∀ k m : ℕ, 1 ≤ m → m < k → (fun (x : ℕ) ↦ (x : ℝ) ^ ((m : ℝ) / (k : ℝ))) =O[atTop] (fun (x : ℕ) ↦ (f k m x : ℝ)) := by sorry
429
leanexplore_declaration
leanexplore:382845
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that $f_{k,k}(x) \gg_\epsilon x^{1-\epsilon}$ for all $\epsilon>0$? This would have significant applications to Waring's problem. Erdős and Graham describe this as 'unattackable by the methods at our disposal'. -/ @[category research open, AMS 11] theorem erdos_323.parts.i : answer(sorry) ↔ ∀ k ≥ 1,...
241
leanexplore_declaration
leanexplore:382846
leanexplore_sqlite
leanexplore_declarations
/-- Let $1\leq m\leq k$ and $f_{k,m}(x)$ denote the number of integers $\leq x$ which are the sum of $m$ many nonnegative $k$th powers. -/ noncomputable def f (k m x : ℕ) : ℕ := { n : ℕ | n ≤ x ∧ ∃ (v : Fin m → ℕ), n = ∑ i, v i ^ k }.ncard
263
leanexplore_declaration
leanexplore:382847
leanexplore_sqlite
leanexplore_declarations
/-- Probably $f(x) = x^5$ has the property that the sums $f(a)+f(b)$ with $a < b$ nonnegative integers are distinct. -/ @[category research open, AMS 11] theorem erdos_324.variants.quintic : {(a, b) : ℕ × ℕ | a < b}.InjOn fun (a, b) => a ^ 5 + b ^ 5 := by sorry
319
leanexplore_declaration
leanexplore:382848
leanexplore_sqlite
leanexplore_declarations
/-- Does there exist a polynomial $f(x)\in\mathbb{Z}[x]$ such that all the sums $f(a)+f(b)$ with $a < b$ nonnegative integers are distinct? -/ @[category research open, AMS 11] theorem erdos_324 : answer(sorry) ↔ ∃ f : ℤ[X], {(a, b) : ℕ × ℕ | a < b}.InjOn fun (a, b) => f.eval (a : ℤ) + f.eval (b : ℤ) := by sorry
320
leanexplore_declaration
leanexplore:382849
leanexplore_sqlite
leanexplore_declarations
/-- For $k = 3$, the best known is due to Wooley [Wo15] [Wo15] Wooley, Trevor D., Sums of three cubes, II. Acta Arith. (2015), 73-100. -/ @[category research solved, AMS 11] theorem erdos_325.variants.wooley : (fun x : ℕ => (x : ℝ) ^ (0.917 : ℝ)) =O[atTop] (fun x => (cardIsSumThreePowerBelow 3 x : ℝ)) := by sorry
414
leanexplore_declaration
leanexplore:382850
leanexplore_sqlite
leanexplore_declarations
/-- Writing $f_{k, 3}(x)$ for the number of integers $\leq x$ which are the sum of three $k$th powers, is it even true that $f_{k, 3}(x) \gg_{\epsilon} x ^ (3 / k - \epsilon)$? -/ @[category research open, AMS 11] theorem erdos_325.variants.weaker : answer(sorry) ↔ ∀ ε > 0, ∀ k : ℕ, 3 ≤ k → (fun x : ℕ => (x : ℝ) ^ ...
361
leanexplore_declaration
leanexplore:382851
leanexplore_sqlite
leanexplore_declarations
/-- Writing $f_{k, 3}(x)$ for the number of integers $\leq x$ which are the sum of three $k$th powers, is it true that $f_{k, 3}(x) \gg x ^ (3 / k)$? -/ @[category research open, AMS 11] theorem erdos_325 : answer(sorry) ↔ ∀ k : ℕ, 3 ≤ k → (fun x : ℕ => (x : ℝ) ^ (3 / k : ℝ)) =O[atTop] (fun x : ℕ => (cardIsS...
185
leanexplore_declaration
leanexplore:382852
leanexplore_sqlite
leanexplore_declarations
/-- The number of integers $\leq x$ which are the sum of three $k$th powers. -/ noncomputable def cardIsSumThreePowerBelow (k x : ℕ) : ℕ := {n ∈ Set.Iic x | IsSumThreePower k n}.ncard
138
leanexplore_declaration
leanexplore:382853
leanexplore_sqlite
leanexplore_declarations
/-- A predicate for $n$ to be the sum of three $k$th powers. -/ def IsSumThreePower (k n : ℕ) : Prop := ∃ a b c, a ^ k + b ^ k + c ^ k = n
481
leanexplore_declaration
leanexplore:382854
leanexplore_sqlite
leanexplore_declarations
/-- Erdős originally asked whether this was true with `A = B`, but this was disproved by Cassels. -/ -- Formalisation note: This is trivially true for `x = 0` by taking `a = id`. Cassels' proof -- shows it for `0 < x` which is more interesting. @[category research solved, AMS 5 11] theorem erdos_326.variants.eq : ∃...
476
leanexplore_declaration
leanexplore:382855
leanexplore_sqlite
leanexplore_declarations
/-- Let $A \subset \mathbb{N}$ be an additive basis of order 2. Must there exist $B = \{b_1 < b_2 < \dots\} \subseteq A$ which is also a basis such that $\lim_{k\to\infty} \frac{b_k}{k^2}$ does not exist? -/ @[category research open, AMS 5 11] theorem erdos_326 : answer(sorry) ↔ ∀ (A : Set ℕ), A.IsAddBasisOfOrder 2 → ...
205
leanexplore_declaration
leanexplore:382856
leanexplore_sqlite
leanexplore_declarations
/-- It is possible to construct a Sidon set with positive density. -/ @[category undergraduate, AMS 5 11] theorem exists_sidon_pos_density : ∃ (A : Set ℕ), IsSidon A ∧ 0 < sidonUpperDensity A := by sorry
400
leanexplore_declaration
leanexplore:382857
leanexplore_sqlite
leanexplore_declarations
/-- The converse: if the maximum density is 1, then any finite Sidon set can be embedded in a perfect difference set. -/ @[category research open, AMS 5 11] theorem erdos_329.variants.converse_implication : (sSup {sidonUpperDensity A | (A : Set ℕ) (_ : IsSidon A)} = 1) → (∀ (A : Finset ℕ), IsSidon (A : Set ℕ) →...
397
leanexplore_declaration
leanexplore:382858
leanexplore_sqlite
leanexplore_declarations
/-- If any finite Sidon set can be embedded in a perfect difference set, then the maximum density would be 1. -/ @[category research open, AMS 5 11] theorem erdos_329.variants.of_sub_perfectDifferenceSet : (∀ (A : Finset ℕ), IsSidon (A : Set ℕ) → ∃ (D : Set ℕ) (n : ℕ), ↑A ⊆ D ∧ IsPerfectDifferenceSet D n) → ...
355
leanexplore_declaration
leanexplore:382859
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Turán [ErTu41] proved the upper bound of 1. [ErTu41] Erdős, P. and Turán, P., On a problem of Sidon in additive number theory, and on some related problems. J. London Math. Soc. (1941), 212-215. -/ @[category research solved, AMS 5 11] theorem erdos_329.variants.turan_1941 : ∀ (A : Set ℕ), IsSidon A → si...
429
leanexplore_declaration
leanexplore:382860
leanexplore_sqlite
leanexplore_declarations
/-- Krückeberg ([Kr61]) exhibited an infinite Sidon set `A` with `sidonUpperDensity A = 1 / Real.sqrt 2`, improving Erdős’ earlier `1 / 2` lower bound. [Kr61] Krückeberg, Fritz, $B\sb{2}$-Folgen und verwandte Zahlenfolgen. J. Reine Angew. Math. (1961), 53-60. -/ @[category research solved, AMS 5 11] theorem erdos_329....
292
leanexplore_declaration
leanexplore:382861
leanexplore_sqlite
leanexplore_declarations
/-- Erdős proved that upper density `1 / 2` can be attained; in particular, there exists a Sidon set whose upper density is *at least* `1 / 2`. -/ @[category research solved, AMS 5 11] theorem erdos_329.variants.lower_bound : ∃ (A : Set ℕ), IsSidon A ∧ sidonUpperDensity A ≥ 1/2 := by sorry
264
leanexplore_declaration
leanexplore:382862
leanexplore_sqlite
leanexplore_declarations
/-- **Erdős Problem 329.** Let `A ⊆ ℕ` be a Sidon set. How large can `lim sup_{N → ∞} |A ∩ {1,…,N}| / N^{1/2}` be? -/ @[category research open, AMS 5 11] theorem erdos_329 : sSup {sidonUpperDensity A | (A : Set ℕ) (_ : IsSidon A)} = answer(sorry) := by sorry
168
leanexplore_declaration
leanexplore:382863
leanexplore_sqlite
leanexplore_declarations
/-- The upper density of a Sidon set `A`, normalized by `√N`. -/ noncomputable def sidonUpperDensity (A : Set ℕ) : ℝ := limsup (fun N => sqrtPartialDensity A N) atTop
285
leanexplore_declaration
leanexplore:382864
leanexplore_sqlite
leanexplore_declarations
/-- The partial density of a Sidon set `A` up to `N`, normalized by dividing by `√N` instead of `N`. This measures how close the set comes to the optimal density for Sidon sets. -/ noncomputable def sqrtPartialDensity (A : Set ℕ) (N : ℕ) : ℝ := (A ∩ Set.Icc 1 N).ncard / (N : ℝ).sqrt
489
leanexplore_declaration
leanexplore:382865
leanexplore_sqlite
leanexplore_declarations
/-- Ruzsa proved that any additive complement $A$ to the primes must satisfy $\liminf_{N \to \infty} \frac{|A \cap \{1, \ldots, N\}|}{\log N} \geq e^\gamma$, where $\gamma$ is the Euler-Mascheroni constant. -/ @[category research solved, AMS 11] theorem erdos_32.variants.ruzsa : ∀ A : Set ℕ, IsAdditiveComplementToP...
391
leanexplore_declaration
leanexplore:382866
leanexplore_sqlite
leanexplore_declarations
/-- Can the bound $O(\log N)$ be achieved for an additive complement to the primes? [Guy04] writes that Erdős offered \$50 for the solution. -/ @[category research open, AMS 11] theorem erdos_32.variants.log_bound : answer(sorry) ↔ ∃ A : Set ℕ, IsAdditiveComplementToPrimes A ∧ (fun N => (((Finset.Icc 1 N).filte...
440
leanexplore_declaration
leanexplore:382867
leanexplore_sqlite
leanexplore_declarations
/-- Does there exist a set $A \subseteq \mathbb{N}$ such that $|A \cap \{1, \ldots, N\}| = o((\log N)^2)$ and every sufficiently large integer can be written as $p + a$ for some prime $p$ and $a \in A$? -/ @[category research open, AMS 11] theorem erdos_32 : answer(sorry) ↔ ∃ A : Set ℕ, IsAdditiveComplementToPrimes...
386
leanexplore_declaration
leanexplore:382868
leanexplore_sqlite
leanexplore_declarations
/-- Must every additive complement $A$ to the primes satisfy $\liminf_{N \to \infty} \frac{|A \cap \{1, \ldots, N\}|}{\log N} > 1$? -/ @[category research solved, AMS 11] theorem erdos_32.variants.liminf_gt_one : ∀ A : Set ℕ, IsAdditiveComplementToPrimes A → (1 : EReal) < liminf (fun N => (((Finset.Icc 1 N).fil...
381
leanexplore_declaration
leanexplore:382869
leanexplore_sqlite
leanexplore_declarations
/-- Erdős proved in [Erd54] that there exists an additive complement $A$ to the primes with $|A \cap \{1, \ldots, N\}| = O((\log N)^2)$. -/ @[category research solved, AMS 11] theorem erdos_32.variants.log_squared : ∃ A : Set ℕ, IsAdditiveComplementToPrimes A ∧ (fun N => (((Finset.Icc 1 N).filter (· ∈ A)).card ...
288
leanexplore_declaration
leanexplore:382870
leanexplore_sqlite
leanexplore_declarations
/-- A set $A \subseteq \mathbb{N}$ is an _additive complement to the primes_ if every sufficiently large natural number can be written as $p + a$ for some prime $p$ and $a \in A$. -/ def IsAdditiveComplementToPrimes (A : Set ℕ) : Prop := ∀ᶠ n in atTop, ∃ p, p.Prime ∧ ∃ a ∈ A, n = p + a
430
leanexplore_declaration
leanexplore:382871
leanexplore_sqlite
leanexplore_declarations
/-- Does there exist a minimal basis $A \subset \mathbb{N}$ with positive density such that, for any $n \in A$, the (upper) density of integers which cannot be represented without using $n$ is positive? -/ @[category research open, AMS 5 11] theorem erdos_330_statement : answer(sorry) ↔ ∃ (A : Set ℕ), ∃ h, MinAsymp...
294
leanexplore_declaration
leanexplore:382872
leanexplore_sqlite
leanexplore_declarations
/-- An asymptotic additive basis of order `h` is minimal when one cannot obtain an asymptotic additive basis by removing any element from it. -/ def MinAsymptoticAddBasisOfOrder (A : Set ℕ) (h : ℕ) : Prop := IsAsymptoticAddBasisOfOrder A h ∧ ∀ n ∈ A, ¬ IsAsymptoticAddBasisOfOrder (A \ {n}) h
196
leanexplore_declaration
leanexplore:382873
leanexplore_sqlite
leanexplore_declarations
/-- Integers **not** representable as a finite sum of elements with at most `h` terms of `A` **while avoiding** `n`. -/ def UnrepWithout (A : Set ℕ) (n h: ℕ) : Set ℕ := {m | ¬ Rep (A \ {n}) m h}
186
leanexplore_declaration
leanexplore:382874
leanexplore_sqlite
leanexplore_declarations
/-- `Rep A m h` means `m` is a sum of at most `h` elements of `A`x. -/ def Rep (A : Set ℕ) (m h : ℕ) : Prop := ∃ k : ℕ, k ≤ h ∧ ∃ f : Fin k → ℕ, (∀ i, f i ∈ A) ∧ (∑ i : Fin k, f i) = m
687
leanexplore_declaration
leanexplore:382875
leanexplore_sqlite
leanexplore_declarations
/-- Ruzsa suggests that a non-trivial variant of this problem arises if one imposes the stronger condition that $|A \cap \{1,\dots,N\}| \sim c_A N^{1/2}$ for some constant $c_A>0$, and similarly for $B$. -/ @[category research open, AMS 11] theorem erdos_331.variants.ruzsa : answer(sorry) ↔ ∀ A B : Set ℕ, ...
1,256
leanexplore_declaration
leanexplore:382876
leanexplore_sqlite
leanexplore_declarations
/-- Let $A,B\subseteq \mathbb{N}$ such that for all large $N$\[\lvert A\cap \{1,\ldots,N\}\rvert \gg N^{1/2}\]and\[\lvert B\cap \{1,\ldots,N\}\rvert \gg N^{1/2}.\] Is it true that there are infinitely many solutions to $a_1-a_2=b_1-b_2\neq 0$ with $a_1,a_2\in A$ and $b_1,b_2\in B$? Ruzsa has observed that there is a s...
619
leanexplore_declaration
leanexplore:382877
leanexplore_sqlite
leanexplore_declarations
/-- Let $A\subseteq \mathbb{N}$ and $D(A)$ be the set of those numbers which occur infinitely often as $a_1 - a_2$ with $a_1, a_2\in A$. What conditions on $A$ are sufficient to ensure $D(A)$ has bounded gaps? This is formalised here using the `answer(sorry)` mechanism. In order to solve this problem one has to provid...