Gamma matrices: the Clifford relation , the Dirac representation, and the Feynman slash
DefinitionDiracAlgebra_coreThe algebraic layer of the Dirac equation, in dimensional Minkowski spacetime with the mainly-negative metric .
A quadruple of complex matrices is a family of gamma matrices when it satisfies the defining relation of the Dirac (Clifford) algebra,
where is the identity matrix. The relation does not single out the matrices; the Dirac representation is the standard concrete solution
with the Pauli matrices, and it is recorded here entrywise as four explicit matrices.
For a covector with complex entries the Feynman slash is the matrix . Finally, the matrices of the Hamiltonian form of the Dirac equation are and , both taken in the Dirac representation.
This bundle is the foundation every other statement of the mission is phrased in: the gamma family predicate is the hypothesis of the representation-independent results, and the explicit Dirac representation is what the concrete computations are about.
Formalization Note. Spacetime indices range over Fin 4; the metric is complex-valued so
that it can be multiplied directly with matrix entries; the three Pauli matrices are indexed by
Fin 3, and the spatial gamma index of is obtained from that index by Fin.succ.
import Mathlib
namespace DiracEquation
open Matrix
/-- The Minkowski metric `η^{μν} = diag(1, -1, -1, -1)` in the mainly-negative signature,
with complex entries. -/
def eta (mu nu : Fin 4) : ℂ := if mu = nu then (if mu = 0 then 1 else -1) else 0
/-- `IsGammaFamily g` says that the four `4 × 4` complex matrices `g 0, g 1, g 2, g 3` satisfy
the defining relation of the Dirac algebra, `{γ^μ, γ^ν} = 2 η^{μν} I₄`. -/
def IsGammaFamily (g : Fin 4 → Matrix (Fin 4) (Fin 4) ℂ) : Prop :=
∀ mu nu, g mu * g nu + g nu * g mu = (2 * eta mu nu) • (1 : Matrix (Fin 4) (Fin 4) ℂ)
/-- The Feynman slash `p̸ = γ^μ p_μ` of a covector `p` with respect to a family `g` of gamma
matrices. -/
noncomputable def slash (g : Fin 4 → Matrix (Fin 4) (Fin 4) ℂ) (p : Fin 4 → ℂ) :
Matrix (Fin 4) (Fin 4) ℂ :=
∑ mu, p mu • g mu
/-- The three Pauli matrices `σ₁, σ₂, σ₃` (indexed by `0, 1, 2`). -/
def pauli : Fin 3 → Matrix (Fin 2) (Fin 2) ℂ
| 0 => !![0, 1; 1, 0]
| 1 => !![0, -Complex.I; Complex.I, 0]
| 2 => !![1, 0; 0, -1]
/-- The gamma matrices in the Dirac representation:
`γ⁰ = [[I₂, 0], [0, -I₂]]` and `γⁱ = [[0, σᵢ], [-σᵢ, 0]]`, written out entrywise. -/
def gammaDirac : Fin 4 → Matrix (Fin 4) (Fin 4) ℂ
| 0 => !![1, 0, 0, 0; 0, 1, 0, 0; 0, 0, -1, 0; 0, 0, 0, -1]
| 1 => !![0, 0, 0, 1; 0, 0, 1, 0; 0, -1, 0, 0; -1, 0, 0, 0]
| 2 => !![0, 0, 0, -Complex.I; 0, 0, Complex.I, 0; 0, Complex.I, 0, 0; -Complex.I, 0, 0, 0]
| 3 => !![0, 0, 1, 0; 0, 0, 0, -1; -1, 0, 0, 0; 0, 1, 0, 0]
/-- The Dirac-representation matrix `β = γ⁰` of the Hamiltonian form of the Dirac equation. -/
def betaDirac : Matrix (Fin 4) (Fin 4) ℂ := gammaDirac 0
/-- The Dirac-representation matrices `αⁱ = γ⁰ γⁱ` of the Hamiltonian form of the Dirac
equation (`i = 1, 2, 3`, indexed by `Fin 3` through `Fin.succ`). -/
noncomputable def alphaDirac (i : Fin 3) : Matrix (Fin 4) (Fin 4) ℂ :=
gammaDirac 0 * gammaDirac i.succ
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 seven definitions and asserts nothing; no statement here claims that the explicit matrices satisfy any of the stated relations.
The metric. is a complex number defined for indices : it is when , it is when , and it is when . Thus .
The gamma-family predicate. For a function assigning to each index a complex matrix , the predicate holds exactly when, for all pairs of indices (including ),
the products being matrix products and the right-hand side the scalar multiple of the identity matrix. There is no hermiticity, invertibility or irreducibility requirement, and nothing asserts that such a exists.
The slash. For such a and for an arbitrary function assigning a complex number to each index, the slash is the matrix . The entries of are unconstrained: they need not be real, and no mass-shell or reality condition is imposed.
The Pauli matrices. Three complex matrices indexed by , given entrywise as
so the index carries , the index carries and the index carries . These matrices are not used by any other definition in the bundle; the gamma matrices below are written out entrywise rather than assembled from them.
The four explicit matrices. A function assigning to each index the following complex matrices (rows and columns indexed ):
The Hamiltonian-form matrices. is defined to be exactly the matrix above. For each , is defined to be the matrix product , i.e. the index gives , the index gives and the index gives . The order of the product is on the left.