Energy of a Slater determinant (Hartree-Fock energy, Sec. 3.2)
ProvedKochHF.hartree_fock_energyWith , , as in the definition file and , the energy of the determinant of occupied reference orbitals is
where .
This is the Hartree-Fock total energy expressed through direct and exchange integrals of the occupied orbitals.
import Mathlib import Definitions.Def_KochHF_FockSpace import Definitions.Def_KochHF_Hamiltonian open Matrix
namespace KochHF
theorem hartree_fock_energy {K : ℕ} (T : Matrix (Fin K) (Fin K) ℂ)
(U : Fin K → Fin K → Fin K → Fin K → ℂ) (hU : ∀ n n' m m', U n n' m m' = U n' n m' m)
(S : Finset (Fin K)) :
detEnergy T U S = ∑ m ∈ S, (T m m + ∑ m' ∈ S.filter (· < m), hfDelta U m m') ∧
detEnergy T U S = ∑ m ∈ S, (T m m + (1 / 2 : ℂ) * ∑ m' ∈ S, hfDelta U m m') := by sorry
end KochHFRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — NON-BLIND: same agent that drafted the statements
Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted the Lean statement, with full knowledge of the source text and of the intended meaning. It is not a blind audit and must not be mistaken for independent testimony; reviewers should compare the Lean code against the source themselves.
Throughout, is the number of orthonormal reference orbitals ; an orbital is a coefficient vector and . Fock space is with orthonormal basis , ; for and for ; (conjugate transpose); , ; ; for orbitals the vector (for this is ). For all , every complex matrix , every complex 4-index array with for all indices, and every , writing and , both of the following hold:
- ;
- .
For both sides are .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.