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

@ -32,15 +32,19 @@ def complexScalarFeynmanRules : PreFeynmanRule where
| 1 => Over.mk ![1]
| 2 => Over.mk ![0, 0, 1, 1]
/-- An instance allowing us to use integers for edge labels for complex scalar theory. -/
instance (a : ) : OfNat complexScalarFeynmanRules.EdgeLabel a where
ofNat := (a : Fin _)
/-- An instance allowing us to use integers for half-edge labels for complex scalar theory. -/
instance (a : ) : OfNat complexScalarFeynmanRules.HalfEdgeLabel a where
ofNat := (a : Fin _)
/-- An instance allowing us to use integers for vertex labels for complex scalar theory. -/
instance (a : ) : OfNat complexScalarFeynmanRules.VertexLabel a where
ofNat := (a : Fin _)
/-- The pre feynman rules for complex scalars are finite. -/
instance : IsFinitePreFeynmanRule complexScalarFeynmanRules where
edgeLabelDecidable := instDecidableEqFin _
vertexLabelDecidable := instDecidableEqFin _

View file

@ -34,15 +34,19 @@ def phi4PreFeynmanRules : PreFeynmanRule where
| 0 => Over.mk ![0]
| 1 => Over.mk ![0, 0, 0, 0]
/-- An instance allowing us to use integers for edge labels for Phi-4. -/
instance (a : ) : OfNat phi4PreFeynmanRules.EdgeLabel a where
ofNat := (a : Fin _)
/-- An instance allowing us to use integers for half edge labels for Phi-4. -/
instance (a : ) : OfNat phi4PreFeynmanRules.HalfEdgeLabel a where
ofNat := (a : Fin _)
/-- An instance allowing us to use integers for vertex labels for Phi-4. -/
instance (a : ) : OfNat phi4PreFeynmanRules.VertexLabel a where
ofNat := (a : Fin _)
/-- The pre feynman rules for Phi-4 are finite. -/
instance : IsFinitePreFeynmanRule phi4PreFeynmanRules where
edgeLabelDecidable := instDecidableEqFin _
vertexLabelDecidable := instDecidableEqFin _