← All papers
AI-assisted formal proofs for static and time-dependent density functional theory on lattices
cond-mat.mtrl-sci
Nov 24, 2026 · v1
math-ph
TL;DR
All theorems on lattice DFT and TDDFT are formalized in Lean 4 with Mathlib (about 17,000 lines), with the code written with AI assistance.
Abstract
The Hohenberg-Kohn theorem fails on lattices, where two potentials that differ by more than a constant can share a ground state. We prove that such potentials are exceptional. We consider spinless fermions on any connected lattice, at any filling other than empty or full, with hopping amplitudes of a common sign and any density-density interaction. The potentials whose ground state is shared with a potential differing by more than a constant lie in a closed, nowhere dense set of zero Lebesgue measure. The densities of non-degenerate shared ground states form a set of codimension at least two. The statement about the potentials also holds for the Kohn-Sham potential and for spin-density functional theory, where a uniform shift of the magnetic field is the only additional freedom. In time-dependent density functional theory on lattices, we show that not every ground state of a connected lattice can serve as the initial state of the density-potential map. A counterexample is the ground state of two fermions on a square that Penz and van Leeuwen found as a counterexample to the Hohenberg-Kohn theorem. For almost every static potential, however, every real ground state can serve as an initial state, also for spin-resolved densities. We also give formal proofs that the time-dependent Kohn-Sham potential exists, locally in time, for almost every static Kohn-Sham potential, and of known results: local existence and uniqueness of the time-dependent potential for an admissible initial state, continuation in time up to the boundary of the set of admissible states, and the convergence properties of a regularized Kohn-Sham iteration. All theorems and propositions are formalized in the proof assistant Lean 4 and checked by computer.
Problem
The Hohenberg-Kohn theorem fails on lattices, where potentials differing by more than a constant can share a ground state. Lattice TDDFT likewise lacks guarantees that ground states are admissible initial states of the density-potential map.
Approach
The authors prove that exceptional potentials lie in a closed, nowhere dense, measure-zero set for spinless fermions with same-sign hopping and any diagonal interaction. The argument uses Krylov determinants and a nonvanishing algebraic condition. They extend this to Kohn-Sham, spin-DFT and TDDFT, and give counterexamples. All results are formalized in Lean 4 with Mathlib, with the code written with the assistance of Claude.
