Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Shortest nonzero winding vectors and block counts

Open
QAlgorithms.Papers.Independent.Intakenext100.P23.shortest_winding_vectors

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let n≥2n\ge2n≥2 and m∈Zn−1m\in\mathbb Z^{n-1}m∈Zn−1. Define (Ck/n)rs=cos⁡(2πk(r−s)/n)(C_{k/n})_{rs}=\cos(2\pi k(r-s)/n)(Ck/n​)rs​=cos(2πk(r−s)/n) and

E(m)=∑j=1n−1mj2−∑j=1n−2mjmj+1=2n∑k=1n−1sin⁡2(πk/n)mTCk/nm.E(m)=\sum_{j=1}^{n-1}m_j^2-\sum_{j=1}^{n-2}m_jm_{j+1}=\frac2n\sum_{k=1}^{n-1}\sin^2(\pi k/n)m^{\mathsf T}C_{k/n}m.E(m)=j=1∑n−1​mj2​−j=1∑n−2​mj​mj+1​=n2​k=1∑n−1​sin2(πk/n)mTCk/n​m.

For every nonzero mmm, E(m)≥1E(m)\ge1E(m)≥1. Equality holds exactly when mmm is one constant-sign contiguous block of ℓ\ellℓ entries equal to +1+1+1 or −1-1−1, with all other entries zero, for some 1≤ℓ<n1\le\ell<n1≤ℓ<n. For each such ℓ\ellℓ the block set is finite and has exactly 2(n−ℓ)2(n-\ell)2(n−ℓ) elements. For any block, independent of start and sign,

mTCk/nm=(sin⁡(πkℓ/n)sin⁡(πk/n))2(1≤k<n).m^{\mathsf T}C_{k/n}m=\left(\frac{\sin(\pi k\ell/n)}{\sin(\pi k/n)}\right)^2\quad(1\le k<n).mTCk/n​m=(sin(πk/n)sin(πkℓ/n)​)2(1≤k<n).

These vectors control the leading nontrivial winding terms; the zero vector is excluded from the minimization.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P23
Formal statement
noncomputable section

open scoped BigOperators Topology

open Filter Set MeasureTheory

namespace QAlgorithms.Papers.Independent.Intakenext100.P23

/-- Source pp.14--15, (68)--(69): minimum one on nonzero integer vectors,
with exactly the contiguous constant-sign blocks as minimizers. Each block
length ell has 2(n-ell) distinct vectors. -/
theorem shortest_winding_vectors (n : ℕ) (hn : 2 ≤ n) :
    (∀ m : Fin (n - 1) → ℤ, windingFourier n m = (windingEnergy n m : ℝ)) ∧
    (∀ m : Fin (n - 1) → ℤ, m ≠ 0 → 1 ≤ windingEnergy n m) ∧
    (∀ m : Fin (n - 1) → ℤ, windingEnergy n m = 1 ↔
      ∃ ell : ℕ, 1 ≤ ell ∧ ell < n ∧ ∃ a : Fin (n - ell), ∃ s : Bool,
        m = windingBlock n ell a.val s) ∧
    (∀ ell : ℕ, 1 ≤ ell → ell < n →
      {m : Fin (n - 1) → ℤ | ∃ a : Fin (n - ell), ∃ s : Bool,
        m = windingBlock n ell a.val s}.Finite ∧
      {m : Fin (n - 1) → ℤ | ∃ a : Fin (n - ell), ∃ s : Bool,
        m = windingBlock n ell a.val s}.ncard = 2 * (n - ell)) ∧
    (∀ ell : ℕ, 1 ≤ ell → ell < n → ∀ a : Fin (n - ell), ∀ s : Bool,
      ∀ k : Fin (n - 1),
      QAlgorithms.Papers.Independent.Information100.P37.quadratic (cosineMatrix n (k.val + 1) (n - 1))
        (fun j => (windingBlock n ell a.val s j : ℝ)) =
      (Real.sin (Real.pi * ((k.val + 1 : ℕ) : ℝ) * (ell : ℝ) / (n : ℝ)) /
        Real.sin (Real.pi * ((k.val + 1 : ℕ) : ℝ) / (n : ℝ))) ^ 2) := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P23

end
Source
Entanglement entropy of two disjoint intervals in conformal field theory, arXiv:0905.2069v2, PDF p. 14, Section 4.5, Eqs. (68)–(69)
Read-back

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

For every natural number n≥2n\ge2n≥2, regard an integer vector mmm as (m0,…,mn−2)(m_0,\ldots,m_{n-2})(m0​,…,mn−2​), and define

En(m)=∑j=0n−2mj2−∑j=0n−3mjmj+1,Qn,k(m)=∑r,s=0n−2mrcos⁡ ⁣(2πk(r−s)n)ms.E_n(m)=\sum_{j=0}^{n-2}m_j^2-\sum_{j=0}^{n-3}m_jm_{j+1},\qquad Q_{n,k}(m)=\sum_{r,s=0}^{n-2}m_r\cos\!\left(\frac{2\pi k(r-s)}n\right)m_s.En​(m)=j=0∑n−2​mj2​−j=0∑n−3​mj​mj+1​,Qn,k​(m)=r,s=0∑n−2​mr​cos(n2πk(r−s)​)ms​.

An empty sum is zero, so the second sum defining EnE_nEn​ is empty when n=2n=2n=2. For natural numbers ℓ,a\ell,aℓ,a and a Boolean sss, let Bn,ℓ,a,sB_{n,\ell,a,s}Bn,ℓ,a,s​ be the vector whose jjjth coordinate is 111 if a≤j<a+ℓa\le j<a+\ella≤j<a+ℓ and sss is true, −1-1−1 if a≤j<a+ℓa\le j<a+\ella≤j<a+ℓ and sss is false, and zero otherwise. The declaration asserts all of the following: every integer vector mmm, including the zero vector, satisfies

2n∑k=1n−1sin⁡2 ⁣(πkn)Qn,k(m)=En(m);\frac2n\sum_{k=1}^{n-1}\sin^2\!\left(\frac{\pi k}n\right)Q_{n,k}(m)=E_n(m);n2​k=1∑n−1​sin2(nπk​)Qn,k​(m)=En​(m);

every nonzero mmm satisfies En(m)≥1E_n(m)\ge1En​(m)≥1; and En(m)=1E_n(m)=1En​(m)=1 if and only if there exist a natural number 1≤ℓ<n1\le\ell<n1≤ℓ<n, an integer aaa with 0≤a<n−ℓ0\le a<n-\ell0≤a<n−ℓ, and a Boolean sss such that m=Bn,ℓ,a,sm=B_{n,\ell,a,s}m=Bn,ℓ,a,s​. For each natural number 1≤ℓ<n1\le\ell<n1≤ℓ<n, the set of vectors obtained from such aaa and sss is finite and has exactly 2(n−ℓ)2(n-\ell)2(n−ℓ) elements. Finally, for every such ℓ,a,s\ell,a,sℓ,a,s and every integer 1≤k<n1\le k<n1≤k<n,

Qn,k(Bn,ℓ,a,s)=(sin⁡(πkℓ/n)sin⁡(πk/n))2.Q_{n,k}(B_{n,\ell,a,s}) =\left(\frac{\sin(\pi k\ell/n)}{\sin(\pi k/n)}\right)^2.Qn,k​(Bn,ℓ,a,s​)=(sin(πk/n)sin(πkℓ/n)​)2.
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 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