Skip to content

Commit

Permalink
feat: Add informal_defns
Browse files Browse the repository at this point in the history
  • Loading branch information
jstoobysmith committed Nov 29, 2024
1 parent 0c7b2e1 commit 8899701
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions HepLean/FeynmanDiagrams/Wick/Contract.lean
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,11 @@ def unbound {ni : ℕ} {i : Fin ni → 𝓔} {n : ℕ} {c : Fin n → 𝓔}
· exact List.Sorted.get_strictMono w.unboundList_sorted
· exact fun ⦃a b⦄ a => a

informal_definition HasEqualTimeContractions where
math :≈ "The condition for a Wick contraction to have two fields contracted
which are of equal time, i.e. come from the same vertex."
deps :≈ [``WickContract]

end WickContract

end TwoComplexScalar
9 changes: 7 additions & 2 deletions HepLean/FeynmanDiagrams/Wick/String.lean
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def size {ni : ℕ} {i : Fin ni → 𝓔} {n : ℕ} {c : Fin n → 𝓔} {no :
| outgoing w e => size w + 1
| endOutgoing w => size w + 1

/-- The number of vertices in a Wick string. -/
/-- The number of vertices in a Wick string. This does NOT include external vertices. -/
def numVertex {ni : ℕ} {i : Fin ni → 𝓔} {n : ℕ} {c : Fin n → 𝓔} {no : ℕ} {o : Fin no → 𝓔}
{f : WickStringLast} : WickString i c o f → ℕ := fun
| empty => 0
Expand All @@ -143,7 +143,7 @@ def numVertex {ni : ℕ} {i : Fin ni → 𝓔} {n : ℕ} {c : Fin n → 𝓔} {n
| outgoing w e => numVertex w
| endOutgoing w => numVertex w

/-- The vertices present in a Wick string. -/
/-- The vertices present in a Wick string. This does NOT include external vertices. -/
def vertices {ni : ℕ} {i : Fin ni → 𝓔} {n : ℕ} {c : Fin n → 𝓔} {no : ℕ} {o : Fin no → 𝓔}
{f : WickStringLast} : (w : WickString i c o f) → Fin w.numVertex → 𝓥 := fun
| empty => Fin.elim0
Expand All @@ -154,6 +154,11 @@ def vertices {ni : ℕ} {i : Fin ni → 𝓔} {n : ℕ} {c : Fin n → 𝓔} {no
| outgoing w e => vertices w
| endOutgoing w => vertices w

informal_definition fieldToVertex where
math :≈ "A function which takes a field and returns the vertex it is associated with.
This is a map from `Fin n` to `Fin w.numVertex`"
deps :≈ [``WickString]

informal_definition exponentialPrefactor where
math :≈ "The combinatorical prefactor from the expansion of the
exponential associated with a Wick string."
Expand Down

0 comments on commit 8899701

Please sign in to comment.