Shared-site coefficient context · ChargedSpectrumConnected
DefinitionMarkovScatteringCharged_ChargedSpectrumConnectedmarkov-scattering
Source context from the finite shared-site cubic model and its supporting definitions and checked lemmas.
Definition code
import Definitions.Def_MarkovScatteringCharged_ChargedSpectrumClosure
/-! Connected finite-regulator Wick coefficients. The generated pairing
histories determine the graph on labelled external and cubic insertions.
Connectivity is tested on that graph at the terminal readout. -/
namespace MarkovScattering.ChargedSpectrum.Perturbation
noncomputable section
open Matrix Sites SpeciesTree.Wick
open scoped BigOperators
/-- Each canonical field slot belongs to exactly one insertion. -/
def fieldOwner {e v : ℕ} : Fields e v → Insertions e v
| .inl i => .inl i
| .inr (j,_) => .inr j
def owner (e v : ℕ) (i : Fin (size e v)) : Insertions e v :=
fieldOwner ((Fintype.equivFin (Fields e v)).symm i)
@[simp] theorem owner_slots {e v : ℕ} (j : Insertions e v) (k : Fin (arity j)) :
owner e v (slots j k) = j := by
cases j <;> simp [owner, slots, fieldOwner]
/-- Loops and parallel pairs still contribute their covariance factors.
For connectivity only the underlying simple adjacency is needed. -/
def historyGraph {n : ℕ} {V : Type*} (own : Fin n → V) (t : WickTransfer.Pairing n) :
SimpleGraph V :=
SimpleGraph.fromRel (fun a b => ∃ e ∈ t, a = own e.1 ∧ b = own e.2)
def connectedHistories {n : ℕ} {V : Type*} (own : Fin n → V) (S : WickTransfer.Slots n) :
Finset (WickTransfer.Pairing n) := by
classical
exact (WickTransfer.pairings S).filter (fun t => (historyGraph own t).Connected)
theorem mem_connectedHistories {n : ℕ} {V : Type*} (own : Fin n → V) (S : WickTransfer.Slots n)
(t : WickTransfer.Pairing n) :
t ∈ connectedHistories own S ↔ t ∈ WickTransfer.pairings S ∧ (historyGraph own t).Connected := by
classical
simp [connectedHistories]
/-- A covariance product for one assigned, generated matching history. -/
def historyWeight {n : ℕ} {Y V : Type*} [Fintype V] (d : Data n Y V)
(S : WickTransfer.Slots n) (q : Fin n → Y) (t : WickTransfer.Pairing n) : ℂ :=
(∏ j, d.vertex j (fun k => q (d.slots j k))) *
WickTransfer.weight (fun i => d.odd i (q i)) (fun i j => d.covariance i j (q i) (q j)) S t
/-- The connected coefficient is defined independently of its Markov
evaluation, by restricting the generated matching histories. -/
def connectedContraction {n : ℕ} {Y V : Type*} [Fintype Y] [Fintype V] (d : Data n Y V)
(own : Fin n → V) (S : WickTransfer.Slots n) : ℂ :=
∑ q : Fin n → Y, ∑ t ∈ connectedHistories own S, historyWeight d S q t
/-- The complementary term uses exactly the generated histories with a
disconnected insertion graph. -/
def disconnectedContraction {n : ℕ} {Y V : Type*} [Fintype Y] [Fintype V] (d : Data n Y V)
(own : Fin n → V) (S : WickTransfer.Slots n) : ℂ := by
classical
exact ∑ q : Fin n → Y, ∑ t ∈ (WickTransfer.pairings S).filter
(fun t => ¬(historyGraph own t).Connected), historyWeight d S q t
theorem connected_add_disconnected {n : ℕ} {Y V : Type*} [Fintype Y] [Fintype V]
(d : Data n Y V) (own : Fin n → V) (S : WickTransfer.Slots n) :
connectedContraction d own S + disconnectedContraction d own S = regulatedContraction d S := by
classical
unfold connectedContraction disconnectedContraction regulatedContraction
rw [← Finset.sum_add_distrib]
apply Finset.sum_congr rfl
intro q _
unfold connectedHistories WickTransfer.wick
rw [Finset.mul_sum]
simp only [historyWeight]
exact Finset.sum_filter_add_sum_filter_not _ (fun t => (historyGraph own t).Connected) _
variable {A B : Type*} [Fintype A] [DecidableEq A] [Fintype B] [DecidableEq B]
/-- The coefficient of order v generated by a connected finite Wick sum.
Connectivity includes every labelled external or cubic insertion. -/
def connectedCoefficient (e v : ℕ) (T : Matrix B B ℂ) (P : Matrix A A ℂ) (π : A → ℝ)
(offset scale : ℝ) (source : Fin e → B × A → ℂ) : ℂ :=
(-1:ℂ)^v / ((v.factorial:ℂ)*6^v) *
connectedContraction (model e v T P π offset scale source) (owner e v) Finset.univ
private def siteLift (E : A ≃ A) : (B × A) ≃ (B × A) := (Equiv.refl B).prodCongr E
private theorem inverse_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)⁻¹ x y =
(quadratic T P π offset scale)⁻¹ (siteLift E x) (siteLift E y) := by
have he : quadratic T Q ρ offset scale =
(quadratic T P π offset scale).submatrix (siteLift E) (siteLift E) := by
ext a b
simp [Matrix.submatrix_apply, quadratic, siteLift, hk, hw]
rw [he, Matrix.inv_submatrix_equiv]
rfl
omit [Fintype A] [Fintype B] in
private theorem insertion_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 (siteLift E x)) j a =
vertex π s j (fun k => siteLift E (a k)) := by
cases j with
| inl i => simp [vertex, hw, siteLift]
| inr i => simp only [vertex, Equiv.apply_eq_iff_eq, hw]; rfl
/-- Relabelling physical sites preserves every individual generated history
contribution after the corresponding change of summation coordinates. -/
theorem connectedCoefficient_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 → ℂ) :
connectedCoefficient e v T Q ρ offset scale (fun i x => source i (x.1,E x.2)) =
connectedCoefficient e v T P π offset scale source := by
unfold connectedCoefficient connectedContraction
congr 1
let L : (Fin (size e v) → B × A) ≃ (Fin (size e v) → B × A) :=
Equiv.piCongrRight (fun _ => siteLift E)
apply Fintype.sum_equiv L
intro q
apply Finset.sum_congr rfl
intro t _
have hCov : (fun i j : Fin (size e v) => (quadratic T Q ρ offset scale)⁻¹ (q i) (q j)) =
fun i j => (quadratic T P π offset scale)⁻¹ (siteLift E (q i)) (siteLift E (q j)) := by
funext i j
exact inverse_relabel T E hk hw offset scale _ _
have hVert : (∏ j, vertex ρ (fun i x => source i (siteLift E x)) j (fun k => q (slots j k))) =
∏ j, vertex π source j (fun k => siteLift E (q (slots j k))) :=
Finset.prod_congr rfl fun j _ =>
insertion_relabel E hw source j (fun i => q (slots j i))
exact congrArg₂ (· * ·) hVert
(congrArg (fun C => WickTransfer.weight (fun _ => false) C Finset.univ t) hCov)
end
end MarkovScattering.ChargedSpectrum.Perturbation
Source