-
Notifications
You must be signed in to change notification settings - Fork 227
feat(ErdosProblems): 254 #2324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
feat(ErdosProblems): 254 #2324
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
22d00fc
add erdos-254
danielchin 1173dbf
rebase
danielchin 973a8ac
Bump mathlib to v4.24.0
YaelDillies c9f4853
Bump mathlib to v4.25.0
YaelDillies b4f9820
Bump mathlib to v4.26.0
YaelDillies 8502ccd
Bump mathlib to v4.27.0
YaelDillies 3fa614d
Make things compile in docbuild
Paul-Lez 0edc1d2
Don't import `Counterexamples`
YaelDillies 68e3f71
feat(CI): distinguish formally solved Erdős problem status (#2299)
zond 694df06
feat(ErdosProblems): 23 (#2162)
rwst 1b73a71
feat: Gourevitch conjecture (#1883)
Khansa435 e0c0bde
feat: add bot to help contributors add/remove tags using comments (#2…
Paul-Lez 04e18d7
fix(ErdosProblems): 943 (#2332)
smmercuri 09d0645
fixes after merge
mo271 2d9e69b
solve(GreensOpenProblems): upper_trivial in 24 (#2358)
theaustinhatfield 2abbaa0
fix(): Update statuses of problems and fix minor issues (#2325)
danielchin ae66630
address comments
danielchin 6b395eb
Bump mathlib to v4.23.0
YaelDillies 649286d
Bump mathlib to v4.25.0
YaelDillies 4d649e8
feat(CI): change freq and add link (#2357)
mo271 06fe416
feat(GreensOpenProblems): 26 (#2368)
jeangud d32269b
fix(ErdosProblems): 434 (#2331)
smmercuri 8b21491
fix(ErdosProblems): 786 (#2283)
smmercuri 763ec14
Feat(FormalConjecturesForMathlib): add general infrastructure for ter…
Paul-Lez 69893b5
feat(ErdosProblems): 1142 (#2369)
franzhusch fced95a
Merge branch 'main' into erdos-254
danielchin d5f4d9c
fix incorrect merge
danielchin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| /- | ||
| Copyright 2026 The Formal Conjectures Authors. | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| https://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| -/ | ||
|
|
||
| import FormalConjectures.Util.ProblemImports | ||
|
|
||
| /-! | ||
| # Erdős Problem 254 | ||
|
|
||
| *References:* | ||
| - [erdosproblems.com/254](https://www.erdosproblems.com/254) | ||
| - [Ca60] Cassels, J. W. S., On the representation of integers as the sums of distinct summands taken | ||
| from a fixed set. Acta Sci. Math. (Szeged) (1960), 111-124. | ||
| -/ | ||
|
|
||
| open Filter Set | ||
|
|
||
| namespace Erdos254 | ||
|
|
||
| /-- | ||
| The distance of $x$ from the nearest integer. | ||
| -/ | ||
| noncomputable def nearestIntDist (x : ℝ) : ℝ := | ||
| min (Int.fract x) (1 - Int.fract x) | ||
|
|
||
| /-- | ||
| The set of integers that can be written as a sum of distinct elements of A. | ||
| -/ | ||
| def sumsOfDistinct (A : Set ℕ) : Set ℕ := | ||
| { n | ∃ S : Finset ℕ, (S : Set ℕ) ⊆ A ∧ S.sum (fun x ↦ x) = n } | ||
|
|
||
| /-- | ||
| Let $A\subseteq \mathbb{N}$ be such that $\lvert A\cap [1,2x]\rvert -\lvert A\cap [1,x]\rvert \to | ||
| \infty\textrm{ as }x\to \infty$ and $\sum_{n\in A} \{ \theta n\}=\infty$ for every $\theta\in | ||
| (0,1)$, where $\{x\}$ is the distance of $x$ from the nearest integer. Then every sufficiently large | ||
| integer is the sum of distinct elements of $A$. | ||
| -/ | ||
| @[category research open, AMS 5] | ||
| theorem erdos_254 : | ||
| ∀ᵉ (A : Set ℕ), | ||
| (Tendsto (fun x : ℕ ↦ (A ∩ Icc 1 (2 * x)).ncard - (A ∩ Icc 1 x).ncard) atTop atTop) ∧ | ||
| (∀ θ : ℝ, 0 < θ → θ < 1 → ¬ Summable (fun n : A ↦ nearestIntDist (θ * (n : ℝ)))) → | ||
| ∀ᶠ m in atTop, m ∈ sumsOfDistinct A := by | ||
danielchin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| sorry | ||
|
|
||
| /-- | ||
| Cassels [Ca60] proved this under the alternative hypotheses $\lim \frac{\lvert A\cap [1,2x]\rvert | ||
| -\lvert A\cap [1,x]\rvert}{\log\log x}=\infty$ and $\sum_{n\in A} \{ \theta n\}^2=\infty$ for every | ||
| $\theta\in (0,1)$. | ||
| -/ | ||
| @[category research solved, AMS 5] | ||
| theorem erdos_254.variants.cassels : | ||
| ∀ᵉ (A : Set ℕ), | ||
| (Tendsto (fun x : ℕ ↦ (((A ∩ Icc 1 (2 * x)).ncard : ℝ) - | ||
| ((A ∩ Icc 1 x).ncard : ℝ)) / Real.log (Real.log x)) atTop atTop) ∧ | ||
| (∀ θ : ℝ, 0 < θ → θ < 1 → ¬ Summable (fun n : A ↦ (nearestIntDist (θ * (n : ℝ)))^2)) → | ||
| ∀ᶠ m in atTop, m ∈ sumsOfDistinct A := by | ||
danielchin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| sorry | ||
|
|
||
| end Erdos254 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.