Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Second moment: ∑s≤xr(s)2≤860 x3/(log⁡x)4\sum_{s\le x} r(s)^2\le 860\,x^3/(\log x)^4∑s≤x​r(s)2≤860x3/(logx)4

Proved
Schnir.second_moment

by xuanji · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

number-theoryschnirelmann-densitysieve-theory

For every real x≥e2000x\ge e^{2000}x≥e2000,

∑0≤s≤xr(s)2  ≤  860 x3(log⁡x)4.\sum_{0\le s\le x} r(s)^2 \;\le\; 860\,\frac{x^3}{(\log x)^4}.0≤s≤x∑​r(s)2≤860(logx)4x3​.

This is the second-moment estimate with c2=860c_2=860c2​=860 and x0=e2000x_0=e^{2000}x0​=e2000.

Formalization Note The sum runs over integers 0≤s≤⌊x⌋0\le s\le\lfloor x\rfloor0≤s≤⌊x⌋.

Preamble
import Mathlib
import Definitions.Def_Schnir_defs
Formal statement
namespace Schnir

theorem second_moment (x : ℝ) (hx : Real.exp 2000 ≤ x) :
    ∑ s ∈ Finset.range (⌊x⌋₊ + 1), (r s : ℝ) ^ 2 ≤ 860 * x ^ 3 / (Real.log x) ^ 4 := by sorry

end Schnir
Source
An explicit elementary constant for sums of primes (unpublished note, September 2026), eq. (14), §4

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me