Title:Erdős Problem 409
Statement:No informal statement.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question |
| Cite as: | NS.02030 [math.NT] · NS.02030v1 for this version |
| Declaration: | Erdos409.erdos_409.parts.i |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 2789550716fbb27aaad05182bea95b9b46f36888a1c9f943f68405854dd36d0c |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/409.lean |
Formal statement
theorem erdos_409.parts.i (n : ℕ) (hn : 0 < n) :
IsLeast { i | (φ · + 1)^[i] n |>.Prime } (erdos_409.parts.i.answer n)Show the full Challenge.lean (200 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 409
*Reference:* [erdosproblems.com/409](https://www.erdosproblems.com/409)
-/
@[expose] public section
open scoped Topology ArithmeticFunction.sigma Nat
open Filter
namespace Erdos409
def erdos_409.parts.i.answer (n : ℕ) : ℕ := sorry
/--
How many iterations of $n\mapsto\phi(n) + 1$ are needed before a prime is reached?
-/
-- Formalisation note: the sequence of iterates always terminates if `n > 0`
-- since it is strictly decreasing unless the input is prime, at which point
-- it becomes static. See also https://oeis.org/A39651
@[category research open, question value, AMS 11]
theorem erdos_409.parts.i (n : ℕ) (hn : 0 < n) :
IsLeast { i | (φ · + 1)^[i] n |>.Prime } (erdos_409.parts.i.answer n) := by
sorry
/-- If $n > 0$, then the iteration $n\mapsto\phi(n) + 1$ necessarily
reaches a prime. -/
@[category test, AMS 11]
theorem erdos_409.variants.termination (n : ℕ) (hn : 0 < n) :
∃ i, (φ · + 1)^[i] n |>.Prime := by
induction n using Nat.strong_induction_on with
| _ n ih =>
by_cases hp : n.Prime
· exact ⟨0, by simpa using hp⟩
· have h1 : n = 1 ∨ 1 < n := by omega
rcases h1 with h1 | h1
· subst h1
refine ⟨1, ?_⟩
norm_num [Function.iterate_one, Nat.totient_one]
· have hlt : φ n < n := Nat.totient_lt n h1
have hne : φ n ≠ n - 1 := by
intro h
exact hp ((Nat.totient_eq_iff_prime hn).1 h)
have hdec : φ n + 1 < n := by omega
have hpos : 0 < φ n + 1 := by positivity
obtain ⟨i, hi⟩ := ih (φ n + 1) hdec hpos
refine ⟨i + 1, ?_⟩
rw [Function.iterate_succ_apply]
exact hi
-- Formalisation note: it's possible that solution to `erdos_409.parts.i` needs to be
-- expressed asymptotically. To handle this we include `IsTheta`, `IsBigO`
-- and `IsLittleO` variants below. Since a solution is not known this necessitates
-- the use of an `answer` definition left as `sorry`. Trivial or sub-optimal solutions
-- will therefore exist to the asymptotic formalisations. A true solution to
-- the asymptotic variants should have a degree of optimality or non-triviality to it.
def erdos_409.parts.i.isTheta.answer : ℕ → ℝ := sorry
/--
Let $c(n)$ be the minimum number of iterations of $n\mapsto\phi(n) + 1$ before a prime
is reached. What is $\Theta(c(n))$?
-/
@[category research open, question value, AMS 11]
theorem erdos_409.parts.i.isTheta (c : ℕ → ℕ)
(h : ∀ n > 0, IsLeast { i | (φ · + 1)^[i] n |>.Prime } (c n)) :
(fun n => (c n : ℝ)) =Θ[atTop] erdos_409.parts.i.isTheta.answer := by
sorry
def erdos_409.parts.i.isBigO.answer : ℕ → ℝ := sorry
/--
Let $c(n)$ be the minimum number of iterations of $n\mapsto\phi(n) + 1$ before a prime
is reached. Find the simplest function $g(n)$ such that $c(n) = O(g(n))$?
-/
@[category research open, question value, AMS 11]
theorem erdos_409.parts.i.isBigO (c : ℕ → ℕ)
(h : ∀ n > 0, IsLeast { i | (φ · + 1)^[i] n |>.Prime } (c n)) :
(fun n => (c n : ℝ)) =O[atTop] erdos_409.parts.i.isBigO.answer := by
sorry
def erdos_409.parts.i.isLittleO.answer : ℕ → ℝ := sorry
/--
Let $c(n)$ be the minimum number of iterations of $n\mapsto\phi(n) + 1$ before a prime
is reached. Find the simplest function $g(n)$ such that $c(n) = o(g(n))$?
-/
@[category research open, question value, AMS 11]
theorem erdos_409.parts.i.isLittleO (c : ℕ → ℕ)
(h : ∀ n > 0, IsLeast { i | (φ · + 1)^[i] n |>.Prime } (c n)) :
(fun n => (c n : ℝ)) =o[atTop] erdos_409.parts.i.isLittleO.answer := by
sorry
/--
Can infinitely many $n$ reach the same prime under the iteration $n\mapsto\phi(n) + 1$?
-/
@[category research open, question, AMS 11]
theorem erdos_409.parts.ii :
∃ (p : ℕ) (hp : p.Prime), { n | ∃ i, (φ · + 1)^[i] n = p }.Infinite := by
sorry
def erdos_409.parts.iii.answer : ℝ := sorry
/--
What is the density of $n$ which reach any fixed prime under the iteration $n\mapsto\phi(n) + 1$?
-/
@[category research open, question value, AMS 11]
theorem erdos_409.parts.iii (p : ℕ) (h : p.Prime) :
{ n | ∃ i, (φ · + 1)^[i] n = p }.HasDensity erdos_409.parts.iii.answer := by
sorry
def erdos_409.variants.sigma.answer (n : ℕ) : ℕ := sorry
/--
If the iteration $n\mapsto\sigma(n) - 1$ starting at $n > 1$ reaches a prime, how many
iterations are needed before a prime is reached?
-/
-- Formalisation note: termination of this sequence is not known in general since
-- it is strictly increasing except at primes, so it is assumed as a hypothesis.
@[category research open, question value, AMS 11]
theorem erdos_409.variants.sigma (n : ℕ) (hn : n > 1)
(hterm : ∃ i, (σ 1 · - 1)^[i] n |>.Prime) :
IsLeast { i | (σ 1 · - 1)^[i] n |>.Prime } (erdos_409.variants.sigma.answer n) := by
sorry
/-- If $n > 1$ then the iteration $n\mapsto\sigma(n) - 1$ necessarily reaches a prime.
Note: this is open — it is not clear that the σ iteration always terminates,
since it is non-decreasing (unlike the φ iteration which is strictly decreasing). -/
@[category research open, AMS 11]
theorem erdos_409.variants.sigma_termination (n : ℕ) (hn : n > 1) :
∃ i, (σ 1 · - 1)^[i] n |>.Prime := by
sorry
-- Formalisation note: See the above formalisation note for the rationale
-- for including asymptotic variants
def erdos_409.variants.sigma_isTheta.answer : ℕ → ℝ := sorry
/--
Let $c(n)$ be the minimum number of iterations of $n\mapsto\sigma(n) - 1$ before a prime
is reached. What is $\Theta(c(n))$?
-/
@[category research open, question value, AMS 11]
theorem erdos_409.variants.sigma_isTheta (c : ℕ → ℕ)
(h : ∀ n > 1, IsLeast { i | (σ 1 · - 1)^[i] n |>.Prime } (c n)) :
(fun n => (c n : ℝ)) =Θ[atTop] erdos_409.variants.sigma_isTheta.answer := by
sorry
def erdos_409.variants.sigma_isBigO.answer : ℕ → ℝ := sorry
/--
Let $c(n)$ be the minimum number of iterations of $n\mapsto\sigma(n) - 1$ before a prime
is reached. Find the simplest function $g(n)$ such that $c(n) = O(g(n))$?
-/
@[category research open, question value, AMS 11]
theorem erdos_409.variants.sigma_isBigO (c : ℕ → ℕ)
(h : ∀ n > 1, IsLeast { i | (σ 1 · - 1)^[i] n |>.Prime } (c n)) :
(fun n => (c n : ℝ)) =O[atTop] erdos_409.variants.sigma_isBigO.answer := by
sorry
def erdos_409.variants.sigma_isLittleO.answer : ℕ → ℝ := sorry
/--
Let $c(n)$ be the minimum number of iterations of $n\mapsto\sigma(n) - 1$ before a prime
is reached. Find the simplest function $g(n)$ such that $c(n) = o(g(n))$?
-/
@[category research open, question value, AMS 11]
theorem erdos_409.variants.sigma_isLittleO (c : ℕ → ℕ)
(h : ∀ n > 1, IsLeast { i | (σ 1 · - 1)^[i] n |>.Prime } (c n)) :
(fun n => (c n : ℝ)) =o[atTop] erdos_409.variants.sigma_isLittleO.answer := by
sorry
/--
Is it true that iterates of $n\mapsto\sigma(n) - 1$ always reach a prime?
-/
@[category research open, question, AMS 11]
theorem erdos_409.variants.sigma_prime_termination :
∀ n > 1, ∃ i, (σ 1 · - 1)^[i] n |>.Prime := by
sorry
end Erdos409
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos409.erdos_409.parts.i with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_i : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-409 nosorry submit erdos-409 nosorry/erdos-409/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-409-parts-i-istheta — open
- erdos-409-parts-i-isbigo — open
- erdos-409-parts-i-islittleo — open
- erdos-409-parts-ii — open
- erdos-409-parts-iii — open
- erdos-409-variants-sigma — open
- erdos-409-variants-sigma-termination — open
- erdos-409-variants-sigma-istheta — open
- erdos-409-variants-sigma-isbigo — open
- erdos-409-variants-sigma-islittleo — open
- erdos-409-variants-sigma-prime-termination — open
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.