Spinor fields on : partial derivatives, the Dirac equation, the Klein--Gordon equation and plane waves
DefinitionDiracEquation_fieldsThe differential layer of the Dirac equation, built on the algebraic layer.
A Dirac spinor field is a map on Minkowski spacetime with coordinates . Its partial derivatives are taken coordinatewise in the -th coordinate direction, and denotes the derivative in the direction of the field .
In natural units and for a real mass , the field solves the Dirac equation for a family of gamma matrices when
with the repeated index summed over and each acting on the spinor by matrix-vector multiplication. It solves the Klein--Gordon equation when
Finally, for a real covector and a constant polarization , the positive-frequency plane wave is the field
Together with the algebraic layer these definitions are what the goal theorem and the milestones of the mission are stated in, and they are meant to be reused for the adjoint equation, the conserved current and the non-relativistic limit.
Formalization Note. A partial derivative is the Fréchet derivative over of the field, evaluated on the standard basis vector of the -th coordinate; no differentiability is assumed in the definitions themselves, so the differentiability hypotheses appear on the theorems that use them. The equations are imposed pointwise, at every point of , with no decay, integrability or normalisation condition on . Momentum components carry a lower index and the phase of the plane wave is the plain sum , with no metric inserted.
import Definitions.Def_DiracAlgebra_core
namespace DiracEquation
open Matrix
/-- The partial derivative `∂_μ ψ` of a four-component spinor field on `ℝ⁴`, taken in the
direction of the `μ`-th coordinate axis. -/
noncomputable def pd (psi : (Fin 4 → ℝ) → (Fin 4 → ℂ)) (mu : Fin 4) (x : Fin 4 → ℝ) :
Fin 4 → ℂ :=
fderiv ℝ psi x (Pi.single mu 1)
/-- The second partial derivative `∂_ν ∂_μ ψ`. -/
noncomputable def pd2 (psi : (Fin 4 → ℝ) → (Fin 4 → ℂ)) (mu nu : Fin 4) (x : Fin 4 → ℝ) :
Fin 4 → ℂ :=
pd (fun y => pd psi mu y) nu x
/-- `IsDiracSolution g m ψ` says that `ψ` satisfies the Dirac equation `(i γ^μ ∂_μ - m) ψ = 0`
for the gamma matrices `g` and mass `m`, in natural units `ħ = c = 1`. -/
def IsDiracSolution (g : Fin 4 → Matrix (Fin 4) (Fin 4) ℂ) (m : ℝ)
(psi : (Fin 4 → ℝ) → (Fin 4 → ℂ)) : Prop :=
∀ x, ∑ mu, Complex.I • (g mu).mulVec (pd psi mu x) = (m : ℂ) • psi x
/-- `IsKleinGordonSolution m ψ` says that every component of `ψ` satisfies the Klein–Gordon
equation `(∂_μ ∂^μ + m²) ψ = 0`, where `∂_μ ∂^μ = η^{μν} ∂_μ ∂_ν`. -/
def IsKleinGordonSolution (m : ℝ) (psi : (Fin 4 → ℝ) → (Fin 4 → ℂ)) : Prop :=
∀ x, (∑ mu, eta mu mu • pd2 psi mu mu x) + ((m : ℂ) ^ 2) • psi x = 0
/-- The positive-frequency plane wave `ψ(x) = u e^{i p_μ x^μ}` with polarization `u`. -/
noncomputable def planeWave (p : Fin 4 → ℝ) (u : Fin 4 → ℂ) : (Fin 4 → ℝ) → (Fin 4 → ℂ) :=
fun x => Complex.exp (Complex.I * ∑ mu, (p mu : ℂ) * (x mu : ℂ)) • u
end DiracEquation
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.
This bundle introduces five definitions and asserts nothing.
First partial derivative. For a field from (realised as functions from the four-element index set to ) to , an index and a point , is defined as the Fréchet derivative of at , taken with respect to the field of real scalars, evaluated at the vector whose -th entry is and whose other entries are . The result is a vector in . No differentiability hypothesis is present: at a point where is not differentiable, the derivative is the junk value , so the definition is total.
Second partial derivative. is defined as the -directional derivative, in the sense above, of the field , evaluated at . The inner index is and the outer (later) differentiation is in the direction ; again non-differentiability yields rather than an error.
Dirac-solution predicate. For a function assigning a complex matrix to each of the four indices, a real number and a field , the predicate holds exactly when, for every point ,
where is the matrix acting on the vector , is the imaginary unit scaling that vector, and is coerced from a real number to a complex scalar. This is the equation with the mass term moved to the right-hand side. Nothing requires to satisfy any algebraic relation, and nothing requires to be differentiable; for a nowhere-differentiable field the left-hand side is , so the predicate then says .
Klein--Gordon-solution predicate. For a real and a field , the predicate holds exactly when, for every ,
i.e. , an identity between vectors of . Only the diagonal second derivatives occur; means the square of the real mass, coerced to a complex scalar.
Plane wave. For a real-valued covector and a fixed vector , the plane wave is the field
the complex exponential of times the plain (metric-free) sum of the products of the entries of with the coordinates of , scaling the constant vector . Degenerate cases are included: gives the zero field and gives the constant field .