Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Weighted root integral identity

Proved
WeightedRootIntegralIdentity.weighted_root_integral_identity

by abcdefg · Sep 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

analysisgeometric-meanintegral-identity

Let 0<a0≤a1≤⋯≤an−10<a_0\leq a_1\leq \cdots\leq a_{n-1}0<a0​≤a1​≤⋯≤an−1​ be a monotone sequence of n≥2n\ge2n≥2 positive real numbers. Then

∑k=0n−21πsin⁡ ⁣(π(k+1)n)∫akak+1∏i=0n−1∣x−ai∣1/nx dx=1n∑i=0n−1ai−(∏i=0n−1ai)1/n.\sum_{k=0}^{n-2}\frac{1}{\pi}\sin\!\left(\frac{\pi(k+1)}{n}\right) \int_{a_k}^{a_{k+1}} \frac{\prod_{i=0}^{n-1}|x-a_i|^{1/n}}{x}\,dx = \frac1n\sum_{i=0}^{n-1}a_i- \left(\prod_{i=0}^{n-1}a_i\right)^{1/n}.k=0∑n−2​π1​sin(nπ(k+1)​)∫ak​ak+1​​x∏i=0n−1​∣x−ai​∣1/n​dx=n1​i=0∑n−1​ai​−(i=0∏n−1​ai​)1/n.

This identity equates a sine-weighted sum of interval integrals with the difference between the arithmetic and geometric means of the ordered positive nodes.

Preamble
import Mathlib open scoped BigOperators Interval
Formal statement
namespace WeightedRootIntegralIdentity

theorem weighted_root_integral_identity
    (n : ℕ) (hn : 2 ≤ n) (a : ℕ → ℝ)
    (hpos : ∀ i < n, 0 < a i)
    (hmono : ∀ i < n - 1, a i ≤ a (i + 1)) :
    (∑ k ∈ Finset.range (n - 1),
      (Real.sin (Real.pi * ((k + 1 : ℝ) / n)) / Real.pi) *
        ∫ x in a k..a (k + 1),
          (∏ i ∈ Finset.range n, Real.rpow |x - a i| ((n : ℝ)⁻¹)) / x)
      = ((1 : ℝ) / n) * (∑ i ∈ Finset.range n, a i)
          - Real.rpow (∏ i ∈ Finset.range n, a i) ((n : ℝ)⁻¹) := by sorry

end WeightedRootIntegralIdentity
Source
User-provided image (13 September 2026). Original publication, page, and theorem/equation number not supplied.
Read-back

What the Lean code literally says, in plain math · gpt-5

Let n∈Nn\in\mathbb Nn∈N satisfy 2≤n2\le n2≤n, and let a:N→Ra:\mathbb N\to\mathbb Ra:N→R. Assume:

∀i∈N,i<n ⟹ 0<a(i),\forall i\in\mathbb N,\quad i<n\ \Longrightarrow\ 0<a(i),∀i∈N,i<n ⟹ 0<a(i),

and

∀i∈N,i<n−1 ⟹ a(i)≤a(i+1),\forall i\in\mathbb N,\quad i<n-1\ \Longrightarrow\ a(i)\le a(i+1),∀i∈N,i<n−1 ⟹ a(i)≤a(i+1),

where n−1n-1n−1 is subtraction in N\mathbb NN (hence truncated at 000).

Then the following equality of real numbers holds:

∑k∈{0,…,(n−1)−1}(sin⁡ ⁣(π k+1n)π)(∫a(k)a(k+1)∏i∈{0,…,n−1}∣x−a(i)∣ ( n:R )−1x dx)=1n∑i∈{0,…,n−1}a(i)−(∏i∈{0,…,n−1}a(i))( n:R )−1.\begin{aligned} \sum_{k\in\{0,\ldots,(n-1)-1\}} \left( \frac{\sin\!\left(\pi\,\frac{k+1}{n}\right)}{\pi} \right) \left( \int_{a(k)}^{a(k+1)} \frac{ \displaystyle\prod_{i\in\{0,\ldots,n-1\}} |x-a(i)|^{\,(\,n:\mathbb R\,)^{-1}} }{x}\,dx \right) &= \frac1n\sum_{i\in\{0,\ldots,n-1\}}a(i) - \left( \prod_{i\in\{0,\ldots,n-1\}}a(i) \right)^{(\,n:\mathbb R\,)^{-1}} . \end{aligned}k∈{0,…,(n−1)−1}∑​(πsin(πnk+1​)​)​∫a(k)a(k+1)​xi∈{0,…,n−1}∏​∣x−a(i)∣(n:R)−1​dx​​=n1​i∈{0,…,n−1}∑​a(i)−​i∈{0,…,n−1}∏​a(i)​(n:R)−1.​

Here each displayed finite set is Finset.range of its bound: range⁡(m)={j∈N∣j<m}\operatorname{range}(m)=\{j\in\mathbb N\mid j<m\}range(m)={j∈N∣j<m}. Thus the outer sum is over k<n−1k<n-1k<n−1, while the product and the right-hand sum are over i<ni<ni<n. The exponents use Real.rpow: ∣x−a(i)∣(n:R)−1|x-a(i)|^{(n:\mathbb R)^{-1}}∣x−a(i)∣(n:R)−1 and (∏i<na(i))(n:R)−1\bigl(\prod_{i<n}a(i)\bigr)^{(n:\mathbb R)^{-1}}(∏i<n​a(i))(n:R)−1.

All occurrences of nnn in real arithmetic are coerced from N\mathbb NN to R\mathbb RR; (n:R)−1(n:\mathbb R)^{-1}(n:R)−1 is the totalized real inverse, and the divisions by nnn are real divisions. The hypothesis 2≤n2\le n2≤n entails that n≠0n\ne0n=0 and that n−1≥1n-1\ge1n−1≥1, so the outer range is nonempty. Without that hypothesis, ange 0 would be empty, finite products over an empty range would equal 111, finite sums over an empty range would equal 000, and natural subtraction such as n−1n-1n−1 would truncate at 000.

Human review
  • Endorsed by Shuze Chen · Sep 13, 2026

  • Endorsed by abcdefg · Sep 13, 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, licensed under Apache 2.0.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTermsJoin SlackJoin Zulip© 2026 Prove2Me