QED fields: , , the current , the Lagrangian, and the field equations
DefinitionQED_fieldsThe field content of quantum electrodynamics and the equations it satisfies, in the notation of the QED action.
A gauge field is a map with values in (the electromagnetic four-potential, with lower index), and a spinor field is a map . From the potential one forms the field tensor , the curvature of the gauge connection, and its raised form . For a coupling constant the gauge covariant derivative is , and the Dirac current is , recorded as a real number through its real part.
The QED Lagrangian density is
and its Euler–Lagrange equations are recorded here as two conditions on a pair : the Dirac equation and the Maxwell equation . The Lorenz gauge condition is . Finally, a gauge transformation with real parameter is recorded as the pair of operations and .
import Definitions.Def_QED_dirac_algebra
namespace QED
/-- A gauge field (electromagnetic four-potential): `A x μ` is the covariant
component `A_μ(x)`. -/
abbrev GaugeField : Type := Spacetime → Fin 4 → ℝ
/-- A Dirac spinor field: `ψ x` is a four-component complex spinor at `x`. -/
abbrev SpinorField : Type := Spacetime → Fin 4 → ℂ
/-- The covariant components `A^ν = η^{νβ} A_β` of the four-potential. -/
noncomputable def gaugeUp (A : GaugeField) (ν : Fin 4) (x : Spacetime) : ℝ :=
∑ β : Fin 4, minkowski ν β * A x β
/-- The electromagnetic field tensor `F_{μν} = ∂_μ A_ν - ∂_ν A_μ`. -/
noncomputable def fieldStrength (A : GaugeField) (μ ν : Fin 4) (x : Spacetime) : ℝ :=
partialD μ (fun y => A y ν) x - partialD ν (fun y => A y μ) x
/-- The field tensor with both indices raised, `F^{μν} = η^{μα} η^{νβ} F_{αβ}`. -/
noncomputable def fieldStrengthUp (A : GaugeField) (μ ν : Fin 4) (x : Spacetime) : ℝ :=
∑ α : Fin 4, ∑ β : Fin 4, minkowski μ α * minkowski ν β * fieldStrength A α β x
/-- The gauge covariant derivative `D_μ ψ = ∂_μ ψ + i e A_μ ψ`, where `e` is the
coupling constant (the electric charge of the spinor field). -/
noncomputable def covariantD (e : ℝ) (A : GaugeField) (ψ : SpinorField) (μ : Fin 4)
(x : Spacetime) : Fin 4 → ℂ :=
partialD μ ψ x + ((Complex.I * (e : ℂ) * (A x μ : ℂ)) • ψ x)
/-- The Dirac current `J^μ = ψ̄ γ^μ ψ`, taken as a real number via its real part.
(Its imaginary part vanishes for any Dirac representation; see
`QED.current_isReal`.) -/
noncomputable def current (γ : Fin 4 → Matrix (Fin 4) (Fin 4) ℂ) (ψ : SpinorField)
(μ : Fin 4) (x : Spacetime) : ℝ :=
(diracPairing γ (γ μ) (ψ x) (ψ x)).re
/-- The QED Lagrangian density
`L = ψ̄ (i γ^μ D_μ - m) ψ - (1/4) F_{μν} F^{μν}`. -/
noncomputable def lagrangian (m e : ℝ) (γ : Fin 4 → Matrix (Fin 4) (Fin 4) ℂ)
(A : GaugeField) (ψ : SpinorField) (x : Spacetime) : ℂ :=
(∑ μ : Fin 4, Complex.I * diracPairing γ (γ μ) (ψ x) (covariantD e A ψ μ x))
- (m : ℂ) * diracPairing γ 1 (ψ x) (ψ x)
- (1 / 4 : ℂ) *
((∑ μ : Fin 4, ∑ ν : Fin 4, fieldStrength A μ ν x * fieldStrengthUp A μ ν x : ℝ) : ℂ)
/-- The Dirac equation `(i γ^μ D_μ - m) ψ = 0` in the external gauge field `A`. -/
def IsDiracSolution (m e : ℝ) (γ : Fin 4 → Matrix (Fin 4) (Fin 4) ℂ)
(A : GaugeField) (ψ : SpinorField) : Prop :=
∀ x : Spacetime,
∑ μ : Fin 4, Complex.I • (γ μ).mulVec (covariantD e A ψ μ x) = (m : ℂ) • ψ x
/-- The Maxwell equation of motion `∂_μ F^{μν} = e J^ν` sourced by the Dirac
current. -/
noncomputable def IsMaxwellSolution (e : ℝ) (γ : Fin 4 → Matrix (Fin 4) (Fin 4) ℂ)
(A : GaugeField) (ψ : SpinorField) : Prop :=
∀ (ν : Fin 4) (x : Spacetime),
(∑ μ : Fin 4, partialD μ (fun y => fieldStrengthUp A μ ν y) x) = e * current γ ψ ν x
/-- The Lorenz gauge condition `∂^μ A_μ = η^{μν} ∂_μ A_ν = 0`. -/
noncomputable def LorenzGauge (A : GaugeField) : Prop :=
∀ x : Spacetime,
(∑ μ : Fin 4, ∑ ν : Fin 4, minkowski μ ν * partialD μ (fun y => A y ν) x) = 0
/-- The gauge transform `A_μ ↦ A_μ + ∂_μ χ` of the four-potential by a real
scalar function `χ`. -/
noncomputable def gaugeShift (χ : Spacetime → ℝ) (A : GaugeField) : GaugeField :=
fun x μ => A x μ + partialD μ χ x
/-- The accompanying phase rotation `ψ ↦ exp (-i e χ) ψ` of the spinor field. -/
noncomputable def gaugePhase (e : ℝ) (χ : Spacetime → ℝ) (ψ : SpinorField) : SpinorField :=
fun x => Complex.exp (-(Complex.I * (e : ℂ) * (χ x : ℂ))) • ψ x
end QED
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent that drafted the statements; not an independent auditor
Provenance note — this read-back is NOT blind and NOT independent. It was written by the same agent that drafted the Lean statement it describes, not by a separate auditor working from the code alone. It is therefore self-testimony rather than independent testimony: any misreading made while drafting is likely to be repeated here, and this text cannot corroborate the faithfulness of the formalization. A reviewer who needs independent confirmation should commission a blind read-back from an auditor who has seen only the Lean code and none of the source material or drafting intent.
This bundle introduces the field-theoretic vocabulary. Everything in it is a definition; no statement is asserted. Throughout, and is the Fréchet derivative of at applied to the -th coordinate direction, which is whenever fails to be differentiable at .
Field types. A gauge field is any map assigning to each point a quadruple of real numbers ; a spinor field is any map assigning to each a quadruple of complex numbers . No regularity is part of either type.
Raised potential. , i.e. and for .
Field tensor. , where denotes the scalar function . With both indices raised, , a double sum over all sixteen index pairs.
Covariant derivative. For a real number , , an element of ; the first term is the componentwise derivative of the -valued map , the second is scalar multiplication of the vector by the purely imaginary number .
Current. , i.e. the real part of . Taking the real part is part of the definition, so is a real number by construction for every family , whether or not the underlying complex number happens to be real.
Lagrangian density. For real ,
a complex number; the last sum is a real number embedded in , and the mass term inserts the identity matrix into the pairing, i.e. it is .
Three conditions on fields, each a proposition indexed by the data, not an assertion that anything satisfies it:
- Dirac equation: for every point , as vectors in , where is matrix-times-vector.
- Maxwell equation: for every index and point , , where inside the derivative is the function and is the real current above.
- Lorenz gauge: for every , .
Gauge transformations. For a real scalar function : the shifted potential is , and the rotated spinor field is , the exponential being the complex exponential of , of modulus because and are real. Both are total operations: if is not differentiable at , the shift adds there.