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
412
leanexplore_declaration
leanexplore:382175
leanexplore_sqlite
leanexplore_declarations
/-- From [Piepmeyer]: 9 points with diameter $< 5$. TODO: find reference -/ @[category research solved, AMS 52, formal_proof using formal_conjectures at "https://github.com/theaustinhatfield/formal-conjectures/blob/solve-erdos-100-piepmeyer/FormalConjectures/ErdosProblems/100.lean"] theorem erdos_100_piepmeyer : ∃ ...
276
leanexplore_declaration
leanexplore:382176
leanexplore_sqlite
leanexplore_declarations
/-- From [GuKa15]: diameter $\gg n / \log n$. -/ @[category research solved, AMS 52] theorem erdos_100.variants.guth_katz : ∃ C > (0 : ℝ), ∀ᶠ n in atTop, ∀ A : Finset ℝ², A.card = n → DistancesSeparated A → diam (A : Set ℝ²) ≥ C * n / log n := by sorry
300
leanexplore_declaration
leanexplore:382177
leanexplore_sqlite
leanexplore_declarations
/-- From [Kanold]: diameter $\geq n^{3/4}$. TODO: find reference -/ @[category research solved, AMS 52] theorem erdos_100.variants.kanold : ∃ C > (0 : ℝ), ∀ᶠ n in atTop, ∀ A : Finset ℝ², A.card = n → DistancesSeparated A → diam (A : Set ℝ²) ≥ (n : ℝ) ^ (3 / 4 : ℝ) := by sorry
277
leanexplore_declaration
leanexplore:382178
leanexplore_sqlite
leanexplore_declarations
/-- Stronger conjecture: diameter $\geq n - 1$ for sufficiently large $n$. -/ @[category research open, AMS 52] theorem erdos_100.variants.strong : ∀ᶠ n in atTop, ∀ A : Finset ℝ², A.card = n → DistancesSeparated A → diam (A : Set ℝ²) ≥ n - 1 := by sorry
285
leanexplore_declaration
leanexplore:382179
leanexplore_sqlite
leanexplore_declarations
/-- Is the diameter of $A$ at least $Cn$ for some constant $C > 0$? -/ @[category research open, AMS 52] theorem erdos_100 : answer(sorry) ↔ ∃ C > (0 : ℝ), ∀ᶠ n in atTop, ∀ A : Finset ℝ², A.card = n → DistancesSeparated A → diam (A : Set ℝ²) > C * n := by sorry
229
leanexplore_declaration
leanexplore:382180
leanexplore_sqlite
leanexplore_declarations
/-- If two distances in A differ, they differ by at least 1. -/ def DistancesSeparated (A : Finset ℝ²) : Prop := ∀ p₁ q₁ p₂ q₂, p₁ ∈ A → q₁ ∈ A → p₂ ∈ A → q₂ ∈ A → dist p₁ q₁ ≠ dist p₂ q₂ → |dist p₁ q₁ - dist p₂ q₂| ≥ 1
273
leanexplore_declaration
leanexplore:382181
leanexplore_sqlite
leanexplore_declarations
/-- Given $n$ points in $\mathbb{R}^2$, no five of which are on a line, the number of lines containing four points is $o(n^2)$. -/ @[category research open, AMS 52] theorem erdos_101 : (fun n => (numLinesWithFourPointMax n : ℝ)) =o[atTop] (fun n => (n : ℝ)^2) := by sorry
352
leanexplore_declaration
leanexplore:382182
leanexplore_sqlite
leanexplore_declarations
/-- The maximum number of lines containing exactly $4$ points among all sets $S$ of $n$ points in $\mathbb{R}^2$ satisfying the condition that no five points are collinear. -/ noncomputable def numLinesWithFourPointMax (n : ℕ) : ℕ := sSup {((linesWithPointsFor 4 S).ncard)| (S : Set ℝ²) (_ : S.ncard = n) (_ : S.Fi...
456
leanexplore_declaration
leanexplore:382183
leanexplore_sqlite
leanexplore_declarations
/-- The infimum of `|{x ∈ ℝ : |f x| < 1}|` over all nonconstant monic polynomials `f` such that all of its roots are real and contained in `[-1,1]` is `≥ 2 ^ (4 / 3) - 1`. -/ @[category research solved, AMS 28] theorem erdos_1038.varaints.inf_lowerBound (n : ℕ) : 2 ^ (4 / 3 : ℝ) - 1 ≤ ⨅ f : {f : Polynomial ℝ // f.M...
428
leanexplore_declaration
leanexplore:382184
leanexplore_sqlite
leanexplore_declarations
/-- The infimum of `|{x ∈ ℝ : |f x| < 1}|` over all nonconstant monic polynomials `f` such that all of its roots are real and contained in `[-1,1]` is `< 1.835`. -/ @[category research solved, AMS 28] theorem erdos_1038.variants.inf_upperBound (n : ℕ) : ⨅ f : {f : Polynomial ℝ // f.Monic ∧ f ≠ 1 ∧ (f.roots.filter f...
447
leanexplore_declaration
leanexplore:382185
leanexplore_sqlite
leanexplore_declarations
/-- The supremum of `|{x ∈ ℝ : |f x| < 1}|` over all monic polynomials `f` such that all of its roots are real and contained in `[-1,1]` is `2 * 2 ^ (1 / 2)`. This is proved in [Tao25]. -/ @[category research solved, AMS 28] theorem erdos_1038.parts.ii (n : ℕ) : 2 * 2 ^ (1 / 2 : ℝ) = ⨆ f : {f : Polynomial ℝ // f.Mo...
417
leanexplore_declaration
leanexplore:382186
leanexplore_sqlite
leanexplore_declarations
/-- What is the infimum of `|{x ∈ ℝ : |f x| < 1}|` over all nonconstant monic polynomials `f` such that all of its roots are real and contained in `[-1,1]`? -/ @[category research open, AMS 28] theorem erdos_1038.parts.i (n : ℕ) : answer(sorry) = ⨅ f : {f : Polynomial ℝ // f.Monic ∧ f ≠ 1 ∧ (f.roots.filter fun ...
470
leanexplore_declaration
leanexplore:382187
leanexplore_sqlite
leanexplore_declarations
/-- Let $$ f(z) = \prod_{i=1}^{n} (z - z_i) \in \mathbb{C}[x] $$ with $|z_i| < 1$ for all $i$. Conjecture: Must there always exist a path of length less than 2 in $$ \{ z \in \mathbb{C} \mid |f(z)| < 1 \} $$ which connects two of the roots of $f$? -/ @[category research open, AMS 32] theorem erdos_1041 : ∃ (z₁ z₂ ...
618
leanexplore_declaration
leanexplore:382188
leanexplore_sqlite
leanexplore_declarations
/-- **Erdős–Herzog–Piranian Component Lemma** (Metric Properties of Polynomials, 1958): If $f$ is a monic degree $n$ polynomial with all roots in the unit disk, then some connected component of $\{z \mid |f(z)| < 1\}$ contains at least two roots with multiplicity. See p. 139, above Problem 5: [EHP58] Erdős, P. and Her...
177
leanexplore_declaration
leanexplore:382189
leanexplore_sqlite
leanexplore_declarations
/-- The length of a subset $s$ of $\mathbb{C}$ is defined to be its 1-dimensional Hausdorff measure $\mathcal{H}^1(s)$. -/ noncomputable def length (s : Set ℂ) : ℝ≥0∞ := μH[1] s
347
leanexplore_declaration
leanexplore:382190
leanexplore_sqlite
leanexplore_declarations
/-- On the other hand, Pommerenke also proved there always exists a line such that the projection has measure at most 3.3. -/ @[category research solved, AMS 28 30] theorem erdos_1043.variants.weak : ∀ (f : ℂ[X]), f.Monic → f.degree ≥ 1 → ∃ (u : ℂ), ‖u‖ = 1 ∧ volume ((ℝ ∙ u).orthogonalProjection '' leve...
845
leanexplore_declaration
leanexplore:382191
leanexplore_sqlite
leanexplore_declarations
/-- **Erdős Problem 1043**: Let $f\in \mathbb{C}[x]$ be a monic polynomial. Must there exist a straight line $\ell$ such that the projection of \[\{ z: \lvert f(z)\rvert\leq 1\}\] onto $\ell$ has measure at most $2$? Pommerenke [Po61] proved that the answer is no. This was formalized in Lean by Alexeev using Aristotl...
134
leanexplore_declaration
leanexplore:382192
leanexplore_sqlite
leanexplore_declarations
/-- The set $\{ z \in \mathbb{C} : \lvert f(z)\rvert\leq 1\}$ -/ def levelSet (f : Polynomial ℂ) : Set ℂ := {z : ℂ | ‖f.eval z‖ ≤ 1}
274
leanexplore_declaration
leanexplore:382193
leanexplore_sqlite
leanexplore_declarations
/-- The Lambert series identity where $x = 1/t$ for the divisor function. -/ @[category test, AMS 11] theorem lambert_series_eq_num_divisor_sum : ∀ t : ℚ, ∑' n : ℕ+, 1 / ((t : ℝ) ^ (n : ℕ) - 1) = ∑' n : ℕ+, (n : ℕ).divisors.card / ((t : ℝ) ^ (n : ℕ)) := by sorry
240
leanexplore_declaration
leanexplore:382194
leanexplore_sqlite
leanexplore_declarations
/-- Erdős [Er48] proved that this is true if $t\geq 2$ is an integer. -/ @[category research solved, AMS 11] theorem erdos_1049.variants.geq_2_integer : ∀ t : ℤ, t ≥ 2 → Irrational (∑' n : ℕ+, 1 / ((t : ℝ) ^ (n : ℕ) - 1)) := by sorry
353
leanexplore_declaration
leanexplore:382195
leanexplore_sqlite
leanexplore_declarations
/-- Let $t>1$ be a rational number. Is $\sum_{n=1}^\infty\frac{1}{t^n-1}=\sum_{n=1}^\infty \frac{\tau(n)}{t^n}$ irrational, where $\tau(n)$ counts the divisors of $n$? A conjecture of Chowla. -/ @[category research open, AMS 11] theorem erdos_1049 : answer(sorry) ↔ ∀ t : ℚ, t > 1 → Irrational (∑' n : ℕ+, 1 / ((t :...
405
leanexplore_declaration
leanexplore:382196
leanexplore_sqlite
leanexplore_declarations
/-- Erdős [Er88c] notes that if the sequence grows rapidly to infinity (specifically, if $a_{n+1} \geq C \cdot a_n^2$ for some constant $C > 0$), then the series is irrational. -/ @[category research solved, AMS 11] theorem erdos_1051.variants.rapid_growth (a : ℕ → ℤ) (h_mono : StrictMono a) (h_rapid : ∃ C > 0, ∀ n...
1,141
leanexplore_declaration
leanexplore:382197
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that if $a_0 < a_1 < a_2 < \cdots$ is a strictly increasing sequence of integers with $\liminf a_n^{1/2^n} > 1$, then the series $\sum_{n=0}^\infty \frac{1}{a_n \cdot a_{n+1}}$ is irrational? This was solved in the affirmative by Aletheia [Fe26]. This was extended by Barreto, Kang, Kim, Kovač, and Zhang...
161
leanexplore_declaration
leanexplore:382198
leanexplore_sqlite
leanexplore_declarations
/-- The series $\sum_{n=0}^\infty \frac{1}{a_n \cdot a_{n+1}}$. -/ noncomputable def ErdosSeries (a : ℕ → ℤ) : ℝ := ∑' n : ℕ, 1 / ((a n : ℝ) * (a (n + 1) : ℝ))
218
leanexplore_declaration
leanexplore:382199
leanexplore_sqlite
leanexplore_declarations
/-- A sequence of integers `a` satisfies the growth condition if $\liminf a_n^{\frac{1}{2^n}} > 1$. -/ def GrowthCondition (a : ℕ → ℤ) : Prop := Filter.liminf (fun n => ((a n : ℝ) ^ (1 / 2 ^ n : ℝ))) Filter.atTop > 1
132
leanexplore_declaration
leanexplore:382200
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isUnitaryPerfect_146361946186458562560000 : IsUnitaryPerfect 146361946186458562560000 := by sorry
218
leanexplore_declaration
leanexplore:382201
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isUnitaryPerfect_87360 : IsUnitaryPerfect 87360 := by -- TODO: Find a quicker proof. This one is too slow. stop norm_num [IsUnitaryPerfect, properUnitaryDivisors] decide +kernel
150
leanexplore_declaration
leanexplore:382202
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isUnitaryPerfect_90 : IsUnitaryPerfect 90 := by norm_num [IsUnitaryPerfect, properUnitaryDivisors] decide +kernel
150
leanexplore_declaration
leanexplore:382203
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isUnitaryPerfect_60 : IsUnitaryPerfect 60 := by norm_num [IsUnitaryPerfect, properUnitaryDivisors] decide +kernel
148
leanexplore_declaration
leanexplore:382204
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem isUnitaryPerfect_6 : IsUnitaryPerfect 6 := by norm_num [IsUnitaryPerfect, properUnitaryDivisors] decide +kernel
405
leanexplore_declaration
leanexplore:382205
leanexplore_sqlite
leanexplore_declarations
/-- All unitary perfect numbers are even. Formal proof linked here provided by AlphaProof. -/ @[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/mzhorvath1/formal-conjectures/blob/b70a2ddf5e55f743aac9d4f4a907786b39bc9807/FormalConjectures/ErdosProblems/1052.lean#L46"] theo...
181
leanexplore_declaration
leanexplore:382206
leanexplore_sqlite
leanexplore_declarations
/-- Are there only finitely many unitary perfect numbers? -/ @[category research open, AMS 11] theorem erdos_1052 : answer(sorry) ↔ {n | IsUnitaryPerfect n}.Finite := by sorry
186
leanexplore_declaration
leanexplore:382207
leanexplore_sqlite
leanexplore_declarations
/-- A number $n > 0$ is a unitary perfect number if it is the sum of its proper unitary divisors. -/ def IsUnitaryPerfect (n : ℕ) : Prop := ∑ i ∈ properUnitaryDivisors n, i = n ∧ 0 < n
209
leanexplore_declaration
leanexplore:382208
leanexplore_sqlite
leanexplore_declarations
/-- A proper unitary divisor of $n$ is a divisor $d$ of $n$ such that $d$ is coprime to $n/d$, and $d < n$. -/ def properUnitaryDivisors (n : ℕ) : Finset ℕ := {d ∈ Finset.Ico 1 n | d ∣ n ∧ d.Coprime (n / d)}
275
leanexplore_declaration
leanexplore:382209
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be the minimal integer $m$ such that $n$ is the sum of the $k$ smallest divisors of $m$ for some $k\geq 1$. Show that $f$ is undefined at $n=5$, i.e. we get the junk value $0$. -/ @[category high_school, AMS 11] theorem f_undefined_at_3 : f 5 = 0 := by sorry
275
leanexplore_declaration
leanexplore:382210
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be the minimal integer $m$ such that $n$ is the sum of the $k$ smallest divisors of $m$ for some $k\geq 1$. Show that $f$ is undefined at $n=2$, i.e. we get the junk value $0$. -/ @[category high_school, AMS 11] theorem f_undefined_at_2 : f 2 = 0 := by sorry
342
leanexplore_declaration
leanexplore:382211
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be the minimal integer $m$ such that $n$ is the sum of the $k$ smallest divisors of $m$ for some $k\geq 1$. Is it true that $\limsup f(n)/n=\infty$? -/ @[category research open, AMS 11] theorem erdos_1054.parts.iii : answer(sorry) ↔ ∃ (A : Set ℕ), A.HasDensity 1 ∧ atTop.limsup (fun n ↦ (f n : EReal) ...
358
leanexplore_declaration
leanexplore:382212
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be the minimal integer $m$ such that $n$ is the sum of the $k$ smallest divisors of $m$ for some $k\geq 1$. Is it true that $f(n)=o(n)$ for almost all $n$? -/ @[category research open, AMS 11] theorem erdos_1054.parts.ii : answer(sorry) ↔ ∃ (A : Set ℕ), A.HasDensity 1 ∧ (fun (n : A) ↦ (f ↑n : ℝ)) =o[...
294
leanexplore_declaration
leanexplore:382213
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be the minimal integer $m$ such that $n$ is the sum of the $k$ smallest divisors of $m$ for some $k\geq 1$. Is it true that $f(n)=o(n)$?-/ @[category research open, AMS 11] theorem erdos_1054.parts.i : answer(sorry) ↔ (fun n ↦ (f n : ℝ)) =o[atTop] (fun n ↦ (n : ℝ)) := by sorry
254
leanexplore_declaration
leanexplore:382214
leanexplore_sqlite
leanexplore_declarations
/-- Let $f(n)$ be the minimal integer $m$ such that $n$ is the sum of the $k$ smallest divisors of $m$ for some $k\geq 1$. -/ noncomputable def f (n : ℕ) : ℕ := if h : ∃ᵉ (m) (k ≥ 1), n = ∑ i < k, Nat.nth (· ∈ m.divisors) i then Nat.find h else 0
487
leanexplore_declaration
leanexplore:382215
leanexplore_sqlite
leanexplore_declarations
/-- A prime $p$ is in class $1$ if the only prime divisors of $p+1$ are $2$ or $3$. In general, a prime $p$ is in class $r$ if every prime factor of $p+1$ is in some class $\leq r-1$, with equality for at least one prime factor. If $p_r$ is the least prime in class $r$, then how does $p_r^{1/r}$ behave? Selfridge conje...
516
leanexplore_declaration
leanexplore:382216
leanexplore_sqlite
leanexplore_declarations
/-- A prime $p$ is in class $1$ if the only prime divisors of $p+1$ are $2$ or $3$. In general, a prime $p$ is in class $r$ if every prime factor of $p+1$ is in some class $\leq r-1$, with equality for at least one prime factor. If $p_r$ is the least prime in class $r$, then how does $p_r^{1/r}$ behave? Erdos conjectur...
390
leanexplore_declaration
leanexplore:382217
leanexplore_sqlite
leanexplore_declarations
/-- A prime $p$ is in class $1$ if the only prime divisors of $p+1$ are $2$ or $3$. In general, a prime $p$ is in class $r$ if every prime factor of $p+1$ is in some class $\leq r-1$, with equality for at least one prime factor. Are there infinitely many primes in each class?-/ @[category research open, AMS 11] theorem...
332
leanexplore_declaration
leanexplore:382218
leanexplore_sqlite
leanexplore_declarations
/-- A prime $p$ is in class $1$ if the only prime divisors of $p+1$ are $2$ or $3$. In general, a prime $p$ is in class $r$ if every prime factor of $p+1$ is in some class $\leq r-1$, with equality for at least one prime factor. Let $p_r$ is the least prime in class $r$. -/ noncomputable def p (r : ℕ+) : ℕ := Nat.find ...
398
leanexplore_declaration
leanexplore:382219
leanexplore_sqlite
leanexplore_declarations
/-- A prime $p$ is in class $1$ if the only prime divisors of $p+1$ are $2$ or $3$. In general, a prime $p$ is in class $r$ if every prime factor of $p+1$ is in some class $\leq r-1$, with equality for at least one prime factor. Show that for each $r$ there exists a prime $p$ of class $r$. -/ @[category undergraduate, ...
562
leanexplore_declaration
leanexplore:382220
leanexplore_sqlite
leanexplore_declarations
/-- A prime $p$ is in class $1$ if the only prime divisors of $p+1$ are $2$ or $3$. In general, a prime $p$ is in class $r$ if every prime factor of $p+1$ is in some class $\leq r-1$, with equality for at least one prime factor. -/ def IsOfClass : ℕ+ → ℕ → Prop := fun r ↦ PNat.caseStrongInductionOn (p := fun (_ : ℕ+)...
429
leanexplore_declaration
leanexplore:382221
leanexplore_sqlite
leanexplore_declarations
/-- Noll and Simmons asked, more generally, whether there are solutions to $q_1! \equiv \dots \equiv q_k! \mod p$ for arbitrarily large $k$ (with $q_1 < \dots < q_k$). -/ @[category research open, AMS 11] theorem erdos_1056.variants.noll_simmons : answer(sorry) ↔ ∀ᶠ k in Filter.atTop, ∃ (p : ℕ) (_ : p.Prime) (Q...
284
leanexplore_declaration
leanexplore:382222
leanexplore_sqlite
leanexplore_declarations
/-- Makowski [Ma83] found, for $k=3$: $2 * 3 * 4 * 5 \equiv 6 * 7 * 8 * 9 * 10 * 11 \equiv 12 * 13 * 14 * 15 \equiv 1 \mod 17$. -/ @[category undergraduate, AMS 11] theorem erdos_1056.variants.k3 : AllModProdEqualsOne 17 ![2, 6, 12, 16] := by unfold AllModProdEqualsOne decide
308
leanexplore_declaration
leanexplore:382223
leanexplore_sqlite
leanexplore_declarations
/-- This is problem A15 in Guy's collection [Gu04], where he reports that in a letter in 1979 Erdős observed that $3 * 4 \equiv 5 * 6 * 7 \equiv 1 \mod 11$. -/ @[category undergraduate, AMS 11] theorem erdos_1056.variants.k2 : AllModProdEqualsOne 11 ![3, 5, 8] := by unfold AllModProdEqualsOne decide
388
leanexplore_declaration
leanexplore:382224
leanexplore_sqlite
leanexplore_declarations
/-- Let $k ≥ 2$. Does there exist a prime $p$ and consecutive intervals $I_0,\dots,I_k$ such that $\prod\limits_{n{\in}I_i}n \equiv 1 \mod n$ for all $1 \le i \le k$? -/ @[category research open, AMS 11] theorem erdos_1056 : answer(sorry) ↔ ∀ k ≥ 2, ∃ (p : ℕ) (_ : p.Prime) (boundaries : Fin (k + 1) → ℕ) (_ : Strict...
379
leanexplore_declaration
leanexplore:382225
leanexplore_sqlite
leanexplore_declarations
/-- The proposition that the modular product of a collection of consecutive interval equals $1$ modulo $p$, where intervals are defined by a function specifying the consecutive boundaries. -/ def AllModProdEqualsOne (p : ℕ) {k : ℕ} (boundaries : Fin (k + 1) → ℕ) : Prop := ∀ i : Fin k, (∏ n ∈ Finset.Ico (boundarie...
282
leanexplore_declaration
leanexplore:382226
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem testFactorialsLessThanN : factorialsLessThanN 100 = {1, 2, 6, 24} := by have h : decidableFactorialsLessThanN 100 = {1, 2, 6, 24} := by norm_num [decidableFactorialsLessThanN] decide +kernel rw [factorialsLessThanN_equivalent] simp [h]
432
leanexplore_declaration
leanexplore:382227
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem notAllFactorialSubtractionsComposite_89 : ¬(AllFactorialSubtractionsComposite 89) := by have h : ¬(DecidableAllFactorialSubtractionsComposite 89) := by unfold DecidableAllFactorialSubtractionsComposite decidableFactorialsLessThanN intro h specialize h 6 have : Nat.Prim...
351
leanexplore_declaration
leanexplore:382228
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem allFactorialSubtractionsComposite_211 : AllFactorialSubtractionsComposite 211 := by have h : DecidableAllFactorialSubtractionsComposite 211 := by norm_num [DecidableAllFactorialSubtractionsComposite, decidableFactorialsLessThanN] decide +kernel exact (allFactorialSubtraction...
351
leanexplore_declaration
leanexplore:382229
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] theorem allFactorialSubtractionsComposite_101 : AllFactorialSubtractionsComposite 101 := by have h : DecidableAllFactorialSubtractionsComposite 101 := by norm_num [DecidableAllFactorialSubtractionsComposite, decidableFactorialsLessThanN] decide +kernel exact (allFactorialSubtraction...
311
leanexplore_declaration
leanexplore:382230
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] lemma allFactorialSubtractionsComposite_equivalent (d : ℕ) : DecidableAllFactorialSubtractionsComposite d ↔ AllFactorialSubtractionsComposite d := by unfold AllFactorialSubtractionsComposite DecidableAllFactorialSubtractionsComposite rw [factorialsLessThanN_equivalent d] simp
250
leanexplore_declaration
leanexplore:382231
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] lemma factorialsLessThanN_equivalent (n : ℕ) : factorialsLessThanN n = ↑(decidableFactorialsLessThanN n) := by ext d unfold factorialsLessThanN decidableFactorialsLessThanN simp exact λ _ => isFactorial_equivalent d
478
leanexplore_declaration
leanexplore:382232
leanexplore_sqlite
leanexplore_declarations
@[category test, AMS 11] lemma isFactorial_equivalent (d : ℕ) : IsFactorial d ↔ DecidableIsFactorial d := by unfold IsFactorial DecidableIsFactorial simp constructor · rintro ⟨k, hk⟩ use k rw [Finset.mem_filter] constructor · have hk : k <= d := by rw [← hk] apply Nat.self_le_f...
122
leanexplore_declaration
leanexplore:382233
leanexplore_sqlite
leanexplore_declarations
def DecidableAllFactorialSubtractionsComposite (n : ℕ) : Prop := ∀ d ∈ decidableFactorialsLessThanN n, (n - d).Composite
101
leanexplore_declaration
leanexplore:382234
leanexplore_sqlite
leanexplore_declarations
def decidableFactorialsLessThanN (n : ℕ) : Finset ℕ := (Finset.range n).filter DecidableIsFactorial
111
leanexplore_declaration
leanexplore:382235
leanexplore_sqlite
leanexplore_declarations
abbrev DecidableIsFactorial (d : ℕ) : Prop := ((Finset.Icc 0 d).filter (λ k => Nat.factorial k = d)).Nonempty
266
leanexplore_declaration
leanexplore:382236
leanexplore_sqlite
leanexplore_declarations
/-- Are there infinitely many primes $p$ such that $p - k!$ is composite for each $k$ such that $1 ≤ k! < p$? -/ @[category research open, AMS 11] theorem erdos_1059 : answer(sorry) ↔ Set.Infinite {p | p.Prime ∧ AllFactorialSubtractionsComposite p} := by sorry
103
leanexplore_declaration
leanexplore:382237
leanexplore_sqlite
leanexplore_declarations
def AllFactorialSubtractionsComposite (n : ℕ) : Prop := ∀d ∈ factorialsLessThanN n, (n - d).Composite
74
leanexplore_declaration
leanexplore:382238
leanexplore_sqlite
leanexplore_declarations
def factorialsLessThanN (n : ℕ) : Set ℕ := { d | d < n ∧ IsFactorial d }
63
leanexplore_declaration
leanexplore:382239
leanexplore_sqlite
leanexplore_declarations
def IsFactorial (d : ℕ) : Prop := d ∈ Set.range Nat.factorial
167
leanexplore_declaration
leanexplore:382240
leanexplore_sqlite
leanexplore_declarations
@[category research open, AMS 11] theorem erdos_1060.parts.ii : ∃ (C : ℝ), (fun n ↦ (#{k ≤ n | k * σ 1 k = n} : ℝ)) =O[atTop] (fun n ↦ log n ^ C) := by sorry
504
leanexplore_declaration
leanexplore:382241
leanexplore_sqlite
leanexplore_declarations
/-- The conjecture is about the function $f(n)$ which counts the number of solutions to $k\sigma(k)=n$, where $\sigma(k)$ is the sum of divisors of $k$. The first bound is that $f(n)$ grows slower than any power of $n^(\frac{1}{\log\log n})$. The second bound is that $f(n)$ is at most a power of $\log n$. -/ @[categor...
304
leanexplore_declaration
leanexplore:382242
leanexplore_sqlite
leanexplore_declarations
/-- How many (ordered) solutions are there to `σ(a) + σ(b) = σ(a + b)` with `a + b ≤ x`? Is it true that this number is asymptotic to `c * x` for some constant `c > 0`? -/ @[category research open, AMS 11] theorem erdos_1061 : answer(sorry) ↔ ∃ c : ℝ, 0 < c ∧ S ~[atTop] (fun x : ℝ ↦ c * x) := by sorry
470
leanexplore_declaration
leanexplore:382243
leanexplore_sqlite
leanexplore_declarations
/-- Let `S x` count the number of **ordered** pairs of positive integers `(a, b)` with `a + b ≤ x` such that `σ(a) + σ(b) = σ(a + b)`, where `σ` is the sum of divisors function. In particular, `(a, b)` and `(b, a)` are counted separately; an unordered variant could be obtained by additionally requiring `a ≤ b`. -/ non...
266
leanexplore_declaration
leanexplore:382244
leanexplore_sqlite
leanexplore_declarations
/-- Lebensold proved that for large `n`, the function `f n` lies between `0.6725 n` and `0.6736 n`. -/ @[category research solved, AMS 11] theorem erdos_1062.variants.lebensold_bounds : ∀ᶠ n in atTop, (0.6725 : ℝ) * n ≤ f n ∧ f n ≤ (0.6736 : ℝ) * n := by sorry
1,005
leanexplore_declaration
leanexplore:382245
leanexplore_sqlite
leanexplore_declarations
/-- The interval `[⌊n/3⌋, n]` is fork-free, and therefore `f n` is at least `⌈2n / 3⌉`. -/ @[category research solved, AMS 11] theorem erdos_1062.variants.lower_bound (n : ℕ) : ⌈(2 * n / 3 : ℝ)⌉₊ ≤ f n := by classical set b : ℕ := n / 3 with hb let A : Finset ℕ := .Icc (b + 1) n calc ⌈(2 * n / 3 : ℝ)⌉₊ ...
267
leanexplore_declaration
leanexplore:382246
leanexplore_sqlite
leanexplore_declarations
/-- Erdős asked whether the limiting density `f n / n` exists and, if so, whether it is irrational. -/ @[category research open, AMS 11] theorem erdos_1062.parts.ii : (∃ l, Tendsto (fun n => (f n : ℝ) / n) atTop (𝓝 l) ∧ Irrational l) ↔ answer(sorry) := by sorry
219
leanexplore_declaration
leanexplore:382247
leanexplore_sqlite
leanexplore_declarations
/-- The extremal function from Erdős problem 1062: the largest size of a fork-free subset of `{1,...,n}`. -/ noncomputable def f (n : ℕ) : ℕ := Nat.findGreatest (fun k => ∃ A ⊆ Set.Icc 1 n, ForkFree A ∧ A.ncard = k) n
203
leanexplore_declaration
leanexplore:382248
leanexplore_sqlite
leanexplore_declarations
/-- A set `A` of positive integers is fork-free if no element divides two distinct other elements of `A`. -/ def ForkFree (A : Set ℕ) : Prop := ∀ a ∈ A, ({b | b ∈ A \ {a} ∧ a ∣ b} : Set ℕ).Subsingleton
255
leanexplore_declaration
leanexplore:382249
leanexplore_sqlite
leanexplore_declarations
/-- The least common multiple bound implies $n_k \le \exp((1 + o(1))k)$. -/ @[category research solved, AMS 11] theorem erdos_1063.variants.exp_upper_bound : ∃ f : ℕ → ℝ, Tendsto f atTop (𝓝 0) ∧ ∀ k, (n k : ℝ) ≤ exp ((1 + f k) * k) := by sorry
299
leanexplore_declaration
leanexplore:382250
leanexplore_sqlite
leanexplore_declarations
/-- [Cambie observed](https://www.erdosproblems.com/1063) the improved bound $n_k \le k \cdot \operatorname{lcm}(1, \dotsc, k - 1)$. -/ @[category research solved, AMS 11] theorem erdos_1063.variants.cambie_upper_bound {k : ℕ} (hk : 3 ≤ k) : n k ≤ k * (Finset.Icc 1 (k - 1)).lcm id := by sorry
219
leanexplore_declaration
leanexplore:382251
leanexplore_sqlite
leanexplore_declarations
/-- Monier observed that $n_k \le k!$ for $k \ge 3$ ([Mo85]). TODO: Find reference -/ @[category research solved, AMS 11] theorem erdos_1063.variants.monier_upper_bound {k : ℕ} (hk : 3 ≤ k) : n k ≤ k ! := by sorry
240
leanexplore_declaration
leanexplore:382252
leanexplore_sqlite
leanexplore_declarations
/-- The initial values satisfy $n_2 = 4$, $n_3 = 6$, $n_4 = 9$, and $n_5 = 12$ ([Gu04], Problem B31). -/ @[category research solved, AMS 11] theorem erdos_1063.variants.small_values : n 2 = 4 ∧ n 3 = 6 ∧ n 4 = 9 ∧ n 5 = 12 := by sorry
338
leanexplore_declaration
leanexplore:382253
leanexplore_sqlite
leanexplore_declarations
/-- Erdős and Selfridge noted that, for $n \ge 2k$ with $k \ge 2$, at least one of the numbers $n - i$ for $0 \le i < k$ fails to divide $\binom{n}{k}$ ([ErSe83]). -/ @[category research solved, AMS 11] theorem erdos_1063.variants.exists_exception {n k : ℕ} (hk : 2 ≤ k) (h : 2 * k ≤ n) : ∃ i < k, ¬ (n - i) ∣ n.choo...
331
leanexplore_declaration
leanexplore:382254
leanexplore_sqlite
leanexplore_declarations
/-- Estimate $n_k$ by finding a better upper bound. -/ @[category research open, AMS 11] theorem erdos_1063.better_upper : let upper_bound : ℕ → ℝ := answer(sorry) (fun k => (n k : ℝ)) =O[atTop] upper_bound ∧ upper_bound =o[atTop] fun k => (k : ℝ) * ((Finset.Icc 1 (k - 1)).lcm (fun n : ℕ => n) : ℝ) :=...
267
leanexplore_declaration
leanexplore:382255
leanexplore_sqlite
leanexplore_declarations
/-- Let $n_k$ be the least $n \ge 2k$ such that all but one of the integers $n - i$ with $0 \le i < k$ divide $\binom{n}{k}$. -/ noncomputable def n (k : ℕ) : ℕ := sInf {m | 2 * k ≤ m ∧ ∃ i0 < k, ¬ (m - i0) ∣ m.choose k ∧ ∀ i < k, i ≠ i0 → (m - i) ∣ m.choose k}
528
leanexplore_declaration
leanexplore:382256
leanexplore_sqlite
leanexplore_declarations
/-- For any function $f(n)=o(n)$, we have $\phi(n)>\phi(n-\phi(n))+f(n)$ for almost all $n$. Reference: [LuPo02] Luca, Florian and Pomerance, Carl, On some problems of {M}\polhk akowski-{S}chinzel and {E}rd\H os concerning the arithmetical functions {$\phi$} and {$\sigma$}. Colloq. Math. (2002), 111--130. -/ @[category...
376
leanexplore_declaration
leanexplore:382257
leanexplore_sqlite
leanexplore_declarations
/-- Let $ϕ(n)$ be the Euler's totient function, there exist infinitely many $n$ such that $ϕ(n)< ϕ(n - ϕ(n))$ Reference: [GLW01] Grytczuk, A. and Luca, F. and W\'ojtowicz, M., A conjecture of {E}rdős concerning inequalities for the {E}uler totient function. -/ @[category research solved, AMS 11] theorem erdos_1064.vari...
423
leanexplore_declaration
leanexplore:382258
leanexplore_sqlite
leanexplore_declarations
/-- Let $ϕ(n)$ be the Euler's totient function, then the $n$ satisfies $ϕ(n)>ϕ(n - ϕ(n))$ have asymptotic density 1. Reference: [LuPo02] Luca, Florian and Pomerance, Carl, On some problems of {M}\polhk akowski-{S}chinzel and {E}rd\H os concerning the arithmetical functions {$\phi$} and {$\sigma$}. Colloq. Math. -/ @[ca...
282
leanexplore_declaration
leanexplore:382259
leanexplore_sqlite
leanexplore_declarations
/-- Are there infinitely many primes $p$ such that $p = 2^k 3^l q + 1$ for some prime $q$ and $k ≥ 0$, $l ≥ 0$? -/ @[category research open, AMS 11] theorem erdos_1065.parts.ii : answer(sorry) ↔ Set.Infinite {p | ∃ q k l, p.Prime ∧ q.Prime ∧ p = 2^k * 3^l * q + 1} := by sorry
392
leanexplore_declaration
leanexplore:382260
leanexplore_sqlite
leanexplore_declarations
/-- Are there infinitely many primes $p$ such that $p = 2^k * q + 1$ for some prime $q$ and $k ≥ 0$? This is mentioned as B46 in [Unsolved Problems in Number Theory](https://doi.org/10.1007/978-0-387-26677-0) by *Richard K. Guy* -/ @[category research open, AMS 11] theorem erdos_1065.parts.i : answer(sorry) ↔ Set...
463
leanexplore_declaration
leanexplore:382261
leanexplore_sqlite
leanexplore_declarations
/-- Thomassen [Th17] constructed a counterexample to the version which asks for infinite edge-connectivity (that is, to disconnect the graph requires deleting infinitely many edges). -/ @[category research solved, AMS 5] theorem erdos_1067.variants.infinite_edge_connectivity : answer(False) ↔ ∀ (V : Type) (G : Simp...
810
leanexplore_declaration
leanexplore:382262
leanexplore_sqlite
leanexplore_declarations
/-- Does every graph with chromatic number $\aleph_1$ contain an infinitely connected subgraph with chromatic number $\aleph_1$? Komjáth [Ko13] proved that it is consistent that the answer is no. This was improved by Soukup [So15], who constructed a counterexample using no extra set-theoretical assumptions. A simpler ...
321
leanexplore_declaration
leanexplore:382263
leanexplore_sqlite
leanexplore_declarations
/-- A graph is infinitely edge-connected if to disconnect the graph requires deleting infinitely many edges. In other words, removing any finite set of edges leaves the graph connected. -/ def InfinitelyEdgeConnected {V : Type*} (G : SimpleGraph V) : Prop := ∀ ⦃s : Set (Sym2 V)⦄, s.Finite → (G.deleteEdges s).Connecte...
334
leanexplore_declaration
leanexplore:382264
leanexplore_sqlite
leanexplore_declarations
/-- Does every graph with chromatic number $\aleph_1$ contain a countable subgraph which is infinitely connected? -/ @[category research open, AMS 5] theorem erdos_1068 : answer(sorry) ↔ ∀ (V : Type) (G : SimpleGraph V), G.chromaticCardinal = ℵ_ 1 → ∃ s : Set V, s.Countable ∧ InfinitelyConnected (G.induce s)...
704
leanexplore_declaration
leanexplore:382265
leanexplore_sqlite
leanexplore_declarations
/-- Is there a region $R$ with a maximal set of disjoint unit line segments that is countably infinite? Solved affirmatively by [Fo99], who gave an explicit construction. This was formalized in Lean by Alexeev using Aristotle and ChatGPT. -/ @[category research solved, AMS 52, formal_proof using lean4 at "https://gith...
700
leanexplore_declaration
leanexplore:382266
leanexplore_sqlite
leanexplore_declarations
/-- Can a finite set of disjoint unit segments in a unit square be maximal? Solved affirmatively by [Da85], who gave an explicit construction. This was formalized in Lean by Alexeev using Aristotle and ChatGPT. -/ @[category research solved, AMS 52, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob...
227
leanexplore_declaration
leanexplore:382267
leanexplore_sqlite
leanexplore_declarations
/-- Two segments are disjoint if they only intersect at their endpoints (if at all). -/ def SegmentsDisjoint (seg1 seg2 : ℝ² × ℝ²) : Prop := segment ℝ seg1.1 seg1.2 ∩ segment ℝ seg2.1 seg2.2 ⊆ {seg1.1, seg1.2, seg2.1, seg2.2}
454
leanexplore_declaration
leanexplore:382268
leanexplore_sqlite
leanexplore_declarations
/-- Erdős, Hardy, and Subbarao [HaSu02], believed that the number of $p \le x$ for which $f(p)=p−1$ is $o(x/\log x)$. [HaSu02] Hardy, G. E. and Subbarao, M. V., _A modified problem of Pillai and some related questions._ Amer. Math. Monthly (2002), 554--559. -/ @[category research open, AMS 11] theorem erdos_1072.varia...
324
leanexplore_declaration
leanexplore:382269
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that $f(p)/p \to 0$ for $p \to \infty$ in a density 1 subset of the primes? -/ @[category research open, AMS 11] theorem erdos_1072.parts.ii : answer(sorry) ↔ ∃ (P : Set ℕ), P ⊆ {p | p.Prime} ∧ P.HasDensity 1 {p | p.Prime} ∧ Tendsto (fun p => (f p / p : ℝ)) (atTop ⊓ principal P) (𝓝 0) := by ...
212
leanexplore_declaration
leanexplore:382270
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that there are infinitely many $p$ for which $f(p) = p − 1$? -/ @[category research open, AMS 11] theorem erdos_1072.parts.i : answer(sorry) ↔ Set.Infinite {p | p.Prime ∧ f p = p - 1} := by sorry
163
leanexplore_declaration
leanexplore:382271
leanexplore_sqlite
leanexplore_declarations
/-- For any prime $p$, let $f(p)$ be the least integer such that $f(p)! + 1 \equiv 0 \mod p$. -/ noncomputable def f (p : ℕ) : ℕ := sInf {n | (n)! + 1 ≡ 0 [MOD p]}
194
leanexplore_declaration
leanexplore:382272
leanexplore_sqlite
leanexplore_declarations
/-- Is it true that $A(x) \le x^{o(1)}$? -/ @[category research open, AMS 11] theorem erdos_1073 : answer(sorry) ↔ ∃ (o : ℕ → ℝ), o =o[atTop] (1 : ℕ → ℝ) ∧ ∀ x, A x ≤ x ^ (o x) := by sorry
198
leanexplore_declaration
leanexplore:382273
leanexplore_sqlite
leanexplore_declarations
/-- Let $A(x)$ count the number of composite $u < x$ such that $n!+1 \equiv 0 (\mod u)$ for some $n$. -/ noncomputable def A (x : ℕ) : ℝ := {u | u.Composite ∧ ∃ n, n ! + 1 ≡ 0 [MOD u] ∧ u < x}.ncard
318
leanexplore_declaration
leanexplore:382274
leanexplore_sqlite
leanexplore_declarations
/-- Regarding the first question, Hardy and Subbarao computed all EHS numbers up to $2^{10}$, and write "...if this trend conditions we expect [the limit] to be around 0.5, if it exists." -/ @[category research open, AMS 11] theorem erdos_1074.variants.EHSNumbers_one_half : EHSNumbers.HasDensity (1 / 2) := by sorry