Yang–Mills: the 2026 Lean construction, rerun and read; the mass gap still open
OpenAI's 2026 Lean construction of 4D Yang–Mills as the expert group keeps it: settle what it proves, rerun it, read it; uniqueness and the mass gap are open, and Clay's problem unsolved

| 1 | import YM.RG.Measurable |
| 2 | import Mathlib.MeasureTheory.Integral.Pi |
| 3 | |
| 4 | /-! |
| 5 | Conditional kernel lemmas. |
| 6 | |
| 7 | This component NEVER |
| 8 | chooses another offset, new cutoffs, or divides each source by a |
| 9 | configuration-dependent density. |
| 10 | |
| 11 | Even winding reads share choices. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.RG |
| 17 | |
| 18 | open MeasureTheory Set Lattice Wilson |
| 19 | open scoped Topology Matrix.Norms.Frobenius ENNReal |
| 20 | |
| 21 | /-- One coarse graining step, fine to coarse. -/ |
| 22 | structure StepData (c f : Side) where |
| 23 | patch : Patch |
| 24 | kernel : KernelChoices |
| 25 | sizes : f.val = c.val * patch.L.val |
| 26 | |
| 27 | namespace StepData |
| 28 | variable {c f : Side} (S : StepData c f) {G : Gauge} |
| 29 | |
| 30 | def ratio : Ratio c f := ⟨S.patch.L, S.sizes⟩ |
| 31 | |
| 32 | abbrev SitesChoice := Site c → S.patch.FrameTag |
| 33 | abbrev BondChoice := Edge (Site c) → S.patch.Points |
| 34 | abbrev Choices := S.SitesChoice × S.BondChoice |
| 35 | |
| 36 | def frames (U : Config G f) (t : S.SitesChoice) (x : Site c) : S.patch.Frame G := |
| 37 | S.patch.frame S.kernel (expandAt (S.ratio.embed x) U) (t x) |
| 38 | |
| 39 | def connector (U : Config G f) (t : S.SitesChoice) (e : Edge (Site c)) : S.patch.Connector G := fun x => |
| 40 | S.frames U t e.1 x * |
| 41 | travel (expandAt (S.ratio.embed e.1) U) x.val (List.replicate S.patch.L.val (posDir e.2)) * |
| 42 | (S.frames U t (e.1 + Lattice.step e.2) x)⁻¹ |
| 43 | |
| 44 | def prediction (U : Config G f) (t : S.Choices) : Config G c := fun e => |
| 45 | S.patch.predict S.kernel (S.connector U t.1 e) (t.2 e) |
| 46 | |
| 47 | /-- Actual joint probability of physical site and bond tags, unused tags |
| 48 | included with uniform mass. -/ |
| 49 | def likelihood (U : Config G f) (t : S.Choices) : ℝ := |
| 50 | (∏ x, S.patch.frameMass S.kernel (expandAt (S.ratio.embed x) U) (t.1 x)) * |
| 51 | ∏ e, S.patch.predictorMass S.kernel (S.connector U t.1 e) (t.2 e) |
| 52 | |
| 53 | def penaltyWeight (β : ℝ) (v : G.El) := Real.exp (-β * S.kernel.penalty * G.price v) |
| 54 | |
| 55 | theorem penaltyWeight_cont (β : ℝ) : Continuous (S.penaltyWeight (G := G) β) := by |
| 56 | unfold penaltyWeight; fun_prop |
| 57 | |
| 58 | def penaltyZ (β : ℝ) (G : Gauge) := ∫ v : G.El, S.penaltyWeight β v ∂G.probHaar |
| 59 | |
| 60 | theorem penaltyZ_pos (β : ℝ) : 0 < S.penaltyZ β G := by |
| 61 | have h (v : G.El) : 0 < S.penaltyWeight β v := Real.exp_pos _ |
| 62 | have hi : Integrable (S.penaltyWeight β) G.probHaar := |
| 63 | (S.penaltyWeight_cont β).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _) |
| 64 | apply (integral_pos_iff_support_of_nonneg (fun v => (h v).le) hi).2 |
| 65 | rw [show Function.support (S.penaltyWeight β (G := G)) = univ from Set.eq_univ_of_forall fun v ↦ (h v).ne'] |
| 66 | simp |
| 67 | |
| 68 | def noise (β : ℝ) (Q V : Config G c) := |
| 69 | ∏ b, (S.penaltyZ β G)⁻¹ * S.penaltyWeight β (V b * (Q b)⁻¹) |
| 70 | |
| 71 | def density (β : ℝ) (U : Config G f) (V : Config G c) := |
| 72 | ∑ t, S.likelihood U t * S.noise β (S.prediction U t) V |
| 73 | |
| 74 | /-- The push of unnormalized functions (proof of integrability of input required in applications). |
| 75 | Output is a function against the *probability Haar* prior at the coarse level. |
| 76 | -/ |
| 77 | def push {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 78 | (β : ℝ) (F : Config G f → X) (V : Config G c) := |
| 79 | ∫ U : Config G f, S.density β U V • F U ∂(prior G f) |
| 80 | |
| 81 | private theorem expand_cont (x : Site f) : Continuous fun U : Config G f => expandAt x U := by |
| 82 | unfold expandAt; fun_prop |
| 83 | |
| 84 | theorem frames_meas (h : S.patch.Branches S.kernel G) (t : S.SitesChoice) (x : Site c) : |
| 85 | Measurable fun U : Config G f => S.frames U t x := |
| 86 | (S.patch.frame_meas h _).comp (expand_cont _).measurable |
| 87 | |
| 88 | theorem connector_meas (h : S.patch.Branches S.kernel G) (t : S.SitesChoice) (e : Edge (Site c)) : |
| 89 | Measurable fun U : Config G f => S.connector U t e := by |
| 90 | refine measurable_pi_lambda _ fun i ↦ ?_ |
| 91 | have hc : Measurable fun U : Config G f => S.frames U t e.1 i := |
| 92 | (measurable_pi_apply _).comp (S.frames_meas h t _) |
| 93 | have hd : Measurable fun U : Config G f => S.frames U t (e.1+step e.2) i := |
| 94 | (measurable_pi_apply _).comp (S.frames_meas h t _) |
| 95 | let p := List.replicate S.patch.L.val (posDir e.2) |
| 96 | have he : Measurable fun U : Config G f => travel (expandAt (S.ratio.embed e.1) U) i.val p := |
| 97 | ((continuous_travel _ _).comp (expand_cont _)).measurable |
| 98 | exact (hc.mul he).mul hd.inv |
| 99 | |
| 100 | theorem prediction_meas (h : S.patch.Branches S.kernel G) (t : S.Choices) : |
| 101 | Measurable fun U : Config G f => S.prediction U t := by |
| 102 | refine measurable_pi_lambda _ fun i ↦ ?_ |
| 103 | exact (S.patch.predict_meas h _).comp (S.connector_meas h t.1 i) |
| 104 | |
| 105 | theorem likelihood_meas (h : S.patch.Branches S.kernel G) (t : S.Choices) : |
| 106 | Measurable fun U : Config G f => S.likelihood U t := by |
| 107 | unfold likelihood |
| 108 | apply Measurable.mul |
| 109 | · refine Finset.measurable_fun_prod _ fun i _ ↦ ?_ |
| 110 | exact (S.patch.frameMass_meas _).comp (expand_cont _).measurable |
| 111 | · refine Finset.measurable_fun_prod _ fun i _ ↦ ?_ |
| 112 | exact (S.patch.predictorMass_meas _).comp (S.connector_meas h t.1 i) |
| 113 | |
| 114 | theorem likelihood_pos (U : Config G f) (t : S.Choices) : 0 ≤ S.likelihood U t := by |
| 115 | apply mul_nonneg |
| 116 | · apply Finset.prod_nonneg; intro _ _; unfold Patch.frameMass; split |
| 117 | · positivity |
| 118 | split <;> positivity |
| 119 | · apply Finset.prod_nonneg; intro _ _; unfold Patch.predictorMass; split |
| 120 | · positivity |
| 121 | exact S.patch.weight_nonneg _ |
| 122 | |
| 123 | theorem chosen (h : S.patch.Branches S.kernel G) (U : Config G f) : ∑ t, S.likelihood U t = 1 := by |
| 124 | let a (r : S.SitesChoice) := ∏ x, S.patch.frameMass S.kernel (expandAt (S.ratio.embed x) U) (r x) |
| 125 | let b (r : S.SitesChoice) (t : S.BondChoice) := |
| 126 | ∏ e, S.patch.predictorMass S.kernel (S.connector U r e) (t e) |
| 127 | have ha : ∑ i, a i = 1 := by |
| 128 | unfold a |
| 129 | rw [← Fintype.prod_sum] |
| 130 | simp_rw [S.patch.frameMass_sum h]; simp |
| 131 | have hb (r) : ∑ i, b r i = 1 := by |
| 132 | unfold b |
| 133 | rw [← Fintype.prod_sum]; simp_rw [S.patch.predictorMass_sum]; simp |
| 134 | rw [Fintype.sum_prod_type] |
| 135 | change ∑ i, ∑ t, a i * b i t = _ |
| 136 | simp_rw [← Finset.mul_sum, hb, mul_one]; exact ha |
| 137 | |
| 138 | theorem noise_cont (β : ℝ) : Continuous fun x : Config G c × Config G c => S.noise β x.1 x.2 := by |
| 139 | unfold noise penaltyWeight |
| 140 | fun_prop |
| 141 | |
| 142 | theorem noise_integrable (β : ℝ) (Q : Config G c) : Integrable (S.noise β Q) (prior G c) := |
| 143 | ((S.noise_cont β).comp (continuous_const.prodMk continuous_id)).integrable_of_hasCompactSupport |
| 144 | (HasCompactSupport.of_compactSpace _) |
| 145 | |
| 146 | theorem noise_mass (β : ℝ) (Q : Config G c) : |
| 147 | (∫ V, S.noise β Q V ∂prior G c) = 1 := by |
| 148 | have he (b : G.El) : (∫ u : G.El, (S.penaltyZ β G)⁻¹ * S.penaltyWeight β (u * b⁻¹) ∂G.probHaar) = 1 := by |
| 149 | have h := (measurePreserving_mul_right G.probHaar b⁻¹).integral_comp |
| 150 | ((Homeomorph.mulRight b⁻¹).measurableEmbedding) (S.penaltyWeight β) |
| 151 | rw [integral_const_mul, h, ← penaltyZ, inv_mul_cancel₀ (S.penaltyZ_pos β).ne'] |
| 152 | unfold noise prior |
| 153 | rw [integral_fintype_prod_eq_prod (fun (b : Edge (Site c)) u => (S.penaltyZ β G)⁻¹ * |
| 154 | S.penaltyWeight β (u * (Q b)⁻¹))] |
| 155 | simp_rw [he]; simp |
| 156 | |
| 157 | /-- The actual branch kernel property. -/ |
| 158 | structure IsKernel (β : ℝ) (G : Gauge) : Prop where |
| 159 | positive (U : Config G f) V : 0 ≤ S.density β U V |
| 160 | meas : Measurable fun x : Config G f × Config G c => S.density β x.1 x.2 |
| 161 | bound : ∃ C : ℝ, ∀ U : Config G f, ∀ V, S.density β U V ≤ C |
| 162 | integrable (U : Config G f) : Integrable (S.density β U) (prior G c) |
| 163 | total (U : Config G f) : (∫ V : Config G c, S.density β U V ∂prior G c) = 1 |
| 164 | |
| 165 | theorem density_positive (β : ℝ) (U : Config G f) (V : Config G c) : 0 ≤ S.density β U V := by |
| 166 | refine Finset.sum_nonneg fun t _ ↦ mul_nonneg (S.likelihood_pos U t) ?_ |
| 167 | apply Finset.prod_nonneg |
| 168 | intro b _; exact mul_nonneg (inv_pos.2 (S.penaltyZ_pos _)).le (Real.exp_pos _).le |
| 169 | |
| 170 | theorem density_meas (h : S.patch.Branches S.kernel G) (β : ℝ) : Measurable fun x : Config G f × Config G c => S.density β x.1 x.2 := by |
| 171 | unfold density; refine Finset.measurable_fun_sum _ fun t _ ↦ ?_ |
| 172 | have hu : Measurable fun x : Config G f × Config G c => S.prediction x.1 t := |
| 173 | (S.prediction_meas h t).comp measurable_fst |
| 174 | have hw : Measurable fun x : Config G f × Config G c => (S.prediction x.1 t,x.2) := |
| 175 | hu.prodMk measurable_snd |
| 176 | have hn : Measurable fun x : Config G f × Config G c => S.noise β (S.prediction x.1 t) x.2 := by |
| 177 | change Measurable ((fun x : Config G c × Config G c => S.noise β x.1 x.2) ∘ |
| 178 | fun x : Config G f × Config G c => (S.prediction x.1 t,x.2)) |
| 179 | exact (S.noise_cont (G := G) β).measurable.comp hw |
| 180 | have hl : Measurable fun x : Config G f × Config G c => S.likelihood x.1 t := |
| 181 | (S.likelihood_meas h t).comp measurable_fst |
| 182 | exact hl.mul hn |
| 183 | |
| 184 | theorem density_bound (h : S.patch.Branches S.kernel G) (β : ℝ) : ∃ C : ℝ, ∀ U : Config G f, ∀ V, S.density β U V ≤ C := by |
| 185 | obtain ⟨A, HA⟩ := (isCompact_range (S.noise_cont (G := G) β)).bddAbove |
| 186 | refine ⟨A, fun U V ↦ ?_⟩ |
| 187 | calc |
| 188 | _ ≤ ∑ t, S.likelihood U t * A := Finset.sum_le_sum fun t _ ↦ |
| 189 | mul_le_mul_of_nonneg_left (HA ⟨(S.prediction U t,V),rfl⟩) (S.likelihood_pos U t) |
| 190 | _ = _ := by rw [← Finset.sum_mul, S.chosen h, one_mul] |
| 191 | |
| 192 | theorem density_integrable (β : ℝ) (U : Config G f) : Integrable (S.density β U) (prior G c) := by |
| 193 | unfold density |
| 194 | apply integrable_finsetSum; intro i _ |
| 195 | exact (S.noise_integrable β (S.prediction U i)).const_mul _ |
| 196 | |
| 197 | theorem density_total (h : S.patch.Branches S.kernel G) (β : ℝ) (U : Config G f) : (∫ V : Config G c, S.density β U V ∂prior G c) = 1 := by |
| 198 | unfold density |
| 199 | rw [integral_finsetSum _] |
| 200 | · simp_rw [integral_const_mul, S.noise_mass, mul_one]; exact S.chosen h U |
| 201 | intro i _; exact (S.noise_integrable β _).const_mul _ |
| 202 | |
| 203 | theorem isKernel (h : S.patch.Branches S.kernel G) (β : ℝ) : S.IsKernel β G := |
| 204 | { positive := S.density_positive β |
| 205 | meas := S.density_meas h β |
| 206 | bound := S.density_bound h β |
| 207 | integrable := S.density_integrable β |
| 208 | total := S.density_total h β } |
| 209 | end StepData |
| 210 | end YM.RG |