Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Every C2C^2C2 solution of the Dirac equation solves the Klein--Gordon equation

Proved
DiracEquation.dirac_implies_kleinGordon

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

differential-equationsmathematical-physicspdequantum-mechanics

Let γ=(γ0,γ1,γ2,γ3)\gamma = (\gamma^0,\gamma^1,\gamma^2,\gamma^3)γ=(γ0,γ1,γ2,γ3) be complex 4×44\times44×4 matrices satisfying the Clifford relation

γμγν+γνγμ=2ημνI4,η=diag⁡(1,−1,−1,−1),\gamma^\mu\gamma^\nu + \gamma^\nu\gamma^\mu = 2\eta^{\mu\nu} I_4, \qquad \eta = \operatorname{diag}(1,-1,-1,-1),γμγν+γνγμ=2ημνI4​,η=diag(1,−1,−1,−1),

let m∈Rm \in \mathbb{R}m∈R, and let ψ:R4→C4\psi : \mathbb{R}^4 \to \mathbb{C}^4ψ:R4→C4 be twice continuously differentiable. If ψ\psiψ satisfies the Dirac equation

(iγμ∂μ−m)ψ(x)=0for all x,\bigl(i\gamma^\mu\partial_\mu - m\bigr)\psi(x) = 0 \quad \text{for all } x,(iγμ∂μ​−m)ψ(x)=0for all x,

then each component of ψ\psiψ satisfies the Klein--Gordon equation

(∂μ∂μ+m2)ψ(x)=0for all x,∂μ∂μ=∂02−∂12−∂22−∂32.\bigl(\partial_\mu\partial^\mu + m^2\bigr)\psi(x) = 0 \quad \text{for all } x, \qquad \partial_\mu\partial^\mu = \partial_0^2 - \partial_1^2 - \partial_2^2 - \partial_3^2 .(∂μ​∂μ+m2)ψ(x)=0for all x,∂μ​∂μ=∂02​−∂12​−∂22​−∂32​.

This is the statement that the Dirac operator is a square root of the wave operator: applying (iγν∂ν+m)(i\gamma^\nu\partial_\nu + m)(iγν∂ν​+m) to the Dirac equation produces the Klein--Gordon operator. It is the reason the free Dirac field has the relativistic dispersion relation pμpμ=m2p_\mu p^\mu = m^2pμ​pμ=m2 and can be expanded in plane waves, and it holds for every family of gamma matrices, not only for a particular representation.

Formalization Note. Partial derivatives are Fréchet derivatives along the coordinate directions of R4\mathbb{R}^4R4, the hypothesis is C2C^2C2 regularity of ψ\psiψ on all of R4\mathbb{R}^4R4, and both equations are imposed pointwise at every xxx.

Preamble
import Definitions.Def_DiracEquation_fields
Formal statement
namespace DiracEquation

theorem dirac_implies_kleinGordon (g : Fin 4 → Matrix (Fin 4) (Fin 4) ℂ) (hg : IsGammaFamily g)
    (m : ℝ) (psi : (Fin 4 → ℝ) → (Fin 4 → ℂ)) (hpsi : ContDiff ℝ 2 psi)
    (hD : IsDiracSolution g m psi) : IsKleinGordonSolution m psi := by sorry

end DiracEquation
Source
"Dirac equation", Wikipedia, https://en.wikipedia.org/wiki/Dirac_equation, sections "Formulation - Covariant formulation" (Dirac equation, Clifford relation {gamma^mu, gamma^nu} = 2 eta^{mu nu} I_4, Dirac representation of the gamma matrices, Hamiltonian form with alpha and beta) and "Properties - Plane wave solutions" (Klein-Gordon reduction, plane waves, momentum-space Dirac equation). Section "Plane wave solutions", first displayed equation: (i d-slash + m)(i d-slash - m) psi = (d_mu d^mu + m^2) psi = 0.
Read-back

What the Lean code literally says, in plain math · non-blind self-read-back written by the drafting agent (no independent auditor)

