Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Flux potential and flux vacua count (Bousso–Polchinski model)

Definition
douglas_flux_vacua_count

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

lattice-pointsmathematical-physicsstring-theory

For J∈NJ\in\mathbb NJ∈N, c∈Rc\in\mathbb Rc∈R and a flux vector N∈ZJN\in\mathbb Z^JN∈ZJ, the flux potential is V(N)=c∑i=1JNi2V(N)=c\sum_{i=1}^J N_i^2V(N)=c∑i=1J​Ni2​ (eq. (3.12), with c=Mpl2/(M2pVp+12)c=M_{pl}^2/(M^{2p}V_{p+1}^2)c=Mpl2​/(M2pVp+12​)). The flux vacua count at level VVV is

NJ(c,V)=#{N∈ZJ:V(N)≤V},\mathcal N_J(c,V)=\#\{N\in\mathbb Z^J : V(N)\le V\},NJ​(c,V)=#{N∈ZJ:V(N)≤V},

the cumulative distribution of the number measure dμ(V)=∑Nδ(V−V(N))d\mu(V)=\sum_N\delta(V-V(N))dμ(V)=∑N​δ(V−V(N)) of eq. (3.13). (Formally the cardinality is Set.ncard, which is 000 on an infinite set; for c>0c>0c>0 the set is finite.)

Definition code
import Mathlib

namespace DouglasVacua

/-- The flux potential of the Bousso–Polchinski model (Douglas 2003, eq. (3.12)):
for a flux vector `N ∈ ℤ^J` and a constant `c = M_pl^2 / (M^{2p} V_{p+1}^2)`,
`V(N) = c · ∑ᵢ Nᵢ²`. -/
noncomputable def fluxPotential {J : ℕ} (c : ℝ) (N : Fin J → ℤ) : ℝ :=
  c * ∑ i, ((N i : ℝ)) ^ 2

/-- The number of flux vectors `N ∈ ℤ^J` whose flux potential is at most `V`,
i.e. the cumulative distribution `∫_{-∞}^{V} dμ` of the measure (3.13) of Douglas 2003. -/
noncomputable def fluxVacuaCount (J : ℕ) (c V : ℝ) : ℕ :=
  Set.ncard {N : Fin J → ℤ | fluxPotential c N ≤ V}

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 3.6, pp. 23–24, eqs. (3.11)–(3.13).
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.

The file introduces two objects inside the namespace DouglasVacua.

Flux potential. Given a natural number JJJ, a real number ccc (no sign condition), and a function N:{0,…,J−1}→ZN:\{0,\dots,J-1\}\to\mathbb ZN:{0,…,J−1}→Z, it returns the real number

Vc(N)=c⋅∑i=0J−1Ni2,V_c(N)=c\cdot\sum_{i=0}^{J-1} N_i^2,Vc​(N)=c⋅i=0∑J−1​Ni2​,

where each NiN_iNi​ is cast to R\mathbb RR before squaring. For J=0J=0J=0 the sum is empty and the value is 000.

Flux vacua count. Given J∈NJ\in\mathbb NJ∈N and reals c,Vc,Vc,V, it returns the natural number

NJ(c,V)=ncard⁡{N∈ZJ:Vc(N)≤V},\mathcal N_J(c,V)=\operatorname{ncard}\{N\in\mathbb Z^J : V_c(N)\le V\},NJ​(c,V)=ncard{N∈ZJ:Vc​(N)≤V},

where ncard⁡\operatorname{ncard}ncard is the cardinality of a set when it is finite and is defined to be 000 when the set is infinite. Edge cases: if c≤0c\le 0c≤0 and V≥0V\ge 0V≥0 the set is all of ZJ\mathbb Z^JZJ, infinite for J≥1J\ge1J≥1, so the count is 000; if V<0V<0V<0 and c≥0c\ge 0c≥0 the set is empty and the count is 000; for J=0J=0J=0 the only NNN is the empty function, with potential 000, so the count is 111 if V≥0V\ge 0V≥0 and 000 otherwise.

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