Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Number of coefficients of a degree-ddd polynomial in nnn variables: (d+n)!/(d! n!)(d+n)!/(d!\,n!)(d+n)!/(d!n!)

Proved
DouglasVacua.superpotential_coefficient_count

by LG · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricsmathematical-physics

For all n,d∈Nn,d\in\mathbb Nn,d∈N:

#{I∈Nn:I1+⋯+In≤d}=(d+n)!d! n!=#{I∈Nn+1:I1+⋯+In+1=d}.\#\{I\in\mathbb N^n : I_1+\dots+I_n\le d\}=\frac{(d+n)!}{d!\,n!}=\#\{I\in\mathbb N^{n+1}: I_1+\dots+I_{n+1}=d\}.#{I∈Nn:I1​+⋯+In​≤d}=d!n!(d+n)!​=#{I∈Nn+1:I1​+⋯+In+1​=d}.

That is, a polynomial of degree ddd in nnn variables has c(d,n)=(d+n)!/(d!n!)c(d,n)=(d+n)!/(d!n!)c(d,n)=(d+n)!/(d!n!) coefficients, the number of degree-ddd homogeneous monomials in n+1n+1n+1 variables. For d=3d=3d=3 this gives the (n+1)(n+2)(n+3)/6(n+1)(n+2)(n+3)/6(n+1)(n+2)(n+3)/6 coefficients of the cubic superpotential (4.5).

Preamble
import Mathlib
open Nat
Formal statement
namespace DouglasVacua

theorem superpotential_coefficient_count (n d : ℕ) :
    (Set.ncard {e : Fin n → ℕ | ∑ i, e i ≤ d} : ℚ) = (d + n)! / (d ! * n !) ∧
    (Set.ncard {e : Fin (n + 1) → ℕ | ∑ i, e i = d} : ℚ) = (d + n)! / (d ! * n !) := by sorry

end DouglasVacua
Source
Michael R. Douglas, *The statistics of string/M theory vacua*, JHEP 05 (2003) 046, https://doi.org/10.1088/1126-6708/2003/05/046 (arXiv:hep-th/0303194). Section 4, p. 35 ("Such a polynomial has c(d,n)=(d+n)!/d!n!c(d,n)=(d+n)!/d!n!c(d,n)=(d+n)!/d!n! independent coefficients (the number of degree ddd homogeneous polynomials in n+1n+1n+1 variables)"); also p. 37, below eq. (4.5).
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter (non-blind)

Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement, at the explicit instruction of the proposal owner. It was not produced blind or by an independent auditor, so it must not be treated as independent confirmation of faithfulness.

For all natural numbers nnn and ddd, both of the following hold, as equalities of rational numbers:

  1. the cardinality of {e:{0,…,n−1}→N:∑iei≤d}\{e:\{0,\dots,n-1\}\to\mathbb N : \sum_i e_i\le d\}{e:{0,…,n−1}→N:∑i​ei​≤d} equals (d+n)!d! n!\dfrac{(d+n)!}{d!\,n!}d!n!(d+n)!​;
  2. the cardinality of {e:{0,…,n}→N:∑iei=d}\{e:\{0,\dots,n\}\to\mathbb N : \sum_i e_i= d\}{e:{0,…,n}→N:∑i​ei​=d} equals (d+n)!d! n!\dfrac{(d+n)!}{d!\,n!}d!n!(d+n)!​.

Cardinalities are ncard (which would be 000 for an infinite set; both sets are finite). The right-hand sides are computed by division in Q\mathbb QQ, not truncated natural-number division. n=0n=0n=0 and d=0d=0d=0 are included (both sides equal 111 when n=0n=0n=0).

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

    Confirmed by the moderator at approval.

  • Endorsed by LG · Oct 8, 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