yang
This project has not described itself yet.
Brought by drakestapleton
yang / proofs / WilsonReplicaShells.lean
| 1 | -- SPDX-License-Identifier: Apache-2.0 |
| 2 | import WilsonReplicaExchange |
| 3 | |
| 4 | namespace YangMills.PeriodicWilson |
| 5 | open FundamentalSU2 MeasureTheory Real |
| 6 | noncomputable section |
| 7 | |
| 8 | def faceEdges {l : ℕ+} (p : Face l) : Finset (Edge l) := |
| 9 | {(corners p).1,(corners p).2.1,(corners p).2.2.1,(corners p).2.2.2} |
| 10 | |
| 11 | def uniformOnFace {l : ℕ+} (m : Edge l → Bool) (p : Face l) : Prop := |
| 12 | ∃ b : Bool, ∀ e ∈ faceEdges p, m e = b |
| 13 | |
| 14 | def faceScore {l : ℕ+} (p : Face l) (z : WilsonReplicas l) := |
| 15 | wilsonPlaquetteTrace p z.1 + wilsonPlaquetteTrace p z.2 |
| 16 | |
| 17 | theorem trace_agrees {l : ℕ+} (p : Face l) (U V : WilsonConfig l) |
| 18 | (h : ∀ e ∈ faceEdges p, U e = V e) : wilsonPlaquetteTrace p U = wilsonPlaquetteTrace p V := by |
| 19 | apply congrArg (fun u : gaugeGroup.image => (suMat u).trace.re / 2) |
| 20 | change U (corners p).1 * (U (corners p).2.1 * ((U (corners p).2.2.1)⁻¹ * (U (corners p).2.2.2)⁻¹)) = |
| 21 | V (corners p).1 * (V (corners p).2.1 * ((V (corners p).2.2.1)⁻¹ * (V (corners p).2.2.2)⁻¹)) |
| 22 | rw [h _ (by simp [faceEdges]),h _ (by simp [faceEdges]),h _ (by simp [faceEdges]),h _ (by simp [faceEdges])] |
| 23 | |
| 24 | private theorem uniform_score {l : ℕ+} (m : Edge l → Bool) (p : Face l) (h : uniformOnFace m p) (z : WilsonReplicas l) : |
| 25 | faceScore p (exchangeLinks m z) = faceScore p z := by |
| 26 | obtain ⟨b,hb⟩ := h |
| 27 | cases b |
| 28 | · exact congrArg₂ (·+·) (trace_agrees p _ z.1 fun e he => by simp [exchangeLinks,hb e he]) |
| 29 | (trace_agrees p _ z.2 fun e he => by simp [exchangeLinks,hb e he]) |
| 30 | · exact (congrArg₂ (·+·) (trace_agrees p _ z.2 fun e he => by simp [exchangeLinks,hb e he]) |
| 31 | (trace_agrees p _ z.1 fun e he => by simp [exchangeLinks,hb e he])).trans (add_comm ..) |
| 32 | |
| 33 | private theorem energy_sum {l : ℕ+} (U : WilsonConfig l) : wilsonEnergy U = ∑ p : Face l, (1-wilsonPlaquetteTrace p U) := rfl |
| 34 | |
| 35 | /-- The complete exchange field is a signed sum of plaquette defects. |
| 36 | A face contributes zero whenever all four links receive the same swap. -/ |
| 37 | theorem exchangeField_eq_sum {l : ℕ+} (β : ℝ) (m : Edge l → Bool) (z : WilsonReplicas l) : |
| 38 | exchangeField β m z = (β/2) * ∑ p : Face l, (faceScore p z - faceScore p (exchangeLinks m z)) := by |
| 39 | change (-β*(wilsonEnergy z.1 + wilsonEnergy z.2) - |
| 40 | -β*(wilsonEnergy (exchangeLinks m z).1 + wilsonEnergy (exchangeLinks m z).2))/2 = _ |
| 41 | simp only [energy_sum,faceScore,Finset.sum_sub_distrib,Finset.sum_add_distrib]; ring |
| 42 | |
| 43 | theorem exchangeField_stable {l : ℕ+} (β : ℝ) (m n : Edge l → Bool) |
| 44 | (hd : ∀ p : Face l, uniformOnFace m p ∨ uniformOnFace n p) (z : WilsonReplicas l) : |
| 45 | exchangeField β m (exchangeLinks n z) = exchangeField β m z := by |
| 46 | rw [exchangeField_eq_sum, exchangeField_eq_sum] |
| 47 | congr 1 |
| 48 | apply Finset.sum_congr rfl |
| 49 | intro p _ |
| 50 | rcases hd p with h | h |
| 51 | · simp only [uniform_score m p h, sub_self] |
| 52 | · rw [exchangeLinks_commute m n,uniform_score n p h,uniform_score n p h] |
| 53 | |
| 54 | theorem shell_identity_of_exchange {l : ℕ+} (β : ℝ) (ν : Measure (WilsonReplicas l)) |
| 55 | (exchange : ∀ m {H : WilsonReplicas l → ℝ}, Continuous H → (∀ z, H (exchangeLinks m z) = -H z) → |
| 56 | (∫ z, H z ∂ν) = ∫ z, H z * tanh (exchangeField β m z) ∂ν) {ι : Type*} [DecidableEq ι] (s : Finset ι) |
| 57 | (m : ι → Edge l → Bool) {D : WilsonReplicas l → ℝ} (hc : Continuous D) |
| 58 | (ha : ∀ i ∈ s, ∀ z, D (exchangeLinks (m i) z) = -D z) |
| 59 | (hd : ∀ i ∈ s, ∀ j ∈ s, i ≠ j → ∀ p : Face l, uniformOnFace (m i) p ∨ uniformOnFace (m j) p) : |
| 60 | (∫ z, D z ∂ν) = ∫ z, D z * ∏ i ∈ s, tanh (exchangeField β (m i) z) ∂ν := by |
| 61 | induction s using Finset.induction_on with |
| 62 | | empty => simp |
| 63 | | @insert i s hi ih => |
| 64 | let H := fun z => D z * ∏ j ∈ s, tanh (exchangeField β (m j) z) |
| 65 | have cH : Continuous H := hc.mul (continuous_finsetProd _ fun j _ => replica_tanh_continuous.comp (exchangeField_cont β (m j))) |
| 66 | have hH (z : WilsonReplicas l) : H (exchangeLinks (m i) z) = -H z := by |
| 67 | have hprod : ∀ j ∈ s, exchangeField β (m j) (exchangeLinks (m i) z) = exchangeField β (m j) z := by |
| 68 | intro j hj |
| 69 | exact exchangeField_stable β _ _ (hd j (Finset.mem_insert_of_mem hj) i (Finset.mem_insert_self ..) |
| 70 | (fun eq => hi (eq ▸ hj))) z |
| 71 | simp only [H,ha i (Finset.mem_insert_self ..) z,neg_mul] |
| 72 | rw [Finset.prod_congr rfl fun j hj => congrArg tanh (hprod j hj)] |
| 73 | rw [ih (fun j hj => ha j (Finset.mem_insert_of_mem hj)) |
| 74 | (fun j hj k hk => hd j (Finset.mem_insert_of_mem hj) k (Finset.mem_insert_of_mem hk))] |
| 75 | change (∫ z, H z ∂ν) = _ |
| 76 | rw [exchange (m i) cH hH] |
| 77 | apply integral_congr_ae |
| 78 | exact .of_forall fun z => by simp [H,Finset.prod_insert hi]; ring |
| 79 | |
| 80 | /-- Exact multi-shell identity for the full Wilson measure, at any coupling. |
| 81 | Different exchange surfaces may share links; no plaquette may be split |
| 82 | by both. The signed factors retain the actual neighboring configurations. -/ |
| 83 | theorem replica_shell_identity {l : ℕ+} (β : ℝ) {ι : Type*} [DecidableEq ι] (s : Finset ι) |
| 84 | (m : ι → Edge l → Bool) {D : WilsonReplicas l → ℝ} (hc : Continuous D) |
| 85 | (ha : ∀ i ∈ s, ∀ z, D (exchangeLinks (m i) z) = -D z) |
| 86 | (hd : ∀ i ∈ s, ∀ j ∈ s, i ≠ j → ∀ p : Face l, uniformOnFace (m i) p ∨ uniformOnFace (m j) p) : |
| 87 | (∫ z, D z ∂replicaLaw l β) = ∫ z, D z * ∏ i ∈ s, tanh (exchangeField β (m i) z) ∂replicaLaw l β := |
| 88 | shell_identity_of_exchange β _ (replica_exchange_identity β) s m hc ha hd |
| 89 | |
| 90 | theorem replica_covariance_bound_of_integral {l : ℕ+} (β : ℝ) (ν : Measure (WilsonReplicas l)) [IsFiniteMeasure ν] {ι : Type*} [DecidableEq ι] (s : Finset ι) |
| 91 | (m : ι → Edge l → Bool) {F G : WilsonConfig l → ℝ} (hF : Continuous F) (hG : Continuous G) |
| 92 | (hbF : ∀ U, |F U| ≤ 1) (hbG : ∀ U, |G U| ≤ 1) |
| 93 | (eq : 2*wilsonCovariance β F G = ∫ z, replicaDifference F G z * |
| 94 | ∏ i ∈ s, tanh (exchangeField β (m i) z) ∂ν) : |
| 95 | |wilsonCovariance β F G| ≤ 2 * ∫ z, ∏ i ∈ s, |tanh (exchangeField β (m i) z)| ∂ν := by |
| 96 | let Q := fun z : WilsonReplicas l => ∏ i ∈ s, tanh (exchangeField β (m i) z) |
| 97 | have cQ : Continuous Q := continuous_finsetProd _ fun i _ => replica_tanh_continuous.comp (exchangeField_cont β (m i)) |
| 98 | have cD : Continuous (replicaDifference F G) := ((hF.comp continuous_fst).sub (hF.comp continuous_snd)).mul |
| 99 | ((hG.comp continuous_fst).sub (hG.comp continuous_snd)) |
| 100 | have hD (z : WilsonReplicas l) : |replicaDifference F G z| ≤ 4 := by |
| 101 | have cap (f : WilsonConfig l → ℝ) (hf : ∀ U, |f U| ≤ 1) : |f z.1-f z.2| ≤ 2 := by |
| 102 | apply (abs_sub _ _).trans |
| 103 | linarith [hf z.1,hf z.2] |
| 104 | rw [replicaDifference,abs_mul] |
| 105 | exact (mul_le_mul (cap F hbF) (cap G hbG) (abs_nonneg _) (by norm_num)).trans_eq (by norm_num) |
| 106 | have hi {f : WilsonReplicas l → ℝ} (hf : Continuous f) : Integrable f ν := |
| 107 | hf.integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _) |
| 108 | have H : |2*wilsonCovariance β F G| ≤ 4 * ∫ z, |Q z| ∂ν := by |
| 109 | rw [eq, ← integral_const_mul] |
| 110 | apply abs_integral_le_integral_abs.trans |
| 111 | exact integral_mono (hi (cD.mul cQ).abs) (hi (continuous_const.mul cQ.abs)) fun z => |
| 112 | (abs_mul ..).le.trans (mul_le_mul_of_nonneg_right (hD z) (abs_nonneg _)) |
| 113 | simp only [abs_mul,abs_of_nonneg (by norm_num : (0:ℝ) ≤ 2),Q,Finset.abs_prod] at H |
| 114 | linarith |
| 115 | |
| 116 | /-- An operational correlation bound. The right side is a single equilibrium |
| 117 | expectation of measured exchange fields, with all correlations between shells retained. -/ |
| 118 | theorem replica_covariance_bound {l : ℕ+} (β : ℝ) {ι : Type*} [DecidableEq ι] (s : Finset ι) |
| 119 | (m : ι → Edge l → Bool) {F G : WilsonConfig l → ℝ} (hF : Continuous F) (hG : Continuous G) |
| 120 | (hbF : ∀ U, |F U| ≤ 1) (hbG : ∀ U, |G U| ≤ 1) |
| 121 | (ha : ∀ i ∈ s, ∀ z, replicaDifference F G (exchangeLinks (m i) z) = -replicaDifference F G z) |
| 122 | (hd : ∀ i ∈ s, ∀ j ∈ s, i ≠ j → ∀ p : Face l, uniformOnFace (m i) p ∨ uniformOnFace (m j) p) : |
| 123 | |wilsonCovariance β F G| ≤ 2 * ∫ z, ∏ i ∈ s, |tanh (exchangeField β (m i) z)| ∂replicaLaw l β := by |
| 124 | have cD : Continuous (replicaDifference F G) := ((hF.comp continuous_fst).sub (hF.comp continuous_snd)).mul |
| 125 | ((hG.comp continuous_fst).sub (hG.comp continuous_snd)) |
| 126 | have eq := (twice_wilsonCovariance β hF hG).trans (replica_shell_identity β s m cD ha hd) |
| 127 | exact replica_covariance_bound_of_integral β _ s m hF hG hbF hbG eq |
| 128 | |
| 129 | #print axioms exchangeField_stable |
| 130 | #print axioms replica_shell_identity |
| 131 | #print axioms replica_covariance_bound |
| 132 | end |
| 133 | end YangMills.PeriodicWilson |