FormalConjectures/ErdosProblems/841.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
6 declarations, 5 contain sorry, 0 declared as axioms
Erdős Problem 841
References:
- erdosproblems.com/841
- [ErSe92] Erdős, Paul and Selfridge, J. L., Problems and Solutions: Solutions: 6655. Amer. Math. Monthly (1992), 791--794.
- [BPZ24] Bui, Hung M. and Pratt, Kyle and Zaharescu, Alexandru, A problem of Erdős-Graham-Granville-Selfridge on integral points on hyperelliptic curves. Math. Proc. Cambridge Philos. Soc. (2024), 309--323.
- [Gu04] Guy, Richard K., Unsolved problems in number theory. (2004), xviii+437.
Imports (1)
- def
Erdos841.tt nis the leastTsuch that{n + 1, …, n + T}contains a subset whose product withnis a square;t n = 0if and only ifnis itself a square line 41 sourceSource documentation
t nis the leastTsuch that{n + 1, …, n + T}contains a subset whose product withnis a square;t n = 0if and only ifnis itself a square.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
InfSet.sInf,Set.ofPred,Exists,Finset,And,LE.le,Finset.Icc,OfNat.ofNat,IsSquare,HMul.hMul,Finset.prod,HAdd.hAdd12 instances, coercions and auxiliary constants left out.
noncomputable def t (n : ℕ) : ℕ := …
- theorem
Erdos841.erdos_841Let $t_n$ be minimal such that $\{n+1,\ldots,n+t_n\}$ contains a subset whose product with $n$ is a square number (and let $t_n=0$ if $n$ is itself square) sorry line 61 sourceSource documentation
Let $t_n$ be minimal such that $\{n+1,\ldots,n+t_n\}$ contains a subset whose product with $n$ is a square number (and let $t_n=0$ if $n$ is itself square). Estimate $t_n$.
A problem of Erdős, Graham, and Selfridge. For example, $t_6=6$ since $6\cdot 8\cdot 12=24^2$. It is trivial that $t_n\geq P(n)$, where $P(n)$ is the largest prime divisor of $n$.
Bui, Pratt, and Zaharescu [BPZ24] proved that the distribution of $t_n$ continues to follow $P(n)$, in that for any fixed $c\in (0,1]$ $$\lim_{x\to \infty}\frac{\lvert \{ n\leq x : t_n\leq n^c\}\rvert}{x} = \lim_{x\to \infty}\frac{\lvert \{ n\leq x : P(n)\leq n^c\}\rvert}{x}.$$ The statement below is that the difference of the two counting functions is $o(x)$.
This was formalized in Lean by Codex.
depends on sorry what this means
Statement uses:
Real,Membership.mem,Set,Set.Ioc,OfNat.ofNat,Filter.Tendsto,Nat,HDiv.hDiv,HSub.hSub,Finset.card,Finset.filter,LE.le, Erdos841.t,HPow.hPow,Finset.Icc, Nat.maxPrimeFac,Filter.atTop,nhdsProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous46 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_841 (c : ℝ) (hc : c ∈ Set.Ioc 0 1) : Tendsto (fun x : ℕ ↦ ((((Finset.Icc 1 x).filter fun n : ℕ ↦ (t n : ℝ) ≤ (n : ℝ) ^ c).card : ℝ) - ((Finset.Icc 1 x).filter fun n : ℕ ↦ (n.maxPrimeFac : ℝ) ≤ (n : ℝ) ^ c).card) / x) atTop (𝓝 0) := by …Mentions: c, Erdos841.t
- theorem
Erdos841.erdos_841.variants.selfridge_large_primeSelfridge proved that $t_n=P(n)$ if $P(n)>\sqrt{2n}+1$ sorry line 74 sourceSource documentation
Selfridge proved that $t_n=P(n)$ if $P(n)>\sqrt{2n}+1$.
This was formalized in Lean by Codex.
depends on sorry what this means
Statement uses:
Nat,LT.lt,OfNat.ofNat,Real,HAdd.hAdd,Real.sqrt,HMul.hMul, Nat.maxPrimeFac,Eq, Erdos841.tProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous28 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_841.variants.selfridge_large_prime (n : ℕ) (hn : 1 < n) (h : √(2 * n) + 1 < (n.maxPrimeFac : ℝ)) : t n = n.maxPrimeFac := by …Mentions: Erdos841.t
- theorem
Erdos841.erdos_841.variants.selfridge_sqrtSelfridge proved that $t_n \ll n^{1/2}$ if $P(n)\leq\sqrt{2n}+1$ sorry line 84 sourceSource documentation
Selfridge proved that $t_n \ll n^{1/2}$ if $P(n)\leq\sqrt{2n}+1$.
This was formalized in Lean by Codex.
depends on sorry what this means
Statement uses:
Exists,Real,Nat,LE.le, Nat.maxPrimeFac,HAdd.hAdd,Real.sqrt,HMul.hMul,OfNat.ofNat, Erdos841.tProof uses:
sorryAx,Lean.Name,Bool.false,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_841.variants.selfridge_sqrt : ∃ C : ℝ, ∀ n : ℕ, (n.maxPrimeFac : ℝ) ≤ √(2 * n) + 1 → (t n : ℝ) ≤ C * √n := by …Mentions: Erdos841.t
- theorem
Erdos841.erdos_841.variants.many_small_valuesBui, Pratt, and Zaharescu [BPZ24] proved that for at least $x^{1-o(1)}$ many $n\leq x$ we have $$t_n \leq \exp(O(\sqrt{\log n\log\log n})).$$ This was formalized in Lean by Codex sorry line 96 sourceSource documentation
Bui, Pratt, and Zaharescu [BPZ24] proved that for at least $x^{1-o(1)}$ many $n\leq x$ we have $$t_n \leq \exp(O(\sqrt{\log n\log\log n})).$$
This was formalized in Lean by Codex.
depends on sorry what this means
Statement uses:
Exists,Real,Filter.Tendsto,Nat,HDiv.hDiv,Real.log,Finset.card,Finset.filter,LE.le, Erdos841.t,Real.exp,HMul.hMul,Real.sqrt,Finset.Icc,OfNat.ofNat,Filter.atTop,nhdsProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous34 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_841.variants.many_small_values : ∃ K : ℝ, Tendsto (fun x : ℕ ↦ log (((Finset.Icc 1 x).filter fun n ↦ (t n : ℝ) ≤ exp (K * √(log n * log (log n)))).card : ℝ) / log x) atTop (𝓝 1) := by …Mentions: Erdos841.t
- theorem
Erdos841.erdos_841.variants.lower_boundBui, Pratt, and Zaharescu [BPZ24] proved that for all non-square $n$ $$t_n \gg (\log\log n)^{6/5}(\log\log\log n)^{-1/5}.$$ This was formalized in Lean by Codex sorry line 109 sourceSource documentation
Bui, Pratt, and Zaharescu [BPZ24] proved that for all non-square $n$ $$t_n \gg (\log\log n)^{6/5}(\log\log\log n)^{-1/5}.$$
This was formalized in Lean by Codex.
depends on sorry what this means
Statement uses:
Exists,Real,And,LT.lt,OfNat.ofNat,Filter.Eventually,Nat,Not,IsSquare,LE.le,HMul.hMul,HPow.hPow,Real.log,HDiv.hDiv,Neg.neg, Erdos841.t,Filter.atTopProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous44 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_841.variants.lower_bound : ∃ C : ℝ, 0 < C ∧ ∀ᶠ n : ℕ in atTop, ¬ IsSquare n → C * (log (log n) ^ ((6 : ℝ) / 5) * log (log (log n)) ^ (-(1 : ℝ) / 5)) ≤ t n := by …Mentions: Erdos841.t