Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The external-potential energy is a functional of the density

Proved
DFT.external_energy_eq_density_pairing

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

functional-analysismathematical-physicsquantum-mechanics

This is the identity from the source's "Derivation and formalism" section stating that "the contribution of the external potential can be written explicitly in terms of the density".

Let N=n+1N = n+1N=n+1 electrons move in R3\mathbb R^3R3, let vvv be an external potential and Ψ\PsiΨ a wavefunction on configuration space (R3)N(\mathbb R^3)^N(R3)N, and let

ρΨ(r)  =  ∑i=1N∫(R3)N−1∣Ψ(y1,…,r,…,yN−1)∣2 dy\rho_\Psi(r) \;=\; \sum_{i=1}^{N}\int_{(\mathbb R^3)^{N-1}} |\Psi(y_1,\dots,r,\dots,y_{N-1})|^2\,dyρΨ​(r)=i=1∑N​∫(R3)N−1​∣Ψ(y1​,…,r,…,yN−1​)∣2dy

be its one-particle density. Then the expectation value of the external potential is the pairing of vvv with the density:

∫(R3)N(∑i=1Nv(ri))∣Ψ(r1,…,rN)∣2 dr  =  ∫R3v(r) ρΨ(r) dr.\int_{(\mathbb R^3)^N} \Bigl(\sum_{i=1}^N v(r_i)\Bigr) |\Psi(r_1,\dots,r_N)|^2\, dr \;=\; \int_{\mathbb R^3} v(r)\,\rho_\Psi(r)\,dr .∫(R3)N​(i=1∑N​v(ri​))∣Ψ(r1​,…,rN​)∣2dr=∫R3​v(r)ρΨ​(r)dr.

This identity is the structural fact on which the whole Hohenberg-Kohn framework rests: it is what makes the external energy a functional of the density alone, and hence what licenses the abstract model used by the other statements of this mission.

Formalization Note. Integrability is assumed coordinatewise, for each of the NNN terms r↦v(ri)∣Ψ∣2r \mapsto v(r_i)|\Psi|^2r↦v(ri​)∣Ψ∣2 separately, since integrability of a finite sum does not follow from integrability of the whole.

Preamble
import Definitions.Def_DFT_HohenbergKohn

open MeasureTheory
Formal statement
namespace DFT

theorem external_energy_eq_density_pairing {n : ℕ} (v : Pos → ℝ) (Ψ : Config n → ℂ)
    (hv : Measurable v) (hΨ : Measurable Ψ)
    (hint : ∀ i : Fin (n + 1), Integrable fun x : Config n => v (x i) * ‖Ψ x‖ ^ 2) :
    ∫ x : Config n, (∑ i, v (x i)) * ‖Ψ x‖ ^ 2 = ∫ r : Pos, v r * oneParticleDensity Ψ r := by
  sorry

end DFT
Source
Wikipedia, 'Density functional theory' (uploaded PDF), sections 'Derivation and formalism', 'Hohenberg-Kohn theorems' (Theorem 1, Corollary 1, Theorem 2) and 'Kohn-Sham equations'; https://en.wikipedia.org/wiki/Density_functional_theory . Primary sources cited there: P. Hohenberg and W. Kohn, 'Inhomogeneous electron gas', Phys. Rev. 136 (1964) B864, https://doi.org/10.1103/PhysRev.136.B864 ; W. Kohn and L. J. Sham, Phys. Rev. 140 (1965) A1133, https://doi.org/10.1103/PhysRev.140.A1133 ; M. Levy, Proc. Natl. Acad. Sci. USA 76 (1979) 6062, https://doi.org/10.1073/pnas.76.12.6062 .
Read-back

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

Read-back provenance note (non-blind). This read-back was written by the same agent that drafted the Lean statement it describes; it is not independent, blind auditor testimony, and no reviewer should treat it as such. It was produced with full knowledge of the intended statement and the source material, so it cannot be relied on to expose a mismatch between intent and code. Please audit the Lean code directly against the source.

Fix a natural number nnn (possibly 000) and set N=n+1≥1N = n+1 \ge 1N=n+1≥1. Write R3\mathbb R^3R3 for three-dimensional Euclidean space, X=(R3)NX = (\mathbb R^3)^{N}X=(R3)N for configuration space with product Lebesgue measure, and index the NNN coordinates by iii.

The data are a function v:R3→Rv : \mathbb R^3 \to \mathbb Rv:R3→R and a function Ψ:X→C\Psi : X \to \mathbb CΨ:X→C. The hypotheses are:

  1. vvv is measurable;
  2. Ψ\PsiΨ is measurable;
  3. for each coordinate index iii, the real-valued function x↦v(xi) ∥Ψ(x)∥2x \mapsto v(x_i)\,\|\Psi(x)\|^2x↦v(xi​)∥Ψ(x)∥2 is integrable on XXX.

The conclusion is the equality of two real numbers:

∫X(∑iv(xi)) ∥Ψ(x)∥2 dx  =  ∫R3v(r) ρΨ(r) dr,\int_X \Bigl(\sum_{i} v(x_i)\Bigr)\,\|\Psi(x)\|^2 \, dx \;=\; \int_{\mathbb R^3} v(r)\, \rho_\Psi(r)\, dr,∫X​(i∑​v(xi​))∥Ψ(x)∥2dx=∫R3​v(r)ρΨ​(r)dr,

where ρΨ(r)=∑i∫(R3)n∥Ψ(ιi(r,y))∥2 dy\rho_\Psi(r) = \sum_i \int_{(\mathbb R^3)^{n}} \|\Psi(\iota_i(r,y))\|^2\,dyρΨ​(r)=∑i​∫(R3)n​∥Ψ(ιi​(r,y))∥2dy is the quantity defined in the definitions bundle, with ιi(r,y)\iota_i(r,y)ιi​(r,y) the configuration obtained by placing rrr in slot iii and the components of yyy in the remaining slots in order.

Remarks on what is and is not assumed. Ψ\PsiΨ is not assumed normalized, square-integrable, or symmetric/antisymmetric under permutation of its arguments; vvv is not assumed nonnegative, bounded, or integrable. The right-hand integrand involves ρΨ\rho_\PsiρΨ​, whose defining inner integrals are 000 by convention wherever the integrand fails to be integrable, and the outer integral on either side is 000 by convention if its integrand is not integrable — so the equality is an equality of possibly-junk values unless the hypotheses rule that out. Both sides use the norm squared ∥Ψ∥2\|\Psi\|^2∥Ψ∥2 of the complex value, so only the modulus of Ψ\PsiΨ enters. The case n=0n = 0n=0 (one particle) is included, where the inner integral is over a zero-dimensional space.

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