Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Ew0[S2]=N2−460E_{w_0}[S^2] = \frac{N^2-4}{60}Ew0​​[S2]=60N2−4​

Proved
Singh.Ew0_eq

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

random-matrix-theory

For every integer N≥2N \ge 2N≥2, with n=N−2n = N-2n=N−2,

Ew0[S2]=∫(0,2π)nS(θ)2 w0(θ) dθ∫(0,2π)nw0(θ) dθ=N2−460,E_{w_0}[S^2] = \frac{\int_{(0,2\pi)^n} S(\theta)^2\, w_0(\theta)\, d\theta}{\int_{(0,2\pi)^n} w_0(\theta)\, d\theta} = \frac{N^2-4}{60},Ew0​​[S2]=∫(0,2π)n​w0​(θ)dθ∫(0,2π)n​S(θ)2w0​(θ)dθ​=60N2−4​,

where w0(θ)=∏a<bsin⁡2θa−θb2∏ksin⁡4θk2w_0(\theta) = \prod_{a<b}\sin^2\frac{\theta_a-\theta_b}{2}\prod_k\sin^4\frac{\theta_k}{2}w0​(θ)=∏a<b​sin22θa​−θb​​∏k​sin42θk​​ and S(θ)=12∑kcot⁡θk2S(\theta) = \frac12\sum_k \cot\frac{\theta_k}{2}S(θ)=21​∑k​cot2θk​​ (circleE n).

Preamble
import Mathlib
import Definitions.Def_Singh

open MeasureTheory Filter Topology
Formal statement
namespace Singh

theorem Ew0_eq {N : ℕ} (hN : 2 ≤ N) :
    circleE (N - 2) = ((N : ℝ) ^ 2 - 4) / 60 := 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 N≥2N \ge 2N≥2, the theorem establishes an exact identity for the expected value of a squared trigonometric sum over the open box (0,2π)N−2(0, 2\pi)^{N-2}(0,2π)N−2 in RN−2\mathbb{R}^{N-2}RN−2. Let θ=(θ1,…,θN−2)\theta = (\theta_1, \dots, \theta_{N-2})θ=(θ1​,…,θN−2​) denote a vector of coordinates in this domain. We define a weight function W(θ)=(∏a<bsin⁡2(θa−θb2))∏k=1N−2sin⁡4(θk2)W(\theta) = \left( \prod_{a<b} \sin^2\left(\frac{\theta_a - \theta_b}{2}\right) \right) \prod_{k=1}^{N-2} \sin^4\left(\frac{\theta_k}{2}\right)W(θ)=(∏a<b​sin2(2θa​−θb​​))∏k=1N−2​sin4(2θk​​), where the first product is taken over all strictly ordered pairs of coordinate indices 1≤a<b≤N−21 \le a < b \le N-21≤a<b≤N−2. Furthermore, we define the sum S(θ)=12∑k=1N−2cos⁡(θk/2)sin⁡(θk/2)S(\theta) = \frac{1}{2} \sum_{k=1}^{N-2} \frac{\cos(\theta_k / 2)}{\sin(\theta_k / 2)}S(θ)=21​∑k=1N−2​sin(θk​/2)cos(θk​/2)​. The statement asserts that the expected value of S(θ)2S(\theta)^2S(θ)2 with respect to the weight W(θ)W(\theta)W(θ) evaluates to exactly N2−460\frac{N^2 - 4}{60}60N2−4​, which is expressed formally as the following ratio of Lebesgue integrals over the (N−2)(N-2)(N−2)-dimensional open box:

∫(0,2π)N−2S(θ)2W(θ) dθ∫(0,2π)N−2W(θ) dθ=N2−460.\frac{\int_{(0, 2\pi)^{N-2}} S(\theta)^2 W(\theta) \, d\theta}{\int_{(0, 2\pi)^{N-2}} W(\theta) \, d\theta} = \frac{N^2 - 4}{60}.∫(0,2π)N−2​W(θ)dθ∫(0,2π)N−2​S(θ)2W(θ)dθ​=60N2−4​.
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