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 · squarefreeCounting_ten

Source:Erdős Problems
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Statement:

Exactly seven integers in [1,10][1,10] are squarefree, including 11.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.03806 [math.NT] · NS.03806v1 for this version
Declaration:Erdos969.squarefreeCounting_ten
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
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 squarefreeCounting_ten : squarefreeCounting 10 = 7
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.squarefreeCounting_ten with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_squarefreeCounting_ten : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-969--squarefreecounting-ten      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-969--squarefreecounting-ten
nosorry submit erdos-969--squarefreecounting-ten nosorry/erdos-969--squarefreecounting-ten/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.