FormalConjectures/ErdosProblems/409.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1
13 declarations, 12 contain sorry, 0 declared as axioms
Erdős Problem 409
Reference: erdosproblems.com/409
Imports (1)
Imported by 1 file
- theorem
Erdos409.erdos_409.parts.iHow many iterations of $n\mapsto\phi(n) + 1$ are needed before a prime is reached? sorry line 40 sourceSource documentation
How many iterations of $n\mapsto\phi(n) + 1$ are needed before a prime is reached?
depends on sorry what this means
Statement uses:
Nat,LT.lt,OfNat.ofNat,IsLeast,Set.ofPred,Nat.Prime,Nat.iterate,HAdd.hAdd,Nat.totient,sorryAx,Bool.falseProof uses:
Lean.Name,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous10 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_409.parts.i (n : ℕ) (hn : 0 < n) : IsLeast { i | (φ · + 1)^[i] n |>.Prime } answer(sorry) := by … - theorem
Erdos409.erdos_409.variants.terminationIf $n > 0$, then the iteration $n\mapsto\phi(n) + 1$ necessarily reaches a prime line 47 sourceSource documentation
If $n > 0$, then the iteration $n\mapsto\phi(n) + 1$ necessarily reaches a prime.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,OfNat.ofNat,Exists,Nat.Prime,Nat.iterate,HAdd.hAdd,Nat.totientProof uses:
Nat.strong_induction_on,dite,Exists.intro,id,Not,Or,Eq,Decidable.byContradiction,of_eq_true,Eq.trans,True,congrArg,Mathlib.Meta.NormNum.IsNat.to_eq,Mathlib.Meta.NormNum.isNat_add,Eq.refl,Mathlib.Meta.NormNum.isNat_ofNat,eq_true,Mathlib.Meta.NormNum.isNat_prime_2,Bool,Bool.trueand 16 more37 instances, coercions and auxiliary constants left out.
Tactic trace: 26 steps
Open to load the checked before-and-after goal states.
theorem erdos_409.variants.termination (n : ℕ) (hn : 0 < n) : ∃ i, (φ · + 1)^[i] n |>.Prime := by … - theorem
Erdos409.erdos_409.parts.i.isThetaLet $c(n)$ be the minimum number of iterations of $n\mapsto\phi(n) + 1$ before a prime is reached sorry line 80 sourceSource documentation
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))$?
depends on sorry what this means
Statement uses:
Nat,GT.gt,OfNat.ofNat,IsLeast,Set.ofPred,Nat.Prime,Nat.iterate,HAdd.hAdd,Nat.totient,Asymptotics.IsTheta,Real,Filter.atTop,sorryAx,Bool.falseProof uses:
Lean.Name,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous18 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_409.parts.i.isTheta (c : ℕ → ℕ) (h : ∀ n > 0, IsLeast { i | (φ · + 1)^[i] n |>.Prime } (c n)) : (fun n => (c n : ℝ)) =Θ[atTop] (answer(sorry) : ℕ → ℝ) := by …Mentions: c, Erdos409.erdos_409.parts.i
- theorem
Erdos409.erdos_409.parts.i.isBigOLet $c(n)$ be the minimum number of iterations of $n\mapsto\phi(n) + 1$ before a prime is reached sorry line 90 sourceSource documentation
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))$?
depends on sorry what this means
Statement uses:
Nat,GT.gt,OfNat.ofNat,IsLeast,Set.ofPred,Nat.Prime,Nat.iterate,HAdd.hAdd,Nat.totient,Asymptotics.IsBigO,Real,Filter.atTop,sorryAx,Bool.falseProof uses:
Lean.Name,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous18 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_409.parts.i.isBigO (c : ℕ → ℕ) (h : ∀ n > 0, IsLeast { i | (φ · + 1)^[i] n |>.Prime } (c n)) : (fun n => (c n : ℝ)) =O[atTop] (answer(sorry) : ℕ → ℝ) := by …Mentions: c, Erdos409.erdos_409.parts.i
- theorem
Erdos409.erdos_409.parts.i.isLittleOLet $c(n)$ be the minimum number of iterations of $n\mapsto\phi(n) + 1$ before a prime is reached sorry line 100 sourceSource documentation
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))$?
depends on sorry what this means
Statement uses:
Nat,GT.gt,OfNat.ofNat,IsLeast,Set.ofPred,Nat.Prime,Nat.iterate,HAdd.hAdd,Nat.totient,Asymptotics.IsLittleO,Real,Filter.atTop,sorryAx,Bool.falseProof uses:
Lean.Name,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous18 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_409.parts.i.isLittleO (c : ℕ → ℕ) (h : ∀ n > 0, IsLeast { i | (φ · + 1)^[i] n |>.Prime } (c n)) : (fun n => (c n : ℝ)) =o[atTop] (answer(sorry) : ℕ → ℝ) := by …Mentions: c, Erdos409.erdos_409.parts.i
- theorem
Erdos409.erdos_409.parts.iiCan infinitely many $n$ reach the same prime under the iteration $n\mapsto\phi(n) + 1$? sorry line 109 sourceSource documentation
Can infinitely many $n$ reach the same prime under the iteration $n\mapsto\phi(n) + 1$?
depends on sorry what this means
Statement uses:
Iff,True,Exists,Nat,Nat.Prime,Set.Infinite,Set.ofPred,Eq,Nat.iterate,HAdd.hAdd,Nat.totient,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous6 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_409.parts.ii : answer(sorry) ↔ ∃ (p : ℕ) (hp : p.Prime), { n | ∃ i, (φ · + 1)^[i] n = p }.Infinite := by …Mentions: Erdos409.erdos_409.parts.i
- theorem
Erdos409.erdos_409.parts.iiiWhat is the density of $n$ which reach any fixed prime under the iteration $n\mapsto\phi(n) + 1$? sorry line 117 sourceSource documentation
What is the density of $n$ which reach any fixed prime under the iteration $n\mapsto\phi(n) + 1$?
depends on sorry what this means
Statement uses:
Nat,Nat.Prime, Set.HasDensity,Set.ofPred,Exists,Eq,Nat.iterate,HAdd.hAdd,Nat.totient,OfNat.ofNat,sorryAx,Real,Bool.false,Set.univProof uses:
Lean.Name,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous14 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_409.parts.iii (p : ℕ) (h : p.Prime) : { n | ∃ i, (φ · + 1)^[i] n = p }.HasDensity answer(sorry) := by …Mentions: Erdos409.erdos_409.parts.i
- theorem
Erdos409.erdos_409.variants.sigmaIf the iteration $n\mapsto\sigma(n) - 1$ starting at $n > 1$ reaches a prime, how many iterations are needed before a prime is reached? sorry line 128 sourceSource documentation
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?
depends on sorry what this means
Statement uses:
Nat,GT.gt,OfNat.ofNat,Exists,Nat.Prime,Nat.iterate,HSub.hSub,ArithmeticFunction,ArithmeticFunction.sigma,IsLeast,Set.ofPred,sorryAx,Bool.falseProof uses:
Lean.Name,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous18 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_409.variants.sigma (n : ℕ) (hn : n > 1) (hterm : ∃ i, (σ 1 · - 1)^[i] n |>.Prime) : IsLeast { i | (σ 1 · - 1)^[i] n |>.Prime } answer(sorry) := by … - theorem
Erdos409.erdos_409.variants.sigma_terminationIf $n > 1$ then the iteration $n\mapsto\sigma(n) - 1$ necessarily reaches a prime sorry line 137 sourceSource documentation
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).
depends on sorry what this means
Statement uses:
Nat,GT.gt,OfNat.ofNat,Exists,Nat.Prime,Nat.iterate,HSub.hSub,ArithmeticFunction,ArithmeticFunction.sigmaProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous16 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_409.variants.sigma_termination (n : ℕ) (hn : n > 1) : ∃ i, (σ 1 · - 1)^[i] n |>.Prime := by … - theorem
Erdos409.erdos_409.variants.sigma_isThetaLet $c(n)$ be the minimum number of iterations of $n\mapsto\sigma(n) - 1$ before a prime is reached sorry line 148 sourceSource documentation
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))$?
depends on sorry what this means
Statement uses:
Nat,GT.gt,OfNat.ofNat,IsLeast,Set.ofPred,Nat.Prime,Nat.iterate,HSub.hSub,ArithmeticFunction,ArithmeticFunction.sigma,Asymptotics.IsTheta,Real,Filter.atTop,sorryAx,Bool.falseProof uses:
Lean.Name,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous26 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_409.variants.sigma_isTheta (c : ℕ → ℕ) (h : ∀ n > 1, IsLeast { i | (σ 1 · - 1)^[i] n |>.Prime } (c n)) : (fun n => (c n : ℝ)) =Θ[atTop] (answer(sorry) : ℕ → ℝ) := by …Mentions: c
- theorem
Erdos409.erdos_409.variants.sigma_isBigOLet $c(n)$ be the minimum number of iterations of $n\mapsto\sigma(n) - 1$ before a prime is reached sorry line 158 sourceSource documentation
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))$?
depends on sorry what this means
Statement uses:
Nat,GT.gt,OfNat.ofNat,IsLeast,Set.ofPred,Nat.Prime,Nat.iterate,HSub.hSub,ArithmeticFunction,ArithmeticFunction.sigma,Asymptotics.IsBigO,Real,Filter.atTop,sorryAx,Bool.falseProof uses:
Lean.Name,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous26 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
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] (answer(sorry) : ℕ → ℝ) := by …Mentions: c
- theorem
Erdos409.erdos_409.variants.sigma_isLittleOLet $c(n)$ be the minimum number of iterations of $n\mapsto\sigma(n) - 1$ before a prime is reached sorry line 168 sourceSource documentation
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))$?
depends on sorry what this means
Statement uses:
Nat,GT.gt,OfNat.ofNat,IsLeast,Set.ofPred,Nat.Prime,Nat.iterate,HSub.hSub,ArithmeticFunction,ArithmeticFunction.sigma,Asymptotics.IsLittleO,Real,Filter.atTop,sorryAx,Bool.falseProof uses:
Lean.Name,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous26 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
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] (answer(sorry) : ℕ → ℝ) := by …Mentions: c
- theorem
Erdos409.erdos_409.variants.sigma_prime_terminationIs it true that iterates of $n\mapsto\sigma(n) - 1$ always reach a prime? sorry line 177 sourceSource documentation
Is it true that iterates of $n\mapsto\sigma(n) - 1$ always reach a prime?
depends on sorry what this means
Statement uses:
Iff,True,Nat,GT.gt,OfNat.ofNat,Exists,Nat.Prime,Nat.iterate,HSub.hSub,ArithmeticFunction,ArithmeticFunction.sigmaProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous16 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_409.variants.sigma_prime_termination : answer(sorry) ↔ ∀ n > 1, ∃ i, (σ 1 · - 1)^[i] n |>.Prime := by …