Title:Erdős Problem 1000 · variants.liminf_eq_zero
Statement:The study of was introduced by Cassels [Ca50b], who proved that there exist sequences such that
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.00341 [math.NT] · NS.00341v1 for this version |
| Declaration: | Erdos1000.erdos_1000.variants.liminf_eq_zero |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10; accepted critique: up to 100 |
| Statement hash: | 399a2fcc438918991e45d3f8f20a2a2a7ea228c3b4db2460c58ad584a6cdf7e0 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/1000.lean |
Formal statement
theorem erdos_1000.variants.liminf_eq_zero :
∃ n : ℕ → ℕ, StrictMono n ∧ 0 < n 0 ∧
atTop.liminf (phiAvg n) = 0Show the full Challenge.lean (155 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 1000
*References:*
- [erdosproblems.com/1000](https://www.erdosproblems.com/1000)
- [Ca50b] Cassels, J. W. S., *Some metrical theorems in Diophantine approximation. I*. Proc.
Cambridge Philos. Soc. (1950), 209-218.
- [Er64b] Erdős, P., *Problems and results on diophantine approximations*. Compositio Math. (1964),
52-65.
- [Ha] Haight, J. A., *Metric Diophantine approximation and related topics*. PhD thesis.
-/
@[expose] public section
open Filter Topology
namespace Erdos1000
/--
Given an infinite sequence of positive integers $A = \{n_1 < n_2 < \cdots\}$, `phiSeq n k` is
$\phi_A(k)$: the number of $1\leq m\leq n_k$ such that $\frac{m}{n_k}$ cannot be written as
$\frac{b}{n_j}$ for any integer $b$ and any $1\leq j<k$; equivalently,
$$
\frac{n_k}{(m,n_k)}\nmid n_j
$$
for all $1\leq j<k$.
-/
def phiSeq (n : ℕ → ℕ) (k : ℕ) : ℕ :=
((Finset.Icc 1 (n k)).filter fun m => ∀ j < k, ¬ (n k / Nat.gcd m (n k)) ∣ n j).card
/--
The average $\frac{1}{N}\sum_{k\leq N}\frac{\phi_A(k)}{n_k}$.
-/
noncomputable def phiAvg (n : ℕ → ℕ) (N : ℕ) : ℝ :=
(∑ k ∈ Finset.range N, (phiSeq n k : ℝ) / (n k : ℝ)) / (N : ℝ)
set_option linter.style.formal_proof_palomar false in
/--
Let $A=\{n_1<n_2<\cdots\}$ be an infinite sequence of positive integers, and let $\phi_A(k)$
count the number of $1\leq m\leq n_k$ such that the fraction $\frac{m}{n_k}$ cannot be written
as $\frac{b}{n_j}$ for any integer $b$ and any $j<k$; equivalently,
$$
\frac{n_k}{(m,n_k)}\nmid n_j
$$
for all $1\leq j<k$.
Is there a sequence $A$ such that
$$
\lim_{N\to \infty}\frac{1}{N}\sum_{k\leq N}\frac{\phi_A(k)}{n_k}=0?
$$
This was solved by Haight [Ha] who proved that such a sequence does exist (contrary to Erdős'
expectations).
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos1000.lean"]
theorem erdos_1000 :
∃ n : ℕ → ℕ, StrictMono n ∧ 0 < n 0 ∧
Tendsto (phiAvg n) atTop (𝓝 0) := by
sorry
/--
It is trivial that $\phi_A(k)\geq \phi(n_k)$, where $\phi$ is the Euler totient function.
-/
@[category research solved, AMS 11]
theorem erdos_1000.variants.totient_le (n : ℕ → ℕ) (hn : StrictMono n) (hn0 : 0 < n 0)
(k : ℕ) :
(n k).totient ≤ phiSeq n k := by
rw [Nat.totient, phiSeq]
apply Finset.card_le_card_of_injOn (fun a => if a = 0 then n k else a)
· intro a ha
simp only [Finset.mem_coe, Finset.mem_filter, Finset.mem_range] at ha ⊢
obtain ⟨ha1, ha2⟩ := ha
have hgcd : Nat.gcd (if a = 0 then n k else a) (n k) = 1 := by
by_cases h : a = 0
· subst h
have : n k = 1 := by simpa [Nat.coprime_zero_right] using ha2
simp [this]
· simp only [h, if_false]
rw [Nat.gcd_comm]; exact ha2
have hpos : 0 < n k := lt_of_le_of_lt (Nat.zero_le a) ha1
have hmem : 1 ≤ (if a = 0 then n k else a) ∧ (if a = 0 then n k else a) ≤ n k := by
by_cases h : a = 0
· subst h
rw [if_pos rfl]
omega
· rw [if_neg h]
omega
simp only [Finset.mem_Icc]
refine ⟨hmem, ?_⟩
intro j hj
rw [hgcd, Nat.div_one]
exact Nat.not_dvd_of_pos_of_lt (hn0.trans_le (hn.monotone (Nat.zero_le j))) (hn hj)
· intro a ha b hb hab
simp only [Finset.mem_coe, Finset.mem_filter, Finset.mem_range] at ha hb
simp only at hab
by_cases h1 : a = 0 <;> by_cases h2 : b = 0
· simp [h1, h2]
· have : n k = 1 := by simpa [h1, Nat.coprime_zero_right] using ha.2
omega
· have : n k = 1 := by simpa [h2, Nat.coprime_zero_right] using hb.2
omega
· simpa [h1, h2] using hab
/--
The study of $\phi_A$ was introduced by Cassels [Ca50b], who proved that there exist sequences
such that
$$
\liminf_{N\to \infty}\frac{1}{N}\sum_{k\leq N}\frac{\phi_A(k)}{n_k}=0.
$$
-/
@[category research solved, AMS 11]
theorem erdos_1000.variants.liminf_eq_zero :
∃ n : ℕ → ℕ, StrictMono n ∧ 0 < n 0 ∧
atTop.liminf (phiAvg n) = 0 := by
sorry
/--
Erdős [Er64b] proved that the limit of $\frac{\phi_A(k)}{n_k}$ as $k\to \infty$ cannot be $0$.
-/
@[category research solved, AMS 11]
theorem erdos_1000.variants.not_tendsto_zero (n : ℕ → ℕ) (hn : StrictMono n) (hn0 : 0 < n 0) :
¬ Tendsto (fun k : ℕ => (phiSeq n k : ℝ) / (n k : ℝ)) atTop (𝓝 0) := by
sorry
/--
In fact he proved that if $\liminf \frac{\phi_A(k)}{n_k}=0$ then
$\limsup \frac{\phi_A(k)}{n_k}=1$.
-/
@[category research solved, AMS 11]
theorem erdos_1000.variants.limsup_eq_one (n : ℕ → ℕ) (hn : StrictMono n) (hn0 : 0 < n 0)
(h : atTop.liminf (fun k : ℕ => (phiSeq n k : ℝ) / (n k : ℝ)) = 0) :
atTop.limsup (fun k : ℕ => (phiSeq n k : ℝ) / (n k : ℝ)) = 1 := by
sorry
end Erdos1000
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos1000.erdos_1000.variants.liminf_eq_zero with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_liminf_eq_zero : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk erdos-1000--erdos-1000-variants-liminf-eq-zero # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch erdos-1000--erdos-1000-variants-liminf-eq-zero nosorry submit erdos-1000--erdos-1000-variants-liminf-eq-zero nosorry/erdos-1000--erdos-1000-variants-liminf-eq-zero/Solution.lean --wait
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.