Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 1102 · erdos_1102.lower_density_Q_exists

Source:Erdős Problems · erdosproblems.com/1102
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

There exists an infinite sequence A=a1<a2<…⊂SFA = {a₁ < a₂ < …} ⊂ \mathsf{SF} where SF:=N∖⋃pp2N\mathsf{SF} := \mathbb{N} \setminus \bigcup_{p} p^{2}\mathbb{N}, i.e. the set of squarefree numbers. The set A has property Q and natural density 6 / π^2. Equivalently, (j / a_j) → 6/π^2 as j → ∞.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:formal_proof
Cite as:NS.00679 [math.NT] · NS.00679v1 for this version
Declaration:Erdos1102.erdos_1102.lower_density_Q_exists
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:187a2661166c3312b233d849b459114799457e5bed4a5bfdffbe69b69fec5d22
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/1102.lean

Formal statement

theorem erdos_1102.lower_density_Q_exists :
    ∃ A : ℕ → ℕ, StrictMono A ∧
    (∀ j, Squarefree (A j)) ∧
    HasPropertyQ (range A) ∧
    Tendsto (fun j : ℕ  ↦ (j / A j : ℝ)) atTop (𝓝 (6 / Real.pi^2))
Show the full Challenge.lean (105 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 1102

*Reference:* [erdosproblems.com/1102](https://www.erdosproblems.com/1102)
-/

@[expose] public section

open Squarefree Set Order Filter Topology
namespace Erdos1102

/--
Property P : A set $A ⊆ ℕ $ has property P, if for all $n ≥ 1$ the set
$ \{a ∈ A | n + a\text{ is squarefree}\}$ is finite.
-/
def HasPropertyP (A : Set ℕ) : Prop :=
  ∀ n ≥ 1, {a ∈ A | Squarefree (n + a)}.Finite

/--
Property Q : A set $A ⊆ ℕ $ has property Q, if the set
$\{n ∈ ℕ  | ∀ a ∈ A, n > a\text{ implies }n + a\text{ is squarefree}\}$ is infinite.
-/
def HasPropertyQ (A : Set ℕ) : Prop :=
  {n : ℕ | ∀ a ∈ A, a < n → Squarefree (n + a)}.Infinite

set_option linter.style.formal_proof_palomar false in
/--
If `A = {a₁ < a₂ < …}` has property P,
then `A` has natural density `0`.
Equivalently, `(a_j / j) → ∞` as `j → ∞`.
--/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/Woett/Lean-files/blob/1e075c4f6e8a907b924647fa88238f978e941742/ErdosProblem1102PropertyP.lean"]
theorem erdos_1102.density_zero_of_P
    (A : ℕ → ℕ)
    (h_inc : StrictMono A)
    (hP : HasPropertyP (range A)) :
    Tendsto (fun j => (A j / j : ℝ)) atTop atTop := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Conversely, for any function `f : ℕ → ℕ` that goes to infinity,
there exists a strictly increasing sequence `A = {a₁ < a₂ < …}`
with property P such that `(a_j / j) ≤ f(j)` for all `j`.
--/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/Woett/Lean-files/blob/1e075c4f6e8a907b924647fa88238f978e941742/ErdosProblem1102PropertyP.lean"]
theorem erdos_1102.exists_sequence_with_P
    (f : ℕ → ℕ) (h_inf : Tendsto f atTop atTop)
    (h_pos : ∀ n, f n ≠ 0) :
    ∃ A : ℕ → ℕ, StrictMono A ∧
    HasPropertyP (range A) ∧
    ∀ j : ℕ, (A j : ℝ) / j ≤ f j := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Every sequence with property Q has upper density at most `6 / π^2`.
--/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/Woett/Lean-files/blob/1e075c4f6e8a907b924647fa88238f978e941742/ErdosProblem1102PropertyQDensity.lean"]
theorem erdos_1102.upper_density_Q
    (A : ℕ → ℕ) (h_inc : StrictMono A)
    (hQ : HasPropertyQ (range A)) :
    limsup (fun j : ℕ  ↦ (j / A j : ℝ)) atTop ≤ 6 / Real.pi^2 := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
There exists an infinite sequence $A = {a₁ < a₂ < …} ⊂ \mathsf{SF}$ where
$\mathsf{SF} := \mathbb{N} \setminus \bigcup_{p} p^{2}\mathbb{N}$, i.e. the set of
squarefree numbers. The set `A` has property `Q` and natural density `6 / π^2`.
Equivalently, `(j / a_j) → 6/π^2` as `j → ∞`.
--/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/Woett/Lean-files/blob/1e075c4f6e8a907b924647fa88238f978e941742/ErdosProblem1102PropertyQDensity.lean"]
theorem erdos_1102.lower_density_Q_exists :
    ∃ A : ℕ → ℕ, StrictMono A ∧
    (∀ j, Squarefree (A j)) ∧
    HasPropertyQ (range A) ∧
    Tendsto (fun j : ℕ  ↦ (j / A j : ℝ)) atTop (𝓝 (6 / Real.pi^2)) := by
  sorry

end Erdos1102

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos1102.erdos_1102.lower_density_Q_exists with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_lower_density_Q_exists : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-1102--erdos-1102-lower-density-q-exists      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-1102--erdos-1102-lower-density-q-exists
nosorry submit erdos-1102--erdos-1102-lower-density-q-exists nosorry/erdos-1102--erdos-1102-lower-density-q-exists/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.