Skip to content

Commit

Permalink
Merge pull request #265 from HEPLean/NotesEdit
Browse files Browse the repository at this point in the history
feat: Add contract in field algebra
  • Loading branch information
jstoobysmith authored Dec 10, 2024
2 parents c91ca06 + 018df70 commit 86921c0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions HepLean/PerturbationTheory/Wick/Algebra.lean
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,6 @@ def normalOrder (q : index S → Fin 2) : S.ConstDestAlgebra →ₗ[ℂ] S.Const
def contract (q : index S → Fin 2) : S.ConstDestAlgebra →ₗ[ℂ] S.ConstDestAlgebra :=
timeOrder q - normalOrder q

informal_lemma timeOrder_comm_normalOrder where
math :≈ "time ordering and normal ordering commute."
deps :≈ [``timeOrder, ``normalOrder]

end

end ConstDestAlgebra
Expand Down Expand Up @@ -644,6 +640,11 @@ lemma timeOrder_comm_toConstDestAlgebra (q : index S → Fin 2) :
· simp only [mul_eq_mul_right_iff]
exact Or.inl (listToConstDestList_koszulSign q l f)

/-- The contraction of fields defined as the time order minus normal order once mapped down
to constructive and destructive fields. -/
noncomputable def contract (q : index S → Fin 2) : FieldAlgebra S →ₗ[ℂ] ConstDestAlgebra S :=
ConstDestAlgebra.contract (fun i => q i.2) ∘ₗ toConstDestAlgebra.toLinearMap

end FieldAlgebra

end Species
Expand Down

0 comments on commit 86921c0

Please sign in to comment.