yang
This project has not described itself yet.
Brought by drakestapleton
yang / proofs / WilsonReplicaLoss.lean
| 1 | -- SPDX-License-Identifier: Apache-2.0 |
| 2 | import WilsonReplicaSlabs |
| 3 | |
| 4 | namespace YangMills.PeriodicWilson |
| 5 | open FundamentalSU2 MeasureTheory Real |
| 6 | noncomputable section |
| 7 | |
| 8 | def shellWeight {l : ℕ+} (β : ℝ) (t : Axis) (s : ZMod l.val) (k : ℕ) (z : WilsonReplicas l) : ℝ := |
| 9 | ∏ r ∈ Finset.range k, |tanh (exchangeField β (slabMask t s r) z)| |
| 10 | |
| 11 | private theorem shellWeight_cont {l : ℕ+} (β : ℝ) (t : Axis) (s : ZMod l.val) (k : ℕ) : |
| 12 | Continuous (shellWeight β t s k) := |
| 13 | continuous_finsetProd _ fun r _ => (replica_tanh_continuous.comp (exchangeField_cont β (slabMask t s r))).abs |
| 14 | |
| 15 | /-- Loss of the next shell, weighted by the survival of every preceding shell. -/ |
| 16 | def slabLoss {l : ℕ+} (β : ℝ) (t : Axis) (s : ZMod l.val) (k : ℕ) |
| 17 | (ν : Measure (WilsonReplicas l) := replicaLaw l β) := |
| 18 | ∫ z, shellWeight β t s k z * (1 - |tanh (exchangeField β (slabMask t s k) z)|) ∂ν |
| 19 | |
| 20 | theorem slabMoment_succ {l : ℕ+} (β : ℝ) (t : Axis) (s : ZMod l.val) (k : ℕ) |
| 21 | (ν : Measure (WilsonReplicas l) := replicaLaw l β) [IsFiniteMeasure ν] : |
| 22 | slabMoment β t s (k+1) ν = slabMoment β t s k ν - slabLoss β t s k ν := by |
| 23 | let W := shellWeight β t s k |
| 24 | let A := fun z => |tanh (exchangeField β (slabMask t s k) z)| |
| 25 | have cW := shellWeight_cont β t s k |
| 26 | have cA : Continuous A := (replica_tanh_continuous.comp (exchangeField_cont β _)).abs |
| 27 | change (∫ z, _ ∂ν) = (∫ z, W z ∂_) - ∫ z, W z * (1 - A z) ∂_ |
| 28 | have cL : Continuous (fun z => W z * (1 - A z)) := cW.mul (continuous_const.sub cA) |
| 29 | rw [← integral_sub (μ := ν) (cW.integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _)) |
| 30 | (cL.integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _))] |
| 31 | apply integral_congr_ae |
| 32 | exact .of_forall fun z => by simp only [Finset.prod_range_succ,W,shellWeight,A]; ring |
| 33 | |
| 34 | /-- A finite test event. Its mass includes the preceding shell weights. -/ |
| 35 | def moderateShellMass {l : ℕ+} (β : ℝ) (t : Axis) (s : ZMod l.val) (k : ℕ) (q : ℝ) |
| 36 | (ν : Measure (WilsonReplicas l) := replicaLaw l β) := |
| 37 | ∫ z in {z : WilsonReplicas l | |tanh (exchangeField β (slabMask t s k) z)| ≤ q}, |
| 38 | shellWeight β t s k z ∂ν |
| 39 | |
| 40 | theorem moderateShellMass_le_loss {l : ℕ+} (β : ℝ) (t : Axis) (s : ZMod l.val) (k : ℕ) (q : ℝ) |
| 41 | (ν : Measure (WilsonReplicas l) := replicaLaw l β) [IsFiniteMeasure ν] : |
| 42 | (1-q) * moderateShellMass β t s k q ν ≤ slabLoss β t s k ν := by |
| 43 | let W := shellWeight β t s k |
| 44 | let A := fun z => |tanh (exchangeField β (slabMask t s k) z)| |
| 45 | let E := {z : WilsonReplicas l | A z ≤ q} |
| 46 | have cW := shellWeight_cont β t s k |
| 47 | have cA : Continuous A := (replica_tanh_continuous.comp (exchangeField_cont β _)).abs |
| 48 | have mE : MeasurableSet E := isClosed_le cA continuous_const |>.measurableSet |
| 49 | have hi {f : WilsonReplicas l → ℝ} (hf : Continuous f) : Integrable f ν := |
| 50 | hf.integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _) |
| 51 | change (1-q) * (∫ z in E, W z ∂_) ≤ ∫ z, W z * (1-A z) ∂_ |
| 52 | rw [← integral_const_mul, ← integral_indicator mE] |
| 53 | apply integral_mono ((hi (continuous_const.mul cW)).indicator mE) (hi (cW.mul (continuous_const.sub cA))) |
| 54 | intro z |
| 55 | have hw : 0 ≤ W z := Finset.prod_nonneg fun _ _ => abs_nonneg _ |
| 56 | by_cases hz : z ∈ E |
| 57 | · rw [Set.indicator_of_mem hz, mul_comm] |
| 58 | exact mul_le_mul_of_nonneg_left (sub_le_sub_left hz _) hw |
| 59 | · rw [Set.indicator_of_notMem hz] |
| 60 | exact mul_nonneg hw (sub_nonneg.mpr (abs_tanh_lt_one _).le) |
| 61 | |
| 62 | /-- Each shell can have a different certified loss budget. The budgets add in |
| 63 | the exponent even when the measured shell fields are dependent. -/ |
| 64 | theorem slabMoment_le_exp_of_loss {l : ℕ+} (β : ℝ) (t : Axis) (s : ZMod l.val) |
| 65 | (a : ℕ → ℝ) (k : ℕ) |
| 66 | (ν : Measure (WilsonReplicas l)) [IsProbabilityMeasure ν] |
| 67 | (h : ∀ j < k, (1-exp (-a j))*slabMoment β t s j ν ≤ slabLoss β t s j ν) : |
| 68 | slabMoment β t s k ν ≤ exp (-(∑ j ∈ Finset.range k, a j)) := by |
| 69 | induction k with |
| 70 | | zero => simp [slabMoment] |
| 71 | | succ k ih => |
| 72 | have h0 := ih (fun j hj => h j (by omega)) |
| 73 | have h1 := h k (by omega) |
| 74 | rw [slabMoment_succ β t s k ν,Finset.sum_range_succ,neg_add,exp_add] |
| 75 | exact (show slabMoment β t s k ν - slabLoss β t s k ν ≤ slabMoment β t s k ν * exp (-a k) by nlinarith).trans |
| 76 | (mul_le_mul_of_nonneg_right h0 (exp_pos _).le) |
| 77 | |
| 78 | /-- R is the fine spacing. A weighted moderate-field estimate paying m R per |
| 79 | fine shell supplies physical rate m for blocked products at the actual beta. -/ |
| 80 | theorem blockedProduct_physical_bound_of_overlap {l : ℕ+} (hl : 1 < l.val) (b : ℕ+) (β m R : ℝ) |
| 81 | (t : Axis) (s u : ZMod l.val) (ps qs : List (Face l)) |
| 82 | (hp : spatialSlice t s ps) (hq : spatialSlice t u qs) (q : ℕ → ℝ) |
| 83 | (h : ∀ j < b.val*cyclicDistance (l := l) s u, |
| 84 | (1-exp (-(m*R))) * slabMoment β t (blockCoordinate b l s) j ≤ |
| 85 | (1-q j) * moderateShellMass β t (blockCoordinate b l s) j (q j)) : |
| 86 | |blockedCovariance b β (plaquetteProduct ps) (plaquetteProduct qs)| ≤ |
| 87 | 2*exp (-((b.val*cyclicDistance (l := l) s u : ℕ) : ℝ)*(m*R)) := by |
| 88 | apply (blockedProduct_replica_bound hl b β t s u ps qs hp hq).trans |
| 89 | apply mul_le_mul_of_nonneg_left _ (by norm_num) |
| 90 | have H := slabMoment_le_exp_of_loss β t (blockCoordinate b l s) (fun _ => m*R) _ _ |
| 91 | (fun j hj => (h j hj).trans (moderateShellMass_le_loss β t _ j _)) |
| 92 | simpa [neg_mul] using H |
| 93 | |
| 94 | /-- Physical overlap criterion after pinning a forest in each fine replica. -/ |
| 95 | theorem framed_blockedProduct_physical_bound_of_overlap {l : ℕ+} (hl : 1 < l.val) (b : ℕ+) (β m R : ℝ) (P : PinnedFrame (b*l)) |
| 96 | (t : Axis) (s u : ZMod l.val) (ps qs : List (Face l)) |
| 97 | (hp : spatialSlice t s ps) (hq : spatialSlice t u qs) (q : ℕ → ℝ) |
| 98 | (h : ∀ j < b.val*cyclicDistance (l := l) s u, |
| 99 | (1-exp (-(m*R))) * slabMoment β t (blockCoordinate b l s) j (P.framedLaw β) ≤ |
| 100 | (1-q j) * moderateShellMass β t (blockCoordinate b l s) j (q j) (P.framedLaw β)) : |
| 101 | |blockedCovariance b β (plaquetteProduct ps) (plaquetteProduct qs)| ≤ |
| 102 | 2*exp (-((b.val*cyclicDistance (l := l) s u : ℕ) : ℝ)*(m*R)) := by |
| 103 | apply (framed_blockedProduct_replica_bound hl b β P t s u ps qs hp hq).trans |
| 104 | apply mul_le_mul_of_nonneg_left _ (by norm_num) |
| 105 | have H := slabMoment_le_exp_of_loss β t (blockCoordinate b l s) (fun _ => m*R) _ (P.framedLaw β) |
| 106 | (fun j hj => (h j hj).trans (moderateShellMass_le_loss β t _ j _ (P.framedLaw β))) |
| 107 | simpa [neg_mul] using H |
| 108 | |
| 109 | #print axioms framed_blockedProduct_physical_bound_of_overlap |
| 110 | #print axioms slabMoment_succ |
| 111 | #print axioms moderateShellMass_le_loss |
| 112 | #print axioms blockedProduct_physical_bound_of_overlap |
| 113 | end |
| 114 | end YangMills.PeriodicWilson |