docs: More doc strings

This commit is contained in:
jstoobysmith 2024-11-12 05:49:43 +00:00
parent a00a1020a8
commit c24029c9ca
7 changed files with 47 additions and 0 deletions

View file

@ -199,6 +199,8 @@ namespace complexLorentzTensor
/-- Color for complex Lorentz tensors is decidable. -/
instance : DecidableEq complexLorentzTensor.C := complexLorentzTensor.instDecidableEqColor
/-- Contracting two basis elements gives `1` if the index for the basis elements is the same,
and `0` otherwise. Holds for any color of index. -/
lemma basis_contr (c : complexLorentzTensor.C) (i : Fin (complexLorentzTensor.repDim c))
(j : Fin (complexLorentzTensor.repDim (complexLorentzTensor.τ c))) :
complexLorentzTensor.castToField
@ -213,9 +215,11 @@ lemma basis_contr (c : complexLorentzTensor.C) (i : Fin (complexLorentzTensor.re
| Color.up => Lorentz.contrCoContraction_basis _ _
| Color.down => Lorentz.coContrContraction_basis _ _
/-- For any object in the over color category, with source `Fin n`, has a decidable source. -/
instance {n : } {c : Fin n → complexLorentzTensor.C} :
DecidableEq (OverColor.mk c).left := instDecidableEqFin n
/-- For any object in the over color category, with source `Fin n`, has a finite source. -/
instance {n : } {c : Fin n → complexLorentzTensor.C} :
Fintype (OverColor.mk c).left := Fin.fintype n