Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Class sums versus their continuous limit: error ≤52∑∣bij∣\le \frac52\sum|b_{ij}|≤25​∑∣bij​∣

Proved
Apery.class_sum_approx

by tomasz · Oct 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

analysisformalizationirrationalitynumber-theoryzeta5-mo271

For odd p=2m+1p = 2m+1p=2m+1, v,v′<pv, v' < pv,v′<p and any h:N2→Rh : \mathbb N^2 \to \mathbb Rh:N2→R, the per-class sum over the class counts aca_cac​ differs from the continuous limit p∑i,jbij cij(v/p,v′/p)p\sum_{i,j} b_{ij}\,c_{ij}(v/p, v'/p)p∑i,j​bij​cij​(v/p,v′/p) by at most 52∑i,j∣bij∣\frac52\sum_{i,j}|b_{ij}|25​∑i,j​∣bij​∣, where bijb_{ij}bij​ are the coefficients in the basis 1,A,E1, A, E1,A,E and cijc_{ij}cij​ the continuous interval counts. This is class_sum_approx of Apery/Growth/ClassSum.lean (the quantitive class-sum expansion at the heart of the inner/outer per-prime bounds). Formalization Note aCnt, bcoef, ccount are the platform definitions.

Preamble
import Mathlib
import Definitions.Def_Zeta5_SourceGrowthTables

open Finset
Formal statement
namespace Apery

theorem class_sum_approx {p m v v' : ℕ} (hm : 2 * m + 1 = p) (hv : v < p) (hv' : v' < p)
    (h : ℕ → ℕ → ℝ) :
    |∑ c ∈ Icc 1 m, h (aCnt p v c) (aCnt p v' c) -
      (p : ℝ) * ∑ i, ∑ j, bcoef (fun a => bcoef (fun b => h a b) j) i *
        ccount ((v : ℝ) / p) ((v' : ℝ) / p) i j| ≤
      5 / 2 * ∑ i, ∑ j, |bcoef (fun a => bcoef (fun b => h a b) j) i| := by
  sorry

end Apery
Source
https://github.com/mo271/Zeta5/blob/7fe736760f4b96bfdb4334b68e3b3124ecbe10b0/Apery/Growth/ClassSum.lean#L108-L165

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me