AFTD Auto-Formalizing Theoretical Domains

Fermion.Dirac.endEquivMatrix

defimported Lean

Dirac endomorphisms as matrices in the Dirac representation. The change of coordinates from the chiral representation is S = [1, 1; -1, 1], with 2 × 2 blocks, so this map sends f to S [f] S⁻¹. The common normalization factor 1 / √2 cancels in conjugation.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Matrix in
open MatrixGroups in
open Complex in
open TensorProduct in
open Module in
noncomputable def Fermion.Dirac.endEquivMatrix : Module.End ℂ Dirac ≃ₐ[ℂ] Matrix (Fin 4) (Fin 4) ℂ
Defined in
Physlib, `Fermion.Dirac.endEquivMatrix`
Lean proof
By Joseph Tooby-Smith, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2024 Joseph Tooby-Smith. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.
Verified
10 Oct 2026
Axioms
none listed
Built on 8
Used by 1

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Matrix in
open MatrixGroups in
open Complex in
open TensorProduct in
open Module in
/-- Dirac endomorphisms as matrices in the Dirac representation. The change of coordinates from the chiral representation is `S = [1, 1; -1, 1]`, with `2 × 2` blocks, so this map sends `f` to `S [f] S⁻¹`. The common normalization factor `1 / √2` cancels in conjugation. -/
noncomputable def Fermion.Dirac.endEquivMatrix : Module.End ℂ Dirac ≃ₐ[ℂ] Matrix (Fin 4) (Fin 4) ℂ :=
  (LinearEquiv.conjAlgEquiv ℂ
    (Matrix.toLinOfInv chiralBasis chiralBasis
      (M := !![1, 0, 1, 0; 0, 1, 0, 1; -1, 0, 1, 0; 0, -1, 0, 1])
      (M' := (2 : ℂ)⁻¹ • !![1, 0, -1, 0; 0, 1, 0, -1; 1, 0, 1, 0; 0, 1, 0, 1])
      (by ext i j; fin_cases i <;> fin_cases j <;>
          norm_num [Matrix.cons_val_two, Matrix.cons_val_three, Matrix.one_apply])
      (by ext i j; fin_cases i <;> fin_cases j <;>
          norm_num [Matrix.cons_val_two, Matrix.cons_val_three, Matrix.one_apply]))).trans
    (LinearMap.toMatrixAlgEquiv chiralBasis)
See it in the graphDiscuss this resultChallenge it