Shared-site coefficient context · ChargedSpectrumPerturbation
DefinitionMarkovScatteringCharged_ChargedSpectrumPerturbationmarkov-scattering
Source context from the finite shared-site cubic model and its supporting definitions and checked lemmas.
Definition code
import Definitions.Def_MarkovScatteringCharged_ChargedSpectrumRigidity
import Definitions.Def_MarkovScatteringCharged_SpeciesTreeWick
/-! Finite spacetime regulator for the shared-site scalar model. An order
and a number of external insertions specify the slots. The pairing process
then generates every contraction; no list of diagrams is an input. -/
namespace MarkovScattering.ChargedSpectrum.Perturbation
noncomputable section
open Matrix Sites SpeciesTree.Wick
variable {A B : Type*} [Fintype A] [DecidableEq A] [Fintype B] [DecidableEq B]
/-- The quadratic action matrix includes the site measure. Its inverse is
the covariance of the formal Gaussian expansion. T is the common external
spacetime regulator. A comparison as a Gaussian covariance requires an
invertible quadratic operator. -/
def quadratic (T : Matrix B B ℂ) (P : Matrix A A ℂ) (π : A → ℝ) (offset scale : ℝ) :
Matrix (B × A) (B × A) ℂ := fun u v =>
(π u.2 : ℂ) * ((if u.2 = v.2 then T u.1 v.1 else 0) -
(if u.1 = v.1 then (if u.2 = v.2 then ((offset+scale : ℝ) : ℂ) else 0) -
(scale : ℂ)*P u.2 v.2 else 0))
abbrev Insertions (e v : ℕ) := Fin e ⊕ Fin v
abbrev Fields (e v : ℕ) := Fin e ⊕ (Fin v × Fin 3)
abbrev size (e v : ℕ) := Fintype.card (Fields e v)
def arity {e v : ℕ} : Insertions e v → ℕ
| .inl _ => 1
| .inr _ => 3
def slots {e v : ℕ} : (j : Insertions e v) → Fin (arity j) → Fin (size e v)
| .inl i, _ => Fintype.equivFin (Fields e v) (.inl i)
| .inr i, k => Fintype.equivFin (Fields e v) (.inr (i,k))
def vertex {e v : ℕ} (π : A → ℝ) (source : Fin e → B × A → ℂ) :
(j : Insertions e v) → (Fin (arity j) → B × A) → ℂ
| .inl i, a => (π (a (0 : Fin 1)).2 : ℂ) * source i (a (0 : Fin 1))
| .inr _, a => if a (0 : Fin 3) = a (1 : Fin 3) ∧ a (1 : Fin 3) = a (2 : Fin 3)
then (π (a (0 : Fin 3)).2 : ℂ) else 0
def model (e v : ℕ) (T : Matrix B B ℂ) (P : Matrix A A ℂ) (π : A → ℝ)
(offset scale : ℝ) (source : Fin e → B × A → ℂ) :
Data (size e v) (B × A) (Insertions e v) where
valence := arity
slots := slots
vertex := vertex π source
odd _ _ := false
covariance _ _ x y := ((quadratic T P π offset scale : Matrix (B × A) (B × A) ℂ)⁻¹) x y
private theorem endpoints_length {n : ℕ} (l : WickTransfer.Pairing n) :
(WickTransfer.endpoints l).length = 2*l.length := by
induction l with
| nil => rfl
| cons p l h => cases p; simp [WickTransfer.endpoints,h]; omega
private theorem odd_wick {n : ℕ} (odd : Fin n → Bool) (C : Fin n → Fin n → ℂ)
(S : WickTransfer.Slots n) (h : S.card % 2 ≠ 0) : WickTransfer.wick odd C S = 0 := by
have empty : WickTransfer.pairings S = ∅ := by
apply Finset.eq_empty_iff_forall_notMem.mpr
intro l hl
obtain ⟨hn,hS⟩ := WickTransfer.pairing_covers _ _ hl
have hh : S.card = 2*l.length := by
rw [← hS,List.toFinset_card_of_nodup hn,endpoints_length]
omega
simp [WickTransfer.wick,empty]
/-- Coefficient multiplying the v-th power of the coupling when expanding
exp(−g V/3!). All insertions are labelled and all vacuum/disconnected
contractions are retained. -/
def coefficient (e v : ℕ) (T : Matrix B B ℂ) (P : Matrix A A ℂ) (π : A → ℝ)
(offset scale : ℝ) (source : Fin e → B × A → ℂ) : ℂ :=
let n := size e v
let d := model e v T P π offset scale source
(-1:ℂ)^v / ((v.factorial:ℂ)*6^v) *
if n % 2 = 0 then observe d (n/2) Finset.univ else 0
theorem coefficient_eq_all_pairings (e v : ℕ) (T : Matrix B B ℂ) (P : Matrix A A ℂ) (π : A → ℝ)
(offset scale : ℝ) (source : Fin e → B × A → ℂ) :
coefficient e v T P π offset scale source =
(-1:ℂ)^v / ((v.factorial:ℂ)*6^v) *
regulatedContraction (model e v T P π offset scale source) Finset.univ := by
dsimp only [coefficient]
split_ifs with even
· rw [observe_eq_regulatedContraction]
simp only [Finset.card_univ,Fintype.card_fin]
omega
· have h : (Finset.univ : WickTransfer.Slots (size e v)).card % 2 ≠ 0 := by simpa using even
simp [regulatedContraction,odd_wick _ _ _ h]
private def liftSite (e : A ≃ A) : (B × A) ≃ (B × A) := (Equiv.refl B).prodCongr e
private theorem covariance_relabel (T : Matrix B B ℂ) {P Q : Matrix A A ℂ} {π ρ : A → ℝ}
(e : A ≃ A) (hk : ∀ x y, Q x y = P (e x) (e y)) (hw : ∀ x, ρ x = π (e x)) (offset scale : ℝ)
(x y : B × A) :
(quadratic T Q ρ offset scale : Matrix _ _ ℂ)⁻¹ x y =
(quadratic T P π offset scale : Matrix _ _ ℂ)⁻¹ (liftSite e x) (liftSite e y) := by
have he : (quadratic T Q ρ offset scale : Matrix _ _ ℂ) =
(quadratic T P π offset scale : Matrix _ _ ℂ).submatrix (liftSite e) (liftSite e) := by
ext a b
simp [Matrix.submatrix_apply,quadratic,liftSite,hk,hw]
rw [he,Matrix.inv_submatrix_equiv]
rfl
omit [Fintype A] [Fintype B] in
private theorem vertex_relabel {e v : ℕ} {π ρ : A → ℝ} (E : A ≃ A)
(hw : ∀ x, ρ x = π (E x)) (s : Fin e → B × A → ℂ) (j : Insertions e v) (a : Fin (arity j) → B × A) :
vertex ρ (fun i x => s i (liftSite E x)) j a = vertex π s j (fun k => liftSite E (a k)) := by
cases j with
| inl i => simp [vertex,hw,liftSite]
| inr i => simp only [vertex,Equiv.apply_eq_iff_eq,hw]; rfl
set_option maxHeartbeats 1200000 in
/-- Relabelling the hidden sites leaves every finite-order coefficient
unchanged with correspondingly transported external preparations. -/
theorem all_orders_relabel (e v : ℕ) (T : Matrix B B ℂ) {P Q : Matrix A A ℂ} {π ρ : A → ℝ}
(E : A ≃ A) (hk : ∀ x y, Q x y = P (E x) (E y)) (hw : ∀ x, ρ x = π (E x)) (offset scale : ℝ)
(source : Fin e → B × A → ℂ) :
coefficient e v T Q ρ offset scale (fun i x => source i (x.1,E x.2)) =
coefficient e v T P π offset scale source := by
rw [coefficient_eq_all_pairings,coefficient_eq_all_pairings]
apply congrArg (fun w : ℂ => (-1:ℂ)^v / ((v.factorial:ℂ)*6^v) * w)
unfold regulatedContraction
let L : (Fin (size e v) → B × A) ≃ (Fin (size e v) → B × A) :=
Equiv.piCongrRight (fun _ => liftSite E)
apply Fintype.sum_equiv L
intro q
have hv (j : Insertions e v) := vertex_relabel E hw source j (fun i => q (slots j i))
have hc : (fun i j : Fin (size e v) => (quadratic T Q ρ offset scale : Matrix _ _ ℂ)⁻¹ (q i) (q j)) =
fun i j => (quadratic T P π offset scale : Matrix _ _ ℂ)⁻¹ (liftSite E (q i)) (liftSite E (q j)) := by
funext i j
exact covariance_relabel T E hk hw offset scale _ _
have product : (∏ j, vertex ρ (fun i x => source i (liftSite E x)) j (fun k => q (slots j k))) =
∏ j, vertex π source j (fun k => liftSite E (q (slots j k))) :=
Finset.prod_congr rfl fun j _ => hv j
exact congrArg₂ (· * ·) product (congrArg (fun C => WickTransfer.wick (fun _ => false) C Finset.univ) hc)
end
end MarkovScattering.ChargedSpectrum.Perturbation
Source