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
404
leanexplore_declaration
leanexplore:383078
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that there is a constant $c_k$ such that for almost all $n < x$ we have $g_k(n)=c_k\log x+o(\log x)$? -/ @[category research open, AMS 11] theorem erdos_400.parts.ii : answer(sorry) ↔ ∀ᵉ (k ≥ 2), ∃ c : ℝ, ∀ ε > 0, Tendsto (fun x : ℕ ↦ (((Icc 1 x).filter (fun n ↦ |(g k n : ℝ) -...
303
leanexplore_declaration
leanexplore:383079
leanexplore_sqlite
leanexplore_declarations
/-- Can one show that $\sum_{n\leq x}g_k(n) \sim c_k x\log x$ for some constant $c_k$? -/ @[category research open, AMS 11] theorem erdos_400.parts.i : answer(sorry) ↔ ∀ᵉ (k ≥ 2), ∃ c : ℝ, (fun x : ℕ ↦ (∑ n ∈ Icc 1 x, (g k n : ℝ))) ~[atTop] (fun x : ℕ ↦ c * x * Real.log x) := by sorry
269
leanexplore_declaration
leanexplore:383080
leanexplore_sqlite
leanexplore_declarations
/-- For any $k\geq 2$ let $g_k(n)$ denote the maximum value of $(a_1+\cdots+a_k)-n$ where $a_1,\ldots,a_k$ are integers such that $a_1!\cdots a_k! \mid n!$. -/ noncomputable def g (k n : ℕ) : ℕ := sSup { ((∑ i, a i) - n) | (a : Fin k → ℕ) (_ : (∏ i, (a i) !) ∣ n !) }
994
leanexplore_declaration
leanexplore:383081
leanexplore_sqlite
leanexplore_declarations
/-- Proved for all sufficiently large sets (including the sharper version which characterises the case of equality) independently by Szegedy [Sz86] and Zaharescu [Za87]. The following is taken from [Sz86]. There exists an effectively computable $n_0$ with the following properties: (i) if $n \ge n_0$ and $a_1, a_2, \do...
868
leanexplore_declaration
leanexplore:383082
leanexplore_sqlite
leanexplore_declarations
/-- A conjecture of Graham [Gr70], who also conjectured that (assuming $A$ itself has no common divisor) the only cases where equality is achieved are when $A = \{1, \dots, n\}$ or $A = \{L/1, \dots, L/n\}$ (where $L = \operatorname{lcm}(1, \dots, n)$) or $A = \{2, 3, 4, 6\}$. Note: The source [BaSo96] mentioned on the...
290
leanexplore_declaration
leanexplore:383083
leanexplore_sqlite
leanexplore_declarations
/-- Prove that, for any finite set $A\subset\mathbb{N}$, there exist $a, b\in A$ such that $$ \gcd(a, b)\leq a/|A|. $$ -/ @[category research solved, AMS 11] theorem erdos_402 (A : Finset ℕ) (h₁ : 0 ∉ A) (h₂ : A.Nonempty) : ∃ᵉ (a ∈ A) (b ∈ A), a.gcd b ≤ (a / A.card : ℚ) := by sorry
261
leanexplore_declaration
leanexplore:383084
leanexplore_sqlite
leanexplore_declarations
/-- If we only allow the digits $1$ and $2$ then $2^{15}$ seems to be the largest such power of $2$. -/ @[category research open, AMS 11] theorem erdos_406.variants.one_two : IsGreatest { n | n.isPowerOfTwo ∧ Nat.digits 3 n ⊆ [1, 2] } (2 ^ 15) := by sorry
270
leanexplore_declaration
leanexplore:383085
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that there are only finitely many powers of $2$ which have only the digits $0$ and $1$ when written in base $3$? -/ @[category research open, AMS 11] theorem erdos_406 : answer(sorry) ↔ { n | n.isPowerOfTwo ∧ Nat.digits 3 n ⊆ [0, 1] }.Finite := by sorry
242
leanexplore_declaration
leanexplore:383086
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that iterates of $n\mapsto\sigma(n) - 1$ always reach a prime? -/ @[category research open, AMS 11] theorem erdos_409.variants.sigma_prime_termination : answer(sorry) ↔ ∀ n > 1, ∃ i, (σ 1 · - 1)^[i] n |>.Prime := by sorry
401
leanexplore_declaration
leanexplore:383087
leanexplore_sqlite
leanexplore_declarations
/-- Let $c(n)$ be the minimum number of iterations of $n\mapsto\sigma(n) - 1$ before a prime is reached. Find the simplest function $g(n)$ such that $c(n) = o(g(n))$? -/ @[category research open, AMS 11] theorem erdos_409.variants.sigma_isLittleO (c : ℕ → ℕ) (h : ∀ n > 1, IsLeast { i | (σ 1 · - 1)^[i] n |>.Prime } ...
398
leanexplore_declaration
leanexplore:383088
leanexplore_sqlite
leanexplore_declarations
/-- Let $c(n)$ be the minimum number of iterations of $n\mapsto\sigma(n) - 1$ before a prime is reached. Find the simplest function $g(n)$ such that $c(n) = O(g(n))$? -/ @[category research open, AMS 11] theorem erdos_409.variants.sigma_isBigO (c : ℕ → ℕ) (h : ∀ n > 1, IsLeast { i | (σ 1 · - 1)^[i] n |>.Prime } (c ...
361
leanexplore_declaration
leanexplore:383089
leanexplore_sqlite
leanexplore_declarations
/-- Let $c(n)$ be the minimum number of iterations of $n\mapsto\sigma(n) - 1$ before a prime is reached. What is $\Theta(c(n))$? -/ @[category research open, AMS 11] theorem erdos_409.variants.sigma_isTheta (c : ℕ → ℕ) (h : ∀ n > 1, IsLeast { i | (σ 1 · - 1)^[i] n |>.Prime } (c n)) : (fun n => (c n : ℝ)) =Θ[atT...
232
leanexplore_declaration
leanexplore:383090
leanexplore_sqlite
leanexplore_declarations
/-- If $n > 1$ then the iteration $n\mapsto\sigma(n) - 1$ necessarily reaches a prime. -/ @[category test, AMS 11] theorem erdos_409.variants.sigma_termination (n : ℕ) (hn : n > 1) : ∃ i, (σ 1 · - 1)^[i] n |>.Prime := by sorry
379
leanexplore_declaration
leanexplore:383091
leanexplore_sqlite
leanexplore_declarations
/-- How many iterations of $n\mapsto\sigma(n) - 1$ are needed before a prime is reached? -/ -- Formalisation note: non-termination of this sequence is less clear since -- it is strictly increasing except at primes. @[category research open, AMS 11] theorem erdos_409.variants.sigma (n : ℕ) (hn : n > 1) : IsLeast { i...
291
leanexplore_declaration
leanexplore:383092
leanexplore_sqlite
leanexplore_declarations
/-- What is the density of $n$ which reach any fixed prime under the iteration $n\mapsto\phi(n) + 1$? -/ @[category research open, AMS 11] theorem erdos_409.parts.iii (p : ℕ) (h : p.Prime) (α : ℝ) (hα : { n | ∃ i, (φ · + 1)^[i] n = p }.HasDensity α) : α = answer(sorry) := by sorry
259
leanexplore_declaration
leanexplore:383093
leanexplore_sqlite
leanexplore_declarations
/-- Can infinitely many $n$ reach the same prime under the iteration $n\mapsto\phi(n) + 1$? -/ @[category research open, AMS 11] theorem erdos_409.parts.ii : answer(sorry) ↔ ∃ (p : ℕ) (hp : p.Prime), { n | ∃ i, (φ · + 1)^[i] n = p }.Infinite := by sorry
390
leanexplore_declaration
leanexplore:383094
leanexplore_sqlite
leanexplore_declarations
/-- Let $c(n)$ be the minimum number of iterations of $n\mapsto\phi(n) + 1$ before a prime is reached. Find the simplest function $g(n)$ such that $c(n) = o(g(n))$? -/ @[category research open, AMS 11] theorem erdos_409.parts.i.isLittleO (c : ℕ → ℕ) (h : ∀ n > 0, IsLeast { i | (φ · + 1)^[i] n |>.Prime } (c n)) : ...
387
leanexplore_declaration
leanexplore:383095
leanexplore_sqlite
leanexplore_declarations
/-- Let $c(n)$ be the minimum number of iterations of $n\mapsto\phi(n) + 1$ before a prime is reached. Find the simplest function $g(n)$ such that $c(n) = O(g(n))$? -/ @[category research open, AMS 11] theorem erdos_409.parts.i.isBigO (c : ℕ → ℕ) (h : ∀ n > 0, IsLeast { i | (φ · + 1)^[i] n |>.Prime } (c n)) : (...
350
leanexplore_declaration
leanexplore:383096
leanexplore_sqlite
leanexplore_declarations
/-- Let $c(n)$ be the minimum number of iterations of $n\mapsto\phi(n) + 1$ before a prime is reached. What is $\Theta(c(n))$? -/ @[category research open, AMS 11] theorem erdos_409.parts.i.isTheta (c : ℕ → ℕ) (h : ∀ n > 0, IsLeast { i | (φ · + 1)^[i] n |>.Prime } (c n)) : (fun n => (c n : ℝ)) =Θ[atTop] (answer...
223
leanexplore_declaration
leanexplore:383097
leanexplore_sqlite
leanexplore_declarations
/-- If $n > 0$, then the iteration $n\mapsto\phi(n) + 1$ necessarily reaches a prime. -/ @[category test, AMS 11] theorem erdos_409.variants.termination (n : ℕ) (hn : 0 < n) : ∃ i, (φ · + 1)^[i] n |>.Prime := by sorry
454
leanexplore_declaration
leanexplore:383098
leanexplore_sqlite
leanexplore_declarations
/-- How many iterations of $n\mapsto\phi(n) + 1$ are needed before a prime is reached? -/ -- Formalisation note: the sequence of iterates always terminates if `n > 0` -- since it is strictly decreasing unless the input is prime, at which point -- it becomes static. See also https://oeis.org/A39651 @[category research o...
1,383
leanexplore_declaration
leanexplore:383099
leanexplore_sqlite
leanexplore_declarations
/-- If we don't pose additional conditions on the functions, then this is a stronger form of the Erdős-Turán conjecture, see Erdõs Problem 28, (since establishing this for any function $g(N) → \infty$ would imply a positive solution to Erdős Problem 28). -/ @[category undergraduate, AMS 11] theorem erdos_40.variants.im...
256
leanexplore_declaration
leanexplore:383100
leanexplore_sqlite
leanexplore_declarations
/-- For what functions $g(N) → \infty$ is it true that $$\lvert A\cap \{1,\ldots,N\}\rvert \gg \frac{N^{1/2}}{g(N)}$$ implies $\limsup 1_A\ast 1_A(n)=\infty$? -/ @[category research open, AMS 11] theorem erdos_40 : Erdos40ForSet answer(sorry) := by sorry
319
leanexplore_declaration
leanexplore:383101
leanexplore_sqlite
leanexplore_declarations
/-- Given a set of functions $\mathbb{N} → \mathbb{R})$, we assert that for all $g$ in that set, if $g(N) → \infty$ then $$\lvert A\cap \{1,\ldots,N\}\rvert \gg \frac{N^{1/2}}{g(N)}$$ implies $\limsup 1_A\ast 1_A(n)=\infty$. -/ def Erdos40ForSet (G : Set (ℕ → ℝ)) : Prop := ∀ g ∈ G, Tendsto g atTop atTop → Erdos40For g
355
leanexplore_declaration
leanexplore:383102
leanexplore_sqlite
leanexplore_declarations
/-- The predicate for a function $g\colon\mathbb{N} → \mathbb{R})$ that $$\lvert A\cap \{1,\ldots,N\}\rvert \gg \frac{N^{1/2}}{g(N)}$$ implies $\limsup 1_A\ast 1_A(n)=\infty$. -/ def Erdos40For (g : ℕ → ℝ) : Prop := ∀ A : Set ℕ, (fun N : ℕ ↦ √N / g N) =O[atTop] (fun N ↦ ((A ∩ .Icc 1 N).ncard : ℝ)) → limsup (f...
502
leanexplore_declaration
leanexplore:383103
leanexplore_sqlite
leanexplore_declarations
/-- Let $σ_1(n) = σ(n)$, the sum of divisors function, and $σ_k(n) = σ(σ_{k-1}(n))$. Is it true that $\lim_{k → ∞} σ_k(n)^{\frac 1 k} = ∞$? This is problem (iii) from Erdos, Granville, Pomerance, Spiro "On the normal behavior of the iterates of some arithmetical functions" (page 169 of the book "Analytic Number Theor...
314
leanexplore_declaration
leanexplore:383104
leanexplore_sqlite
leanexplore_declarations
/-- Let $σ_1(n)=σ(n)$, the sum of divisors function, and $σ_k(n) = σ(σ_{k-1}(n))$. Is it true that, for every $m, n ≥ 2$, there exist some $i, j$ such that $σ_i(m) = σ_j(n)$? -/ @[category research open, AMS 11] theorem erdos_412 : answer(sorry) ↔ ∀ᵉ (m ≥ 2) (n ≥ 2), ∃ i j, (σ 1)^[i] m = (σ 1)^[j] n := by sorry
264
leanexplore_declaration
leanexplore:383105
leanexplore_sqlite
leanexplore_declarations
/-- Does there exist some `ε > 0` such that there are infinitely many `ε`-barriers for `ω`? -/ @[category research open, AMS 11] theorem erdos_413.parts.ii : answer(sorry) ↔ (∃ ε > (0 : ℝ), { n | IsBarrier (fun n => ε * ω n) n }.Infinite) := by sorry
262
leanexplore_declaration
leanexplore:383106
leanexplore_sqlite
leanexplore_declarations
/-- Selfridge computed that the largest `Ω`-barrier below `10^5` is `99840`. -/ @[category research solved, AMS 11] theorem erdos_413.variants.bigOmega_largest_barrier_lt_100k : IsGreatest {n : ℕ | n < 10 ^ 5 ∧ IsBarrier (fun m => Ω m) n} 99840 := by sorry
251
leanexplore_declaration
leanexplore:383107
leanexplore_sqlite
leanexplore_declarations
/-- Erdős believed there should be infinitely many barriers for `Ω`, the total prime multiplicity. -/ @[category research open, AMS 11] theorem erdos_413.variants.bigOmega : answer(sorry) ↔ { n | IsBarrier (fun m => Ω m) n }.Infinite := by sorry
265
leanexplore_declaration
leanexplore:383108
leanexplore_sqlite
leanexplore_declarations
/-- Erdős proved that the barrier set for `expProd` is infinite and even has positive density. -/ @[category research solved, AMS 11] theorem erdos_413.variants.hasPosDensity_barrier_expProd : { n | IsBarrier (fun m => expProd m) n }.HasPosDensity := by sorry
161
leanexplore_declaration
leanexplore:383109
leanexplore_sqlite
leanexplore_declarations
/-- `expProd n` is `∏ kᵢ` when `n = ∏ pᵢ ^ kᵢ`, i.e. the product of the prime exponents of `n`. -/ def expProd (n : ℕ) : ℕ := n.factorization.prod fun _ e => e
190
leanexplore_declaration
leanexplore:383110
leanexplore_sqlite
leanexplore_declarations
/-- Are there infinitely many barriers for `ω`? -/ @[category research open, AMS 11] theorem erdos_413.parts.i : answer(sorry) ↔ { n | IsBarrier (fun m => ω m) n }.Infinite := by sorry
200
leanexplore_declaration
leanexplore:383111
leanexplore_sqlite
leanexplore_declarations
/-- `IsBarrier f n` means `n` is a barrier for the real-valued function `f`, i.e. `(m : ℝ) + f m ≤ (n : ℝ)` for all `m < n`. -/ def IsBarrier (f : ℕ → ℝ) (n : ℕ) : Prop := ∀ m < n, (m : ℝ) + f m ≤ n
266
leanexplore_declaration
leanexplore:383112
leanexplore_sqlite
leanexplore_declarations
/-- Let $h_1(n) = h(n)$ and $h_k(n) = h(h_{k-1}(n))$. Is it true, for any $m,n$, there exist $i$ and $j$ such that $h_i(m) = h_j(n)$? -/ @[category research open, AMS 11] theorem erdos_414 : answer(sorry) ↔ ∀ᵉ (m > 0) (n > 0), ∃ i j, h^[i] m = h^[j] n := by sorry
40
leanexplore_declaration
leanexplore:383113
leanexplore_sqlite
leanexplore_declarations
def h (n : ℕ) : ℕ := n + n.divisors.card
558
leanexplore_declaration
leanexplore:383114
leanexplore_sqlite
leanexplore_declarations
/-- Let `V(x)` count the number of `n≤x` such that `ϕ(m)=n` is solvable. `V(x) ≍ x/log x*e^(C_1*(log log log x − log log log log x)^2+C_2 log log log x − C_3 log log log log x)` Ref: Ford, Kevin, _The distribution of totients_. -/ @[category research solved, AMS 11] theorem erdos_416.variants.Ford : let (C₁, C₂, C₃...
527
leanexplore_declaration
leanexplore:383115
leanexplore_sqlite
leanexplore_declarations
/-- Let `V(x)` count the number of `n≤x` such that `ϕ(m)=n` is solvable. `V(x)=x/logx * e^((C+o(1))(log log log x)^2)`, for some explicit constant `C>0`. Ref:Maier, Helmut and Pomerance, Carl, _On the number of distinct values of Euler's $\phi$-function_. -/ @[category research solved, AMS 11] theorem erdos_416.variant...
421
leanexplore_declaration
leanexplore:383116
leanexplore_sqlite
leanexplore_declarations
/-- Let `V(x)` count the number of `n≤x` such that `ϕ(m)=n` is solvable. Erdős proved V(x)=x(logx)^(−1+o(1)). Ref: Erdős, P., _On the normal number of prime factors of $p-1$ and some related problems concerning Euler's $\varphi$-function._ -/ @[category research solved, AMS 11] theorem erdos_416.variants.Erdos : ∃ f : ...
284
leanexplore_declaration
leanexplore:383117
leanexplore_sqlite
leanexplore_declarations
/-- Let `V(x)` count the number of `n≤x` such that `ϕ(m)=n` is solvable. Pillai proved `V(x)=o(x)`. Ref: S. Sivasankaranarayana Pillai, _On some functions connected with $\phi(n)$_ -/ @[category research solved, AMS 11] theorem erdos_416.variants.Pillai : V =o[atTop] id := by sorry
282
leanexplore_declaration
leanexplore:383118
leanexplore_sqlite
leanexplore_declarations
/-- Let `V(x)` count the number of `n≤x` such that `ϕ(m)=n` is solvable. Is there an asymptotic formula for `V(x)`? -/ @[category research open, AMS 11] theorem erdos_416.parts.ii : let f : ℝ → ℝ := answer(sorry) Filter.Tendsto (fun x => V x / f x) atTop (𝓝 1) := by sorry
242
leanexplore_declaration
leanexplore:383119
leanexplore_sqlite
leanexplore_declarations
/-- Let `V(x)` count the number of `n≤x` such that `ϕ(m)=n` is solvable. Does `V(2x)/V(x)→2` ? -/ @[category research open, AMS 11] theorem erdos_416.parts.i : Filter.Tendsto (fun x => (V (2 * x) / V (x))) Filter.atTop (𝓝 2) := by sorry
186
leanexplore_declaration
leanexplore:383120
leanexplore_sqlite
leanexplore_declarations
/-- Let `V(x)` count the number of `n≤x` such that `ϕ(m)=n` is solvable. -/ noncomputable abbrev V (x : ℝ) : ℝ := (Finset.Icc 1 ⌊x⌋₊ |>.filter (fun n => ∃ (m : ℕ), m.totient = n)).card
279
leanexplore_declaration
leanexplore:383121
leanexplore_sqlite
leanexplore_declarations
/-- Is it $>1$? -/ @[category research open, AMS 11] theorem erdos_417.parts.ii : answer(sorry) ↔ ∃ L < 1, Tendsto (fun x ↦ ((totient '' { m | 1 ≤ m ∧ (m : ℝ) ≤ x }).ncard : ℝ) / ({ k | k ∈ range totient ∧ (k : ℝ) ≤ x }.ncard : ℝ)) atTop (𝓝 L) := by sorry
518
leanexplore_declaration
leanexplore:383122
leanexplore_sqlite
leanexplore_declarations
/-- Let\[V'(x)=\#\{\phi(m) : 1\leq m\leq x\}\]and\[V(x)=\#\{\phi(m) \leq x : 1\leq m\}.\] Does $\lim V(x)/V'(x)$ exist? Formalization note: We formalize the limit of the inverse fraction V'(x)/V(x) to ensure the limit is finite (bounded between 0 and 1). -/ @[category research open, AMS 11] theorem erdos_417.parts.i :...
249
leanexplore_declaration
leanexplore:383123
leanexplore_sqlite
leanexplore_declarations
/-- It is open whether the set of non-cototients has positive density. -/ @[category research open, AMS 11] theorem erdos_418.variants.density : answer(sorry) ↔ ∃ (S : Set ℕ) (hS : S.HasPosDensity), S ⊆ { (n - n.totient : ℕ) | n }ᶜ := by sorry
319
leanexplore_declaration
leanexplore:383124
leanexplore_sqlite
leanexplore_declarations
/-- A solution to erdos_418 was shown by Browkin and Schinzel [BrSc95] by showing that any integer of the form $2^(k + 1)\cdot 509203$ is not of the form $n - \phi(n)$. -/ @[category research solved, AMS 11] theorem erdos_418.variants.soln : { 2 ^ (k + 1) * 509203 | k } ⊆ { (n - n.totient : ℕ) | n }ᶜ := by sorry
350
leanexplore_declaration
leanexplore:383125
leanexplore_sqlite
leanexplore_declarations
/-- Erdős [Er73b] has shown that a positive density set of natural numbers cannot be written as $\sigma(n)-n$ (numbers not of this form are called nonaliquot, or sometimes untouchable). -/ @[category research solved, AMS 11] theorem erdos_418.variants.sigma : ∃ (S : Set ℕ) (hS : S.HasPosDensity), S ⊆ { (σ 1 n...
1,176
leanexplore_declaration
leanexplore:383126
leanexplore_sqlite
leanexplore_declarations
/-- It follows from a slight strengthening of the Goldbach conjecture that every odd number can be written as $n - \phi(n)$. In particular, we assume that every even number greater than 6 can be written as the sum of two *distinct* primes, in contrast to the usual Goldbach conjecture that every even number greater than...
683
leanexplore_declaration
leanexplore:383127
leanexplore_sqlite
leanexplore_declarations
/-- Are there infinitely many integers not of the form $n - \phi(n)$? Asked by Erdős and Sierpiński. Numbers not of the form we call non-cototients. Browkin and Schinzel [BrSc95] provided an affirmative answer to this question, proving that any integer of the shape $2^{k}\cdot 509203$ for $k\geq 1$ is a non-cototient...
473
leanexplore_declaration
leanexplore:383128
leanexplore_sqlite
leanexplore_declarations
/-- Erdős proved the following pairwise version. Let `A ⊆ ℕ` be an infinite set such that the pairwise sums `a + b` are all distinct for `a, b` in `A` (aside from the trivial coincidences). Is it true that `liminf n → ∞ |A ∩ {1, …, N}| / N^(1/2) = 0`? -/ @[category research solved, AMS 11] theorem erdos_41.variants.pai...
431
leanexplore_declaration
leanexplore:383129
leanexplore_sqlite
leanexplore_declarations
/-- Let `A ⊆ ℕ` be an infinite set such that the triple sums `a + b + c` are all distinct for `a, b, c` in `A` (aside from the trivial coincidences). Is it true that `liminf n → ∞ |A ∩ {1, …, N}| / N^(1/3) = 0`? -/ @[category research open, AMS 11] theorem erdos_41 (A : Set ℕ) (h_triple : NtupleCondition A 3) (h_infini...
306
leanexplore_declaration
leanexplore:383130
leanexplore_sqlite
leanexplore_declarations
/-- For a given set `A`, the n-tuple sums `a₁ + ... + aₙ` are all distinct for `a₁, ..., aₙ` in `A` (aside from the trivial coincidences). -/ def NtupleCondition (A : Set α) (n : ℕ) : Prop := ∀ (I : Finset α) (J : Finset α), ↑I ⊆ A ∧ ↑J ⊆ A ∧ I.card = n ∧ J.card = n ∧ (∑ i ∈ I, i = ∑ j ∈ J, j) → I = J
364
leanexplore_declaration
leanexplore:383131
leanexplore_sqlite
leanexplore_declarations
/-- Is there a sequence $1 \le d_1 < d_2 < \dots$ with density 1 such that all products $\prod_{u \le i \le v} d_i$ are distinct? -/ @[category research open, AMS 11] theorem erdos_421 : answer(sorry) ↔ ∃ (d : ℕ → ℕ), StrictMono d ∧ 1 ≤ d 0 ∧ HasDensity (Set.range d) 1 ∧ {(u, v) : ℕ × ℕ | u ≤ v}.InjOn fun (u, v...
182
leanexplore_declaration
leanexplore:383132
leanexplore_sqlite
leanexplore_declarations
/-- Does $f$ become stationary at some point? -/ @[category research open, AMS 11] theorem erdos_422.variants.eventually_const : answer(sorry) ↔ EventuallyConst f atTop := by sorry
173
leanexplore_declaration
leanexplore:383133
leanexplore_sqlite
leanexplore_declarations
/-- How does $f$ grow? -/ @[category research open, AMS 11] theorem erdos_422.variants.growth_rate : (fun n ↦ (f n : ℝ)) =O[atTop] (answer(sorry) : ℕ+ → ℝ) := by sorry
142
leanexplore_declaration
leanexplore:383134
leanexplore_sqlite
leanexplore_declarations
/-- Is $f$ surjective? -/ @[category research open, AMS 11] theorem erdos_422.variants.surjective : answer(sorry) ↔ f.Surjective := by sorry
165
leanexplore_declaration
leanexplore:383135
leanexplore_sqlite
leanexplore_declarations
/-- Does $f(n)$ miss infinitely many integers? -/ @[category research open, AMS 11] theorem erdos_422 : answer(sorry) ↔ Set.Infinite {n | ∀ x, f x ≠ n} := by sorry
252
leanexplore_declaration
leanexplore:383136
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(1) = f(2) = 1$ and for $n > 2$ $$ f(n) = f(n - f(n - 1)) + f(n - f(n - 2)). $$ Note: It is not known whether $f(n)$ is well-defined for all $n$. -/ partial def f : ℕ+ → ℕ+ | 1 => 1 | 2 => 1 | n => f (n - f (n - 1)) + f (n - f (n - 2))
342
leanexplore_declaration
leanexplore:383137
leanexplore_sqlite
leanexplore_declarations
/-- Let $a_1 = 2$ and $a_2 = 3$ and continue the sequence by appending to $a_1, \ldots, a_n$ all possible values of $a_i a_j - 1$ with $i \neq j$. Is it true that the set of integers which eventually appear has positive density? -/ @[category research open, AMS 11] theorem erdos_424 : answer(sorry) ↔ generatedSet.HasPo...
151
leanexplore_declaration
leanexplore:383138
leanexplore_sqlite
leanexplore_declarations
/-- The set of integers which eventually appear in the sequence, which is the union of all $A_n$. -/ def generatedSet : Set ℕ := ⋃ n : ℕ, sequenceSet n
223
leanexplore_declaration
leanexplore:383139
leanexplore_sqlite
leanexplore_declarations
/-- The sequence of sets $A_n$ where $A_0 = \{2, 3\}$ and $A_{n+1}$ is $A_n$ union all newly generated elements. -/ def sequenceSet : ℕ → Set ℕ | 0 => {2, 3} | n + 1 => (sequenceSet n) ∪ (nextGeneration (sequenceSet n))
204
leanexplore_declaration
leanexplore:383140
leanexplore_sqlite
leanexplore_declarations
/-- Defines the set of new numbers generated from a set A by the operation $x y - 1$ for $x \neq y$. -/ def nextGeneration (A : Set ℕ) : Set ℕ := { z : ℕ | ∃ x y, x ∈ A ∧ y ∈ A ∧ x ≠ y ∧ z = x * y - 1 }
223
leanexplore_declaration
leanexplore:383141
leanexplore_sqlite
leanexplore_declarations
/-- Cedric Pilatte has observed that a positive solution to Erdős Problem 427 follows from Shiu's theorem. -/ @[category research solved, AMS 11] theorem erdos_427.variants.of_shiu (H : ShiuTheorem) : erdos427 := by sorry
390
leanexplore_declaration
leanexplore:383142
leanexplore_sqlite
leanexplore_declarations
/-- **Shiu's theorem**: for any $k \geq 1$ and $(a, q) = 1$ there exist infinitely many $k$-tuples of consecutive primes $p_m, \dots, p_{m + k - 1}$ all of which are congruent to $a$ modulo $q$. [Sh00] Shiu, D. K. L., _Strings of congruent primes_. J. London Math. Soc. (2) (2000), 359-373. -/ @[category research solve...
472
leanexplore_declaration
leanexplore:383143
leanexplore_sqlite
leanexplore_declarations
/-- The statement of Shiu's theorem: for any $k \geq 1$ and $(a, q) = 1$ there exist infinitely many $k$-tuples of consecutive primes $p_m, \dots, p_{m + k - 1}$ all of which are congruent to $a$ modulo $q$. [Sh00] Shiu, D. K. L., _Strings of congruent primes_. J. London Math. Soc. (2) (2000), 359-373. -/ def ShiuTheo...
274
leanexplore_declaration
leanexplore:383144
leanexplore_sqlite
leanexplore_declarations
/-- **Erdős Problem 427**: is it true that, for every $n$ and $d$, there exists $k$ such that $$ d \mid p_{n + 1} + \cdots + p_{n + k}, $$ where $p_r$ denotes the $r$th prime? -/ @[category research solved, AMS 11] theorem erdos_427 : answer(True) ↔ erdos427 := by sorry
411
leanexplore_declaration
leanexplore:383145
leanexplore_sqlite
leanexplore_declarations
/-- The predicate that for every $n$ and $d$, there exists $k$ such that $$ d \mid p_{n + 1} + \cdots + p_{n + k}, $$ where $p_r$ denotes the $r$th prime? -/ def erdos427 : Prop := ∀ (n d : ℕ), -- Need to allow `n = 0` since we're counting primes from `0` rather than `1` -- `d` needs to be `≠ 0` since the sum...
416
leanexplore_declaration
leanexplore:383146
leanexplore_sqlite
leanexplore_declarations
/-- Is there a set $A\subseteq \mathbb{N}$ such that, for infinitely many $n$, all of $n-a$ are prime for all $a\in A$ with $0 < a < n$ and \[\liminf\frac{\lvert A\cap [1,x]\rvert}{\pi(x)}>0?\] -/ @[category research open, AMS 11] theorem erdos_428 : answer(sorry) ↔ ∃ A : Set ℕ, (∃ᶠ n in atTop, ∀ a ∈ A, 0 < a...
200
leanexplore_declaration
leanexplore:383147
leanexplore_sqlite
leanexplore_declarations
/-- The density ratio of set $A$ up to $n$ relative to the prime counting function $\pi(n)$. -/ noncomputable def primeDensityRatio (A : Set ℕ) (n : ℕ) : ℝ := (A ∩ Icc 1 n).ncard / (primeCounting n)
769
leanexplore_declaration
leanexplore:383148
leanexplore_sqlite
leanexplore_declarations
/-- For any maximal Sidon set, the difference set contains 0. -/ @[category undergraduate, AMS 5 11] theorem maximal_sidon_contains_zero (A : Set ℕ) (N : ℕ) (hN : 1 ≤ N) (hA : IsMaximalSidonSetIn A N) : 0 ∈ A - A := by obtain ⟨hAsub, hAsidon, hAmax⟩ := hA have hne : A.Nonempty · by_contra hemp; rw [Set.not_no...
633
leanexplore_declaration
leanexplore:383149
leanexplore_sqlite
leanexplore_declarations
/-- The difference set of `{1, 2, 4}` is `{0, 1, 2, 3}`. -/ @[category undergraduate, AMS 5 11] theorem example_difference_set : ({1, 2, 4} : Set ℕ) - {1, 2, 4} = {0, 1, 2, 3} := by ext x simp only [Set.mem_sub, Set.mem_insert_iff, Set.mem_singleton_iff] constructor · rintro ⟨a, ha, b, hb, rfl⟩ rcases ha wi...
1,004
leanexplore_declaration
leanexplore:383150
leanexplore_sqlite
leanexplore_declarations
/-- The set `{1, 2, 4}` is a maximal Sidon set in `{1, ..., 4}`. -/ @[category undergraduate, AMS 5 11] theorem example_maximal_sidon : IsMaximalSidonSetIn {1, 2, 4} 4 := by refine ⟨?_, ?_, ?_⟩ · intro x hx simp only [Set.mem_insert_iff, Set.mem_singleton_iff] at hx rcases hx with rfl | rfl | rfl <;> simp [...
610
leanexplore_declaration
leanexplore:383151
leanexplore_sqlite
leanexplore_declarations
/-- A variant asking for explicit bounds on how large N needs to be in terms of M. This version provides a constructive function f such that for all M ≥ 1 and N ≥ f(M), every maximal Sidon set A ⊆ {1,…,N} has another Sidon set B ⊆ {1,…,N} of size M with disjoint difference sets (apart from 0). -/ @[category research o...
479
leanexplore_declaration
leanexplore:383152
leanexplore_sqlite
leanexplore_declarations
/-- **Erdős Problem 42**: Let M ≥ 1 and N be sufficiently large in terms of M. Is it true that for every maximal Sidon set `A ⊆ {1,…,N}` there is another Sidon set `B ⊆ {1,…,N}` of size M such that `(A - A) ∩ (B - B) = {0}`? -/ @[category research open, AMS 5 11] theorem erdos_42 : answer(sorry) ↔ ∀ M ≥ 1, ∀ᶠ N in ...
588
leanexplore_declaration
leanexplore:383153
leanexplore_sqlite
leanexplore_declarations
/-- Let $k \le n$. Out of all $A\subseteq\{1, \dots, n\}$ (with $\text{gcd}(A) = 1$) of size $|A| = k$, does $A = \{n, n - 1, \dots, n - k + 1\}$ maximise the number of integers not representable as the sum of finitely many elements from $A$ (with repetitions allowed)? -/ @[category research open, AMS 11] theorem erdos...
582
leanexplore_declaration
leanexplore:383154
leanexplore_sqlite
leanexplore_declarations
/-- Let $k \le n$. What choice of $A\subseteq\{1, \dots, n\}$ (with $\text{gcd}(A) = 1$) of size $|A| = k$ maximises the number of integers not representable as the sum of finitely many elements from $A$ (with repetitions allowed)? Is it $\{n, n - 1, \dots, n - k + 1\}$? -/ @[category research open, AMS 11] theorem erd...
236
leanexplore_declaration
leanexplore:383155
leanexplore_sqlite
leanexplore_declarations
/-- The number of naturals that cannot be written as the sum of finitely many elements of the set $A$, with repetition allowed. -/ noncomputable abbrev Nat.NcardUnrepresentable (A : Set ℕ) := { n : ℕ | ¬n.IsRepresentableAs A }.ncard
247
leanexplore_declaration
leanexplore:383156
leanexplore_sqlite
leanexplore_declarations
/-- A natural $n$ is representable as a set $A$ if it can be written as the sum of finitely many elements of $A$ (with repetition allowed). -/ abbrev Nat.IsRepresentableAs (n : ℕ) (A : Set ℕ) := ∃ (S : Multiset ℕ), (∀ a ∈ S, a ∈ A) ∧ S.sum = n
1,203
leanexplore_declaration
leanexplore:383157
leanexplore_sqlite
leanexplore_declarations
/-- Tao resolved erdos_442 in the negative in Theorem 1 of https://arxiv.org/pdf/2407.04226. The following is a formalisation of that theorem with $C_0 = 1$. Let $\operatorname{Log} x := \max\{\log x, 1\}$, $\operatorname{Log}_2x = \operatorname{Log} (\operatorname{Log} x)$, and $\operatorname{Log}_3x = \operatorname{...
1,141
leanexplore_declaration
leanexplore:383158
leanexplore_sqlite
leanexplore_declarations
/-- Let $\operatorname{Log} x := \max\{\log x, 1\}$, $\operatorname{Log}_2x = \operatorname{Log} (\operatorname{Log} x)$, and $\operatorname{Log}_3x = \operatorname{Log}(\operatorname{Log}(\operatorname{Log} x)).$ Is it true that if $A\subseteq\mathbb{N}$ is such that $$ \frac{1}{\operatorname{Log}_2 x} \sum_{n\in A: n...
140
leanexplore_declaration
leanexplore:383159
leanexplore_sqlite
leanexplore_declarations
noncomputable instance : Fintype (A.bddProdUpper x) := (((Set.finite_Icc 1 ⌊x⌋₊).prod (Set.finite_Icc 1 ⌊x⌋₊)).subset <| by grind).fintype
348
leanexplore_declaration
leanexplore:383160
leanexplore_sqlite
leanexplore_declarations
/-- If `A` be a set of natural numbers and let `x` be real, then `A.bddProdUpper x` is the finite upper-triangular set of pairs of elements of `A` that are `≤ x`. Specifically, it is the set `{(n, m) | n ∈ A, n ≤ x, m ∈ A, m ≤ x, n < m}` -/ @[inline] abbrev bddProdUpper : Set (ℕ × ℕ) := {y ∈ (A ∩ Icc 1 ⌊x⌋₊) ×ˢ (A ∩ ...
119
leanexplore_declaration
leanexplore:383161
leanexplore_sqlite
leanexplore_declarations
/-- The function $\operatorname{Log} x := \max\{log x, 1\}$. -/ noncomputable def Real.maxLogOne (x : ℝ) := max x.log 1
317
leanexplore_declaration
leanexplore:383162
leanexplore_sqlite
leanexplore_declarations
/-- Small example: for $p=5$, $c=1$, $n=0$, the pair $(2,3) \in (0,5)$ satisfies $2 \cdot 3 = 6 \equiv 1 \pmod{5}$. -/ @[category test, AMS 11] theorem erdos_445.test.small_example : Erdos445Prop 1 5 1 := by refine ⟨2, 3, by omega, ?_, by omega, ?_, by native_decide⟩ all_goals simp only [Real.rpow_one]; norm_num
257
leanexplore_declaration
leanexplore:383163
leanexplore_sqlite
leanexplore_declarations
/-- Heath-Brown [He00] used Kloosterman sums to prove this for all $c>3/4$. -/ @[category research solved, AMS 11] theorem erdos_445.variants.heath_brown : ∀ c : ℝ, c > 3 / 4 → ∀ᶠ p : ℕ in atTop, p.Prime → ∀ n : ℕ, Erdos445Prop c p n := by sorry
261
leanexplore_declaration
leanexplore:383164
leanexplore_sqlite
leanexplore_declarations
/-- Heilbronn (unpublished) proved this for $c$ sufficiently close to $1$. -/ @[category research solved, AMS 11] theorem erdos_445.variants.heilbronn : ∃ c₀ < 1, ∀ c : ℝ, c > c₀ → ∀ᶠ p : ℕ in atTop, p.Prime → ∀ n : ℕ, Erdos445Prop c p n := by sorry
401
leanexplore_declaration
leanexplore:383165
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that, for any $c>1/2$, if $p$ is a sufficiently large prime then, for any $n\geq 0$, there exist $a,b\in(n,n+p^c)$ such that $ab\equiv 1\pmod{p}$? This is discussed in this MathOverflow question [MathOverflow]. -/ @[category research open, AMS 11] theorem erdos_445 : answer(sorry) ↔ ∀ c : ℝ, c > 1 /...
258
leanexplore_declaration
leanexplore:383166
leanexplore_sqlite
leanexplore_declarations
/-- The property that there exist $a,b\in(n,n+p^c)$ such that $ab\equiv 1\pmod{p}$. -/ def Erdos445Prop (c : ℝ) (p n : ℕ) : Prop := ∃ a b : ℕ, n < a ∧ (a : ℝ) < (n : ℝ) + (p : ℝ) ^ c ∧ n < b ∧ (b : ℝ) < (n : ℝ) + (p : ℝ) ^ c ∧ a * b ≡ 1 [MOD p]
250
leanexplore_declaration
leanexplore:383167
leanexplore_sqlite
leanexplore_declarations
/-- The greedy construction gives a Sidon set of size approximately `√N`. -/ @[category undergraduate, AMS 5 11] theorem greedy_sidon_construction (N : ℕ) (hN : 1 ≤ N) : ∃ᵉ (A ⊆ Finset.Icc 1 N), IsSidon (A : Set ℕ) ∧ A.card ≥ N.sqrt := by sorry
243
leanexplore_declaration
leanexplore:383168
leanexplore_sqlite
leanexplore_declarations
/-- For any `N`, there exists a Sidon set of size at least `√N/2`. -/ @[category undergraduate, AMS 5 11] theorem sidon_set_lower_bound (N : ℕ) (hN : 1 ≤ N) : ∃ᵉ (A ⊆ Finset.Icc 1 N), IsSidon (A : Set ℕ) ∧ N.sqrt / 2 ≤ A.card := by sorry
499
leanexplore_declaration
leanexplore:383169
leanexplore_sqlite
leanexplore_declarations
/-- The set `{1, 2, 4, 8, 13}` is a Sidon set in `{1, ..., 13}`. -/ @[category undergraduate, AMS 5 11] theorem example_sidon_set : IsSidon ({1, 2, 4, 8, 13} : Set ℕ) := by intro i₁ hi₁ j₁ hj₁ i₂ hi₂ j₂ hj₂ hsum simp only [Set.mem_insert_iff, Set.mem_singleton_iff] at hi₁ hj₁ hi₂ hj₂ rcases hi₁ with rfl | rfl | r...
315
leanexplore_declaration
leanexplore:383170
leanexplore_sqlite
leanexplore_declarations
/-- The case where we start with an empty set (constructing large Sidon sets). -/ @[category research open, AMS 5 11] theorem erdos_44.variants.empty_start : answer(sorry) ↔ ∀ᵉ (ε > (0 : ℝ)), ∀ᶠ (M : ℕ) in Filter.atTop, ∃ᵉ (A ⊆ Finset.Icc 1 M), IsSidon (A : Set ℕ) ∧ (1 - ε) * Real.sqrt M ≤ A.card := by sorry
632
leanexplore_declaration
leanexplore:383171
leanexplore_sqlite
leanexplore_declarations
/-- **Erdős Problem 44:** Let N ≥ 1 and `A ⊆ {1,…,N}` be a Sidon set. Is it true that, for any ε > 0, there exist M = M(ε) and `B ⊆ {N+1,…,M}` such that `A ∪ B ⊆ {1,…,M}` is a Sidon set of size at least `(1−ε)M^{1/2}`? This problem asks whether any Sidon set can be extended to achieve a density arbitrarily close to th...
251
leanexplore_declaration
leanexplore:383172
leanexplore_sqlite
leanexplore_declarations
/-- The maximum size of a Sidon set in `{1, ..., N}` is less than or equal to `2 * √N`. -/ @[category undergraduate, AMS 5 11] theorem maxSidonSubsetCard_icc_bound (N : ℕ) (hN : 1 ≤ N) : maxSidonSubsetCard (Icc 1 N) ≤ 2 * Real.sqrt N := by sorry
246
leanexplore_declaration
leanexplore:383173
leanexplore_sqlite
leanexplore_declarations
/-- `limsup (fun n => (f n - 2 * n.nth Prime : ℕ∞)) atTop ≥ 2`, and this is proved in [Po79]. -/ @[category research solved, AMS 11] theorem erdos_454.variants.two_le_limsup : 2 ≤ limsup (fun n => (f n - 2 * n.nth Prime : ℕ∞)) atTop := by sorry
223
leanexplore_declaration
leanexplore:383174
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that `limsup (fun n => (f n - 2 * n.nth Prime : ℕ∞)) atTop = ⊤`? -/ @[category research open, AMS 11] theorem erdos_454 : answer(sorry) ↔ limsup (fun n => (f n - 2 * n.nth Prime : ℕ∞)) atTop = ⊤ := by sorry
228
leanexplore_declaration
leanexplore:383175
leanexplore_sqlite
leanexplore_declarations
/-- Define `f n` to be the minimum of `(n + i).nth Prime + (n - i).nth Prime` over `0 < i < n`. -/ noncomputable def f (n : ℕ) : ℕ := if n ≤ 1 then 0 else ⨅ i : {i : Fin n // 0 < (i : ℕ)}, (n + i).nth Prime + (n - i).nth Prime
429
leanexplore_declaration
leanexplore:383176
leanexplore_sqlite
leanexplore_declarations
/-- Let `q : ℕ → ℕ` be a strictly increasing sequence of primes such that `q (n + 2) - q (n + 1) ≥ q (n + 1) - q n`. Then `liminf q n / (n ^ 2) > 0.352`, and this is proved in [Ri76]. -/ @[category research solved, AMS 11] theorem erdos_455.variants.liminf : ∀ q : ℕ → ℕ, StrictMono q → (∀ n, (q n).Prime ∧ q (n + 2...
384
leanexplore_declaration
leanexplore:383177
leanexplore_sqlite
leanexplore_declarations
/-- Let `q : ℕ → ℕ` be a strictly increasing sequence of primes such that `q (n + 2) - q (n + 1) ≥ q (n + 1) - q n`. Must `lim q n / (n ^ 2) = ∞`? -/ @[category research open, AMS 11] theorem erdos_455: answer(sorry) ↔ ∀ q : ℕ → ℕ, StrictMono q → (∀ n, (q n).Prime ∧ q (n + 2) - q (n + 1) ≥ q (n + 1) - q n) → Te...