refactor: Lint
This commit is contained in:
parent
f555bc6722
commit
31422a5e1d
2 changed files with 5 additions and 4 deletions
|
@ -25,7 +25,9 @@ open Matrix
|
|||
open MatrixGroups
|
||||
open Complex
|
||||
|
||||
/-- The module for contravariant (up-index) complex Lorentz vectors. -/
|
||||
structure ContrℂModule where
|
||||
/-- The underlying value as a vector `Fin 1 ⊕ Fin 3 → ℂ`. -/
|
||||
val : Fin 1 ⊕ Fin 3 → ℂ
|
||||
|
||||
namespace ContrℂModule
|
||||
|
@ -87,7 +89,9 @@ def SL2CRep : Representation ℂ SL(2, ℂ) ContrℂModule :=
|
|||
|
||||
end ContrℂModule
|
||||
|
||||
/-- The module for covariant (up-index) complex Lorentz vectors. -/
|
||||
structure CoℂModule where
|
||||
/-- The underlying value as a vector `Fin 1 ⊕ Fin 3 → ℂ`. -/
|
||||
val : Fin 1 ⊕ Fin 3 → ℂ
|
||||
|
||||
namespace CoℂModule
|
||||
|
|
|
@ -50,12 +50,10 @@ lemma toEquiv_symm_apply (m : f ⟶ g) (i : g.left) :
|
|||
f.hom ((toEquiv m).symm i) = g.hom i := by
|
||||
simpa [toEquiv, types_comp] using congrFun m.inv.w i
|
||||
|
||||
lemma toEquiv_comp_hom (m : f ⟶ g) : g.hom ∘ (toEquiv m) = f.hom := by
|
||||
lemma toEquiv_comp_hom (m : f ⟶ g) : g.hom ∘ (toEquiv m) = f.hom := by
|
||||
ext x
|
||||
simpa [types_comp, toEquiv] using congrFun m.hom.w x
|
||||
|
||||
|
||||
|
||||
end Hom
|
||||
|
||||
instance (C : Type) : MonoidalCategoryStruct (OverColor C) where
|
||||
|
@ -284,6 +282,5 @@ def colorFun : OverColor Color ⥤ Rep ℂ SL(2, ℂ) where
|
|||
Equiv.cast_apply, cast_cast, cast_inj]
|
||||
rfl
|
||||
|
||||
|
||||
end
|
||||
end Fermion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue