AFTD Auto-Formalizing Theoretical Domains

Fermion.Dirac.endEquivMatrix_apply

theoremverifiedformalizationimported Lean

The change of coordinates from the chiral representation to the Dirac representation.

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
lemma Fermion.Dirac.endEquivMatrix_apply (f : Module.End ℂ Dirac) :
    endEquivMatrix f =
      !![1, 0, 1, 0; 0, 1, 0, 1; -1, 0, 1, 0; 0, -1, 0, 1] *
        LinearMap.toMatrix chiralBasis chiralBasis f *
        ((2 : ℂ)⁻¹ • !![1, 0, -1, 0; 0, 1, 0, -1; 1, 0, 1, 0; 0, 1, 0, 1])
Formalizes
Physlib, `Fermion.Dirac.endEquivMatrix_apply`
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
Classical.choiceQuot.soundpropext
Built on 9

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen Matrix inopen MatrixGroups inopen Complex inopen TensorProduct inopen Module in/-- The change of coordinates from the chiral representation to the Dirac representation. -/lemma Fermion.Dirac.endEquivMatrix_apply (f : Module.End ℂ Dirac) :    endEquivMatrix f =      !![1, 0, 1, 0; 0, 1, 0, 1; -1, 0, 1, 0; 0, -1, 0, 1] *        LinearMap.toMatrix chiralBasis chiralBasis f *        ((2 : ℂ)⁻¹ • !![1, 0, -1, 0; 0, 1, 0, -1; 1, 0, 1, 0; 0, 1, 0, 1]) := by  simp only [endEquivMatrix, AlgEquiv.trans_apply, LinearEquiv.conjAlgEquiv_apply,    LinearMap.toMatrixAlgEquiv, AlgEquiv.ofLinearEquiv_apply]  simp only [Matrix.toLinOfInv, LinearEquiv.symm_mk]  simp only [LinearMap.toMatrix_comp chiralBasis chiralBasis chiralBasis,    Matrix.mul_assoc]  apply congrArg₂ (· * ·)  · exact LinearMap.toMatrix_toLin chiralBasis chiralBasis _  · apply congrArg _    exact LinearMap.toMatrix_toLin chiralBasis chiralBasis _
See it in the graphDiscuss this resultChallenge it