From c81d6ce2469e29dded111aea78b931a65ab1336b Mon Sep 17 00:00:00 2001 From: jstoobysmith <72603918+jstoobysmith@users.noreply.github.com> Date: Thu, 6 Feb 2025 13:06:51 +0000 Subject: [PATCH] docs: Docs for FieldOpAlgebra --- .../FieldOpAlgebra/Basic.lean | 37 +++++++++++++++---- .../FieldOpAlgebra/Grading.lean | 5 ++- .../FieldOpAlgebra/SuperCommute.lean | 11 +++++- .../FieldOpFreeAlgebra/Grading.lean | 7 ++-- scripts/MetaPrograms/notes.lean | 25 +++++++------ 5 files changed, 60 insertions(+), 25 deletions(-) diff --git a/HepLean/PerturbationTheory/FieldOpAlgebra/Basic.lean b/HepLean/PerturbationTheory/FieldOpAlgebra/Basic.lean index 193e226..7f36022 100644 --- a/HepLean/PerturbationTheory/FieldOpAlgebra/Basic.lean +++ b/HepLean/PerturbationTheory/FieldOpAlgebra/Basic.lean @@ -67,7 +67,11 @@ lemma equiv_iff_exists_add (x y : FieldOpFreeAlgebra ๐“•) : rw [equiv_iff_sub_mem_ideal] simp [ha] -/-- The projection of `FieldOpFreeAlgebra` down to `FieldOpAlgebra` as an algebra map. -/ +/-- For a field specification `๐“•`, the projection + +`๐“•.FieldOpFreeAlgebra โ†’โ‚[โ„‚] FieldOpAlgebra ๐“•` + +taking each element of `๐“•.FieldOpFreeAlgebra` to its equivalence class in `FieldOpAlgebra ๐“•`. -/ def ฮน : FieldOpFreeAlgebra ๐“• โ†’โ‚[โ„‚] FieldOpAlgebra ๐“• where toFun := (TwoSidedIdeal.span ๐“•.fieldOpIdealSet).ringCon.mk' map_one' := by rfl @@ -453,12 +457,14 @@ lemma ฮน_eq_zero_iff_ฮน_bosonicProjF_fermonicProj_zero (x : FieldOpFreeAlgebra -/ -/-- An element of `FieldOpAlgebra` from a `FieldOp`. -/ +/-- For a field specification `๐“•` and an element `ฯ†` of `๐“•.FieldOp`, the element of + `๐“•.FieldOpAlgebra` given by `ฮน (ofFieldOpF ฯ†)`. -/ def ofFieldOp (ฯ† : ๐“•.FieldOp) : ๐“•.FieldOpAlgebra := ฮน (ofFieldOpF ฯ†) lemma ofFieldOp_eq_ฮน_ofFieldOpF (ฯ† : ๐“•.FieldOp) : ofFieldOp ฯ† = ฮน (ofFieldOpF ฯ†) := rfl -/-- An element of `FieldOpAlgebra` from a list of `FieldOp`. -/ +/-- For a field specification `๐“•` and a list `ฯ†s` of `๐“•.FieldOp`, the element of + `๐“•.FieldOpAlgebra` given by `ฮน (ofFieldOpListF ฯ†)`. -/ def ofFieldOpList (ฯ†s : List ๐“•.FieldOp) : ๐“•.FieldOpAlgebra := ฮน (ofFieldOpListF ฯ†s) lemma ofFieldOpList_eq_ฮน_ofFieldOpListF (ฯ†s : List ๐“•.FieldOp) : @@ -481,7 +487,8 @@ lemma ofFieldOpList_singleton (ฯ† : ๐“•.FieldOp) : ofFieldOpList [ฯ†] = ofFieldOp ฯ† := by simp only [ofFieldOpList, ofFieldOp, ofFieldOpListF_singleton] -/-- An element of `FieldOpAlgebra` from a `CrAnFieldOp`. -/ +/-- For a field specification `๐“•` and an element `ฯ†` of `๐“•.CrAnFieldOp`, the element of + `๐“•.FieldOpAlgebra` given by `ฮน (ofCrAnOpF ฯ†)`. -/ def ofCrAnOp (ฯ† : ๐“•.CrAnFieldOp) : ๐“•.FieldOpAlgebra := ฮน (ofCrAnOpF ฯ†) lemma ofCrAnOp_eq_ฮน_ofCrAnOpF (ฯ† : ๐“•.CrAnFieldOp) : @@ -493,7 +500,8 @@ lemma ofFieldOp_eq_sum (ฯ† : ๐“•.FieldOp) : simp only [map_sum] rfl -/-- An element of `FieldOpAlgebra` from a list of `CrAnFieldOp`. -/ +/-- For a field specification `๐“•` and a list `ฯ†s` of `๐“•.CrAnFieldOp`, the element of + `๐“•.FieldOpAlgebra` given by `ฮน (ofCrAnListF ฯ†)`. -/ def ofCrAnList (ฯ†s : List ๐“•.CrAnFieldOp) : ๐“•.FieldOpAlgebra := ฮน (ofCrAnListF ฯ†s) lemma ofCrAnList_eq_ฮน_ofCrAnListF (ฯ†s : List ๐“•.CrAnFieldOp) : @@ -515,7 +523,13 @@ lemma ofFieldOpList_eq_sum (ฯ†s : List ๐“•.FieldOp) : simp only [map_sum] rfl -/-- The annihilation part of a state. -/ +remark notation_drop := "In doc-strings we will often drop explicit applications of `ofCrAnOp`, +`ofCrAnList`, `ofFieldOp`, and `ofFieldOpList`" + +/-- For a field specification `๐“•`, and an element `ฯ†` of `๐“•.FieldOp`, the + annihilation part of `๐“•.FieldOp` as an element of `๐“•.FieldOpAlgebra`. + If `ฯ†` is an incoming asymptotic state this is zero by definition, otherwise + it is of the form `ofCrAnOp _`. -/ def anPart (ฯ† : ๐“•.FieldOp) : ๐“•.FieldOpAlgebra := ฮน (anPartF ฯ†) lemma anPart_eq_ฮน_anPartF (ฯ† : ๐“•.FieldOp) : anPart ฯ† = ฮน (anPartF ฯ†) := rfl @@ -536,7 +550,10 @@ lemma anPart_posAsymp (ฯ† : (ฮฃ f, ๐“•.AsymptoticLabel f) ร— (Fin 3 โ†’ โ„)) : anPart (FieldOp.outAsymp ฯ†) = ofCrAnOp โŸจFieldOp.outAsymp ฯ†, ()โŸฉ := by simp [anPart, ofCrAnOp] -/-- The creation part of a state. -/ +/-- For a field specification `๐“•`, and an element `ฯ†` of `๐“•.FieldOp`, the + creation part of `๐“•.FieldOp` as an element of `๐“•.FieldOpAlgebra`. + If `ฯ†` is an outgoing asymptotic state this is zero by definition, otherwise + it is of the form `ofCrAnOp _`. -/ def crPart (ฯ† : ๐“•.FieldOp) : ๐“•.FieldOpAlgebra := ฮน (crPartF ฯ†) lemma crPart_eq_ฮน_crPartF (ฯ† : ๐“•.FieldOp) : crPart ฯ† = ฮน (crPartF ฯ†) := rfl @@ -557,6 +574,12 @@ lemma crPart_posAsymp (ฯ† : (ฮฃ f, ๐“•.AsymptoticLabel f) ร— (Fin 3 โ†’ โ„)) : crPart (FieldOp.outAsymp ฯ†) = 0 := by simp [crPart] +/-- For field specification `๐“•`, and an element `ฯ†` of `๐“•.FieldOp` the following relation holds: + +`ofFieldOp ฯ† = crPart ฯ† + anPart ฯ†` + +That is, every field operator splits into its creation part plus its annihilation part. +-/ lemma ofFieldOp_eq_crPart_add_anPart (ฯ† : ๐“•.FieldOp) : ofFieldOp ฯ† = crPart ฯ† + anPart ฯ† := by rw [ofFieldOp, crPart, anPart, ofFieldOpF_eq_crPartF_add_anPartF] diff --git a/HepLean/PerturbationTheory/FieldOpAlgebra/Grading.lean b/HepLean/PerturbationTheory/FieldOpAlgebra/Grading.lean index 30ecc74..44d581c 100644 --- a/HepLean/PerturbationTheory/FieldOpAlgebra/Grading.lean +++ b/HepLean/PerturbationTheory/FieldOpAlgebra/Grading.lean @@ -384,8 +384,9 @@ lemma directSum_eq_bosonic_plus_fermionic abel /-- For a field statistic `๐“•`, the algebra `๐“•.FieldOpAlgebra` is graded by `FieldStatistic`. - Those `ofCrAnList ฯ†s` for which `ฯ†s` has `bosonic` statistics span one part of the grading, - whilst those where `ฯ†s` has `fermionic` statistics span the other part of the grading. -/ + Those `ofCrAnList ฯ†s` for which `ฯ†s` has an overall `bosonic` statistic span `bosonic` + submodule, whilst those `ofCrAnList ฯ†s` for which `ฯ†s` has an overall `fermionic` statistic span + the `fermionic` submodule. -/ instance fieldOpAlgebraGrade : GradedAlgebra (A := ๐“•.FieldOpAlgebra) statSubmodule where one_mem := by simp only [statSubmodule] diff --git a/HepLean/PerturbationTheory/FieldOpAlgebra/SuperCommute.lean b/HepLean/PerturbationTheory/FieldOpAlgebra/SuperCommute.lean index a28dae5..f37ea26 100644 --- a/HepLean/PerturbationTheory/FieldOpAlgebra/SuperCommute.lean +++ b/HepLean/PerturbationTheory/FieldOpAlgebra/SuperCommute.lean @@ -88,7 +88,16 @@ lemma superCommuteRight_eq_of_equiv (a1 a2 : ๐“•.FieldOpFreeAlgebra) (h : a1 simp only [add_sub_cancel] simp -/-- The super commutor on the `FieldOpAlgebra`. -/ +/-- For a field specification `๐“•`, `superCommute` is the linear map + `FieldOpAlgebra ๐“• โ†’โ‚—[โ„‚] FieldOpAlgebra ๐“• โ†’โ‚—[โ„‚] FieldOpAlgebra ๐“•` + defined as the decent of `ฮน โˆ˜ superCommuteF` in both arguments. + In particular for `ฯ†s` and `ฯ†s'` lists of `๐“•.CrAnFieldOp` in `FieldOpAlgebra ๐“•` the following + relation holds: + + `superCommute ฯ†s ฯ†s' = ฯ†s * ฯ†s' - ๐“ข(ฯ†s, ฯ†s') โ€ข ฯ†s' * ฯ†s` + + The notation `[a, b]โ‚›` is used for `superCommute a b`. + -/ noncomputable def superCommute : FieldOpAlgebra ๐“• โ†’โ‚—[โ„‚] FieldOpAlgebra ๐“• โ†’โ‚—[โ„‚] FieldOpAlgebra ๐“• where toFun := Quotient.lift superCommuteRight superCommuteRight_eq_of_equiv diff --git a/HepLean/PerturbationTheory/FieldOpFreeAlgebra/Grading.lean b/HepLean/PerturbationTheory/FieldOpFreeAlgebra/Grading.lean index 19e18f1..3c3bb4c 100644 --- a/HepLean/PerturbationTheory/FieldOpFreeAlgebra/Grading.lean +++ b/HepLean/PerturbationTheory/FieldOpFreeAlgebra/Grading.lean @@ -236,9 +236,10 @@ lemma directSum_eq_bosonic_plus_fermionic conv_lhs => rw [hx, hy] abel -/-- For a field statistic `๐“•`, the algebra `๐“•.FieldOpFreeAlgebra` is graded by `FieldStatistic`. - Those `ofCrAnListF ฯ†s` for which `ฯ†s` has `bosonic` statistics span one part of the grading, - whilst those where `ฯ†s` has `fermionic` statistics span the other part of the grading. -/ +/-- For a field specification `๐“•`, the algebra `๐“•.FieldOpFreeAlgebra` is graded by `FieldStatistic`. + Those `ofCrAnListF ฯ†s` for which `ฯ†s` has an overall `bosonic` statistic span `bosonic` + submodule, whilst those `ofCrAnListF ฯ†s` for which `ฯ†s` has an overall `fermionic` statistic span + the `fermionic` submodule. -/ instance fieldOpFreeAlgebraGrade : GradedAlgebra (A := ๐“•.FieldOpFreeAlgebra) statisticSubmodule where one_mem := by diff --git a/scripts/MetaPrograms/notes.lean b/scripts/MetaPrograms/notes.lean index 11fe440..b87f0bb 100644 --- a/scripts/MetaPrograms/notes.lean +++ b/scripts/MetaPrograms/notes.lean @@ -165,18 +165,19 @@ def perturbationTheory : Note where .name ``FieldSpecification.FieldOpFreeAlgebra.superCommuteF .complete, .name ``FieldSpecification.FieldOpFreeAlgebra.superCommuteF_ofCrAnListF_ofCrAnListF_eq_sum .complete, .h2 "Field-operator algebra", - .name ``FieldSpecification.FieldOpAlgebra .incomplete, - .name ``FieldSpecification.FieldOpAlgebra.ฮน .incomplete, - .name ``FieldSpecification.FieldOpAlgebra.universality .incomplete, - .name ``FieldSpecification.FieldOpAlgebra.ofCrAnOp .incomplete, - .name ``FieldSpecification.FieldOpAlgebra.ofCrAnList .incomplete, - .name ``FieldSpecification.FieldOpAlgebra.ofFieldOp .incomplete, - .name ``FieldSpecification.FieldOpAlgebra.ofCrAnList .incomplete, - .name ``FieldSpecification.FieldOpAlgebra.anPart .incomplete, - .name ``FieldSpecification.FieldOpAlgebra.crPart .incomplete, - .name ``FieldSpecification.FieldOpAlgebra.ofFieldOp_eq_crPart_add_anPart .incomplete, - .name ``FieldSpecification.FieldOpAlgebra.fieldOpAlgebraGrade .incomplete, - .name ``FieldSpecification.FieldOpAlgebra.superCommute .incomplete, + .name ``FieldSpecification.FieldOpAlgebra .complete, + .name ``FieldSpecification.FieldOpAlgebra.ฮน .complete, + .name ``FieldSpecification.FieldOpAlgebra.universality .complete, + .name ``FieldSpecification.FieldOpAlgebra.ofCrAnOp .complete, + .name ``FieldSpecification.FieldOpAlgebra.ofCrAnList .complete, + .name ``FieldSpecification.FieldOpAlgebra.ofFieldOp .complete, + .name ``FieldSpecification.FieldOpAlgebra.ofCrAnList .complete, + .name `FieldSpecification.FieldOpAlgebra.notation_drop .complete, + .name ``FieldSpecification.FieldOpAlgebra.anPart .complete, + .name ``FieldSpecification.FieldOpAlgebra.crPart .complete, + .name ``FieldSpecification.FieldOpAlgebra.ofFieldOp_eq_crPart_add_anPart .complete, + .name ``FieldSpecification.FieldOpAlgebra.fieldOpAlgebraGrade .complete, + .name ``FieldSpecification.FieldOpAlgebra.superCommute .complete, .h1 "Time ordering", .name ``FieldSpecification.crAnTimeOrderRel .incomplete, .name ``FieldSpecification.crAnTimeOrderSign .incomplete,