Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Moving interval prime logarithm sum

Definition
LL_Decomp1525c_thetaI

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

For real x,ux,ux,u, define Ix(u)=∑p∈P1(x), x−p<u≤2x−plog⁡pI_x(u)=\sum_{p\in P_1(x),\ x-p<u\le2x-p}\log pIx​(u)=∑p∈P1​(x), x−p<u≤2x−p​logp.

Definition code
import Mathlib
import Definitions.Def_LL_Decomp1525c_P1V
open Finset Real MeasureTheory intervalIntegral
open scoped Classical
noncomputable section
namespace LL_Decomp1525c
def thetaI (x u : ℝ) : ℝ :=
  ∑ p ∈ (P1V x).filter (fun p : ℕ => x - p < u ∧ u ≤ 2 * x - p), Real.log p
end LL_Decomp1525c
Read-back

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

For real x,ux,ux,u, no hypotheses, θI(x,u)=∑log⁡p\theta_I(x,u)=\sum \log pθI​(x,u)=∑logp over primes p∈P1V(x)p\in P1V(x)p∈P1V(x), that is 3≤p≤⌊x−3⌋+3\le p\le\lfloor x-3\rfloor_+3≤p≤⌊x−3⌋+​, satisfying x−p<u≤2x−px-p<u\le 2x-px−p<u≤2x−p, so u∈(x−p, 2x−p]u\in(x-p,\,2x-p]u∈(x−p,2x−p], strict on the left, non-strict on the right, all comparisons in R\mathbb{R}R with ppp cast. Equivalently p∈(x−u, 2x−u]p\in(x-u,\,2x-u]p∈(x−u,2x−u]. For x<6x<6x<6 the prime set is empty and θI=0\theta_I=0θI​=0; it is also 000 for uuu outside every window. Each term is log⁡p>0\log p>0logp>0 with p≥3p\ge 3p≥3; no division or junk values. Classical only supplies decidability.

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

    Confirmed by the moderator at approval.

  • Endorsed by sthubbar · Oct 28, 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