Motivation
Quantum electrodynamics (QED) is the relativistic quantum field theory of electrodynamics: it describes how light and charged matter interact, and it is the most precisely tested theory in physics, reproducing quantities such as the anomalous magnetic moment of the electron and the Lamb shift of hydrogen to many digits. Its modern covariant formulation was developed by Tomonaga, Schwinger and Feynman, with Dyson showing the equivalence of the operator and diagrammatic approaches.
Every one of those computations starts from a single classical object: the QED action, a functional of a Dirac spinor field and an electromagnetic four-potential on Minkowski space. Perturbation theory, Feynman rules, renormalization and the S-matrix are all built on top of the classical Lagrangian and the structural facts about it — the Clifford algebra of the Dirac matrices, the U(1) gauge symmetry, the conserved Noether current, and the Euler–Lagrange field equations. This mission formalizes exactly that classical layer, in the notation of the "Mathematical formulation" section of the Wikipedia article on quantum electrodynamics.
Nothing quantized is attempted here: no Fock space, no Dyson series, no renormalization. Those require a separate infrastructure and, in the interacting case, are not covered by any complete rigorous construction in four spacetime dimensions. What is formalizable today, and what this mission asks for, is the classical field theory that the quantum theory quantizes.
Setting
Spacetime is R4 with coordinates x=(x0,x1,x2,x3) and the Minkowski metric η of signature (+,−,−,−): η00=1, η11=η22=η33=−1, and ημν=0 for μ=ν. Since η is its own inverse, the same array serves as the contravariant metric ημν used to raise indices. The symbol ∂μ denotes the partial derivative in the μ-th coordinate direction, and □=ημν∂μ∂ν is the wave operator.
The Dirac matrices are four complex 4×4 matrices γ0,…,γ3 subject to the Clifford relation
γμγν+γνγμ=2ημνI4
together with the hermiticity relation (γμ)†=γ0γμγ0, which makes γ0 hermitian and γ1,γ2,γ3 anti-hermitian. The standard Dirac basis is one concrete solution of these relations.
A spinor field is a map ψ:R4→C4; its Dirac adjoint is ψˉ=ψ†γ0, and for a 4×4 matrix M the pairing ψˉMχ is the complex number ∑i,jψi(γ0M)ijχj. A gauge field is a map A:R4→R4 whose value Aμ(x) is the covariant component of the electromagnetic four-potential. From it one forms the field tensor (the curvature of the gauge connection)
Fμν=∂μAν−∂νAμ,Fμν=ημαηνβFαβ,
and, for a coupling constant e, the gauge covariant derivative Dμψ=∂μψ+ieAμψ. The Dirac current is Jμ=ψˉγμψ.
With m the mass of the spinor field, the QED Lagrangian density is
L=ψˉ(iγμDμ−m)ψ−41FμνFμν.
Its Euler–Lagrange equations are the Dirac equation (iγμDμ−m)ψ=0 and the Maxwell equation ∂μFμν=eJν. The Lorenz gauge condition is ημν∂μAν=0.
Formalization targets
Goal
For a coupled solution (ψ,A) of the QED field equations in the Lorenz gauge, the four-potential obeys an inhomogeneous wave equation whose source is a conserved current:
□Aν=eJνand∂νJν=0.
This is the "QED version of the classical Maxwell equations in the Lorenz gauge" of the source, together with the conservation law that makes the source of that wave equation consistent. It fixes no gauge beyond Lorenz, no representation of the Dirac matrices, and no sign or normalization beyond those of the stated Lagrangian.
Supporting targets
γμγν+γνγμ=2ημνI4,(γμ)†=γ0γμγ0for the Dirac basis;
∂λFμν+∂μFνλ+∂νFλμ=0;
Fμν[A+dχ]=Fμν[A],Dμ(e−ieχψ)[A+dχ]=e−ieχDμψ[A],L[e−ieχψ,A+dχ]=L[ψ,A];
ψˉγμψ∈R,∂μ(ψˉγμψ)=0 for solutions of the Dirac equation,□Aν=eJν in Lorenz gauge.
Significance
The classical layer is what every later construction quantizes. The Clifford relation is what makes the Dirac operator a square root of the wave operator; the U(1) invariance of L is what forces the coupling to be through Dμ and what makes the current conserved by Noether's theorem; conservation of Jμ is the consistency condition without which ∂μFμν=eJν has no solutions at all, since the left side is annihilated by ∂ν identically. The Lorenz-gauge wave equation is the form in which the photon propagator is read off.
Formalizing it adds a reusable, machine-checked Minkowski-space field-theory layer: a metric with index raising, coordinate partial derivatives on R4 with a wave operator, an abstract Dirac representation together with a concrete basis satisfying it, the field tensor, the covariant derivative, the Dirac current and the QED Lagrangian. Mathlib has Clifford algebras and Fréchet calculus, but not this concrete apparatus. None of the statements in this mission is currently known to have a machine-checked proof; all are standard textbook results with well-understood proofs, so the work is formalization rather than discovery.
Difficulty
The arguments are elementary on paper and awkward in Lean for three separate reasons.
First, all index manipulation is explicit: raising an index is a sum over Fin 4, and every "obvious" rearrangement of ∑μαβημαηνβ∂μ∂αAβ has to be done by hand with Finset.sum lemmas.
Second, differentiation is Fréchet differentiation in disguise: ∂μf is the derivative of f evaluated at a basis vector, so the product rule, the sum rule and the symmetry of second derivatives each require the corresponding differentiability side conditions. The naive move of treating ∂μ as a formal symbol that commutes with everything fails: without a C2 hypothesis, ∂μ∂ν=∂ν∂μ, and without differentiability the derivative takes the junk value 0, so an identity that "obviously" holds termwise may hold only under the stated smoothness assumption.
Third, the current conservation law is not a pure computation: it needs the Dirac equation, the hermiticity relation (γμ)†=γ0γμγ0, and the reality of m, e and Aμ, in the precise combination that cancels the terms containing Aμ between ∂μψˉ and ∂μψ. Any attempt to prove it from smoothness alone, without the equation of motion, cannot work — the current of an arbitrary smooth spinor field is not conserved.
Formalization scope
Spacetime is Fin 4 → ℝ, a gauge field is Spacetime → Fin 4 → ℝ with lower index, a spinor field is Spacetime → Fin 4 → ℂ, and the Dirac matrices are Fin 4 → Matrix (Fin 4) (Fin 4) ℂ. Sums over indices are Finset.sum over Fin 4. Partial derivatives are fderiv ℝ f x (Pi.single μ 1), which is 0 when f is not differentiable at x; smoothness hypotheses are stated as ContDiff ℝ 1 or ContDiff ℝ 2 exactly where they are used. Complex conjugation is starRingEnd ℂ, matrix adjoint is Matrix.conjTranspose, and the coupling constant e, the mass m and the gauge parameter χ are real, with no positivity or nonvanishing assumption on e or m.
Conventions fixed once and shared by every statement: signature (+,−,−,−); Dμ=∂μ+ieAμ; Fμν=∂μAν−∂νAμ; Jμ=ψˉγμψ taken as a real number via its real part, with the reality of the underlying complex pairing stated as a separate target; the Maxwell equation carries the coupling on the right-hand side as ∂μFμν=eJν; and the Dirac equation is ∑μiγμDμψ=mψ.
The statements are not vacuous: ψ=0, A=0 satisfies all field equations, plane-wave solutions of the free Dirac equation satisfy the Dirac hypothesis with A=0, and the concrete Dirac basis witnesses the abstract representation hypothesis, so no hypothesis in the mission is unsatisfiable. The goal is not trivially true: it asserts a pointwise identity between second derivatives of A and a quadratic expression in ψ, not an implication between definitionally equal objects.
A complete development needs Mathlib's fderiv calculus (product rule, symmetry of the second derivative via IsSymmSndFDerivAt), Finset.sum manipulation, Matrix arithmetic over ℂ, and Complex.exp. The Minkowski-space layer — metric, partial derivatives, wave operator, field tensor, Dirac representation — is reusable for any later mission on classical field theory or on the quantized theory. Contributions of further structural results in this notation (energy–momentum tensor, plane-wave solutions, the free-field propagator) are welcome as follow-up problems.
Selected references
- Wikipedia, Quantum electrodynamics, section "Mathematical formulation". https://en.wikipedia.org/wiki/Quantum_electrodynamics
- C. Itzykson and J.-B. Zuber, Quantum Field Theory, McGraw-Hill, 1980.
- M. E. Peskin and D. V. Schroeder, An Introduction to Quantum Field Theory, Addison-Wesley, 1995.
- R. P. Feynman, QED: The Strange Theory of Light and Matter, Princeton University Press, 1985.