Provenance note - please read before using this read-back. This text is not blind and not independent testimony. It was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the mission owner, who asked for the read-backs to be uploaded immediately instead of being delegated to an independent auditor. Because its author already knew what the code was intended to say, this read-back cannot serve the purpose an auditor's read-back normally serves: a gap between intent and code is exactly what a non-blind reader is least likely to notice. No reviewer should treat it as independent corroboration of the formalization; a blind read-back by an independent auditor is still required before these statements are relied upon.

The statement quantifies over four objects and carries three hypotheses.

  1. ggg is an arbitrary assignment of a complex 4×44\times44×4 matrix g(μ)g(\mu)g(μ) to each index μ∈{0,1,2,3}\mu \in \{0,1,2,3\}μ∈{0,1,2,3}.
  2. Hypothesis (Clifford). For all indices μ,ν\mu,\nuμ,ν (including μ=ν\mu=\nuμ=ν), g(μ)g(ν)+g(ν)g(μ)=(2η(μ,ν))I4g(\mu)g(\nu) + g(\nu)g(\mu) = \bigl(2\eta(\mu,\nu)\bigr) I_4g(μ)g(ν)+g(ν)g(μ)=(2η(μ,ν))I4​, where η(μ,ν)\eta(\mu,\nu)η(μ,ν) is 111 for μ=ν=0\mu=\nu=0μ=ν=0, −1-1−1 for μ=ν≠0\mu=\nu\neq0μ=ν=0 and 000 for μ≠ν\mu\neq\nuμ=ν.
  3. mmm is an arbitrary real number; ψ\psiψ is an arbitrary map from R4\mathbb{R}^4R4 (functions from the four-element index set to R\mathbb{R}R) to C4\mathbb{C}^4C4.
  4. Hypothesis (regularity). ψ\psiψ is twice continuously differentiable on all of R4\mathbb{R}^4R4, as a map between real normed spaces.
  5. Hypothesis (Dirac). For every point xxx, ∑μi (g(μ) ∂μψ(x))=m ψ(x)\sum_{\mu} i\,\bigl(g(\mu)\,\partial_\mu\psi(x)\bigr) = m\,\psi(x)∑μ​i(g(μ)∂μ​ψ(x))=mψ(x), where ∂μψ(x)\partial_\mu\psi(x)∂μ​ψ(x) is the Fréchet derivative of ψ\psiψ at xxx applied to the μ\muμ-th standard basis vector, g(μ)g(\mu)g(μ) acts by matrix-vector multiplication, and mmm is read as a complex scalar.

Conclusion. For every point xxx,

∑μ=03η(μ,μ) ∂ν∂μψ(x)∣ν=μ  +  m2 ψ(x)  =  0,\sum_{\mu=0}^{3} \eta(\mu,\mu)\,\partial_\nu\partial_\mu\psi(x)\big|_{\nu=\mu} \;+\; m^2\,\psi(x) \;=\; 0 ,μ=0∑3​η(μ,μ)∂ν​∂μ​ψ(x)​ν=μ​+m2ψ(x)=0,

that is, ∂002ψ(x)−∂112ψ(x)−∂222ψ(x)−∂332ψ(x)+m2ψ(x)=0\partial^2_{00}\psi(x) - \partial^2_{11}\psi(x) - \partial^2_{22}\psi(x) - \partial^2_{33}\psi(x) + m^2\psi(x) = 0∂002​ψ(x)−∂112​ψ(x)−∂222​ψ(x)−∂332​ψ(x)+m2ψ(x)=0, an equality of vectors in C4\mathbb{C}^4C4, where each second derivative means the μ\muμ-directional derivative of the field y↦∂μψ(y)y \mapsto \partial_\mu\psi(y)y↦∂μ​ψ(y).

Degenerate cases are included rather than excluded: m=0m = 0m=0 is allowed, and ψ≡0\psi \equiv 0ψ≡0 satisfies both the hypothesis and the conclusion. The Clifford hypothesis is satisfiable - the matrices of the Dirac representation are one solution - so the statement is not vacuous. Nothing in the statement requires ggg to be hermitian, invertible or irreducible, and no decay, integrability or normalisation is imposed on ψ\psiψ.

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