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
349
leanexplore_declaration
leanexplore:383585
leanexplore_sqlite
leanexplore_declarations
/-- Let $\epsilon > 0$. Is there some $r \ll_\epsilon 1$ such that the density of integers of the form $2^k+n$, where $k \geq 0$ and $n$ has at most $r$ prime divisors, is at least $1-\epsilon$? -/ @[category research open, AMS 11] theorem erdos_851 (ε : ℝ) (hε : ε ∈ Set.Ioo 0 1) : ∃ r d, (TwoPowAddSet r).HasDensit...
345
leanexplore_declaration
leanexplore:383586
leanexplore_sqlite
leanexplore_declarations
/-- The set of integers of the form `2^k+p` (where `p` is prime) has positive lower density. Formalisation note: here we also allow `p = 1` since this simplifies the code and is equivalent to the original statement. -/ @[category research solved, AMS 11] theorem erdos_851.variants.romanoff : 0 < Set.lowerDensity (TwoP...
211
leanexplore_declaration
leanexplore:383587
leanexplore_sqlite
leanexplore_declarations
/-- `TwoPowAddSet r` is the set of integers of the form `2^k+n`, where `k ≥ 0` and `n` has at most `r` prime divisors. -/ def TwoPowAddSet (r : ℕ) := {(2 ^ k + n) | (k : ℕ) (n : ℕ) (_ : n.primeFactors.card ≤ r)}
334
leanexplore_declaration
leanexplore:383588
leanexplore_sqlite
leanexplore_declarations
/-- Let $d_n = p_{n+1} - p_n$, where $p_n$ is the $n$th prime. Let $r(x)$ be the smallest even integer $t$ such that $d_n = t$ has no solutions for $n \le x$. Is it true that $r(x) / \log x \to \infty$? -/ @[category research open, AMS 11] theorem erdos_853.parts.ii : atTop.Tendsto (fun n ↦ r n / Real.log n) atTop...
295
leanexplore_declaration
leanexplore:383589
leanexplore_sqlite
leanexplore_declarations
/-- Let $d_n = p_{n+1} - p_n$, where $p_n$ is the $n$th prime. Let $r(x)$ be the smallest even integer $t$ such that $d_n = t$ has no solutions for $n \le x$. Is it true that $r(x) \to \infty$? -/ @[category research open, AMS 11] theorem erdos_853.parts.i : atTop.Tendsto r atTop := by sorry
101
leanexplore_declaration
leanexplore:383590
leanexplore_sqlite
leanexplore_declarations
noncomputable def r (x : ℕ) : ℕ := sInf { t : ℕ | 0 < t ∧ t % 2 = 0 ∧ ¬ (∃ n ≤ x, primeGap n = t) }
139
leanexplore_declaration
leanexplore:383591
leanexplore_sqlite
leanexplore_declarations
@[category research open, AMS 11] theorem erdos_855 : answer(sorry) ↔ ∀ᶠ x in atTop, ∀ᶠ y in atTop, π (x + y) ≤ π x + π y := by sorry
135
leanexplore_declaration
leanexplore:383592
leanexplore_sqlite
leanexplore_declarations
@[category undergraduate, AMS 11] lemma erdos_859.variants.positive_density (t : ℕ) : (DivisorSumSet t).HasPosDensity := by sorry
143
leanexplore_declaration
leanexplore:383593
leanexplore_sqlite
leanexplore_declarations
@[category high_school, AMS 11] lemma erdos_859.variants.trivial_case : DivisorSumSet 0 = Set.univ := by simp [DivisorSumSet, Exists.intro ∅]
224
leanexplore_declaration
leanexplore:383594
leanexplore_sqlite
leanexplore_declarations
@[category research open, AMS 11] theorem erdos_859 : ∃ c₁ > 0, ∃ c₂ > (0 : ℝ), ∃ d : ℕ → ℝ, (∀ t > 0, (DivisorSumSet t).HasDensity (d t)) ∧ (fun (t : ℕ) ↦ d t) ~[atTop] (fun t ↦ c₁ / Real.log t ^ c₂) := by sorry
489
leanexplore_declaration
leanexplore:383595
leanexplore_sqlite
leanexplore_declarations
/-- A weaker version of the problem proved by Erdos: The density `dₜ` of `DivisorSumSet (t : ℕ)` is bounded from below by `1 / log (t) ^ c₃` and from above by `1 / log (t) ^ c₄` for some positive constants `c₃` and `c₄`. -/ @[category research solved, AMS 11] theorem erdos_859.variants.erdos_upper_lower_bounds : ∃ᵉ (c₃...
207
leanexplore_declaration
leanexplore:383596
leanexplore_sqlite
leanexplore_declarations
/-- `DivisorSumSet t` is the set of natural numbers `n` such that `t` can be represented as a sum of distinct divisors of `n`. -/ def DivisorSumSet (t : ℕ) := { n : ℕ | ∃ s ⊆ Nat.divisors n, t = ∑ i ∈ s, i }
176
leanexplore_declaration
leanexplore:383597
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that, for all large $n$, $f(n + 1) \ge f(n)$? -/ @[category research open, AMS 5] theorem erdos_85 : answer(sorry) ↔ ∀ᶠ n in atTop, f n ≤ f (n + 1) := by sorry
247
leanexplore_declaration
leanexplore:383598
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be the smallest integer for which every graph on $n$ vertices with minimal degree $\geq f(n)$ contains a $C_4$. -/ noncomputable def f (n : ℕ) : ℕ := sInf {k : ℕ | ∀ (G : SimpleGraph (Fin n)), G.minDegree ≥ k → (cycleGraph 4) ⊑ G}
362
leanexplore_declaration
leanexplore:383599
leanexplore_sqlite
leanexplore_declarations
/-- Choi, Erdős, and Szemerédi [CES75] have proved that, for all $k\geq 3$, there exists $\epsilon_k>0$ such that (for large enough $N$) $f_k(N)\leq \left(\frac{2}{3}-\epsilon_k\right)N$. -/ @[category research solved, AMS 5 11] theorem erdos_865.variants.upper_bound (k : ℕ) (hk : 3 ≤ k) : ∃ ε > 0, ∀ᶠ N in atTop, (...
468
leanexplore_declaration
leanexplore:383600
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Sós conjectured that $f_k(N)\sim \frac{1}{2}\left(1+\sum_{1\leq r\leq k-2}\frac{1}{4^r}\right) N$, where $f_k(N)$ is the minimal size of a subset of $\{1, \dots, N\}$ guaranteeing $k$ elements have all pairwise sums in the set. -/ @[category research open, AMS 5 11] theorem erdos_865.variants.sos : ∀ᵉ...
139
leanexplore_declaration
leanexplore:383601
leanexplore_sqlite
leanexplore_declarations
noncomputable def f (N k : ℕ) : ℕ := sInf {m | ∀ A ⊆ Icc 1 N, A.card ≥ m → ∃ S ⊆ A, S.card = k ∧ ∀ x ∈ S, ∀ y ∈ S, x ≠ y → x + y ∈ A}
360
leanexplore_declaration
leanexplore:383602
leanexplore_sqlite
leanexplore_declarations
/-- It is a classical folklore fact that if $A\subseteq \{1,\ldots,2N\}$ has size $\geq N+2$ then there are distinct $a,b\in A$ such that $a+b\in A$, which establishes the $k=2$ case. -/ @[category research solved, AMS 5 11] theorem erdos_865.variants.k2 (N : ℕ) : ∀ A ⊆ Icc 1 (2 * N), A.card ≥ N + 2 → ∃ a ∈ A, ...
575
leanexplore_declaration
leanexplore:383603
leanexplore_sqlite
leanexplore_declarations
/-- There exists a constant $C>0$ such that, for all large $N$, if $A\subseteq \{1,\ldots,N\}$ has size at least $\frac{5}{8}N+C$ then there are distinct $a,b,c\in A$ such that $a+b,a+c,b+c\in A$. A problem of Erdős and Sós (also earlier considered by Choi, Erdős, and Szemerédi [CES75], but Erdős had forgotten this). ...
385
leanexplore_declaration
leanexplore:383604
leanexplore_sqlite
leanexplore_declarations
/-- Härtter and Nathanson proved that there exist additive bases which do not contain any minimal additive bases. -/ @[category research solved, AMS 5 11] theorem erdos_868.variants.Hartter_Nathanson (o : ℕ) (ho : 1 < o) : ∃ (A : Set ℕ), A.IsAsymptoticAddBasisOfOrder o ∧ ∀ B ⊆ A, B.IsAsymptoticAddBasisOfOrder o → ...
457
leanexplore_declaration
leanexplore:383605
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Nathanson proved that this is true if $f(n) > (\log \frac{4}{3})^{-1} \log n$ for all large $n$. -/ @[category research solved, AMS 5 11] theorem erdos_868.variants.fixed_ε : answer(True) ↔ ∀ (A : Set ℕ), A.IsAsymptoticAddBasisOfOrder 2 → (∀ᶠ (n : ℕ) in atTop, (Real.log (4 / 3))⁻¹ * Real.log n <...
618
leanexplore_declaration
leanexplore:383606
leanexplore_sqlite
leanexplore_declarations
/-- Let $A$ be an additive basis of order $2$, let $f(n)$ denote the number of ways in which $n$ can be written as the sum of two elements from $A$. If $f(n) > \epsilon \log n$ for large $n$ and an arbitrary fixed $\epsilon > 0$, then must $A$ contain a minimal additive basis of order $2$? -/ @[category research open, ...
558
leanexplore_declaration
leanexplore:383607
leanexplore_sqlite
leanexplore_declarations
/-- Let $A$ be an additive basis of order $2$, let $f(n)$ denote the number of ways in which $n$ can be written as the sum of two elements from $A$. If $f(n) \to \infty$ as $n \to \infty$, then must $A$ contain a minimal additive basis of order $2$? -/ @[category research open, AMS 5 11] theorem erdos_868.parts.i : ...
232
leanexplore_declaration
leanexplore:383608
leanexplore_sqlite
leanexplore_declarations
/-- The number of ways in which a natural `n` can be written as the sum of `o` members of the set `A`. -/ noncomputable def ncard_add_repr (A : Set ℕ) (o : ℕ) (n : ℕ) : ℕ := { a : Fin o → ℕ | Set.range a ⊆ A ∧ ∑ i, a i = n }.ncard
486
leanexplore_declaration
leanexplore:383609
leanexplore_sqlite
leanexplore_declarations
/-- Let $A = \{a_1 < a_2 < \dots\} \subseteq \mathbb{N}$ and let $F(A,X,k)$ count the number of $i$ such that $[a_i,a_{i+1}, \dots ,a_{i+k−1}] < X$, where the left-hand side is the least common multiple. Is it true that, for every $\epsilon > 0$, there exists some $k$ such that $F(A,X,k) < X^\epsilon$?-/ @[category res...
334
leanexplore_declaration
leanexplore:383610
leanexplore_sqlite
leanexplore_declarations
/-- Let $a$ be some sequence of natural numbers. We set $F(A,X,k)$ to be the count of the number of $i$ such that $[a_i,a_{i+1}, \dots ,a_{i+k−1}] < X$, where the left-hand side is the least common multiple. -/ noncomputable abbrev F (a : ℕ → ℕ) (X : ℝ) (k : ℕ) : ℕ∞ := {i : ℕ | (Finset.range k).lcm (fun m => a (i + m...
514
leanexplore_declaration
leanexplore:383611
leanexplore_sqlite
leanexplore_declarations
/-- Let `A ⊂ ℕ` be an additive basis of order `k` which is minimal in the sense that if `B ⊂ A` is any infinite set, then `A \ B` is not a basis of order `k`. Must there exist an infinite `B ⊂ A` such that `A \ B` is an additive basis of order `k + 1`? -/ @[category research open, AMS 5 11] theorem erdos_881 : ans...
597
leanexplore_declaration
leanexplore:383612
leanexplore_sqlite
leanexplore_declarations
/-- We interpret "additive basis of order `k`" as an asymptotic additive basis of order `k`, using the predicate `Set.IsAsymptoticAddBasisOfOrder` from additive combinatorics. A *minimal* additive basis of order `k` is a set `A` such that * `A` is an asymptotic additive basis of order `k`, and * for every infinite sub...
247
leanexplore_declaration
leanexplore:383613
leanexplore_sqlite
leanexplore_declarations
/-- Bremner [Br19] proved this for $k=4$. -/ @[category research solved, AMS 11] theorem erdos_885.variants.k_eq_4 : ∃ Ns : Finset ℕ, (∀ n ∈ Ns, 1 ≤ n) ∧ Ns.card = 4 ∧ (⋂ n ∈ Ns, factorDifferenceSet n).ncard ≥ 4 := by sorry
253
leanexplore_declaration
leanexplore:383614
leanexplore_sqlite
leanexplore_declarations
/-- Jiménez-Urroz [Ji99] proved this for $k=3$. -/ @[category research solved, AMS 11] theorem erdos_885.variants.k_eq_3 : ∃ Ns : Finset ℕ, (∀ n ∈ Ns, 1 ≤ n) ∧ Ns.card = 3 ∧ (⋂ n ∈ Ns, factorDifferenceSet n).ncard ≥ 3 := by sorry
269
leanexplore_declaration
leanexplore:383615
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Rosenfeld [ErRo97] proved this is true for $k=2$. -/ @[category research solved, AMS 11] theorem erdos_885.variants.k_eq_2 : ∃ Ns : Finset ℕ, (∀ n ∈ Ns, 1 ≤ n) ∧ Ns.card = 2 ∧ (⋂ n ∈ Ns, factorDifferenceSet n).ncard ≥ 2 := by sorry
332
leanexplore_declaration
leanexplore:383616
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that, for every $k \geq 1$, there exist integers $N_1 < \dots < N_k$ such that $|\cap_i D(N_i)| \geq k$? -/ @[category research open, AMS 11] theorem erdos_885 : answer(sorry) ↔ ∀ k ≥ 1, ∃ Ns : Finset ℕ, (∀ n ∈ Ns, 1 ≤ n) ∧ Ns.card = k ∧ (⋂ n ∈ Ns, factorDifferenceSet n).ncard ≥ k :...
200
leanexplore_declaration
leanexplore:383617
leanexplore_sqlite
leanexplore_declarations
/-- For integer $n \geq 1$ we define the factor difference set of $n$ by $D(n) = \{|a-b| : n=ab\}$. -/ def factorDifferenceSet (n : ℕ) : Set ℕ := {d | ∃ a b : ℕ, n = a * b ∧ (d : ℤ) = |(a : ℤ) - b|}
450
leanexplore_declaration
leanexplore:383618
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Rosenfeld [ErRo97] proved that, for any constant $C>0$, all large $n$ have at most $1+C^2$ many divisors in $[n^{1/2}, n^{1/2}+Cn^{1/4}]$. -/ @[category research solved, AMS 11] theorem erdos_886.variants.rosenfeld_bound : ∀ C > 0, ∀ᶠ (n : ℕ) in atTop, ((divisors n).filter (fun (d : ℕ) => (n...
312
leanexplore_declaration
leanexplore:383619
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Rosenfeld [ErRo97] proved that there are infinitely many $n$ such that there are four divisors of $n$ in $(n^{1/2},n^{1/2}+16n^{1/4})$. -/ @[category research solved, AMS 11] theorem erdos_886.variants.rosenfeld_infinite : Set.Infinite {n | 4 ≤ (Erdos886Divisors n (1/4) 16).card} := by sorry
349
leanexplore_declaration
leanexplore:383620
leanexplore_sqlite
leanexplore_declarations
/-- Let $\epsilon>0$. Is it true that, for all large $n$, the number of divisors of $n$ in $(n^{1/2},n^{1/2}+n^{1/2-\epsilon})$ is $O_\epsilon(1)$? Erdős attributes this conjecture to Ruzsa. -/ @[category research open, AMS 11] theorem erdos_886 : answer(sorry) ↔ ∀ ε > 0, ∃ K : ℕ, ∀ᶠ n in atTop, (Erdos886Divisors ...
282
leanexplore_declaration
leanexplore:383621
leanexplore_sqlite
leanexplore_declarations
/-- The set of divisors of $n$ in the interval $(n^{1/2}, n^{1/2} + n^{1/2-\epsilon})$. -/ noncomputable def Erdos886Divisors (n : ℕ) (ε : ℝ) (C : ℝ) : Finset ℕ := (divisors n).filter (fun d => (n : ℝ) ^ (1/2 : ℝ) < d ∧ (d : ℝ) < (n : ℝ) ^ (1/2 : ℝ) + C * (n : ℝ) ^ (1/2 - ε))
393
leanexplore_declaration
leanexplore:383622
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Rosenfeld, ask whether $4$ is the best possible $K$ for the infinitude of $n$ with (at least) $K$ divisors in $(n^{\frac{1}{2}}, n^{\frac{1}{2}} + n^{\frac{1}{4}})$. -/ @[category research open, AMS 11] theorem erdos_887.variants.rosenfeld_4 : IsGreatest {K | ∃ C > (0 : ℝ), Infinite {n : ℕ | K ≤...
371
leanexplore_declaration
leanexplore:383623
leanexplore_sqlite
leanexplore_declarations
/-- A question of Erdős and Rosenfeld, who proved that there are infinitely many $n$ with (at least) $4$ divisors in $(n^{\frac{1}{2}}, n^{\frac{1}{2}} + cn^{\frac{1}{4}})$. -/ @[category research solved, AMS 11] theorem erdos_887.variants.rosenfeld_infinite : ∃ C > (0 : ℝ), Infinite {n : ℕ | 4 ≤ #{ d ∈ Ioo ⌊√n⌋₊ ⌈...
369
leanexplore_declaration
leanexplore:383624
leanexplore_sqlite
leanexplore_declarations
/-- Is there an absolute constant $K$ such that, for every $C > 0$, if $n$ is sufficiently large then $n$ has at most $K$ divisors in $(n^{\frac{1}{2}}, n^{\frac{1}{2}} + C n^{\frac{1}{4}})$. -/ @[category research open, AMS 11] theorem erdos_887.parts.ii : ∃ K, ∀ C > (0 : ℝ), ∀ᶠ n in atTop, #{ d ∈ Ioo ⌊√n⌋₊ ⌈√n + ...
375
leanexplore_declaration
leanexplore:383625
leanexplore_sqlite
leanexplore_declarations
/-- Is there an absolute constant $K$ such that, for every $C > 0$, if $n$ is sufficiently large then $n$ has at most $K$ divisors in $(n^{\frac{1}{2}}, n^{\frac{1}{2}} + C n^{\frac{1}{4}})$. -/ @[category research open, AMS 11] theorem erdos_887.parts.i : ∀ C > (0 : ℝ), ∀ᶠ n in atTop, #{ d ∈ Ioo ⌊√n⌋₊ ⌈√n + C * n^...
220
leanexplore_declaration
leanexplore:383626
leanexplore_sqlite
leanexplore_declarations
/-- The primes show that `|A| ≫ n/log n` is possible. -/ @[category research solved, AMS 11] theorem erdos_888.variants.primes : (fun n : ℕ ↦ (Nat.findGreatest (p n) n : ℝ )) ≫ (fun n : ℕ ↦ n / (n : ℝ).log) := by sorry
174
leanexplore_declaration
leanexplore:383627
leanexplore_sqlite
leanexplore_declarations
/--`|A|=o(n)`. -/ @[category research solved, AMS 11] theorem erdos_888.variants.sarkozy : (fun n ↦ (Nat.findGreatest (p n) n : ℝ)) =o[atTop] (Nat.cast : ℕ → ℝ) := by sorry
254
leanexplore_declaration
leanexplore:383628
leanexplore_sqlite
leanexplore_declarations
/-- What is the size of the largest subset `A` of `{1,...,n}` such that if `a ≤ b ≤ c ≤ d ∈ A` and `abcd` square then `ad=bc` -/ @[category research open, AMS 11] theorem erdos_888 : ∀ n, Nat.findGreatest (p n) n = (answer(sorry) : ℕ → ℕ) n := by sorry
193
leanexplore_declaration
leanexplore:383629
leanexplore_sqlite
leanexplore_declarations
/-- Proposition that for a specific `n` an `A` with the above defined condition and cardinality `k` exists. -/ def p (n : ℕ) (k : ℕ) : Prop := ∃ A : Finset ℕ, RequiredCondition A n ∧ A.card = k
345
leanexplore_declaration
leanexplore:383630
leanexplore_sqlite
leanexplore_declarations
/-- Condition on the sets `A` appearing in Erdős 888. Namely, let `A` be a subset of `{1,...,n}` such that if `a ≤ b ≤ c ≤ d ∈ A` and `abcd` square then `ad=bc`. -/ def RequiredCondition (A : Finset ℕ) (n : ℕ) : Prop := A ⊆ Finset.Ioc 0 n ∧ ∀ᵉ (a ∈ A) (b ∈ A) (c ∈ A) (d ∈ A), a ≤ b → b ≤ c → c ≤ d → IsSquare (a * b...
453
leanexplore_declaration
leanexplore:383631
leanexplore_sqlite
leanexplore_declarations
/-- Does $V_1(n) = 1$ have finite solutions? This is a modification of `erdos_889.variants.v1_eq_1_finite`, which might make it more amenable to attack according to [ErSe67]. [ErSe67] Erdős, P. and Selfridge, J. L., Some problems on the prime factors of consecutive integers. Illinois J. Math. (1967), 428--430. -/ @[c...
125
leanexplore_declaration
leanexplore:383632
leanexplore_sqlite
leanexplore_declarations
/-- $V_l(n)$ is the supremum of $V(n,k)$ for all $k \ge l$ -/ noncomputable def V_l (l n : ℕ) : ℕ∞ := ⨆ k ≥ l, (V n k : ℕ∞)
350
leanexplore_declaration
leanexplore:383633
leanexplore_sqlite
leanexplore_declarations
/-- $V(n,k)$ is the number of primes $p$ such that $p^\alpha$ exactly divides $n+k$ and for all $0 \le i < k$, $p^\alpha$ does not divide $n+i$, where $\alpha$ is the multiplicity of $p$ in the factorization of $n+k$. -/ def V (n k : ℕ) : ℕ := ((n + k).primeFactors.filter (fun p => ∀ i ∈ range k, ¬ p ^ ((n + k).f...
322
leanexplore_declaration
leanexplore:383634
leanexplore_sqlite
leanexplore_declarations
/-- Does $v_1(n) = 1$ have finite solutions? [ErSe67] Erdős, P. and Selfridge, J. L., Some problems on the prime factors of consecutive integers. Illinois J. Math. (1967), 428--430. -/ @[category research open, AMS 11] theorem erdos_889.variants.v1_eq_1_finite : answer(sorry) ↔ {n | v_l 1 n = 1}.Finite := by sor...
363
leanexplore_declaration
leanexplore:383635
leanexplore_sqlite
leanexplore_declarations
/-- Let $v_l(n) = \max_{k\geq l} v(n,k)$. For every fixed $l$, $v_l(n) \to \infty$ as $n \to \infty$ [ErSe67] Erdős, P. and Selfridge, J. L., Some problems on the prime factors of consecutive integers. Illinois J. Math. (1967), 428--430. -/ @[category research open, AMS 11] theorem erdos_889.variants.general : ∀ l...
125
leanexplore_declaration
leanexplore:383636
leanexplore_sqlite
leanexplore_declarations
/-- $v_l(n)$ is the supremum of $v(n,k)$ for all $k \ge l$ -/ noncomputable def v_l (l n : ℕ) : ℕ∞ := ⨆ k ≥ l, (v n k : ℕ∞)
360
leanexplore_declaration
leanexplore:383637
leanexplore_sqlite
leanexplore_declarations
/-- $v_0(n) > 1$ for all $n$ except $n$ = 0, 1, 2, 3, 4, 7, 8, 16 [ErSe67] Erdős, P. and Selfridge, J. L., Some problems on the prime factors of consecutive integers. Illinois J. Math. (1967), 428--430. -/ @[category research solved, AMS 11] theorem erdos_889.variants.v0_gt_1 : ∀ n : ℕ, n ∉ ({0, 1, 2, 3, 4, 7, 8, ...
262
leanexplore_declaration
leanexplore:383638
leanexplore_sqlite
leanexplore_declarations
/-- Let $v(n,k)$ count the prime factors of $n+k$ which do not divide $n+i$ for $0\leq i < k$. Is it true that $v_0(n)=\max_{k\geq 0}v(n,k)\to \infty$ as $n\to \infty$? -/ @[category research open, AMS 11] theorem erdos_889 : Tendsto v₀ atTop (𝓝 ⊤) := by sorry
119
leanexplore_declaration
leanexplore:383639
leanexplore_sqlite
leanexplore_declarations
/-- $v_0(n)$ is the supremum of $v(n,k)$ for all $k \ge 0$. -/ noncomputable def v₀ (n : ℕ) : ℕ∞ := ⨆ k, (v n k : ℕ∞)
200
leanexplore_declaration
leanexplore:383640
leanexplore_sqlite
leanexplore_declarations
/-- $v(n,k)$ counts the prime factors of $n+k$ which do not divide $n+i$ for all $0 \le i < k$. -/ def v (n k : ℕ) : ℕ := ((n + k).primeFactors.filter (fun p => ∀ i ∈ range k, ¬ p ∣ n + i)).card
256
leanexplore_declaration
leanexplore:383641
leanexplore_sqlite
leanexplore_declarations
/-- It is a classical fact that $\limsup_{n\to \infty}\omega(n)\frac{\log\log n}{\log n}=1.$ -/ @[category research solved, AMS 11] theorem erdos_890.variants.omega_limsup : limsup (fun n ↦ (ω n : EReal) * (log (log n) / log n)) atTop = 1 := by sorry
608
leanexplore_declaration
leanexplore:383642
leanexplore_sqlite
leanexplore_declarations
/-- A question of Erdős and Selfridge [ErSe67], who observe that $\liminf_{n\to \infty}\sum_{0\leq i < k}\omega(n+i)\geq k+\pi(k)-1$ for every $k$. This follows from Pólya's theorem that the set of $k$-smooth integers has unbounded gaps - indeed, $n(n+1)\cdots (n+k-1)$ is divisible by all primes $\leq k$ and, provided ...
316
leanexplore_declaration
leanexplore:383643
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that $\limsup_{n\to \infty}\left(\sum_{0\leq i < k}\omega(n+i)\right) \frac{\log\log n}{\log n}=1?$ -/ @[category research open, AMS 11] theorem erdos_890.parts.b : answer(sorry) ↔ ∀ k ≥ 1, limsup (fun n ↦ (∑ i ∈ range k, (ω (n + i) : EReal)) * (log (log n) / log n)) atTop = 1 := by sorry
358
leanexplore_declaration
leanexplore:383644
leanexplore_sqlite
leanexplore_declarations
/-- If $\omega(n)$ counts the number of distinct prime factors of $n$, then is it true that, for every $k\geq 1$, $\liminf_{n\to \infty}\sum_{0\leq i < k}\omega(n+i)\leq k+\pi(k)?$ -/ @[category research open, AMS 11] theorem erdos_890.parts.a : answer(sorry) ↔ ∀ k ≥ 1, liminf (fun n ↦ (∑ i ∈ range k, (ω (n + i) : ...
680
leanexplore_declaration
leanexplore:383645
leanexplore_sqlite
leanexplore_declarations
/-- Weisenberg has observed that Dickson's conjecture implies the answer is no if we replace $p_1\cdots p_k$ with $p_1\cdots p_k-1$. Indeed, let $L_k$ be the lowest common multiple of all integers at most $p_1\cdots p_k$. By Dickson's conjecture [Wikipedia], there are infinitely many $n'$ such that $\frac{L_k}{m}n'+1$ ...
341
leanexplore_declaration
leanexplore:383646
leanexplore_sqlite
leanexplore_declarations
/-- This is unknown even for $k=2$ - that is, is it true that in every interval of $6$ (sufficiently large) consecutive integers there must exist one with at least $3$ prime factors? -/ @[category research open, AMS 11] theorem erdos_891.variants.case_k_2 : answer(sorry) ↔ ∀ᶠ n in atTop, ∃ m ∈ Ico n (n + 6), ...
404
leanexplore_declaration
leanexplore:383647
leanexplore_sqlite
leanexplore_declarations
/-- Schinzel deduced from Pólya's theorem [Po18] (that the sequence of $k$-smooth integers has unbounded gaps) that this is true with $p_1\cdots p_k$ replaced by $p_1\cdots p_{k-1}p_{k+1}$. -/ @[category research solved, AMS 11] theorem erdos_891.variants.schinzel : ∀ k ≥ 2, ∀ᶠ n in atTop, ∃ m ∈ Ico n (n + (∏...
376
leanexplore_declaration
leanexplore:383648
leanexplore_sqlite
leanexplore_declarations
/-- Let $2=p_1 < p_2 < \cdots$ be the primes and $k\geq 2$. Is it true that, for all sufficiently large $n$, there must exist an integer in $[n,n+p_1\cdots p_k)$ with $>k$ many prime factors? -/ @[category research open, AMS 11] theorem erdos_891 : answer(sorry) ↔ ∀ k ≥ 2, ∀ᶠ n in atTop, ∃ m ∈ Ico n (n ...
363
leanexplore_declaration
leanexplore:383649
leanexplore_sqlite
leanexplore_declarations
/-- Kovač and Luca [KoLu25] (building on a heuristic independently found by Cambie (personal communication)) have shown that there is no finite limit, in that $\lim_{n\to\infty} \frac{f(2n)}{f(n)}$ is unbounded. -/ @[category research solved, AMS 5] theorem erdos_893.variants.unbounded : ¬ BddAbove (Set.range fun n ...
294
leanexplore_declaration
leanexplore:383650
leanexplore_sqlite
leanexplore_declarations
/-- Does the limit $\lim_{n\to\infty} \frac{f(2n)}{f(n)}$ tend to infinity? (Other finite limits have been ruled out by [KoLu25], see below) -/ @[category research open, AMS 5] theorem erdos_893 : answer(sorry) ↔ Tendsto (fun n : ℕ => (f (2 * n) : ℝ) / (f n : ℝ)) atTop atTop := by sorry
203
leanexplore_declaration
leanexplore:383651
leanexplore_sqlite
leanexplore_declarations
/-- Definition of function $f(n) := \sum_{1\leq k\leq n}\tau(2^k-1)$. Here $\tau$ is the divisor counting function, which is `σ 0` in mathlib. -/ def f (n : ℕ) : ℕ := ∑ k ∈ Finset.Icc 1 n, σ 0 (2^k - 1)
683
leanexplore_declaration
leanexplore:383652
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be an additive function (so that $f(ab)=f(a)+f(b)$ if $(a,b)=1$) such that $\limsup_{p,k} f(p^k) \log(p^k) = ∞$ and $f(p^k) = f(p)$ or $f(p^k) = kf(p)$. Is it true that $\limsup_n f(n+1)/f(n) = ∞$? -/ @[category research open, AMS 11] theorem erdos_897.variants.parts.ii : answer(sorry) ↔ ∀ (f : ℕ → ℝ), ...
708
leanexplore_declaration
leanexplore:383653
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be an additive function (so that $f(ab)=f(a)+f(b)$ if $(a,b)=1$) such that $\limsup_{p,k} f(p^k) \log(p^k) = ∞$ and $f(p^k) = f(p)$ or $f(p^k) = kf(p)$. Is it true that $\limsup_n (f(n+1)−f(n))/ \log n = ∞$? -/ @[category research open, AMS 11] theorem erdos_897.variants.parts.i : answer(sorry) ↔ ∀ (f : ...
540
leanexplore_declaration
leanexplore:383654
leanexplore_sqlite
leanexplore_declarations
/-- Wirsing [Wi70] proved that if $|f(n+1)−f(n)| ≤ C$ then $f(n) = c \log n + O(1)$ for some constant $c$. [Wi70] Wirsing, E., _A characterization of $\log n$ as an additive arithmetic function_. Symposia Math. (1970), 45-47. -/ @[category research solved, AMS 11] theorem erdos_897.variants.log_growth (f : ℕ → ℝ) ...
553
leanexplore_declaration
leanexplore:383655
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be an additive function (so that $f(ab)=f(a)+f(b)$ if $(a,b)=1$) such that $\limsup_{p,k} f(p^k) \log(p^k) = ∞$. Is it true that $\limsup_n f(n+1)/ f(n) = ∞$? -/ @[category research open, AMS 11] theorem erdos_897.parts.ii : answer(sorry) ↔ ∀ (f : ℕ → ℝ), (∀ᵉ (a > 0) (b > 0), a.Coprime b → f (a * b) ...
576
leanexplore_declaration
leanexplore:383656
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be an additive function (so that $f(ab)=f(a)+f(b)$ if $(a,b)=1$ such that $\limsup_{p,k} f(p^k) \log(p^k) = ∞$. Is it true that $\limsup_n (f(n+1)−f(n))/ \log n = ∞$? -/ @[category research open, AMS 11] theorem erdos_897.parts.i : answer(sorry) ↔ ∀ (f : ℕ → ℝ), (∀ᵉ (a > 0) (b > 0), a.Coprime b → f (...
620
leanexplore_declaration
leanexplore:383657
leanexplore_sqlite
leanexplore_declarations
/-- Let $A\subseteq\mathbb{N}$ be an infinite set such that $|A\cap \{1, ..., N\}| = o(N)$. Is it true that $$ \limsup_{N\to\infty}\frac{|(A - A)\cap \{1, ..., N\}|}{|A \cap \{1, ..., N\}|} = \infty? $$ The answer is yes, proved by Ruzsa [Ru78]. [Ru78] Ruzsa, I. Z., _On the cardinality of {$A+A$}\ and {$A-A$}_. (1978...
838
leanexplore_declaration
leanexplore:383658
leanexplore_sqlite
leanexplore_declarations
/-- This theorem provides a sanity check, showing that the main conjecture (`erdos_89`) is strictly stronger than the solved Guth and Katz result. It proves that, trivially, if the lower bound $\frac{n}{\sqrt{\log n}}$ holds, then the weaker lower bound $\frac{n}{\log n}$ must also hold. -/ @[category test, AMS 52] the...
417
leanexplore_declaration
leanexplore:383659
leanexplore_sqlite
leanexplore_declarations
/-- Guth and Katz [GuKa15] proved that there are always $\gg \frac{n}{\log n}$ many distinct distances. [GuKa15] Guth, Larry and Katz, Nets Hawk, On the Erdős distinct distances problem in the plane. Ann. of Math. (2) (2015), 155-190. -/ @[category research solved, AMS 52] theorem erdos_89.variants.n_dvd_log_n : (...
288
leanexplore_declaration
leanexplore:383660
leanexplore_sqlite
leanexplore_declarations
/-- Does every set of $n$ distinct points in $\mathbb{R}^2$ determine $\gg \frac{n}{\sqrt{\log n}}$ many distinct distances? -/ @[category research open, AMS 52] theorem erdos_89 : (fun (n : ℕ) => n/(n : ℝ).log.sqrt) =O[atTop] (fun n => (minimalDistinctDistances n : ℝ)) := by sorry
411
leanexplore_declaration
leanexplore:383661
leanexplore_sqlite
leanexplore_declarations
/-- Does there exists an entire non-zero transcendental function `f : ℂ → ℂ` such that for any sequence `n₀ < n₁ < ...`, `{ z | ∃ k, iteratedDeriv (n k) f z = 0 }` is dense. -/ @[category research open, AMS 30] theorem erdos_906 : answer(sorry) ↔ ∃ f : ℂ → ℂ, Transcendental (Polynomial ℂ) f ∧ Differentiable ℂ f ∧ ∀...
384
leanexplore_declaration
leanexplore:383662
leanexplore_sqlite
leanexplore_declarations
/-- Does every set of $n$ distinct points in $\mathbb{R}^2$ contain at most $n^{1+O(\frac{1}{\log\log n})}$ many pairs which are distance $1$ apart? -/ @[category research open, AMS 52] theorem erdos_90 : answer(sorry) ↔ ∃ (O : ℕ → ℝ) (hO : O =O[atTop] (fun n => 1 / (n : ℝ).log.log)), (fun n => (maxUnitDistances n ...
236
leanexplore_declaration
leanexplore:383663
leanexplore_sqlite
leanexplore_declarations
/-- The **maximum number of unit distances** determined by any set of $n$ points in the plane. This function is often denoted as $u(n)$ in combinatorics. -/ noncomputable def maxUnitDistances (n : ℕ) : ℕ := sSup (unitDistanceCounts n)
622
leanexplore_declaration
leanexplore:383664
leanexplore_sqlite
leanexplore_declarations
/-- This lemma confirms that the set of possible unit distance counts is bounded above, which ensures that taking the supremum (`sSup`) is a well-defined operation. The trivial upper bound is the total number of pairs of points, $\binom{n}{2}$. -/ @[category test, AMS 52] theorem unitDistanceCounts_BddAbove (n : ℕ) : B...
226
leanexplore_declaration
leanexplore:383665
leanexplore_sqlite
leanexplore_declarations
/-- The set of all possible numbers of unit distances for a configuration of $n$ points. -/ noncomputable def unitDistanceCounts (n : ℕ) : Set ℕ := {unitDistancePairsCount points | (points : Finset ℝ²) (_ : points.card = n)}
295
leanexplore_declaration
leanexplore:383666
leanexplore_sqlite
leanexplore_declarations
/-- Given a finite set of points, this function counts the number of **unordered pairs** of distinct points that are at a distance of exactly 1 from each other. -/ noncomputable def unitDistancePairsCount (points : Finset ℝ²) : ℕ := (points.offDiag.filter (fun p => dist p.1 p.2 = 1)).card / 2
281
leanexplore_declaration
leanexplore:383667
leanexplore_sqlite
leanexplore_declarations
/-- A heuristic of Tao using the Cramér model for the primes suggests this is true with $c=\sqrt{2\pi}$. -/ @[category research open, AMS 11] theorem erdos_912.variants.tao : (fun n => (h n : ℝ)) ~[atTop] (fun n => √(2 * Real.pi) * (n / Real.log n) ^ (1 / 2 : ℝ)) := by sorry
278
leanexplore_declaration
leanexplore:383668
leanexplore_sqlite
leanexplore_declarations
/-- Prove that there exists some $c>0$ such that $$h(n) \sim c \left(\frac{n}{\log n}\right)^{1/2}$$ as $n\to \infty$. -/ @[category research open, AMS 11] theorem erdos_912 : ∃ c > 0, (fun n => (h n : ℝ)) ~[atTop] (fun n => c * (n / Real.log n) ^ (1 / 2 : ℝ)) := by sorry
265
leanexplore_declaration
leanexplore:383669
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Selfridge prove in [Er82c] that $h(n) \asymp \left(\frac{n}{\log n}\right)^{1/2}$. -/ @[category research solved, AMS 11] theorem erdos_912.variants.selfridge : (fun n => (h n : ℝ)) =Θ[atTop] (fun n => (n / Real.log n) ^ (1 / 2 : ℝ)) := by sorry
213
leanexplore_declaration
leanexplore:383670
leanexplore_sqlite
leanexplore_declarations
/-- If $n! = \prod_{i}p_i^{k_i}$ is the factorization into distinct primes, then we define $h(n)$ to be the number of distinct exponents $k_i$. -/ noncomputable def h (n : ℕ) : ℕ := (n !).factorization.frange.card
2,326
leanexplore_declaration
leanexplore:383671
leanexplore_sqlite
leanexplore_declarations
/-- If there are infinitely many primes $p$ such that $8p^2 - 1$ is prime, then this is true. -/ @[category research solved, AMS 11] theorem erdos_913.variants.conditional (h : { p | p.Prime ∧ (8 * p ^ 2 - 1).Prime }.Infinite) : { n | Set.InjOn (n * (n + 1)).factorization (n * (n + 1)).primeFactors }.Infinite := by...
262
leanexplore_declaration
leanexplore:383672
leanexplore_sqlite
leanexplore_declarations
/-- It is likely that there are infinitely many primes $p$ such that $8p^2 - 1$ is also prime. -/ @[category research open, AMS 11] theorem erdos_913.variants.infinite_many_8p_sq_add_one_primes : { p | p.Prime ∧ (8 * p ^ 2 - 1).Prime }.Infinite := by sorry
337
leanexplore_declaration
leanexplore:383673
leanexplore_sqlite
leanexplore_declarations
/-- Are there infinitely many $n$ such that if $$ n(n + 1) = \prod_i p_i^{k_i} $$ is the factorisation into distinct primes then all exponents $k_i$ are distinct? -/ @[category research open, AMS 11] theorem erdos_913 : answer(sorry) ↔ { n | Set.InjOn (n * (n + 1)).factorization (n * (n + 1)).primeFactors }.Infin...
507
leanexplore_declaration
leanexplore:383674
leanexplore_sqlite
leanexplore_declarations
/-- In [ErHa69] the questions are stated with $= \aleph_0$ rather than $\leq\aleph_0$. This is a likely typo since it can be shown that no such graph exists in this case. This is the second question with all subgraphs. -/ @[category high_school, AMS 5] theorem erdos_918.variants.eq_aleph_0_all_subgraphs.parts.ii (ω : ...
495
leanexplore_declaration
leanexplore:383675
leanexplore_sqlite
leanexplore_declarations
/-- In [ErHa69] the questions are stated with $= \aleph_0$ rather than $\leq\aleph_0$. This is a likely typo since it can be shown that no such graph exists in this case. This is the second question with induced subgraphs. -/ @[category undergraduate, AMS 5] theorem erdos_918.variants.eq_aleph_0.parts.ii (ω : Ordinal)...
485
leanexplore_declaration
leanexplore:383676
leanexplore_sqlite
leanexplore_declarations
/-- In [ErHa69] the questions are stated with $= \aleph_0$ rather than $\leq\aleph_0$. This is a likely typo since it can be shown that no such graph exists in this case. This is the first question with all subgraphs. -/ @[category high_school, AMS 5] theorem erdos_918.variants.eq_aleph_0_all_subgraphs.parts.i : ¬...
473
leanexplore_declaration
leanexplore:383677
leanexplore_sqlite
leanexplore_declarations
/-- In [ErHa69] the questions are stated with $= \aleph_0$ rather than $\leq\aleph_0$. This is a likely typo since it can be shown that no such graph exists in this case. This is the first question with induced subgraphs. -/ @[category undergraduate, AMS 5] theorem erdos_918.variants.eq_aleph_0.parts.i : ¬∃ (V : T...
645
leanexplore_declaration
leanexplore:383678
leanexplore_sqlite
leanexplore_declarations
/-- A question of Erd\H{o}s and Hajnal [ErHa68b], who proved that for every finite $k$ there is a graph with chromatic number $\aleph_1$ and $\aleph_k$ vertices where each subgraph on less than $\aleph_k$ vertices has chromatic number $\leq \aleph_0$. -/ -- Formalisation note: the source is missing the assumption that ...
479
leanexplore_declaration
leanexplore:383679
leanexplore_sqlite
leanexplore_declarations
/-- Is there a graph with $\aleph_{\omega+1}$ vertices and chromatic number $\aleph_1$ such that every subgraph on $\aleph_\omega$ vertices has chromatic number $\leq\aleph_0$? -/ @[category research open, AMS 5] theorem erdos_918.variants.all_subgraphs.parts.ii : answer(sorry) ↔ ∀ (ω : Ordinal), ∃ (V : Type ...
533
leanexplore_declaration
leanexplore:383680
leanexplore_sqlite
leanexplore_declarations
/-- Is there a graph with $\aleph_2$ vertices and chromatic number $\aleph_2$ such that every subgraph on $\aleph_1$ vertices has chromatic number $\leq\aleph_0$? -/ -- Formalisation note: It is not clear whether this question for general subgraphs is open or not @[category research open, AMS 5] theorem erdos_918.varia...
450
leanexplore_declaration
leanexplore:383681
leanexplore_sqlite
leanexplore_declarations
/-- Is there a graph with $\aleph_{\omega+1}$ vertices and chromatic number $\aleph_1$ such that every subgraph on $\aleph_\omega$ vertices has chromatic number $\leq\aleph_0$? -/ @[category research open, AMS 5] theorem erdos_918.parts.ii : answer(sorry) ↔ ∀ (ω : Ordinal), ∃ (V : Type u) (G : SimpleGraph V), #...
485
leanexplore_declaration
leanexplore:383682
leanexplore_sqlite
leanexplore_declarations
/-- Is there a graph with $\aleph_2$ vertices and chromatic number $\aleph_2$ such that every subgraph on $\aleph_1$ vertices has chromatic number $\leq\aleph_0$? -/ -- Formalisation note: source material [ErHa68b] uses only induced subgraphs @[category research open, AMS 5] theorem erdos_918.parts.i : answer(sorry...
201
leanexplore_declaration
leanexplore:383683
leanexplore_sqlite
leanexplore_declarations
/-- In [Er87b] on p.171 Erdős says that there are at least two non-similar examples for $n = 9$. -/ @[category research solved, AMS 52] theorem erdos_91.variants.nine: ¬ UniqueMinimizer 9 := by sorry
202
leanexplore_declaration
leanexplore:383684
leanexplore_sqlite
leanexplore_declarations
/-- In [Er87b] on p.171 Erdős says that there are at least two non-similar examples for $n = 8$. -/ @[category research solved, AMS 52] theorem erdos_91.variants.eight: ¬ UniqueMinimizer 8 := by sorry