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 969

Source:Erdős Problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Let Q(x)Q(x) count the squarefree integers in [1,x][1,x], and define E(x)E(x) by Q(x)=6π2x+E(x).Q(x)=\frac{6}{\pi^2}x+E(x). Determine the order of magnitude of E(x)E(x): an upper bound E(x)=O(g(x))E(x)=O(g(x)) with a matching oscillation bound E(x)≠o(g(x))E(x)\ne o(g(x)).

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question
Cite as:NS.03807 [math.NT] · NS.03807v1 for this version
Declaration:Erdos969.erdos_969
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:b28ad5833232e9a2327ae486cebed195483d5cedadeeb0213ba70caf8cf03347
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/969.lean

Formal statement

theorem erdos_969 :
    let g := erdos_969.answer
    (fun x => |squarefreeCountingError x|) =O[atTop] g ∧
      ¬(fun x => |squarefreeCountingError x|) =o[atTop] g
Show the full Challenge.lean (77 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 969

*References:*
- [Erdős Problem 969](https://www.erdosproblems.com/969)
- Moser, L. and MacLeod, R. A., *The error term for the squarefree integers*.
  Canadian Mathematical Bulletin **9** (1966), 303–306.
  https://doi.org/10.4153/CMB-1966-039-4
-/

@[expose] public section

namespace Erdos969

open Filter Asymptotics

/-- The squarefree counting function `Q(x)`. -/
def squarefreeCounting (x : ℕ) : ℕ :=
  ((Finset.Icc 1 x).filter Squarefree).card

/-- Exactly seven integers in $[1,10]$ are squarefree, including $1$. -/
@[category test, AMS 11]
theorem squarefreeCounting_ten : squarefreeCounting 10 = 7 := by
  decide +kernel

/-- The error term in `Q(x) = (6 / π^2) x + E(x)`. -/
noncomputable def squarefreeCountingError (x : ℕ) : ℝ :=
  (squarefreeCounting x : ℝ) - 6 / Real.pi ^ 2 * x

def erdos_969.answer : ℕ → ℝ := sorry

/-- Let $Q(x)$ count the squarefree integers in $[1,x]$, and define $E(x)$ by
$$Q(x)=\frac{6}{\pi^2}x+E(x).$$
Determine the order of magnitude of $E(x)$: an upper bound $E(x)=O(g(x))$ with a matching
oscillation bound $E(x)\ne o(g(x))$. -/
@[category research open, question value, AMS 11]
theorem erdos_969 :
    let g := erdos_969.answer
    (fun x => |squarefreeCountingError x|) =O[atTop] g ∧
      ¬(fun x => |squarefreeCountingError x|) =o[atTop] g := by
  sorry

/-- The prime number theorem implies $E(x)=o(\sqrt{x})$. -/
@[category research solved, AMS 11]
theorem erdos_969.variants.prime_number_theorem :
    (fun x => |squarefreeCountingError x|) =o[atTop] (fun x : ℕ => (x : ℝ).sqrt) := by
  sorry

/-- Evelyn and Linfoot proved $E(x)=\Omega(x^{1/4})$. -/
@[category research solved, AMS 11]
theorem erdos_969.variants.evelyn_linfoot :
    ¬(fun x => |squarefreeCountingError x|) =o[atTop]
      (fun x : ℕ => (x : ℝ) ^ (1 / 4 : ℝ)) := by
  sorry

end Erdos969

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

nosorry desk erdos-969      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-969
nosorry submit erdos-969 nosorry/erdos-969/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.