Skip to content

Commit 234baea

Browse files
authored
Fix Erdős 330 statement. (google-deepmind#1518)
The definitions of `Rep`, `UnrepWithout`, and `MinAsymptoticAddBasis` are updated to include a parameter `h` representing the maximum number of terms in the sum. The main theorem statement now quantifies over such an order `h`.
1 parent 3eac3cf commit 234baea

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

FormalConjectures/ErdosProblems/330.lean

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ namespace Erdos330
2727
open Set
2828
open scoped BigOperators
2929

30-
/-- `Rep A m` means `m` is a sum of **finitely many** elements of `A`
31-
(i.e., representable by *some* finite number of terms, not a fixed order). -/
32-
def Rep (A : Set ℕ) (m : ℕ) : Prop :=
33-
∃ k : ℕ, ∃ f : Fin k → ℕ, (∀ i, f i ∈ A) ∧ (∑ i : Fin k, f i) = m
30+
/-- `Rep A m h` means `m` is a sum of at most `h` elements of `A`x. -/
31+
def Rep (A : Set ℕ) (m h : ℕ) : Prop :=
32+
∃ k : ℕ, k ≤ h ∧ ∃ f : Fin k → ℕ, (∀ i, f i ∈ A) ∧ (∑ i : Fin k, f i) = m
3433

35-
/-- Integers **not** representable as a finite sum of elements of `A` **while avoiding** `n`. -/
36-
def UnrepWithout (A : Set ℕ) (n : ℕ) : Set ℕ :=
37-
{m | ¬ Rep (A \ {n}) m}
34+
/-- Integers **not** representable as a finite sum of elements with at most `h` terms of `A`
35+
**while avoiding** `n`. -/
36+
def UnrepWithout (A : Set ℕ) (n h: ℕ) : Set ℕ :=
37+
{m | ¬ Rep (A \ {n}) m h}
3838

39-
/-- An asymptotic additive basis is minimal when one cannot obtain an asymptotic
39+
/-- An asymptotic additive basis of order `h` is minimal when one cannot obtain an asymptotic
4040
additive basis by removing any element from it. -/
41-
def MinAsymptoticAddBasis (A : Set ℕ) : Prop :=
42-
IsAsymptoticAddBasis A ∧ ∀ n ∈ A, ¬ IsAsymptoticAddBasis (A \ {n})
41+
def MinAsymptoticAddBasisOfOrder (A : Set ℕ) (h : ℕ) : Prop :=
42+
IsAsymptoticAddBasisOfOrder A h ∧ ∀ n ∈ A, ¬ IsAsymptoticAddBasisOfOrder (A \ {n}) h
4343

4444
/--
4545
Does there exist a minimal basis $A \subset \mathbb{N}$ with positive density
@@ -48,8 +48,8 @@ cannot be represented without using $n$ is positive?
4848
-/
4949
@[category research open, AMS 5 11]
5050
theorem erdos_330_statement :
51-
answer(sorry) ↔ ∃ (A : Set ℕ), MinAsymptoticAddBasis A ∧ A.HasPosDensity ∧
52-
∀ n ∈ A, Set.HasPosDensity (UnrepWithout A n) := by
51+
answer(sorry) ↔ ∃ (A : Set ℕ), ∃ h, MinAsymptoticAddBasisOfOrder A h ∧ A.HasPosDensity ∧
52+
∀ n ∈ A, Set.HasPosDensity (UnrepWithout A n h) := by
5353
sorry
5454

5555
end Erdos330

0 commit comments

Comments
 (0)