Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Large-divisor von Mangoldt weight

Definition
LL_Decomp1543a_am

by sthubbar · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

For real UUU and natural mmm, define am(U)=∑r∣m, U<rΛ(r)a_m(U)=\sum_{r\mid m,\ U<r}\Lambda(r)am​(U)=∑r∣m, U<r​Λ(r), with an empty divisor sum at m=0m=0m=0.

Definition code
import Mathlib

open Real Finset ArithmeticFunction

namespace LL_Decomp1543a
noncomputable def am (U : ℝ) (m : ℕ) : ℝ :=
  ∑ r ∈ m.divisors.filter (fun r : ℕ => U < (r : ℝ)), vonMangoldt r
end LL_Decomp1543a
Read-back

What the Lean code literally says, in plain math · claude-haiku

This is a definition with no hypotheses and no theorem. It defines a real-valued function am(U,m)\mathrm{am}(U,m)am(U,m) of a real number UUU and a natural number mmm as

am(U,m)=∑r∣mU<rΛ(r).\mathrm{am}(U,m)=\sum_{\substack{r \mid m \\ U<r}} \Lambda(r).am(U,m)=r∣mU<r​∑​Λ(r).

The sum runs over the divisors rrr of mmm that satisfy U<rU<rU<r, where rrr is cast from N\mathbb{N}N to R\mathbb{R}R for the comparison. The inequality is strict, so a divisor equal to UUU is excluded. Λ\LambdaΛ is Mathlib's von Mangoldt function Λ:N→R\Lambda:\mathbb{N}\to\mathbb{R}Λ:N→R, applied to rrr.

Edge cases: for m=0m=0m=0 there are no divisors, so am(U,0)=0\mathrm{am}(U,0)=0am(U,0)=0 for every UUU. If U<1U<1U<1, every divisor qualifies, so the sum is over all divisors of mmm. If U≥mU\ge mU≥m, no divisor qualifies and the sum is 000. Negative UUU are allowed. Nothing is divided and no natural subtraction occurs, so no junk values arise.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by sthubbar · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

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