FormalConjectures/ErdosProblems/291.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
10 declarations, 6 contain sorry, 0 declared as axioms
Erdős Problem 291
References:
- erdosproblems.com/291
- [ErGr80, p.34] Erdős, P. and Graham, R., Old and new problems and results in combinatorial number theory. Monographies de L'Enseignement Mathematique (1980).
- [Sh16] P. Shiu, The denominators of harmonic numbers. arXiv:1607.02863 (2016).
- [WuYa22] Wu, Bing-Ling and Yan, Xiao-Hui, On the denominators of harmonic numbers. {IV}. C. R. Math. Acad. Sci. Paris (2022), 53--57.
Imports (1)
- def
Erdos291.L$L_n$ is the least common multiple of $\{1,\ldots,n\}$ line 41 sourceSource documentation
$L_n$ is the least common multiple of $\{1,\ldots,n\}$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Finset.lcm,Finset.Icc,OfNat.ofNat6 instances, coercions and auxiliary constants left out.
def L (n : ℕ) : ℕ := …
- theorem
Erdos291.L_evalline 45 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
And,Eq,Nat, Erdos291.L,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl4 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- def
Erdos291.a$a_n$ is defined by $\sum_{1\leq k\leq n}\frac{1}{k}=\frac{a_n}{L_n}$ line 50 sourceSource documentation
$a_n$ is defined by $\sum_{1\leq k\leq n}\frac{1}{k}=\frac{a_n}{L_n}$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Finset.sum,Finset.Icc,OfNat.ofNat,HDiv.hDiv, Erdos291.L6 instances, coercions and auxiliary constants left out.
def a (n : ℕ) : ℕ := …
- theorem
Erdos291.a_evalline 54 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
And,Eq,Nat, Erdos291.a,OfNat.ofNatProof uses:
of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refl4 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
Erdos291.erdos_291.parts.iLet $n\geq 1$ and define $L_n$ to be the least common multiple of $\{1,\ldots,n\}$ and $a_n$ by $\sum_{1\leq k\leq n}\frac{1}{k}=\frac{a_n}{L_n}$ sorry line 63 sourceSource documentation
Let $n\geq 1$ and define $L_n$ to be the least common multiple of $\{1,\ldots,n\}$ and $a_n$ by $\sum_{1\leq k\leq n}\frac{1}{k}=\frac{a_n}{L_n}$.
Is it true that $(a_n,L_n)=1$ occurs for infinitely many $n$?
depends on sorry what this means
Statement uses:
Iff,True,Set.Infinite,Nat,Set.ofPred,Eq,Nat.gcd, Erdos291.a, Erdos291.L,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous2 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_291.parts.i : answer(sorry) ↔ { n : ℕ | Nat.gcd (a n) (L n) = 1 }.Infinite := by …Mentions: Erdos291.a, Erdos291.L
- theorem
Erdos291.erdos_291.parts.iiIs it true that $(a_n,L_n)>1$ occurs for infinitely many $n$? sorry line 75 sourceSource documentation
Is it true that $(a_n,L_n)>1$ occurs for infinitely many $n$?
Steinerberger has observed that the answer to the second question is trivially yes: for example, any $n$ which begins with a $2$ in base $3$ has $3\mid (a_n,L_n)$.
depends on sorry what this means
Statement uses:
Iff,True,Set.Infinite,Nat,Set.ofPred,GT.gt,Nat.gcd, Erdos291.a, Erdos291.L,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous4 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_291.parts.ii : answer(True) ↔ { n : ℕ | Nat.gcd (a n) (L n) > 1 }.Infinite := by …Mentions: Erdos291.a, Erdos291.L
- theorem
Erdos291.erdos_291.variants.steinerberger_generalizationMore generally, if the leading digit of $n$ in base $p$ is $p-1$ then $p\mid (a_n,L_n)$ sorry line 89 sourceSource documentation
More generally, if the leading digit of $n$ in base $p$ is $p-1$ then $p\mid (a_n,L_n)$. There is in fact a necessary and sufficient condition: a prime $p\leq n$ divides $(a_n,L_n)$ if and only if $p$ divides the numerator of $1+\cdots+\frac{1}{k}$, where $k$ is the leading digit of $n$ in base $p$. This can be seen by writing $a_n = \frac{L_n}{1}+\cdots+\frac{L_n}{n}$ and observing that the right-hand side is congruent to $1+\cdots+1/k$ modulo $p$. (The previous claim about $p-1$ follows immediately from Wolstenholme's theorem.)
depends on sorry what this means
Statement uses:
Nat,Nat.Prime,LE.le,HDiv.hDiv,HPow.hPow,Nat.log,Iff,Dvd.dvd,Nat.gcd, Erdos291.a, Erdos291.L,Int,Rat.num,Finset.sum,Rat,Finset.Icc,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous36 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_291.variants.steinerberger_generalization (n p : ℕ) (hp : p.Prime) (hpn : p ≤ n) : let k := n / p ^ Nat.log p n; … - theorem
Erdos291.erdos_291.variants.shiu_heuristic_asymptoticThis leads to a heuristic prediction (see for example a preprint of Shiu [Sh16]) of $\asymp\frac{x}{\log x}$ for the number of $n\in [1,x]$ such that $(a_n,L_n)=1$ sorry line 99 sourceSource documentation
This leads to a heuristic prediction (see for example a preprint of Shiu [Sh16]) of $\asymp\frac{x}{\log x}$ for the number of $n\in [1,x]$ such that $(a_n,L_n)=1$.
depends on sorry what this means
Statement uses:
Asymptotics.IsTheta,Nat,Real,Filter.atTop,Finset.card,Finset.filter,Eq,Nat.gcd, Erdos291.a, Erdos291.L,OfNat.ofNat,Finset.Icc,HDiv.hDiv,Real.logProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous20 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_291.variants.shiu_heuristic_asymptotic : Asymptotics.IsTheta atTop (fun x : ℕ ↦ ((((Finset.Icc 1 x).filter (fun n ↦ Nat.gcd (a n) (L n) = 1)).card : ℝ))) (fun x : ℕ ↦ (x : ℝ) / Real.log x) := by …Mentions: Erdos291.a, Erdos291.L
- theorem
Erdos291.erdos_291.variants.shiu_heuristic_density_zeroIn particular, there should be infinitely many $n$, but the set of such $n$ should have density zero sorry line 110 sourceSource documentation
In particular, there should be infinitely many $n$, but the set of such $n$ should have density zero. Unfortunately this heuristic is difficult to turn into a proof.
depends on sorry what this means
Statement uses:
Filter.Tendsto,Nat,Real,HDiv.hDiv,Finset.card,Finset.filter,Eq,Nat.gcd, Erdos291.a, Erdos291.L,OfNat.ofNat,Finset.Icc,Filter.atTop,nhdsProof 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_291.variants.shiu_heuristic_density_zero : Filter.Tendsto (fun N : ℕ ↦ ((((Finset.Icc 1 N).filter (fun n ↦ Nat.gcd (a n) (L n) = 1)).card : ℝ) / (N : ℝ))) atTop (nhds 0) := by …Mentions: Erdos291.a, Erdos291.L
- theorem
Erdos291.erdos_291.variants.wu_yanDocumented declaration: wu_yan sorry line 122 sourceSource documentation
Wu and Yan [WuYa22] have proved, conditional on $\frac{1}{\log p}$ being linearly independent over $\mathbb{Q}$ for any finite collection of primes $p$ (itself a consequence of Schanuel's conjecture), that the set of $n$ for which $(a_n,L_n)>1$ has upper density $1$.
depends on sorry what this means
Statement uses:
LinearIndependent,Subtype,Nat,Nat.Prime,Rat,Real,HDiv.hDiv,OfNat.ofNat,Real.log,Eq,EReal,Filter.limsup,Finset.card,Finset.filter,GT.gt,Nat.gcd, Erdos291.a, Erdos291.L,Finset.Icc,Filter.atTopProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous90 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_291.variants.wu_yan (h_indep : LinearIndependent ℚ (fun p : {p : ℕ // p.Prime} ↦ 1 / Real.log (p : ℝ))) : atTop.limsup (fun N : ℕ ↦ ((((Finset.Icc 1 N).filter (fun n ↦ Nat.gcd (a n) (L n) > 1)).card : ℝ) / (N : ℝ) : EReal)) = 1 := by …Mentions: Erdos291.a, Erdos291.L