Skip to content

Commit f5cbb7c

Browse files
authored
fix(ErdosProblems): Add formalized lean sources to Erdos Problems (#2383)
Adding formalized lean sources. There's a few exceptions that I've caught: 1) 303 was actually written in lean3 and the only category annotation is `lean4`. Maybe we add a `lean3` annotation? 2) The URL for 303 is actually way too long, even for URL shorteners because it's using live.looken.cn. I'm leaving this out for now until we figure how we want to reference it. Also took the liberty to fix up some of the docstrings and references. Closes #2334 Closes #2335 Closes #2336 Closes #2337 Closes #2338 Closes #2339 Closes #2340 Closes #2341 Closes #2342 Closes #2343 Closes #2344 Closes #2345 Closes #2346 Closes #2347 Closes #2348 Closes #2349 Closes #2350 Closes #2351 Closes #2352 Closes #2353 Closes #2354 Closes #2355
1 parent d555d7e commit f5cbb7c

File tree

22 files changed

+233
-127
lines changed

22 files changed

+233
-127
lines changed

FormalConjectures/ErdosProblems/1043.lean

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ import FormalConjectures.Util.ProblemImports
1818
/-!
1919
# Erdős Problem 1043
2020
21-
*Reference:* [erdosproblems.com/1043](https://www.erdosproblems.com/1043)
21+
*References:*
22+
- [erdosproblems.com/1043](https://www.erdosproblems.com/1043)
23+
- [EHP58] Erdős, P. and Herzog, F. and Piranian, G., Metric properties of polynomials. J.
24+
Analyse Math. (1958), 125-148.
25+
- [Po59] Pommerenke, Ch., On some problems by Erdős, Herzog and Piranian. Michigan Math. J.
26+
(1959), 221-225.
27+
- [Po61] Pommerenke, Ch., On metric properties of complex polynomials. Michigan Math. J. (1961),
28+
97-115.
2229
-/
2330

2431
namespace Erdos1043
@@ -38,10 +45,10 @@ onto $\ell$ has measure at most $2$?
3845
3946
Pommerenke [Po61] proved that the answer is no.
4047
41-
[Po61] Pommerenke, Ch., _On metric properties of complex polynomials._ Michigan Math. J. (1961),
42-
97-115.
48+
This was formalized in Lean by Alexeev using Aristotle.
4349
-/
44-
@[category research solved, AMS 28 30]
50+
@[category research formally solved using lean4 at
51+
"https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos1043.lean", AMS 28 30]
4552
theorem erdos_1043 :
4653
answer(False) ↔ ∀ (f : ℂ[X]), f.Monic → f.degree ≥ 1
4754
∃ (u : ℂ), ‖u‖ = 1

FormalConjectures/ErdosProblems/1067.lean

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@ chromatic number $\aleph_1$?
5050
Komjáth [Ko13] proved that it is consistent that the answer is no. This was improved by
5151
Soukup [So15], who constructed a counterexample using no extra set-theoretical assumptions. A
5252
simpler elementary example was given by Bowler and Pitz [BoPi24].
53+
54+
This was formalized in Lean by Alexeev using Aristotle and Aleph Prover.
5355
-/
54-
@[category research solved, AMS 5]
56+
@[category research formally solved using lean4 at
57+
"https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos1067.lean", AMS 5]
5558
theorem erdos_1067 :
5659
answer(False) ↔ ∀ (V : Type) (G : SimpleGraph V), G.chromaticCardinal = ℵ_ 1
5760
∃ (H : G.Subgraph), H.coe.chromaticCardinal = ℵ_ 1 ∧ InfinitelyConnected H.coe := by

FormalConjectures/ErdosProblems/1071.lean

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,14 @@ namespace Erdos1071
3232
def SegmentsDisjoint (seg1 seg2 : ℝ² × ℝ²) : Prop :=
3333
segment ℝ seg1.1 seg1.2 ∩ segment ℝ seg2.1 seg2.2 ⊆ {seg1.1, seg1.2, seg2.1, seg2.2}
3434

35-
/-- Can a finite set of disjoint unit segments in a unit square be maximal?
36-
Solved affirmatively by [Da85], who gave an explicit construction. -/
37-
@[category research solved, AMS 52]
35+
/--
36+
Can a finite set of disjoint unit segments in a unit square be maximal?
37+
Solved affirmatively by [Da85], who gave an explicit construction.
38+
39+
This was formalized in Lean by Alexeev using Aristotle and ChatGPT.
40+
-/
41+
@[category research formally solved using lean4 at
42+
"https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos1071.lean", AMS 52]
3843
theorem erdos_1071a :
3944
answer(True) ↔ ∃ S : Finset (ℝ² × ℝ²),
4045
Maximal (fun T : Finset (ℝ² × ℝ²) =>

FormalConjectures/ErdosProblems/189.lean

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ Solved (with answer `False`, as formalised below) in:
4545
Vjekoslav Kovač, "Coloring and density theorems for configurations of a given volume", 2023
4646
https://arxiv.org/abs/2309.09973
4747
In fact, Kovač's colouring is even Jordan measurable (the topological boundary of each
48-
monochromatic region is Lebesgue measurable and has measure zero). -/
49-
@[category research solved, AMS 5 51]
48+
monochromatic region is Lebesgue measurable and has measure zero).
49+
50+
This was formalized in Lean by Alexeev and Kovac using Aristotle.
51+
-/
52+
@[category research formally solved using lean4 at
53+
"https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos189.lean", AMS 5 51]
5054
theorem erdos_189 :
5155
answer(False) ↔ Erdos189For
5256
(fun a b c d ↦

FormalConjectures/ErdosProblems/198.lean

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ import FormalConjectures.Util.ProblemImports
1919
/-!
2020
# Erdős Problem 198
2121
22-
*Reference:* [erdosproblems.com/198](https://www.erdosproblems.com/198)
22+
*References:*
23+
- [erdosproblems.com/198](https://www.erdosproblems.com/198)
24+
- [Ba75] Baumgartner, James E., Partitioning vector spaces. J. Combinatorial Theory Ser. A (1975),
25+
231-233.
2326
-/
2427

2528
open Function Set Nat
@@ -31,9 +34,8 @@ positive integer. Then there is a set $X_k \subseteq V$ such that $X_k$ meets
3134
every infinite arithmetic progression in $V$ but $X_k$ intersects every
3235
$k$-element arithmetic progression in at most two points.
3336
34-
At the end of:
35-
* Baumgartner, James E., Partitioning vector spaces. J. Combinatorial Theory Ser. A (1975), 231-233.
36-
the author claims that by "slightly modifying the method of [his proof]", one can prove this. -/
37+
At the end of [Ba75] the author claims that by "slightly modifying the method of [his proof]", one
38+
can prove this. -/
3739
@[category research solved, AMS 5]
3840
lemma baumgartner_strong (V : Type*) [AddCommGroup V] [Module ℚ V] (k : ℕ) :
3941
∃ X : Set V,
@@ -50,31 +52,24 @@ lemma baumgartner_headline (V : Type*) [AddCommGroup V] [Module ℚ V] :
5052
baumgartner_strong V 3
5153

5254
/--
53-
If $A \subseteq \mathbb{N}$ is a Sidon set then must the complement of $A$ contain an infinite arithmetic
54-
progression?
55+
The answer is no; Erdős and Graham report this was proved by Baumgartner, presumably referring to
56+
the paper [Ba75], which does not state this exactly, but the following simple construction is
57+
implicit in [Ba75].
5558
56-
Answer "yes" according to remark on page 23 of:
59+
Let $P_1,P_2,\ldots$ be an enumeration of all countably many infinite arithmetic progressions. We
60+
choose $a_1$ to be the minimal element of $P_1\cap \mathbb{N}$, and in general choose $a_n$ to be an
61+
element of $P_n\cap \mathbb{N}$ such that $a_n>2a_{n-1}$. By construction $A=\{a_1 < a_2 < \cdots\}$
62+
contains at least one element from every infinite arithmetic progression, and is a lacunary set, so
63+
is certainly Sidon.
5764
65+
AlphaProof has found the following explicit construction: $A = \{ (n+1)!+n : n\geq 0\}$. This is a
66+
Sidon set, and intersects every arithmetic progression, since for any $a,d\in \mathbb{N}$,
67+
$(a+d+1)!+(a+d)\in A$, and $d$ divides $(a+d+1)!+d$.
5868
59-
- Erdös and Graham, "Old and new problems and results in combinatorial number theory", 1980.
60-
61-
62-
"Baumgartner also proved the conjecture of Erdös that if $A$ is a sequence of positive integers with
63-
all sums $a + a'$ distinct for $a, a' \in A$ then the complement of $A$ contains an
64-
infinite A.P."
65-
66-
67-
But this seems to be a misprint, since the opposite is true:
68-
There is a sequence of positive integers with all $a + a'$ distinct for $a, a' \in A$ such that the
69-
complement of $A$ contains no infinite A.P., i.e. there is a Sidon set $A$ which intersects all
70-
arithmetic progressions.
71-
72-
So the answer should be "no".
73-
74-
This can be seen, as pointed out by Thomas Bloom [erdosproblems.com/198](https://www.erdosproblems.com/198),
75-
by an elementary argument.
69+
This was formalized in Lean by Alexeev using Aristotle.
7670
-/
77-
@[category research solved, AMS 5 11]
71+
@[category research formally solved using lean4 at
72+
"https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos198.lean", AMS 5 11]
7873
theorem erdos_198 : (∀ A : Set ℕ, IsSidon A → (∃ Y, IsAPOfLength Y ⊤ ∧ Y ⊆ Aᶜ)) ↔
7974
answer(False) := by
8075
sorry

FormalConjectures/ErdosProblems/229.lean

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,28 @@ import FormalConjectures.Util.ProblemImports
1919
/-!
2020
# Erdős Problem 229
2121
22-
*Reference:* [erdosproblems.com/229](https://www.erdosproblems.com/229)
22+
*References:*
23+
- [erdosproblems.com/229](https://www.erdosproblems.com/229)
24+
- [BaSc72] Barth, K. F. and Schneider, W. J., On a problem of Erd\H{o}s concerning the zeros of the
25+
derivatives of an entire function. Proc. Amer. Math. Soc. (1972), 229--232.
26+
- [Ha74] Hayman, W. K., Research problems in function theory: new problems. (1974), 155--180.
2327
-/
2428

2529
namespace Erdos229
2630

2731
/--
2832
Let $(S_n)_{n \ge 1}$ be a sequence of sets of complex numbers, none of which have a finite
2933
limit point. Does there exist an entire transcendental function $f(z)$ such that, for all $n \ge 1$, there
30-
exists some $k_n \ge 0$ such that
31-
$$
32-
f^{(k_n)}(z) = 0 \quad \text{for all } z \in S_n?
33-
$$
34+
exists some $k_n \ge 0$ such that $f^{(k_n)}(z) = 0$ for all $z \in S_n$.
35+
36+
This is Problem 2.30 in [Ha74], where it is attributed to Erdős.
3437
3538
Solved in the affirmative by Barth and Schneider [BaSc72].
3639
37-
[BaSc72] Barth, K. F. and Schneider, W. J., _On a problem of Erdős concerning the zeros of_
38-
_the derivatives of an entire function_. Proc. Amer. Math. Soc. (1972), 229--232. -/
39-
@[category research solved, AMS 30]
40+
This was formalized in Lean by Alexeev using Aristotle.
41+
-/
42+
@[category research formally solved using lean4 at
43+
"https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos229.lean", AMS 30]
4044
theorem erdos_229 :
4145
letI := Polynomial.algebraPi ℂ ℂ ℂ
4246
answer(True) ↔ ∀ (S : ℕ → Set ℂ), (∀ n, derivedSet (S n) = ∅) →

FormalConjectures/ErdosProblems/275.lean

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@ necessarily distinct) covers $2^r$ consecutive integers then it covers all integ
3535
3636
This is best possible as the system $2^{i-1}\pmod{2^i}$ shows. This was proved independently by
3737
Selfridge and Crittenden and Vanden Eynden [CrVE70].
38+
39+
This was formalized in Lean by Alexeev using Aristotle.
3840
-/
39-
@[category research solved, AMS 11]
41+
@[category research formally solved using lean4 at
42+
"https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos275.lean", AMS 11]
4043
theorem erdos_275 (r : ℕ) (a : Fin r → ℤ) (n : Fin r → ℕ)
4144
(H : ∃ k : ℤ, ∀ x ∈ Ico k (k + 2 ^ r), ∃ i, x ≡ a i [ZMOD n i]) (x : ℤ) :
4245
∃ i, x ≡ a i [ZMOD n i] := by

FormalConjectures/ErdosProblems/298.lean

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,23 @@ import FormalConjectures.Util.ProblemImports
1919
/-!
2020
# Erdős Problem 298
2121
22-
*Reference:* [erdosproblems.com/298](https://www.erdosproblems.com/298)
22+
*References:*
23+
- [erdosproblems.com/298](https://www.erdosproblems.com/298)
24+
- [Bl21] Bloom, T. F., On a density conjecture about unit fractions. arXiv:2112.03726 (2021).
2325
-/
2426

2527
namespace Erdos298
2628

27-
/-- Does every set $A \subseteq \mathbb{N}$ of positive density contain some finite $S \subset A$ such that
29+
/--
30+
Does every set $A \subseteq \mathbb{N}$ of positive density contain some finite $S \subset A$ such that
2831
$\sum_{n \in S} \frac{1}{n} = 1$?
2932
3033
The answer is yes, proved by Bloom [Bl21].
3134
32-
[Bl21] Bloom, T. F., _On a density conjecture about unit fractions_. arXiv:2112.03726 (2021).
33-
34-
Note: The solution to this problem has been formalized in Lean 3 by T. Bloom and B. Mehta, see
35-
https://github.com/b-mehta/unit-fractions -/
36-
@[category research solved, AMS 11]
35+
This was formalized in Lean 3 by Bloom and Mehta.
36+
-/
37+
@[category research formally solved using other_system at
38+
"https://github.com/b-mehta/unit-fractions/blob/master/src/final_results.lean", AMS 11]
3739
theorem erdos_298 : answer(True) ↔ (∀ (A : Set ℕ), 0 ∉ A → A.HasPosDensity →
3840
∃ (S : Finset ℕ), ↑S ⊆ A ∧ ∑ n ∈ S, (1 / n : ℚ) = 1) := by
3941
sorry

FormalConjectures/ErdosProblems/299.lean

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ import FormalConjectures.Util.ProblemImports
1919
/-!
2020
# Erdős Problem 299
2121
22-
*Reference:* [erdosproblems.com/299](https://www.erdosproblems.com/299)
22+
*References:*
23+
- [erdosproblems.com/298](https://www.erdosproblems.com/298)
24+
- [erdosproblems.com/299](https://www.erdosproblems.com/299)
25+
- [Bl21] Bloom, T. F., On a density conjecture about unit fractions. arXiv:2112.03726 (2021).
2326
-/
2427

2528
open Filter
@@ -29,8 +32,14 @@ namespace Erdos299
2932
/--
3033
Is there an infinite sequence $a_1 < a_2 < \dots$ such that $a_{i+1} - a_i = O(1)$ and no finite
3134
sum of $\frac{1}{a_i}$ is equal to 1?
35+
36+
There does not exist such a sequence, which follows from the positive solution to
37+
[erdosproblems.com/298] by Bloom [Bl21].
38+
39+
This was formalized in Lean 3 by Bloom and Mehta.
3240
-/
33-
@[category research solved, AMS 11 40]
41+
@[category research formally solved using other_system at
42+
"https://github.com/b-mehta/unit-fractions/blob/master/src/final_results.lean", AMS 11 40]
3443
theorem erdos_299 : answer(False) ↔ (∃ (a : ℕ → ℕ),
3544
StrictMono a ∧ (∀ n, 0 < a n) ∧
3645
(fun n ↦ (a (n + 1) : ℝ) - a n) =O[atTop] (1 : ℕ → ℝ) ∧
@@ -44,8 +53,6 @@ with sets of positive density, as follows from [Bl21].
4453
The statement is as follows:
4554
If $A \subset \mathbb{N}$ has positive upper density (and hence certainly if $A$ has positive
4655
density) then there is a finite $S \subset A$ such that $\sum_{n \in S} \frac{1}{n} = 1$.
47-
48-
[Bl21] Bloom, T. F., On a density conjecture about unit fractions.
4956
-/
5057
@[category research solved, AMS 11 40]
5158
theorem erdos_299.variants.density : ∀ (A : Set ℕ), 0 ∉ A → 0 < A.upperDensity →

FormalConjectures/ErdosProblems/303.lean

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,24 @@ import FormalConjectures.Util.ProblemImports
1919
/-!
2020
# Erdős Problem 303
2121
22-
*Reference:* [erdosproblems.com/303](https://www.erdosproblems.com/303)
22+
*References:*
23+
- [erdosproblems.com/303](https://www.erdosproblems.com/303)
24+
- [BrRo91] Brown, Tom C. and Rödl, Voijtech, Monochromatic solutions to equations with unit
25+
fractions. Bull. Austral. Math. Soc. (1991), 387-392.
2326
-/
2427

2528
namespace Erdos303
2629

27-
/-- Is it true that in any finite colouring of the integers there exists a monochromatic solution
30+
/--
31+
Is it true that in any finite colouring of the integers there exists a monochromatic solution
2832
to $\frac 1 a = \frac 1 b + \frac 1 c$ with distinct $a, b, c$?
2933
3034
This is true, as proved by Brown and Rödl [BrRo91].
3135
32-
[BrRo91] Brown, Tom C. and Rödl, Voijtech,
33-
_Monochromatic solutions to equations with unit fractions_.
34-
Bull. Austral. Math. Soc. (1991), 387-392.
36+
This was formalized in Lean by Yuan using Seed-Prover.
3537
-/
36-
@[category research solved, AMS 5 11]
38+
@[category research formally solved using lean4 at
39+
"https://www.erdosproblems.com/forum/thread/303", AMS 5 11]
3740
theorem erdos_303 :
3841
answer(True) ↔
3942
-- For any finite colouring of the integers

0 commit comments

Comments
 (0)