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
227
leanexplore_declaration
leanexplore:382475
leanexplore_sqlite
leanexplore_declarations
/-- Let $k≥3$. Are there $k$ consecutive primes in arithmetic progression? -/ @[category research open, AMS 5 11] theorem erdos_141 : answer(sorry) ↔ ∀ k ≥ 3, ∃ (s : Set ℕ), s.IsAPAndPrimeProgressionOfLength k := by sorry
405
leanexplore_declaration
leanexplore:382476
leanexplore_sqlite
leanexplore_declarations
/-- There are 3 consecutive primes in arithmetic progression. -/ @[category test, AMS 5 11] theorem exists_three_consecutive_primes_in_ap : ∃ (s : Set ℕ), s.IsAPAndPrimeProgressionOfLength 3 := by use {3, 5, 7} constructor · use 3, 2 unfold Set.IsAPOfLengthWith constructor · aesop · norm_num [exis...
244
leanexplore_declaration
leanexplore:382477
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that a set `s` is both an arithmetic progression of length `l` and a progression of `l` consecutive primes. -/ def Set.IsAPAndPrimeProgressionOfLength (s : Set ℕ) (l : ℕ) := s.IsAPOfLength l ∧ s.IsPrimeProgressionOfLength l
428
leanexplore_declaration
leanexplore:382478
leanexplore_sqlite
leanexplore_declarations
/-- The first three odd primes are an example of three consecutive primes. -/ @[category test, AMS 5 11] theorem first_three_odd_primes : ({3, 5, 7} : Set ℕ).IsPrimeProgressionOfLength 3 := by use 1 constructor · aesop · norm_num [exists_lt_succ_right, or_assoc, eq_comm, Set.insert_def, show (2).nth Nat.Pri...
302
leanexplore_declaration
leanexplore:382479
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that a set `s` consists of `l` consecutive primes (possibly infinite). This predicate does not assert a specific value for the first term. -/ def Set.IsPrimeProgressionOfLength (s : Set ℕ) (l : ℕ∞) : Prop := ∃ a, ENat.card s = l ∧ s = {(a + n).nth Nat.Prime | (n : ℕ) (_ : n < l)}
318
leanexplore_declaration
leanexplore:382480
leanexplore_sqlite
leanexplore_declarations
/-- Prove an asymptotic formula for $r_3(N)$, the largest possible size of a subset of $\{1, \dots, N\}$ that does not contain any non-trivial $3$-term arithmetic progression. -/ @[category research open, AMS 11] theorem erdos_142.variants.three : (fun N => (r 3 N : ℝ)) =Θ[atTop] (answer(sorry) : ℕ → ℝ) := by sorry
356
leanexplore_declaration
leanexplore:382481
leanexplore_sqlite
leanexplore_declarations
/-- Find functions $f_k$, such that $r_k(N) = O_k(f_k)$, where $r_k(N)$ the largest possible size of a subset of $\{1, \dots, N\}$ that does not contain any non-trivial $k$-term arithmetic progression. -/ @[category research open, AMS 11] theorem erdos_142.variants.upper (k : ℕ) : (fun N => (r k N : ℝ)) =O[atTop] (...
361
leanexplore_declaration
leanexplore:382482
leanexplore_sqlite
leanexplore_declarations
/-- Show that $r_k(N) = o_k(N / \log N)$, where $r_k(N)$ the largest possible size of a subset of $\{1, \dots, N\}$ that does not contain any non-trivial $k$-term arithmetic progression. -/ @[category research open, AMS 11] theorem erdos_142.variants.lower (k : ℕ) (hk : 1 < k) : (fun N => (r k N : ℝ)) =o[atTop] (fu...
311
leanexplore_declaration
leanexplore:382483
leanexplore_sqlite
leanexplore_declarations
/-- Prove an asymptotic formula for $r_k(N)$, the largest possible size of a subset of $\{1, \dots, N\}$ that does not contain any non-trivial $k$-term arithmetic progression. -/ @[category research open, AMS 11] theorem erdos_142 (k : ℕ) : (fun N => (r k N : ℝ)) =Θ[atTop] (answer(sorry) : ℕ → ℝ) := by sorry
221
leanexplore_declaration
leanexplore:382485
leanexplore_sqlite
leanexplore_declarations
/-- Or $$ \sum_{x \in A} \frac{1}{x \log x} < \infty, $$ -/ @[category research open, AMS 11] theorem erdos_143.parts.ii (A : Set ℝ) (h : WellSeparatedSet A) : Summable fun (x : A) ↦ 1 / (x * Real.log x) := by sorry
261
leanexplore_declaration
leanexplore:382486
leanexplore_sqlite
leanexplore_declarations
/-- Does this imply that $$ \liminf \frac{|A \cap [1,x]|}{x} = 0? $$ -/ @[category research open, AMS 11] theorem erdos_143.parts.i : answer(sorry) ↔ ∀ (A : Set ℝ), WellSeparatedSet A → liminf (fun x => (A ∩ (Set.Icc 1 x)).ncard / x) atTop = 0 := by sorry
317
leanexplore_declaration
leanexplore:382487
leanexplore_sqlite
leanexplore_declarations
/-- Let $A \subseteq (1, \infty)$ be a countably infinite set such that for all $x\neq y\in A$ and integers $k \geq 1$ we have $|kx - y| \geq 1$. -/ def WellSeparatedSet (A : Set ℝ) : Prop := (A ⊆ (Set.Ioi (1 : ℝ))) ∧ Set.Infinite A ∧ Set.Countable A ∧ (∀ x ∈ A, ∀ y ∈ A, x ≠ y → (∀ k ≥ (1 : ℕ), 1 ≤ |k * x - y|))
474
leanexplore_declaration
leanexplore:382488
leanexplore_sqlite
leanexplore_declarations
/-- Greaves, Harman, and Huxley [GHH97] showed that this is true for $0 \leq \alpha\leq 11/3$. [GHH97] Greaves, G. R. H. and Harman, G. and Huxley, M. N., Sieve Methods, Exponential Sums, and their Applications in Number Theory. (1997). -/ @[category research solved, AMS 11] theorem erdos_145.variants.le_eleven_thir...
418
leanexplore_declaration
leanexplore:382489
leanexplore_sqlite
leanexplore_declarations
/-- Hooley [Ho73] extended this to all $0 \leq \alpha\leq 3$. [Ho73] Hooley, Christopher, On the intervals between consecutive terms of sequences. Proc. Symp. Pure Math, vol. 24, pp. 129-140. 1973. -/ @[category research solved, AMS 11] theorem erdos_145.variants.le_three {α : ℝ} (hα : α ∈ Set.Icc 0 3) : ∃ β : ℝ, ...
390
leanexplore_declaration
leanexplore:382490
leanexplore_sqlite
leanexplore_declarations
/-- Erdős [Er51] proved this for all $0\leq \alpha\leq 2$. [Er51] Erdös, P., Some problems and results in elementary number theory. Publ. Math. Debrecen (1951), 103-109. -/ @[category research solved, AMS 11] theorem erdos_145.variants.le_two {α : ℝ} (hα : α ∈ Set.Icc 0 2) : ∃ β : ℝ, atTop.Tendsto (fun x :...
388
leanexplore_declaration
leanexplore:382491
leanexplore_sqlite
leanexplore_declarations
/-- Let $s_1 < s_2 < \cdots$ be the sequence of squarefree numbers. Is it true that, for any $\alpha\geq 0$, $$ \lim_{x\to\infty} \frac{1}{x}\sum_{s_n\leq x}(s_{n+1}-s_n)^\alpha $$ exists? -/ @[category research open, AMS 11] theorem erdos_145 : answer(sorry) ↔ ∀ α ≥ (0 : ℝ), ∃ β : ℝ, atTop.Tendsto (fun x : ℝ...
199
leanexplore_declaration
leanexplore:382492
leanexplore_sqlite
leanexplore_declarations
/-- Let $A(x)$ denote the set of indices $n$ for which $s_n \leq x$. -/ noncomputable abbrev A (x : ℝ) : Finset ℕ := (Finset.Icc 0 ⌊x⌋₊).preimage s (Nat.nth_injective Nat.squarefree_infinite).injOn
129
leanexplore_declaration
leanexplore:382493
leanexplore_sqlite
leanexplore_declarations
/-- Let $s_1 < s_2 < \cdots$ be the sequence of squarefree numbers. -/ noncomputable abbrev s (n : ℕ) : ℕ := Nat.nth Squarefree n
237
leanexplore_declaration
leanexplore:382494
leanexplore_sqlite
leanexplore_declarations
/-- Is it possible that $|\{1,\ldots,N\} \setminus B| = o(N^\frac{1}{2})$? -/ @[category research open, AMS 11] theorem erdos_14.parts.ii : answer(sorry) ↔ ∃ (A : Set ℕ), IsLittleO atTop (nonUniqueSumCount A) squareRoot := by sorry
418
leanexplore_declaration
leanexplore:382495
leanexplore_sqlite
leanexplore_declarations
/-- Let $A ⊆ \mathbb{N}$. Let $B ⊆ \mathbb{N}$ be the set of integers which are representable in exactly one way as the sum of two elements from $A$. Is it true that for all $\epsilon > 0$ and large $N$, $|\{1,\ldots,N\} \setminus B| \gg_\epsilon N^{1/2 - \epsilon}$? -/ @[category research open, AMS 11] theorem erdos_1...
57
leanexplore_declaration
leanexplore:382496
leanexplore_sqlite
leanexplore_declarations
noncomputable def squareRoot (N : ℕ) : ℝ := Real.sqrt N
73
leanexplore_declaration
leanexplore:382497
leanexplore_sqlite
leanexplore_declarations
noncomputable def almostSquareRoot (ε : ℝ) (N : ℕ) : ℝ := N ^ (1/2 - ε)
347
leanexplore_declaration
leanexplore:382498
leanexplore_sqlite
leanexplore_declarations
/-- The number of integers in $\{1,\ldots,N\}$ which are not representable in exactly one way as the sum of two elements from $A$ (either because they are not representable at all, or because they are representable in more than one way). -/ noncomputable def nonUniqueSumCount (A : Set ℕ) (N : ℕ) : ℝ := ((Set.Icc 1 N)...
179
leanexplore_declaration
leanexplore:382499
leanexplore_sqlite
leanexplore_declarations
/-- Must `f n ≫ n ^ 2`? -/ @[category research open, AMS 5] theorem erdos_152.variants.square : answer(sorry) ↔ (fun n => f n : ℕ → ℝ) ≫ (fun n => n ^ 2 : ℕ → ℝ) := by sorry
131
leanexplore_declaration
leanexplore:382500
leanexplore_sqlite
leanexplore_declarations
/-- Must `lim f n = ∞`? -/ @[category research open, AMS 5] theorem erdos_152 : answer(sorry) ↔ Tendsto f atTop atTop := by sorry
291
leanexplore_declaration
leanexplore:382501
leanexplore_sqlite
leanexplore_declarations
/-- Define `f n` to be the minimum of `|{s | s - 1 ∉ A + A, s ∈ A + A, s + 1 ∉ A + A}|` as `A` ranges over all Sidon sets of size `n`. -/ noncomputable def f (n : ℕ) : ℕ := ⨅ A : {A : Set ℕ | A.ncard = n ∧ IsSidon A}, {s : ℕ | s - 1 ∉ A.1 + A.1 ∧ s ∈ A.1 + A.1 ∧ s + 1 ∉ A.1 + A.1}.ncard
131
leanexplore_declaration
leanexplore:382502
leanexplore_sqlite
leanexplore_declarations
/-- Must `lim f n = ∞`? -/ @[category research open, AMS 5] theorem erdos_153 : answer(sorry) ↔ Tendsto f atTop atTop := by sorry
421
leanexplore_declaration
leanexplore:382503
leanexplore_sqlite
leanexplore_declarations
/-- Define `f n` to be the minimum of `∑ (i : Set.Ico 1 ((A + A).card), (s i - s (i - 1)) ^ 2 / n` as `A` ranges over all Sidon sets of size `n`, where `s` is an order embedding from `Fin n` into `A`. -/ noncomputable def f (n : ℕ) : ℝ := ⨅ A : {A : Finset ℕ | A.card = n ∧ IsSidon (A : Set ℕ)}, let s := (A.1 + A).ord...
239
leanexplore_declaration
leanexplore:382504
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that for every $k \geq 1$ we have $$ F(N + k) \leq F(N) + 1 $$ for all sufficiently large $N$? -/ @[category research open, AMS 5] theorem erdos_155 : answer(sorry) ↔ ∀ k ≥ 1, ∀ᶠ N in atTop, F (N + k) ≤ F N + 1 := by sorry
160
leanexplore_declaration
leanexplore:382505
leanexplore_sqlite
leanexplore_declarations
/-- Let $F(N)$ be the size of the largest Sidon subset of $\{1, \dots, N\}$. -/ noncomputable abbrev F (N : ℕ) : ℕ := Finset.maxSidonSubsetCard (Finset.Icc 1 N)
1,238
leanexplore_declaration
leanexplore:382506
leanexplore_sqlite
leanexplore_declarations
/-- As a corollary of `erdos_158.isSidon'`, we can prove that `liminf |A ∩ {1, ..., N}| * N ^ (- 1 / 2) = 0` for any infinite Sidon set `A`. -/ @[category research solved, AMS 5] theorem erdos_158.variants.isSidon {A : Set ℕ} (hAinf : A.Infinite) (hAsid : IsSidon A) : liminf (fun N : ℕ => (A ∩ .Iio N).ncard * (N : ...
395
leanexplore_declaration
leanexplore:382507
leanexplore_sqlite
leanexplore_declarations
/-- Let `A` be an infinite Sidon set. Then `liminf |A ∩ {1, ..., N}| * N ^ (- 1 / 2) * (log N) ^ (1 / 2) < ∞`. This is proved in [ESS94]. -/ @[category research solved, AMS 5] theorem erdos_158.variants.isSidon' {A : Set ℕ} (hAinf : A.Infinite) (hAsid : IsSidon A) : liminf (fun N ↦ ENNReal.ofReal ((A ∩ .Iio N).ncar...
294
leanexplore_declaration
leanexplore:382508
leanexplore_sqlite
leanexplore_declarations
/-- Let `A` be an infinite `B₂[2]` set. Must `liminf |A ∩ {1, ..., N}| * N ^ (- 1 / 2) = 0`? -/ @[category research open, AMS 5] theorem erdos_158 : answer(sorry) ↔ ∀ A : Set ℕ, A.Infinite → B2 2 A → liminf (fun N : ℕ => (A ∩ .Iio N).ncard * (N : ℝ) ^ (- 1 / 2 : ℝ)) atTop = 0 := by sorry
620
leanexplore_declaration
leanexplore:382509
leanexplore_sqlite
leanexplore_declarations
/-- A set is `B₂[1]` iff it is Sidon. -/ @[category API, AMS 5, simp] lemma b2_one {A : Set ℕ} : B2 1 A ↔ IsSidon A where mp hA a₁ ha₁ a₂ ha₂ b₁ hb₁ b₂ hb₂ h := by wlog h₁ : a₁ ≤ b₁ · have := this hA _ hb₁ _ ha₂ _ ha₁ _ hb₂ grind wlog h₂ : a₂ ≤ b₂ · have := this hA _ ha₁ _ hb₂ _ hb₁ _ ha₂ ...
279
leanexplore_declaration
leanexplore:382510
leanexplore_sqlite
leanexplore_declarations
/-- A set `A ⊆ ℕ` is said to be a `B₂[g]` set if for all `n`, the equation `a + a' = n, a ≤ a', a, a' ∈ A` has at most `g` solutions. This is defined in [ESS94]. -/ def B2 (g : ℕ) (A : Set ℕ) : Prop := ∀ n, {x : ℕ × ℕ | x.1 + x.2 = n ∧ x.1 ≤ x.2 ∧ x.1 ∈ A ∧ x.2 ∈ A}.encard ≤ g
419
leanexplore_declaration
leanexplore:382511
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that $\sum_{n=1}^\infty(-1)^n\frac{n}{p_n}$ converges, where $p_n$ is the sequence of primes? Note: In the problem statement, $p_n$ is the $n$-th prime, indexed such that $p_1=2, p_2=3, \ldots$. We 0-index here to reflect how Nat.nth works. -/ @[category research open, AMS 11] theorem erdos_15 : answer(...
453
leanexplore_declaration
leanexplore:382512
leanexplore_sqlite
leanexplore_declarations
/-- The observation of Zachary Hunter in [that question](https://mathoverflow.net/q/410808) coupled with the bounds of Kelley-Meka [KeMe23](https://arxiv.org/abs/2302.05537) imply that $$h(N) \gg \exp(c(\log N)^{\frac 1 {12}})$$ for some $c > 0$. -/ @[category research solved, AMS 5 51] theorem erdos_160.variants.known...
436
leanexplore_declaration
leanexplore:382513
leanexplore_sqlite
leanexplore_declarations
/-- Estimate $h(n)$ by finding a better lower bound. -/ @[category research open, AMS 5 51] theorem erdos_160.better_lower: let lower_bound : ℕ → ℝ := answer(sorry) (lower_bound =O[atTop] fun n => (erdos_160.h n : ℝ)) ∧ ∀ c > 0, (fun (n : ℕ) => exp (c * log n ^ ((1 : ℝ) / 12))) =O[atTop] (fun n => (erdo...
301
leanexplore_declaration
leanexplore:382514
leanexplore_sqlite
leanexplore_declarations
/-- Estimate $h(n)$ by finding a better upper bound. -/ @[category research open, AMS 5 51] theorem erdos_160.better_upper : let upper_bound : ℕ → ℝ := answer(sorry) (fun n => (erdos_160.h n : ℝ)) =O[atTop] upper_bound ∧ upper_bound =o[atTop] fun n => (n : ℝ) ^ ((2 : ℝ) / 3) := by sorry
330
leanexplore_declaration
leanexplore:382515
leanexplore_sqlite
leanexplore_declarations
/-- On [Mathoverflow](https://mathoverflow.net/a/410815) user [leechlattice](https://mathoverflow.net/users/125498/leechlattice) shows that $h(n) \ll n^{\frac 2 3}$. -/ @[category research solved, AMS 5 51] theorem erdos_160.known_upper : (fun n => (erdos_160.h n : ℝ)) =O[atTop] fun n => (n : ℝ) ^ ((2 : ℝ) / 3) := ...
438
leanexplore_declaration
leanexplore:382516
leanexplore_sqlite
leanexplore_declarations
/-- Let $h(n)$ be the smallest $k$ such that $\{1,\ldots,n\}$ can be coloured with $k$ colours so that every four-term arithmetic progression must contain at least three distinct colours. -/ noncomputable def erdos_160.h (n : ℕ) : ℕ := sInf {k | ∃ (colouring : Finset.Icc 1 n → Fin k), ∀ (progression : Set ℕ), (...
259
leanexplore_declaration
leanexplore:382517
leanexplore_sqlite
leanexplore_declarations
/-- The limit $F(N)/N$ as $N \to \infty$ exists. (proved by Graham, Spencer, and Witsenhausen) -/ @[category research solved, AMS 5 11] theorem erdos_168.variants.limit_exists : ∃ x, Filter.Tendsto (fun N => (F N / N : ℝ)) Filter.atTop (𝓝 x) := by sorry
215
leanexplore_declaration
leanexplore:382518
leanexplore_sqlite
leanexplore_declarations
/-- Is the limit $F(N)/N$ as $N \to \infty$ irrational? -/ @[category research open, AMS 5 11] theorem erdos_168.parts.ii : answer(sorry) ↔ Irrational (Filter.atTop.limsup (fun N => (F N / N : ℝ))) := by sorry
203
leanexplore_declaration
leanexplore:382519
leanexplore_sqlite
leanexplore_declarations
/-- What is the limit $F(N)/N$ as $N \to \infty$? -/ @[category research open, AMS 11] theorem erdos_168.parts.i : Filter.Tendsto (fun N => (F N / N : ℝ)) Filter.atTop (𝓝 answer(sorry)) := by sorry
354
leanexplore_declaration
leanexplore:382520
leanexplore_sqlite
leanexplore_declarations
/-- Sanity check: if `S` is a maximal non ternary subset of `{1,..., N}` then `F N` is given by the cardinality of `S` -/ @[category API, AMS 5 11] lemma F_eq_card (N : ℕ) (S : Finset ℕ) (hS : S ⊆ Finset.Icc 1 N) (hS' : NonTernary S) (hS'' : ∀ T, T ⊆ Finset.Icc 1 N → NonTernary T → S.card ≤ T.card → T.card = S.card...
559
leanexplore_declaration
leanexplore:382521
leanexplore_sqlite
leanexplore_declarations
/-- Sanity check: elements of `IntervalNonTernarySets N` are precisely non ternary subsets of `{1,...,N}` -/ @[category API, AMS 5 11] lemma mem_IntervalNonTernarySets_iff (N : ℕ) (S : Finset ℕ) : S ∈ IntervalNonTernarySets N ↔ NonTernary S ∧ S ⊆ Finset.Icc 1 N := by refine ⟨fun h => ?_, fun h => by simpa [h, Int...
52
leanexplore_declaration
leanexplore:382522
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 5 11] lemma F_3 : F 3 = 2 := rfl
52
leanexplore_declaration
leanexplore:382523
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 5 11] lemma F_2 : F 2 = 2 := rfl
52
leanexplore_declaration
leanexplore:382524
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 5 11] lemma F_1 : F 1 = 1 := rfl
52
leanexplore_declaration
leanexplore:382525
leanexplore_sqlite
leanexplore_declarations
@[category API, AMS 5 11] lemma F_0 : F 0 = 0 := rfl
140
leanexplore_declaration
leanexplore:382526
leanexplore_sqlite
leanexplore_declarations
/--`F N` is the size of the largest non ternary subset of `{1,...,N}`. -/ abbrev F (N : ℕ) : ℕ := (IntervalNonTernarySets N).sup Finset.card
348
leanexplore_declaration
leanexplore:382527
leanexplore_sqlite
leanexplore_declarations
/--`IntervalNonTernarySets N` is the (fin)set of non ternary subsets of `{1,...,N}`. The advantage of defining it as below is that some proofs (e.g. that of `F 3 = 2`) become `rfl`. -/ def IntervalNonTernarySets (N : ℕ) : Finset (Finset ℕ) := (Finset.Icc 1 N).powerset.filter fun S => ∀ n ∈ Finset.Icc 1 (N / 3 : ℕ...
207
leanexplore_declaration
leanexplore:382528
leanexplore_sqlite
leanexplore_declarations
/-- Say a finite set of natural numbers is *non ternary* if it contains no 3-term arithmetic progression of the form `n, 2n, 3n`. -/ def NonTernary (S : Finset ℕ) : Prop := ∀ n : ℕ, n ∉ S ∨ 2*n ∉ S ∨ 3*n ∉ S
392
leanexplore_declaration
leanexplore:382529
leanexplore_sqlite
leanexplore_declarations
/-- The existence of the limit has been proved by Erdős and Gál [ErGa48]. The lower bound has been proven by Leech [Le56], who refined an argument of Rédei and Rényi. The upper bound is due to Wichmann [Wi63]. -/ @[category research solved, AMS 05] lemma erdos170.existing_bounds : ∃ x ∈ Set.Icc lower_bound upper_boun...
116
leanexplore_declaration
leanexplore:382530
leanexplore_sqlite
leanexplore_declarations
/-- A known upper bound obtained by constructing Wichmann's Rulers [Wi63]. -/ noncomputable abbrev upper_bound := √3
157
leanexplore_declaration
leanexplore:382531
leanexplore_sqlite
leanexplore_declarations
/-- A known lower bound to the limit by Leech [Le56], which is $1.56\dots$. -/ noncomputable abbrev lower_bound := √(sSup {2 * (1 - Real.sin θ / θ) | θ ≠ 0})
232
leanexplore_declaration
leanexplore:382532
leanexplore_sqlite
leanexplore_declarations
/-- The problem is to determine the limit of the sequence $\frac{F(N)}{\sqrt{N}}$ as $N \to \infty$. -/ @[category research open, AMS 05] lemma erdos170 : Filter.Tendsto (fun N => F N / √N) Filter.atTop (𝓝 answer(sorry)) := by sorry
277
leanexplore_declaration
leanexplore:382533
leanexplore_sqlite
leanexplore_declarations
/-- We define a function `F N` as the minimum cardinality of an `N`-perfect ruler of length `N`. -/ def F (N : ℕ) : ℕ := Finset.min' (Finset.image Finset.card (PerfectRulersLengthN N)) (Finset.image_nonempty.mpr ⟨TrivialRuler N, trivial_ruler_is_perfect N⟩)
347
leanexplore_declaration
leanexplore:382534
leanexplore_sqlite
leanexplore_declarations
/-- Sanity Check: the trivial ruler is actually a perfect ruler if $K \geq N$ -/ @[category API, AMS 05] lemma trivial_ruler_is_perfect (N : ℕ) : TrivialRuler N ∈ PerfectRulersLengthN N := by simp only [PerfectRulersLengthN, Finset.mem_filter, Finset.mem_powerset, Finset.range_subset] exact ⟨by simp, fun k hk =...
119
leanexplore_declaration
leanexplore:382535
leanexplore_sqlite
leanexplore_declarations
/-- The trivial ruler with all marks $\{0, \dots, N\}$. -/ abbrev TrivialRuler (N : ℕ) : Finset ℕ := Finset.range (N+1)
316
leanexplore_declaration
leanexplore:382536
leanexplore_sqlite
leanexplore_declarations
/-- We define the set of all $N$-perfect rulers $A$ of length $N$, i.e. subsets $A \subseteq \{0, \dots, N\}$, s.t. $A$ is $N$-perfect. This is also called a restricted difference basis w.r.t. $N$. -/ def PerfectRulersLengthN (N : ℕ) : Finset (Finset ℕ) := (Finset.range (N + 1)).powerset.filter (PerfectRuler N)
408
leanexplore_declaration
leanexplore:382537
leanexplore_sqlite
leanexplore_declarations
/-- An $N$-perfect ruler is a finite subset $A \subseteq \mathbb{N}$ (the marks), such that each positive integer $k \leq N$ can be measured, that is, expressed as a difference $k = a_1 - a_0$ with $a_0, a_1 \in A$. The set $A$ is then also called a difference basis w.r.t. $N$. -/ @[reducible] def PerfectRuler (N : ℕ) ...
425
leanexplore_declaration
leanexplore:382538
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that in any finite colouring of $\mathbb{N}$ there exist arbitrarily large finite $A$ such that all sums and products of distinct elements in $A$ are the same colour? -/ @[category research open, AMS 5] theorem erdos_172 : answer(sorry) ↔ ∀ (n : ℕ) (color : ℕ → Fin n) (m), ∃ (A : Finset ℕ), A.card ≥ ...
199
leanexplore_declaration
leanexplore:382539
leanexplore_sqlite
leanexplore_declarations
/-- $97$ is the smallest prime that is not a cluster prime. -/ @[category test, AMS 11] theorem isClusterPrime_97_isLeast_non_cluster : IsLeast {p : ℕ | p.Prime ∧ ¬ IsClusterPrime p} 97 := by sorry
486
leanexplore_declaration
leanexplore:382540
leanexplore_sqlite
leanexplore_declarations
/-- In 2003, Elsholtz [El03] refined the upper bound to $$\pi^{\mathcal{C}}(x) \ll x\,\exp\!\bigl(-c(\log\log x)^2\bigr)$$ for every real $0 < c < 1/8$. [El03] Elsholtz, Christian, On cluster primes. Acta Arith. (2003), 281--284. -/ @[category research solved, AMS 11] theorem erdos_17.variants.upper_Elsholtz : ∃ C :...
453
leanexplore_declaration
leanexplore:382541
leanexplore_sqlite
leanexplore_declarations
/-- In 1999 Blecksmith, Erdős, and Selfridge [BES99] proved the upper bound $$\pi^{\mathcal{C}}(x) \ll_A x(\log x)^{-A}$$ for every real $A > 0$. [BES99] Blecksmith, Richard and Erd\H os, Paul and Selfridge, J. L., Cluster primes. Amer. Math. Monthly (1999), 43--48. -/ @[category research solved, AMS 11] theorem erdos...
152
leanexplore_declaration
leanexplore:382542
leanexplore_sqlite
leanexplore_declarations
/-- The counting function of cluster primes $\le n$. -/ noncomputable def clusterPrimeCount (n : ℕ) : ℕ := Nat.card {p : ℕ | p ≤ n ∧ IsClusterPrime p}
189
leanexplore_declaration
leanexplore:382543
leanexplore_sqlite
leanexplore_declarations
/-- **Erdős Problem 17.** Are there infinitely many cluster primes? -/ @[category research open, AMS 11] theorem erdos_17 : answer(sorry) ↔ {p : ℕ | IsClusterPrime p}.Infinite := by sorry
336
leanexplore_declaration
leanexplore:382544
leanexplore_sqlite
leanexplore_declarations
/-- A prime $p$ is a cluster prime if every even natural number $n \le p - 3$ can be written as a difference of two primes $q_1 - q_2$ with $q_1, q_2 \le p$. -/ def IsClusterPrime (p : ℕ) : Prop := p.Prime ∧ ∀ {n : ℕ}, Even n → n ≤ (p - 3 : ℤ) → ∃ q₁ q₂ : ℕ, q₁.Prime ∧ q₂.Prime ∧ q₁ ≤ p ∧ q₂ ≤ p ∧ n...
596
leanexplore_declaration
leanexplore:382545
leanexplore_sqlite
leanexplore_declarations
/-- Conlon, Fox, and Sudakov [CFS14] proved that $O_\epsilon(n)$ cycles and edges suffice if $G$ has minimum degree at least $\epsilon n$, for any $\epsilon>0$. -/ @[category research solved, AMS 5] theorem erdos_184.variants.conlon_fox_sudakov : ∀ ε > 0, ∃ f : ℕ → ℝ, (f =O[atTop] fun n : ℕ ↦ (n : ℝ)) ∧ ...
584
leanexplore_declaration
leanexplore:382546
leanexplore_sqlite
leanexplore_declarations
/-- The best bound available is due to Bucić and Montgomery [BM22], who prove that $O(n\log^* n)$ many cycles and edges suffice, where $\log^*$ is the iterated logarithm function. -/ @[category research solved, AMS 5] theorem erdos_184.variants.bucic_montgomery : ∃ f : ℕ → ℝ, (f =O[atTop] fun n : ℕ ↦ (n : ℝ) ...
480
leanexplore_declaration
leanexplore:382547
leanexplore_sqlite
leanexplore_declarations
/-- In [Er71] Erdős suggests that only $n-1$ many cycles and edges are required if we do not require them to be edge-disjoint. -/ @[category research open, AMS 5] theorem erdos_184.variants.covering : answer(sorry) ↔ ∀ {V : Type} [Fintype V] [DecidableEq V] [Nonempty V] (G : SimpleGraph V), ∃ (D : Finse...
476
leanexplore_declaration
leanexplore:382548
leanexplore_sqlite
leanexplore_declarations
/-- The graph $K_{3,n-3}$ shows that at least $(1+c)n$ many cycles and edges are required, for some constant $c>0$. -/ @[category research solved, AMS 5] theorem erdos_184.variants.lower_bound : ∃ c > 0, ∀ᶠ n in atTop, let G : SimpleGraph (Fin n) := fromRel (fun (i j : Fin n) => (i : ℕ) < 3 ∧ 3 ≤ (j : ℕ)); ...
468
leanexplore_declaration
leanexplore:382549
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Gallai [EGP66] proved that $O(n \log n)$ many cycles and edges suffices. -/ @[category research solved, AMS 5] theorem erdos_184.variants.n_log_n : ∃ f : ℕ → ℝ, (f =O[atTop] fun n : ℕ ↦ (n : ℝ) * Real.log (n : ℝ)) ∧ ∀ {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V), ∃ (D ...
440
leanexplore_declaration
leanexplore:382550
leanexplore_sqlite
leanexplore_declarations
/-- Any graph on $n$ vertices can be decomposed into $O(n)$ many edge-disjoint cycles and edges. -/ @[category research open, AMS 5] theorem erdos_184 : ∃ f : ℕ → ℝ, (f =O[atTop] fun n : ℕ ↦ (n : ℝ)) ∧ ∀ {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V), ∃ (D : Finset G.Subgraph), ...
235
leanexplore_declaration
leanexplore:382551
leanexplore_sqlite
leanexplore_declarations
/-- D is a decomposition of G into subgraphs. -/ def IsDecomposition {V : Type*} (G : SimpleGraph V) (D : Finset G.Subgraph) : Prop := Set.PairwiseDisjoint (D : Set G.Subgraph) (fun H ↦ H.edgeSet) ∧ (⋃ H ∈ D, H.edgeSet) = G.edgeSet
241
leanexplore_declaration
leanexplore:382552
leanexplore_sqlite
leanexplore_declarations
/-- A graph $H$ is a cycle or an edge if it is connected and 2-regular, or if it has exactly one edge. -/ def IsCycleOrEdge {U : Type*} [Fintype U] (H : SimpleGraph U) : Prop := (H.Connected ∧ H.IsRegularOfDegree 2) ∨ H.edgeFinset.card = 1
435
leanexplore_declaration
leanexplore:382553
leanexplore_sqlite
leanexplore_declarations
/-- Old and new problems and results in combinatorial number theory by Erdős & Graham (Page 15): How small can $M$ be made? The only estimate currently known is that $M \le 10000000$ (more or less). In the other direction, it has just been shown by R. Juhász [Ju (79)] that we must have $M \ge 5$. -/ @[category researc...
418
leanexplore_declaration
leanexplore:382554
leanexplore_sqlite
leanexplore_declarations
/-- Old and new problems and results in combinatorial number theory by Erdős & Graham (Page 14, 15): It has been shown that there is a large $M$ so that it is possible to partition $\mathbb{E}^2$ into two sets $A$ and $B$ so that $A$ contains no pair of points with distance 1 and $B$ contains no A.P. of length $M$. -/...
291
leanexplore_declaration
leanexplore:382555
leanexplore_sqlite
leanexplore_declarations
/-- What is the smallest $k$ such that $\mathbb{R}^2$ can be red/blue coloured with no pair of red points unit distance apart, and no $k$-term arithmetic progression of blue points with distance 1? -/ @[category research open, AMS 5] theorem erdos_188 : IsLeast s answer(sorry) := by sorry
352
leanexplore_declaration
leanexplore:382556
leanexplore_sqlite
leanexplore_declarations
/-- The set of numbers $k$ such that $\mathbb{R}^2$ can be red/blue coloured with no pair of red points unit distance apart, and no $k$-term arithmetic progression of blue points with distance 1. -/ def s := { k : ℕ | ∃ blue : Set ℂ, (Set.univ \ blue).Pairwise (fun c₁ c₂ => dist c₁ c₂ ≠ 1) ∧ ¬ (∃ bs ⊆ blue, (∃ ...
313
leanexplore_declaration
leanexplore:382557
leanexplore_sqlite
leanexplore_declarations
/-- Seems to be open, as of January 2025. -/ @[category research open, AMS 5 51] theorem erdos_189.variants.parallelogram : ¬ Erdos189For (fun a b c d ↦ line[ℝ, a, b] ∥ line[ℝ, c, d] ∧ line[ℝ, a, d] ∥ line[ℝ, b, c]) (fun a b c d ↦ dist a b * dist b c * (∡ a b c).sin) := by sorry
421
leanexplore_declaration
leanexplore:382558
leanexplore_sqlite
leanexplore_declarations
/-- Graham claims this is "easy to see". -/ @[category research solved, AMS 5 51] theorem erdos_189.variants.square : ¬ Erdos189For (fun a b c d ↦ line[ℝ, a, b].direction ⟂ line[ℝ, b, c].direction ∧ line[ℝ, b, c].direction ⟂ line[ℝ, c, d].direction ∧ line[ℝ, c, d].direction ⟂ line[ℝ, d...
1,138
leanexplore_declaration
leanexplore:382559
leanexplore_sqlite
leanexplore_declarations
/-- If $\mathbb{R}^2$ is finitely coloured then must there exist some colour class which contains the vertices of a rectangle of every area? Graham, "On Partitions of 𝔼ⁿ", Journal of Combinatorial Theory, Series A 28, 89-91 (1980). (See "Concluding Remarks" on page 96.) Solved (with answer `False`, as formalised bel...
359
leanexplore_declaration
leanexplore:382560
leanexplore_sqlite
leanexplore_declarations
/-- Erdős problem 189 asked whether the below holds for all rectangles. -/ def Erdos189For (P : ℝ² → ℝ² → ℝ² → ℝ² → Prop) (A : ℝ² → ℝ² → ℝ² → ℝ² → ℝ) := ∀ᵉ (n > 0) (colouring : ℝ² → Fin n), ∃ colour, ∀ area > (0 : ℝ), ∃ a b c d, {a, b, c, d} ⊆ colouring⁻¹' {colour} ∧ IsCcwConvexPolygon ![a, b, c, d] ∧ ...
376
leanexplore_declaration
leanexplore:382561
leanexplore_sqlite
leanexplore_declarations
/-- **Vose's Theorem.** Vose proved the existence of infinitely many practical numbers $m$ such that $h(m) \ll (\log m)^{1/2}$. This gives a positive answer to a weaker form of Conjecture 1. -/ @[category research solved, AMS 11] theorem erdos_18_vose : ∃ C : ℝ, 0 < C ∧ ∃ᶠ m in atTop, Nat.IsPractical m ∧ (pra...
213
leanexplore_declaration
leanexplore:382562
leanexplore_sqlite
leanexplore_declarations
/-- **Erdős's Theorem.** Erdős proved that $h(n!) < n$ for all $n \ge 1$. -/ @[category research solved, AMS 11] theorem erdos_18_upper_bound : ∀ᶠ n : ℕ in atTop, practicalH (Nat.factorial n) < n := by sorry
280
leanexplore_declaration
leanexplore:382563
leanexplore_sqlite
leanexplore_declarations
/-- **Conjecture 3.** Or perhaps even $h(n!) < (\log n)^{O(1)}$? Erdős offered \$250 for a proof or disproof. -/ @[category research open, AMS 11] theorem erdos_18c : answer(sorry) ↔ ∃ C : ℝ, 0 < C ∧ ∀ᶠ n : ℕ in atTop, (practicalH n.factorial : ℝ) < (log n) ^ C := by sorry
318
leanexplore_declaration
leanexplore:382564
leanexplore_sqlite
leanexplore_declarations
/-- **Conjecture 2.** Is it true that $h(n!) < n^{o(1)}$? That is, for all $\varepsilon > 0$, is $h(n!) < n^\varepsilon$ for sufficiently large $n$? -/ @[category research open, AMS 11] theorem erdos_18b : answer(sorry) ↔ ∀ ε : ℝ, 0 < ε → ∀ᶠ n : ℕ in atTop, (practicalH n.factorial : ℝ) < (n : ℝ) ^ ε := by sorry
438
leanexplore_declaration
leanexplore:382565
leanexplore_sqlite
leanexplore_declarations
/-- **Conjecture 1.** Are there infinitely many practical numbers $m$ such that $h(m) < (\log \log m)^{O(1)}$? More precisely: does there exist a constant $C > 0$ such that for infinitely many practical numbers $m$, we have $h(m) < (\log \log m)^C$? -/ @[category research open, AMS 11] theorem erdos_18a : answer(sorry...
2,481
leanexplore_declaration
leanexplore:382566
leanexplore_sqlite
leanexplore_declarations
/-- $h(n!)$ is well-defined since $n!$ is practical for $n ≥ 1$. -/ @[category undergraduate, AMS 11] theorem factorial_isPractical (n : ℕ) : Nat.IsPractical n.factorial := by induction n with | zero => intro m hm; simp at hm; interval_cases m · exact ⟨∅, by simp, by simp⟩ · exact ⟨{1}, by simp, by si...
349
leanexplore_declaration
leanexplore:382567
leanexplore_sqlite
leanexplore_declarations
/-- For any practical number $n$, $h(n) ≤ number of divisors of $n$. -/ @[category test, AMS 11] theorem practicalH_le_divisors (n : ℕ) (hn : Nat.IsPractical n) : practicalH n ≤ n.divisors.card := by simp only [practicalH, Finset.sup_le_iff, Finset.mem_Icc] exact fun m ⟨_, hm⟩ => Nat.sInf_le ⟨n.divisors, Finset...
193
leanexplore_declaration
leanexplore:382568
leanexplore_sqlite
leanexplore_declarations
/-- $h(12) = 3$: divisors are {1, 2, 3, 4, 6, 12}. The hardest m is m=11, requiring 3 divisors: 11=1+4+6. -/ @[category test, AMS 11] theorem practicalH_twelve : practicalH 12 = 3 := by sorry
209
leanexplore_declaration
leanexplore:382569
leanexplore_sqlite
leanexplore_declarations
/-- $h(6) = 2$: divisors are {1, 2, 3, 6}. The hardest m to represent is m=4 or m=5, each requiring 2 divisors: 4=1+3, 5=2+3. -/ @[category test, AMS 11] theorem practicalH_six : practicalH 6 = 2 := by sorry
1,078
leanexplore_declaration
leanexplore:382570
leanexplore_sqlite
leanexplore_declarations
/-- $h(2) = 1$: divisors are {1, 2}, each of m=1,2 needs only 1 divisor. -/ @[category test, AMS 11] theorem practicalH_two : practicalH 2 = 1 := by simp only [practicalH, (by decide : Finset.Icc 1 2 = ({1, 2} : Finset ℕ)), (by decide : Nat.divisors 2 = ({1, 2} : Finset ℕ)), Finset.sup_insert, Finset.sup_singleto...
174
leanexplore_declaration
leanexplore:382571
leanexplore_sqlite
leanexplore_declarations
/-- $h(1) = 1$: we need the single divisor {1} to represent 1. -/ @[category test, AMS 11] theorem practicalH_one : practicalH 1 = 1 := by norm_num [subsetSums, practicalH]
334
leanexplore_declaration
leanexplore:382572
leanexplore_sqlite
leanexplore_declarations
/-- For a practical number $n$, $h(n)$ is the maximum over all $1 ≤ m ≤ n$ of the minimum number of divisors of $n$ needed to represent $m$ as a sum of distinct divisors. -/ noncomputable def practicalH (n : ℕ) : ℕ := Finset.sup (Finset.Icc 1 n) fun m => sInf {k | ∃ D : Finset ℕ, D ⊆ n.divisors ∧ D.card = k ∧ m ∈...
307
leanexplore_declaration
leanexplore:382573
leanexplore_sqlite
leanexplore_declarations
/-- [GeRa79] showed that the answer is yes for $\mathbb{Z}^2$ -/ @[category research solved, AMS 5] theorem erdos_193_z2 : ∀ S : Set (Fin 2 → ℤ), S.Finite → ∀ a : ℕ → Fin 2 → ℤ, IsSWalk S a → (range a).Infinite → HasCollinearTriple ℚ (range (fun n ↦ (↑) ∘ a n : ℕ → Fin 2 → ℚ)) := by sorry
1,086
leanexplore_declaration
leanexplore:382574
leanexplore_sqlite
leanexplore_declarations
/-- Let $S \subseteq \mathbb{Z}^3$ be a finite set and let $A = \lbrace a_1, a_2, \ldots \rbrace$ be an infinite $S$-walk, so that $a_{i+1} - a_i \in S$ for all $i$. Must $A$ contain three collinear points? -/ @[category research open, AMS 5] theorem erdos_193 : answer(sorry) ↔ ∀ S : Set (Fin 3 → ℤ), S.Finite → ...
262
leanexplore_declaration
leanexplore:382575
leanexplore_sqlite
leanexplore_declarations
/-- True if set $A$ contains 3 distinct collinear points over $R$. -/ def HasCollinearTriple (R) {V : Type*} [DivisionRing R] [AddCommGroup V] [Module R V] (A : Set V) : Prop := ∃ x ∈ A, ∃ y ∈ A, ∃ z ∈ A, x ≠ y ∧ y ≠ z ∧ x ≠ z ∧ Collinear R ({x, y, z} : Set V)