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.Fermion.Dirac.endEquivMatrix← Fermion.Dirac.endEquivMatrix (Physlib/Relativity/Fermions/Dirac/Basic.lean:117): verbatim
- Verified
- 10 Oct 2026
- Axioms
- none listed
- Built on 8
- Fermion.Dirac.instModuleComplexFermion.Dirac.instModuleComplex
- Fermion.Dirac.dualRight_addFermion.Dirac.dualRight_add
- Fermion.Dirac.dualRight_smulFermion.Dirac.dualRight_smul
- Fermion.Dirac.left_smulFermion.Dirac.left_smul
- Fermion.DiracA Dirac fermion, consisting of a left handed Weyl fermion and a dual right handed Weyl fermion.
- Fermion.Dirac.instAddCommGroupFermion.Dirac.instAddCommGroup
- Fermion.Dirac.left_addFermion.Dirac.left_add
- Fermion.Dirac.chiralBasisThe chiral basis of the Dirac fermions.
- Used by 1
- Fermion.Dirac.endEquivMatrix_applyThe change of coordinates from the chiral representation to the Dirac representation.
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)