Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Hua second moment: En,2[(∑kuk)2]=n(n+4)15E_{n,2}\left[(\sum_k u_k)^2\right] = \frac{n(n+4)}{15}En,2​[(∑k​uk​)2]=15n(n+4)​

Proved
Singh.huaMeasure_second_moment

by Hix_Lab · Nov 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

random-matrix-theory

For every n≥0n \ge 0n≥0, let Pn,2P_{n,2}Pn,2​ be the probability measure on Rn\mathbb{R}^nRn with density proportional to ∏j<k(uj−uk)2∏k(1+uk2)−(n+2)\prod_{j<k}(u_j-u_k)^2\prod_k(1+u_k^2)^{-(n+2)}∏j<k​(uj​−uk​)2∏k​(1+uk2​)−(n+2) (huaMeasure n). Then

∫(∑k=1nuk)2 dPn,2(u)=n(n+4)15.\int \Big(\sum_{k=1}^n u_k\Big)^2 \, dP_{n,2}(u) = \frac{n(n+4)}{15}.∫(k=1∑n​uk​)2dPn,2​(u)=15n(n+4)​.
Preamble
import Mathlib
import Definitions.Def_Singh

open MeasureTheory Filter Topology
Formal statement
namespace Singh

theorem huaMeasure_second_moment (n : ℕ) :
    ∫ u, (∑ k, u k) ^ 2 ∂(huaMeasure n) = (n : ℝ) * ((n : ℝ) + 4) / 15 := by sorry

end Singh
Source
J. Singh, https://github.com/jjsingh88/singh-constant (commit 792d985)
Read-back

What the Lean code literally says, in plain math · gemini-3.1-pro-preview

For any natural number nnn, let u=(u0,…,un−1)u = (u_0, \dots, u_{n-1})u=(u0​,…,un−1​) denote a tuple in Rn\mathbb{R}^nRn (formalized as a function from {0,…,n−1}\{0, \dots, n-1\}{0,…,n−1} to R\mathbb{R}R). Define the unnormalized Hua weight W(u)W(u)W(u) as:

W(u)=∏k=0n−1∏j≠k∣uk−uj∣(∏k=0n−1(1+uk2))n+2W(u) = \frac{\prod_{k=0}^{n-1} \prod_{j \neq k} |u_k - u_j|}{\left( \prod_{k=0}^{n-1} (1 + u_k^2) \right)^{n+2}}W(u)=(∏k=0n−1​(1+uk2​))n+2∏k=0n−1​∏j=k​∣uk​−uj​∣​

Let Zn=∫RnW(u) duZ_n = \int_{\mathbb{R}^n} W(u) \, duZn​=∫Rn​W(u)du be the integral of this weight over Rn\mathbb{R}^nRn with respect to the Lebesgue measure. Define the Hua measure μn\mu_nμn​ on Rn\mathbb{R}^nRn to be the measure whose density with respect to the Lebesgue measure is given by the non-negative real part of W(u)/ZnW(u)/Z_nW(u)/Zn​.

The theorem asserts that the integral of the squared sum of the components of uuu with respect to the Hua measure μn\mu_nμn​ is exactly n(n+4)15\frac{n(n+4)}{15}15n(n+4)​. Formally:

∫Rn(∑k=0n−1uk)2dμn(u)=n(n+4)15\int_{\mathbb{R}^n} \left( \sum_{k=0}^{n-1} u_k \right)^2 d\mu_n(u) = \frac{n(n+4)}{15}∫Rn​(k=0∑n−1​uk​)2dμn​(u)=15n(n+4)​

This statement applies universally for all n∈Nn \in \mathbb{N}n∈N, including the degenerate case n=0n=0n=0, where the space R0\mathbb{R}^0R0 is a singleton, the sum over components is empty (evaluating to 000), and both sides of the equation trivially evaluate to 000. (In Lean, any potential division by zero when calculating the density if Zn=0Z_n = 0Zn​=0 resolves to 000.)

Human review
  • Endorsed by Shuze Chen · Nov 4, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Hix_Lab · Nov 4, 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