yang
This project has not described itself yet.
Brought by drakestapleton
yang / proofs / WilsonConditional.lean
| 1 | -- SPDX-License-Identifier: Apache-2.0 |
| 2 | import PeriodicWilson |
| 3 | import Mathlib.Probability.Kernel.CompProdEqIff |
| 4 | import Mathlib.Probability.Kernel.Disintegration.Unique |
| 5 | |
| 6 | namespace YangMills.PeriodicWilson |
| 7 | open FundamentalSU2 MeasureTheory ProbabilityTheory |
| 8 | open scoped ENNReal ProbabilityTheory |
| 9 | noncomputable section |
| 10 | |
| 11 | variable {l : ℕ+} |
| 12 | |
| 13 | /-- The values of all Wilson links except the one being resampled. -/ |
| 14 | abbrev Background (e : Edge l) := {i : Edge l // i ≠ e} → gaugeGroup.image |
| 15 | |
| 16 | /-- Split a configuration into its unchanged links and the selected link. -/ |
| 17 | def splitLink (e : Edge l) : |
| 18 | Configuration gaugeGroup l ≃ᵐ Background e × gaugeGroup.image := |
| 19 | ((MeasurableEquiv.piEquivPiSubtypeProd (fun _ : Edge l => gaugeGroup.image) (· = e)).trans |
| 20 | ((MeasurableEquiv.piUnique (fun _ : {i : Edge l // i = e} => gaugeGroup.image)).prodCongr |
| 21 | (MeasurableEquiv.refl _))).trans MeasurableEquiv.prodComm |
| 22 | |
| 23 | @[simp] theorem splitLink_apply (e : Edge l) (U : Configuration gaugeGroup l) : |
| 24 | splitLink e U = (fun i => U i.val, U e) := rfl |
| 25 | |
| 26 | theorem fill_update (e : Edge l) (b : Background e) (u v : gaugeGroup.image) : |
| 27 | Function.update ((splitLink e).symm (b,u)) e v = (splitLink e).symm (b,v) := by |
| 28 | apply (splitLink e).injective |
| 29 | rw [MeasurableEquiv.apply_symm_apply, splitLink_apply] |
| 30 | have h := (splitLink e).apply_symm_apply (b,u) |
| 31 | rw [splitLink_apply] at h |
| 32 | apply Prod.ext |
| 33 | · funext i |
| 34 | simpa [Function.update_of_ne i.property] using congrFun (congrArg Prod.fst h) i |
| 35 | · simp |
| 36 | |
| 37 | private abbrev prior (l : ℕ+) := Measure.pi (fun _ : Edge l => su2Haar) |
| 38 | private abbrev backgroundPrior (e : Edge l) := Measure.pi (fun _ : {i : Edge l // i ≠ e} => su2Haar) |
| 39 | |
| 40 | private theorem split_preserving (e : Edge l) : |
| 41 | MeasurePreserving (splitLink e) (prior l) ((backgroundPrior e).prod su2Haar) := by |
| 42 | letI : Fintype {i : Edge l // i = e} := Subtype.fintype _ |
| 43 | exact Measure.measurePreserving_swap.comp |
| 44 | (((measurePreserving_piUnique (fun _ : {i : Edge l // i = e} => su2Haar)).prod |
| 45 | (MeasurePreserving.id _)).comp |
| 46 | (measurePreserving_piEquivPiSubtypeProd (fun _ : Edge l => su2Haar) (· = e))) |
| 47 | |
| 48 | private theorem continuous_energy : Continuous (wilsonEnergy (g := gaugeGroup) (l := l)) := by |
| 49 | unfold wilsonEnergy |
| 50 | apply continuous_finsetSum |
| 51 | intro p _ |
| 52 | have h : Continuous (fun U : Configuration gaugeGroup l => plaquette U p.1 p.2.val.1 p.2.val.2) := by |
| 53 | unfold plaquette |
| 54 | fun_prop |
| 55 | exact continuous_const.sub ((Complex.continuous_re.comp |
| 56 | ((continuous_subtype_val.comp (continuous_subtype_val.comp h)).matrix_trace)).div_const _) |
| 57 | |
| 58 | private def weight (β : ℝ) (U : Configuration gaugeGroup l) := Real.exp (-β * wilsonEnergy U) |
| 59 | |
| 60 | private theorem continuous_weight (β : ℝ) : Continuous (weight (l := l) β) := |
| 61 | Real.continuous_exp.comp (continuous_const.mul continuous_energy) |
| 62 | |
| 63 | private def localZ (β : ℝ) (e : Edge l) (b : Background e) := |
| 64 | ∫ v, weight β ((splitLink e).symm (b,v)) ∂su2Haar |
| 65 | |
| 66 | private theorem measurable_localZ (β : ℝ) (e : Edge l) : Measurable (localZ β e) := |
| 67 | (((continuous_weight β).measurable.comp (splitLink e).symm.measurable).stronglyMeasurable.integral_prod_right' |
| 68 | (ν := su2Haar)).measurable |
| 69 | |
| 70 | private theorem fiber_integrable (β : ℝ) (e : Edge l) (b : Background e) : |
| 71 | Integrable (fun v => weight β ((splitLink e).symm (b,v))) su2Haar := by |
| 72 | have hfill : Continuous (fun v : gaugeGroup.image => (splitLink e).symm (b,v)) := by |
| 73 | have h := continuous_const.update (f := fun _ : gaugeGroup.image => (splitLink e).symm (b,1)) e continuous_id |
| 74 | simpa only [id_eq, fill_update] using h |
| 75 | exact ((continuous_weight β).comp hfill).integrable_of_hasCompactSupport |
| 76 | (HasCompactSupport.of_compactSpace _) |
| 77 | |
| 78 | private theorem localZ_pos (β : ℝ) (e : Edge l) (b : Background e) : 0 < localZ β e b := |
| 79 | integral_exp_pos (fiber_integrable β e b) |
| 80 | |
| 81 | private def linkDensity (β : ℝ) (e : Edge l) (b : Background e) (v : gaugeGroup.image) := |
| 82 | ENNReal.ofReal (weight β ((splitLink e).symm (b,v)) / localZ β e b) |
| 83 | |
| 84 | private theorem measurable_linkDensity (β : ℝ) (e : Edge l) : |
| 85 | Measurable (Function.uncurry (linkDensity β e)) := |
| 86 | (((continuous_weight β).measurable.comp (splitLink e).symm.measurable).div |
| 87 | ((measurable_localZ β e).comp measurable_fst)).ennreal_ofReal |
| 88 | |
| 89 | /-- One-link resampling as a measurable kernel on the other links. -/ |
| 90 | def heatBathKernel (β : ℝ) (e : Edge l) : Kernel (Background e) gaugeGroup.image := |
| 91 | (Kernel.const _ su2Haar).withDensity (linkDensity β e) |
| 92 | |
| 93 | theorem heatBathKernel_apply (β : ℝ) (e : Edge l) (b : Background e) (u : gaugeGroup.image) : |
| 94 | heatBathKernel β e b = heatBath β ((splitLink e).symm (b,u)) e := by |
| 95 | rw [heatBathKernel, Kernel.withDensity_apply _ (measurable_linkDensity β e), Kernel.const_apply] |
| 96 | unfold heatBath Measure.tilted |
| 97 | simp_rw [fill_update] |
| 98 | rfl |
| 99 | |
| 100 | private theorem global_integrable (β : ℝ) : Integrable (weight (l := l) β) (prior l) := |
| 101 | (continuous_weight β).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _) |
| 102 | |
| 103 | private def globalZ (l : ℕ+) (β : ℝ) := ∫ U, weight β U ∂prior l |
| 104 | |
| 105 | private def backgroundDensity (β : ℝ) (e : Edge l) (b : Background e) := |
| 106 | ENNReal.ofReal (localZ β e b / globalZ l β) |
| 107 | |
| 108 | private theorem measurable_backgroundDensity (β : ℝ) (e : Edge l) : |
| 109 | Measurable (backgroundDensity β e) := |
| 110 | ((measurable_localZ β e).div_const _).ennreal_ofReal |
| 111 | |
| 112 | /-- The Wilson law expressed in background and selected-link coordinates. -/ |
| 113 | def splitLaw (β : ℝ) (e : Edge l) := |
| 114 | (wilsonLaw gaugeGroup l β su2Haar).map (splitLink e) |
| 115 | |
| 116 | theorem wilson_probability (l : ℕ+) (β : ℝ) : |
| 117 | IsProbabilityMeasure (wilsonLaw gaugeGroup l β su2Haar) := |
| 118 | isProbabilityMeasure_tilted (global_integrable β) |
| 119 | |
| 120 | instance splitLaw_probability (β : ℝ) (e : Edge l) : IsProbabilityMeasure (splitLaw β e) := by |
| 121 | haveI : IsProbabilityMeasure (wilsonLaw gaugeGroup l β su2Haar) := |
| 122 | wilson_probability l β |
| 123 | exact Measure.isProbabilityMeasure_map (splitLink e).measurable.aemeasurable |
| 124 | |
| 125 | instance heatBathKernel_markov (β : ℝ) (e : Edge l) : IsMarkovKernel (heatBathKernel β e) where |
| 126 | isProbabilityMeasure b := by |
| 127 | rw [heatBathKernel_apply β e b 1] |
| 128 | apply isProbabilityMeasure_tilted |
| 129 | simp_rw [fill_update] |
| 130 | exact fiber_integrable β e b |
| 131 | |
| 132 | private theorem splitLaw_density (β : ℝ) (e : Edge l) : |
| 133 | splitLaw β e = ((backgroundPrior e).prod su2Haar).withDensity |
| 134 | (fun p => ENNReal.ofReal (weight β ((splitLink e).symm p) / globalZ l β)) := by |
| 135 | have hm : Measurable (fun p => ENNReal.ofReal (weight β ((splitLink e).symm p) / globalZ l β)) := |
| 136 | (((continuous_weight β).measurable.comp (splitLink e).symm.measurable).div_const _).ennreal_ofReal |
| 137 | ext s hs |
| 138 | rw [splitLaw, Measure.map_apply (splitLink e).measurable hs, wilsonLaw, |
| 139 | withDensity_apply _ ((splitLink e).measurable hs), withDensity_apply _ hs, |
| 140 | ← (split_preserving e).map_eq, setLIntegral_map hs hm (splitLink e).measurable] |
| 141 | simp only [MeasurableEquiv.symm_apply_apply] |
| 142 | rfl |
| 143 | |
| 144 | /-- Disintegration at a selected link. The marginal is the projection of the actual |
| 145 | finite-volume Wilson law, and the kernel is its normalized Haar resampling law. -/ |
| 146 | theorem wilsonLaw_disintegrates (β : ℝ) (e : Edge l) : |
| 147 | splitLaw β e = (splitLaw β e).fst ⊗ₘ heatBathKernel β e := by |
| 148 | let m := (backgroundPrior e).withDensity (backgroundDensity β e) |
| 149 | letI : IsSFiniteKernel ((Kernel.const (Background e) su2Haar).withDensity (linkDensity β e)) := |
| 150 | inferInstanceAs (IsSFiniteKernel (heatBathKernel β e)) |
| 151 | have hbg : Measurable (fun p : Background e × gaugeGroup.image => backgroundDensity β e p.1) := |
| 152 | (measurable_backgroundDensity β e).comp measurable_fst |
| 153 | have hlink : Measurable (fun p : Background e × gaugeGroup.image => linkDensity β e p.1 p.2) := |
| 154 | measurable_linkDensity β e |
| 155 | have h : splitLaw β e = m ⊗ₘ heatBathKernel β e := by |
| 156 | rw [splitLaw_density, heatBathKernel, Measure.compProd_withDensity (κ := Kernel.const (Background e) su2Haar) (measurable_linkDensity β e), |
| 157 | Measure.compProd_const, prod_withDensity_left (measurable_backgroundDensity β e), |
| 158 | ← withDensity_mul _ hbg hlink] |
| 159 | congr 1 |
| 160 | funext p |
| 161 | change ENNReal.ofReal (_ / _) = ENNReal.ofReal (_ / _) * ENNReal.ofReal (_ / _) |
| 162 | have hp := localZ_pos β e p.1 |
| 163 | have hg : 0 < globalZ l β := integral_exp_pos (global_integrable β) |
| 164 | rw [← ENNReal.ofReal_mul (div_nonneg hp.le hg.le)] |
| 165 | congr 1 |
| 166 | field_simp |
| 167 | have hm : (splitLaw β e).fst = m := by rw [h, Measure.fst_compProd] |
| 168 | rwa [hm] |
| 169 | |
| 170 | instance su2_standardBorel : StandardBorelSpace gaugeGroup.image := by |
| 171 | have hu : IsClosed (Matrix.unitaryGroup (Fin (1+1)) ℂ : Set (Matrix (Fin (1+1)) (Fin (1+1)) ℂ)) := |
| 172 | isClosed_unitary |
| 173 | letI : PolishSpace (Matrix (Fin 2) (Fin 2) ℂ) := inferInstanceAs (PolishSpace (Fin 2 → Fin 2 → ℂ)) |
| 174 | letI : PolishSpace (UnitaryRepresentation gaugeGroup.n) := hu.polishSpace |
| 175 | letI : PolishSpace gaugeGroup.image := gaugeGroup.imageClosed.polishSpace |
| 176 | infer_instance |
| 177 | |
| 178 | /-- The Haar heat bath agrees with the regular conditional distribution, for |
| 179 | almost every background under the Wilson marginal. -/ |
| 180 | theorem heatBath_eq_condKernel (β : ℝ) (e : Edge l) : |
| 181 | ∀ᵐ b ∂(splitLaw β e).fst, heatBath β ((splitLink e).symm (b,1)) e = |
| 182 | (splitLaw β e).condKernel b := by |
| 183 | simpa only [← heatBathKernel_apply β e _ 1] using |
| 184 | (eq_condKernel_of_measure_eq_compProd (heatBathKernel β e) (wilsonLaw_disintegrates β e)) |
| 185 | |
| 186 | /-- For side at least two the conditional law is the zonal Haar tilt at the |
| 187 | actual Wilson staple, including configurations where the staple vanishes. -/ |
| 188 | theorem condKernel_eq_stapleTilt (hl : 1 < l.val) (β : ℝ) (e : Edge l) : |
| 189 | ∀ᵐ b ∂(splitLaw β e).fst, ∃ K : gaugeGroup.image, |
| 190 | (splitLaw β e).condKernel b = su2Haar.tilted (fun v => |
| 191 | fieldStrength β ((splitLink e).symm (b,1)) e * (suMat (v*K) 0 0).re) := by |
| 192 | filter_upwards [heatBath_eq_condKernel β e] with b hb |
| 193 | rw [← hb] |
| 194 | exact heatBath_eq_tilt hl β _ e |
| 195 | |
| 196 | #print axioms heatBathKernel_apply |
| 197 | #print axioms splitLaw_probability |
| 198 | #print axioms heatBathKernel_markov |
| 199 | #print axioms wilsonLaw_disintegrates |
| 200 | #print axioms heatBath_eq_condKernel |
| 201 | #print axioms condKernel_eq_stapleTilt |
| 202 | |
| 203 | end |
| 204 | end YangMills.PeriodicWilson |