docs: More doc strings
This commit is contained in:
parent
a00a1020a8
commit
c24029c9ca
7 changed files with 47 additions and 0 deletions
|
@ -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 _
|
||||
|
|
|
@ -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 _
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue