Hohenberg-Kohn variational model and one-particle density
DefinitionDFT_HohenbergKohnThis file fixes the objects the Hohenberg-Kohn theorems are stated about.
A Hohenberg-Kohn model consists of three sets and three maps: a set of admissible (normalized) many-electron wavefunctions, a set of external potentials, a set of one-particle densities, a universal functional giving the expectation value of the kinetic and electron-electron interaction operators in the state , a density map , and an external-energy pairing representing . Nothing else is assumed: in particular the model records exactly the two structural facts the Hohenberg-Kohn argument uses, namely that does not depend on the external potential and that the external energy depends on the state only through its density.
On top of these data the file defines:
- the total energy ;
- ground state: with for all admissible ;
- nondegenerate ground state: with for all ;
- -representable density: a density that is for some nondegenerate ground state of some potential;
- the Hohenberg-Kohn functional , defined on -representable densities as for a nondegenerate ground state with ;
- the Levy constrained-search functional .
Separately, for the concrete setting of electrons in , the file defines the one-particle density of a wavefunction on :
Formalization Note. The universal functional is only determined on -representable densities; off that set it is given the value . The constrained-search functional is an infimum, so it takes the value on a density that is the density of no admissible wavefunction. Integrals of non-integrable functions are by convention, so the one-particle density is a total function.
import Mathlib
noncomputable section
namespace DFT
open MeasureTheory
universe u
/-- An abstract Hohenberg–Kohn model.
`Wf` is the set of admissible (normalized) many-electron wavefunctions, `Pot` the set of
external potentials, `Dens` the set of one-particle electron densities. `F Ψ` is the
expectation value of the universal operators (kinetic energy plus electron–electron
interaction) in the state `Ψ`, `dens Ψ` is the one-particle density of `Ψ`, and `ext v n`
is the external-potential energy `∫ v n`, which depends on the state only through its
density. -/
structure HKModel where
/-- admissible (normalized) many-electron wavefunctions -/
Wf : Type u
/-- external potentials -/
Pot : Type u
/-- one-particle electron densities -/
Dens : Type u
/-- expectation value of the universal (kinetic + interaction) operators -/
F : Wf → ℝ
/-- one-particle density of a wavefunction -/
dens : Wf → Dens
/-- external-potential energy `∫ v n` -/
ext : Pot → Dens → ℝ
namespace HKModel
variable (M : HKModel)
/-- Total energy of the state `Ψ` in the external potential `v`. -/
def energy (v : M.Pot) (Ψ : M.Wf) : ℝ := M.F Ψ + M.ext v (M.dens Ψ)
/-- `Ψ` is a ground state for the external potential `v`: it minimizes the energy. -/
def IsGroundState (v : M.Pot) (Ψ : M.Wf) : Prop := ∀ Φ : M.Wf, M.energy v Ψ ≤ M.energy v Φ
/-- `Ψ` is a nondegenerate ground state for `v`: it is the strict minimizer of the energy. -/
def IsNondegenerateGroundState (v : M.Pot) (Ψ : M.Wf) : Prop :=
∀ Φ : M.Wf, Φ ≠ Ψ → M.energy v Ψ < M.energy v Φ
/-- A density is `v`-representable if it is the density of a nondegenerate ground state of
some external potential. -/
def VRepresentable (n : M.Dens) : Prop :=
∃ Ψ : M.Wf, (∃ v : M.Pot, M.IsNondegenerateGroundState v Ψ) ∧ M.dens Ψ = n
open Classical in
/-- The Hohenberg–Kohn universal functional `F[n]`: on a `v`-representable density it is the
universal energy of a nondegenerate ground state with that density, and `0` elsewhere. -/
def hkFunctional (n : M.Dens) : ℝ := if h : M.VRepresentable n then M.F h.choose else 0
/-- The Levy constrained-search functional: the infimum of the universal energy over all
wavefunctions whose density is `n`. -/
def levyFunctional (n : M.Dens) : ℝ := sInf (M.F '' {Ψ : M.Wf | M.dens Ψ = n})
end HKModel
/-- Position space of a single electron. -/
abbrev Pos : Type := EuclideanSpace ℝ (Fin 3)
/-- Configuration space of `n + 1` electrons. -/
abbrev Config (n : ℕ) : Type := Fin (n + 1) → Pos
/-- The one-particle density of an `(n+1)`-electron wavefunction `Ψ`:
`ρ(r) = ∑ᵢ ∫ |Ψ(x₁,…,r,…,x_{n+1})|² d(x_j)_{j≠i}`, where in the `i`-th summand the `i`-th
argument is set to `r` and the remaining `n` arguments are integrated out. -/
def oneParticleDensity {n : ℕ} (Ψ : Config n → ℂ) (r : Pos) : ℝ :=
∑ i : Fin (n + 1), ∫ y : Fin n → Pos, ‖Ψ (i.insertNth r y)‖ ^ 2
end DFT
end
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.
This bundle introduces a record type with six components. An instance of it consists of: three sets , , (called wavefunctions, potentials and densities, but with no structure whatsoever imposed on them — no vector space, no topology, no inner product, and no nonemptiness), a function , a function , and a function .
Given such an instance , the following are defined.
- Energy. For and ,
This is a real number for every pair, with no side conditions.
-
Ground state. holds iff for every (a global minimum over the whole set , not over a constrained subset).
-
Nondegenerate ground state. holds iff for every with . Note this is a strict inequality for all other elements, so it implies is the unique minimizer; and if has exactly one element, the condition holds vacuously.
-
-representability. holds iff there exists such that (a) there exists some with , and (b) . The potential is existentially quantified inside, so nothing ties it to any particular potential.
-
The functional . For : if holds, the value is where is a witness extracted from that existential statement by a choice operator; otherwise the value is the number . Two consequences are worth stating explicitly: the value on a non-representable density is , indistinguishable from a genuine energy of ; and on a representable density the value depends a priori on the chosen witness, so independence of the witness is a separate claim, not part of the definition.
-
The constrained-search functional. For , it is , the infimum of a set of reals. If no has density the set is empty and the value is ; if the set is nonempty but unbounded below the value is likewise . Neither degenerate case is excluded.
Finally, two concrete objects are defined. is three-dimensional Euclidean space , and is the space of functions from an index set of size into — so it always models at least one particle. For a complex-valued on and ,
where is the configuration obtained by inserting in slot and filling the remaining slots with in order, and the integral is with respect to Lebesgue measure on . No integrability, measurability, symmetry or normalization condition is imposed on : when the integrand is not integrable the corresponding summand is by convention, so is defined for every and every .