-
Notifications
You must be signed in to change notification settings - Fork 193
feat(ErdosProblems): 375 #1497
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
base: main
Are you sure you want to change the base?
feat(ErdosProblems): 375 #1497
Conversation
Co-authored-by: Yaël Dillies <[email protected]>
|
I think I addressed all your comments. I'll work on the proof of |
|
Do you want to prove it in this PR or the next one? |
| (∃ c > 0, ∀ᶠ n in atTop, (n + 1).nth Nat.Prime - n.nth Nat.Prime < | ||
| (n.nth Nat.Prime : ℝ) ^ (1 / (2 : ℝ) - c)) | ||
| → ∀ᶠ n in atTop, ∃ p ∈ Set.Ioo (n ^ 2) ((n + 1) ^ 2), Prime p := by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But then the Ferreira statement below is the same but unconditional, right? @mo271, what do you suggest here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @YaelDillies on this one: I think the goal of the theorem should quantify over all n (but this is fine: to avoid the absurd inequalities you mention we only need to take sufficiently large n in the hypothesis of the theorem)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Paul-Lez Should I keep this theorem then? I think Yaël is suggesting that this theorem is not needed because it is not better than Ferreira's statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I have convinced myself that this statement is worth having on the basis that what we're interested in in this repo isn't results but proofs. An AI proving the implication you are adding would be interested, even if the statement can theoretically be made stronger
Paul-Lez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Added a few comments
| /-- Is it true that for any `n ≥ 1` and any `k`, if `n + 1, ..., n + k` are all composite, then | ||
| there are distinct primes `p₁, ... pₖ` such that `pᵢ ∣ n + i` for all `1 ≤ i ≤ k`? -/ | ||
| @[category research open, AMS 11] | ||
| theorem erdos_375 : answer(sorry) ↔ ∀ n ≥ 1, ∀ k, (∀ i < k, ¬ (n + i + 1).Prime) → |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that you're using erdos_375 as as assumption later on, I would suggest the following:
- Define a predicate
Erdos375(as adef) - State
erdos_375asanswer(sorry) ↔ erdos_375 - State the other implications using
Erdos375.
This will help with maintainability (e.g. only need to fix the statement of erdos_375 once if it breaks) and readability of the downstream implications!
| · exact this n hn k hk h p hp y x hxy.symm hr.symm (by grind) | ||
| · have hy : y = x + 1 := by grind | ||
| have := hy ▸ Nat.dvd_sub (hp y).2 (hxy ▸ (hp x).2) | ||
| have := (hp 1).1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(very nitpicky) you can get rid of this line
| have := (hp 1).1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The goal is not solved if I delete this line.
| there are distinct primes `p₁, ... pₖ` such that `pᵢ ∣ n + i` for all `1 ≤ i ≤ k`. This is proved | ||
| in [RST75]. -/ | ||
| @[category research solved, AMS 11] | ||
| theorem erdos_375.log : ∃ c > 0, ∀ n k : ℕ, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the "n sufficiently large" condition is missing otherwise?
| theorem erdos_375.log : ∃ c > 0, ∀ n k : ℕ, | |
| theorem erdos_375.log : ∃ c > 0, ∀ᶠ (n : ℕ) in Filter.atTop, ∀ k : ℕ, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| (∃ c > 0, ∀ᶠ n in atTop, (n + 1).nth Nat.Prime - n.nth Nat.Prime < | ||
| (n.nth Nat.Prime : ℝ) ^ (1 / (2 : ℝ) - c)) | ||
| → ∀ᶠ n in atTop, ∃ p ∈ Set.Ioo (n ^ 2) ((n + 1) ^ 2), Prime p := by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @YaelDillies on this one: I think the goal of the theorem should quantify over all n (but this is fine: to avoid the absurd inequalities you mention we only need to take sufficiently large n in the hypothesis of the theorem)
| /-- If there exists a constant `c > 0` such that | ||
| `(n + 1).nth Nat.Prime - n.nth Nat.Prime < (n.nth Nat.Prime) ^ (1 / 2 - c)` for all `n`, then | ||
| Legendre's conjecture is true. -/ | ||
| @[category research solved, AMS 11] | ||
| theorem bounded_gap_legendre : | ||
| (∃ c > 0, ∀ᶠ n in atTop, (n + 1).nth Nat.Prime - n.nth Nat.Prime < | ||
| (n.nth Nat.Prime : ℝ) ^ (1 / (2 : ℝ) - c)) | ||
| → ∀ᶠ n in atTop, ∃ p ∈ Set.Ioo (n ^ 2) ((n + 1) ^ 2), Prime p := by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /-- If there exists a constant `c > 0` such that | |
| `(n + 1).nth Nat.Prime - n.nth Nat.Prime < (n.nth Nat.Prime) ^ (1 / 2 - c)` for all `n`, then | |
| Legendre's conjecture is true. -/ | |
| @[category research solved, AMS 11] | |
| theorem bounded_gap_legendre : | |
| (∃ c > 0, ∀ᶠ n in atTop, (n + 1).nth Nat.Prime - n.nth Nat.Prime < | |
| (n.nth Nat.Prime : ℝ) ^ (1 / (2 : ℝ) - c)) | |
| → ∀ᶠ n in atTop, ∃ p ∈ Set.Ioo (n ^ 2) ((n + 1) ^ 2), Prime p := by | |
| /-- If there exists a constant `c > 0` such that | |
| `(n + 1).nth Nat.Prime - n.nth Nat.Prime < (n.nth Nat.Prime) ^ (1 / 2 - c)` for sufficiently large `n`, then | |
| Legendre's conjecture is true. -/ | |
| @[category research solved, AMS 11] | |
| theorem bounded_gap_legendre | |
| (H : ∃ c > 0, ∀ᶠ n in atTop, (n + 1).nth Nat.Prime - n.nth Nat.Prime < | |
| (n.nth Nat.Prime : ℝ) ^ (1 / (2 : ℝ) - c)) : | |
| ∀ᶠ n in atTop, ∃ p ∈ Set.Ioo (n ^ 2) ((n + 1) ^ 2), Prime p := by |
Co-authored-by: Yaël Dillies <[email protected]>

Closes #699
I only include the strongest result.