feat(ErdosProblems): formalize 423, 839#3586
feat(ErdosProblems): formalize 423, 839#3586ryantuck wants to merge 2 commits intogoogle-deepmind:mainfrom
Conversation
|
Thanks! I picked one thing that was more idiomatic here and added it to the review there, so thanks for that! |
| ∃ N p : ℕ, 0 < p ∧ ∀ n, N ≤ n → | ||
| a (n + p + 1) - a (n + p) = a (n + 1) - a n := by |
There was a problem hiding this comment.
this is better done using ∀ᶠ m in atTop as in #3438
|
when adding "fixes #[issue number]" in the pull request description it automatically links them to avoid duplicate work on it and the issues will get closed automatically when merged |
|
@mo271 I've removed 342 from this PR, and have included the "fixes: NUM" syntax in subsequent related PRs. |
mo271
left a comment
There was a problem hiding this comment.
Many Thanks -- plenty good things in here. Most noticeable all math correct, often also idiomatic. Just some suggestions mainly on style.
One major missing point: Problem 423 is missing main problem.
| -/ | ||
|
|
||
| import FormalConjectures.Util.ProblemImports | ||
| import FormalConjecturesForMathlib.Data.Set.Density |
There was a problem hiding this comment.
| import FormalConjecturesForMathlib.Data.Set.Density |
Those imports are automatic when inlcuding the ProblemImports
| Let $a_1 = 1$ and $a_2 = 2$, and for $k \ge 3$ choose $a_k$ to be the least integer | ||
| $> a_{k-1}$ which is the sum of at least two consecutive terms of the sequence. What is | ||
| the asymptotic behaviour of this sequence? | ||
|
|
||
| The sequence begins $1, 2, 3, 5, 6, 8, 10, 11, \ldots$ (OEIS A005243). | ||
|
|
||
| Asked by Hofstadter (Erdős says Hofstadter was inspired by a similar question of Ulam). | ||
| Bolan and Tang have independently proved that $a_n - n$ is nondecreasing and unbounded, | ||
| so there are infinitely many integers not appearing in the sequence. |
There was a problem hiding this comment.
Let's not repeat the problem here, those comments should go the definition of the sequence the corresponding conjectures/theorems.
| *Reference:* [erdosproblems.com/423](https://www.erdosproblems.com/423) | ||
|
|
||
| Let $a_1 = 1$ and $a_2 = 2$, and for $k \ge 3$ choose $a_k$ to be the least integer | ||
| $> a_{k-1}$ which is the sum of at least two consecutive terms of the sequence. What is | ||
| the asymptotic behaviour of this sequence? | ||
|
|
||
| The sequence begins $1, 2, 3, 5, 6, 8, 10, 11, \ldots$ (OEIS A005243). | ||
|
|
||
| Asked by Hofstadter (Erdős says Hofstadter was inspired by a similar question of Ulam). | ||
| Bolan and Tang have independently proved that $a_n - n$ is nondecreasing and unbounded, | ||
| so there are infinitely many integers not appearing in the sequence. | ||
|
|
||
| [Er77c] Erdős, P., *Problems and results on combinatorial number theory. III*, | ||
| Number theory day (Proc. Conf., Rockefeller Univ., New York, 1976), 1977, pp. 43–72. | ||
|
|
||
| [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial | ||
| number theory*, Monographies de L'Enseignement Mathématique (1980). | ||
|
|
||
| [Bolan] Bolan, M., *Hofstader–Ulam Sequence*, | ||
| https://github.com/mjtb49/HofstaderUlam/blob/main/HofstaderUlamSequence.pdf | ||
|
|
||
| [Tang] Tang, Q., *On Erdős Problem 423*, | ||
| https://github.com/QuanyuTang/erdos-problem-423/blob/main/On_Erd%C5%91s_Problem_423.pdf |
There was a problem hiding this comment.
| *Reference:* [erdosproblems.com/423](https://www.erdosproblems.com/423) | |
| Let $a_1 = 1$ and $a_2 = 2$, and for $k \ge 3$ choose $a_k$ to be the least integer | |
| $> a_{k-1}$ which is the sum of at least two consecutive terms of the sequence. What is | |
| the asymptotic behaviour of this sequence? | |
| The sequence begins $1, 2, 3, 5, 6, 8, 10, 11, \ldots$ (OEIS A005243). | |
| Asked by Hofstadter (Erdős says Hofstadter was inspired by a similar question of Ulam). | |
| Bolan and Tang have independently proved that $a_n - n$ is nondecreasing and unbounded, | |
| so there are infinitely many integers not appearing in the sequence. | |
| [Er77c] Erdős, P., *Problems and results on combinatorial number theory. III*, | |
| Number theory day (Proc. Conf., Rockefeller Univ., New York, 1976), 1977, pp. 43–72. | |
| [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial | |
| number theory*, Monographies de L'Enseignement Mathématique (1980). | |
| [Bolan] Bolan, M., *Hofstader–Ulam Sequence*, | |
| https://github.com/mjtb49/HofstaderUlam/blob/main/HofstaderUlamSequence.pdf | |
| [Tang] Tang, Q., *On Erdős Problem 423*, | |
| https://github.com/QuanyuTang/erdos-problem-423/blob/main/On_Erd%C5%91s_Problem_423.pdf | |
| *References:* | |
| - [erdosproblems.com/423](https://www.erdosproblems.com/423) | |
| - [Er77c] Erdős, P., *Problems and results on combinatorial number theory. III*, | |
| Number theory day (Proc. Conf., Rockefeller Univ., New York, 1976), 1977, pp. 43–72. | |
| - [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial | |
| number theory*, Monographies de L'Enseignement Mathématique (1980). | |
| - [Bolan] Bolan, M., *Hofstader–Ulam Sequence*, | |
| https://github.com/mjtb49/HofstaderUlam/blob/main/HofstaderUlamSequence.pdf | |
| - [Tang] Tang, Q., *On Erdős Problem 423*, | |
| https://github.com/QuanyuTang/erdos-problem-423/blob/main/On_Erd%C5%91s_Problem_423.pdf | |
| - [OEIS A5243](https://oeis.org/A5243) |
not the added OEIS reference (it was mentioned before, now listed in the reference with link)
| Tang. | ||
| -/ | ||
| @[category research solved, AMS 5 11] | ||
| theorem erdos_423_nondecreasing : |
There was a problem hiding this comment.
| theorem erdos_423_nondecreasing : | |
| theorem erdos_423.variants.nondecreasing : |
there is a README.md in FormalConjectures/ErdosProblems/ explaining the naming convention.
| of the sequence remains an open question. | ||
| -/ | ||
| @[category research solved, AMS 5 11] | ||
| theorem erdos_423 : |
There was a problem hiding this comment.
| theorem erdos_423 : | |
| theorem erdos_423.variants.unbounded : |
this is not the main variant here!
| @[category research open, AMS 11] | ||
| theorem erdos_839 : answer(sorry) ↔ | ||
| ∀ (a : ℕ → ℕ), (∀ n, 1 ≤ a n) → StrictMono a → SumOfConsecutiveFree a → | ||
| ∀ M : ℝ, ∃ᶠ n in atTop, M < (a n : ℝ) / (n : ℝ) := by |
There was a problem hiding this comment.
Better to use limsup, because closer to informal formulation
| ∀ M : ℝ, ∃ᶠ n in atTop, M < (a n : ℝ) / (n : ℝ) := by | |
| atTop.limsup (fun n : ℕ => (a n : ℝ≥0∞) / n) = ⊤ := by |
with open scoped ENNReal
Or limsup (fun n : ℕ => (a n : ℝ≥0∞) / n) atTop = ⊤
|
|
||
| Let $1 \leq a_1 < a_2 < \cdots$ be a strictly increasing sequence of positive integers | ||
| such that no $a_i$ is the sum of consecutive $a_j$ for $j < i$. | ||
| Is it true that $\lim_{x \to \infty} \frac{1}{\log x} \sum_{a_n < x} \frac{1}{a_n} = 0$? |
There was a problem hiding this comment.
| Is it true that $\lim_{x \to \infty} \frac{1}{\log x} \sum_{a_n < x} \frac{1}{a_n} = 0$? | |
| Is it true that $\lim_{x \to \infty} \frac{1}{\log x} \sum_{a_n < x} \frac{1}{a_n} = 0$? | |
| This is equivalent to asking whether the range $\{a_1, a_2, \ldots\}$ has logarithmic density | |
| zero (see `Set.HasLogDensity`). |
Good usage of this, instead of the manual definition!
| ∀ (a : ℕ → ℕ), (∀ n, 1 ≤ a n) → StrictMono a → SumOfConsecutiveFree a → | ||
| Set.HasLogDensity (Set.range a) 0 := by | ||
| sorry | ||
|
|
There was a problem hiding this comment.
Please add a --TODO for the additional material
(This tries to preserve the invariant: if a file is present and there are no TODOs, then it reflects what was on erdosproblems.com at the time of writing...)
| Is it true that $\limsup a_n / n = \infty$? | ||
| -/ | ||
| @[category research open, AMS 11] | ||
| theorem erdos_839 : answer(sorry) ↔ |
There was a problem hiding this comment.
| theorem erdos_839 : answer(sorry) ↔ | |
| theorem erdos_839.parts.i : answer(sorry) ↔ |
is the naming convention, I think
| Is it true that $\lim_{x \to \infty} \frac{1}{\log x} \sum_{a_n < x} \frac{1}{a_n} = 0$? | ||
| -/ | ||
| @[category research open, AMS 11] | ||
| theorem erdos_839.variants.stronger : answer(sorry) ↔ |
There was a problem hiding this comment.
| theorem erdos_839.variants.stronger : answer(sorry) ↔ | |
| theorem erdos_839.parts.ii : answer(sorry) ↔ |
this is not from the additional material, hence a parts not a variant.
Followup to #3422, which formalized all remaining conjectures, but breaking out into a few manageable-sized PRs, split by category. See that original PR for the specific rigor applied to the AI pipeline to ensure these formalizations were produced up to a reasonable standard.
This PR contains three open Erdos problems that Claude categorized as
sequences_asymptotics.fixes #722
fixes #971