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.Next.FOUNDATIONS.SU2 |
| 2 | import YM.Push.LOCAL_SPLITTING.Calculus |
| 3 | |
| 4 | /-! |
| 5 | # The actual shared-tag push with observations on a set of output edges |
| 6 | |
| 7 | No locality/cluster assumptions in this file. Noise likelihood on a subset |
| 8 | of coarse edges (no data of coarse edges outside that subset); tags have their |
| 9 | ORIGINAL full unmarked law, and fine integration is over the full product |
| 10 | probability Haar prior. On the full edge set this is the actual one-step push. |
| 11 | Expose it as a bounded linear read on continuous test functions of the whole |
| 12 | prediction; yields genuine smoothness of its coarse log-coordinate germs (not |
| 13 | smoothness in the fine variables!) for every integrable operand, without |
| 14 | interchanging any unsupported derivatives and conditional limits. Underlies |
| 15 | an independent global/telescoping estimate, NOT a uniform norm step contraction. |
| 16 | -/ |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.Push.Local.Kernel |
| 20 | open Function Filter Lattice Wilson RG Source MeasureTheory Next.Foundations |
| 21 | open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators Classical |
| 22 | variable {G : Gauge} {c f : Side} (S : StepData c f) |
| 23 | abbrev Edges (c : Side) := Finset (Edge (Site c)) |
| 24 | |
| 25 | def edges (X : Support c) : Edges c := Finset.univ.filter (fun e => e.1∈X ∧ e.1 + step e.2 ∈ X) |
| 26 | @[simp] theorem edges_univ : edges (Finset.univ : Support c) = Finset.univ := by simp [edges] |
| 27 | |
| 28 | def noisy (β : ℝ) (J : Edges c) (Q V : Config G c) := ∏ b ∈ J, (S.penaltyZ β G)⁻¹ * S.penaltyWeight β (V b * (Q b)⁻¹) |
| 29 | |
| 30 | def weights (U : Config G f) (h : Config G c → ℝ) := ∑ t : S.Choices, S.likelihood U t * h (S.prediction U t) |
| 31 | |
| 32 | def pdf (β : ℝ) (J : Edges c) (U : Config G f) (V : Config G c) := weights S U (fun Q => noisy S β J Q V) |
| 33 | |
| 34 | section Lift |
| 35 | def pairing : G.Mat →L[ℝ] ℝ := (((G.repDim:ℝ)⁻¹ • Complex.reLm) ∘ₗ Matrix.traceLinearMap _ _ _).toContinuousLinearMap |
| 36 | |
| 37 | theorem paired (g v : G.El) : G.price (v*g⁻¹) = 1 - pairing (G.mat v * G.mat g⁻¹) := by change (1-_/_:ℝ) = 1-(G.repDim:ℝ)⁻¹*(G.mat v * G.mat g⁻¹).trace.re; rw [G.mat_mul]; ring |
| 38 | |
| 39 | abbrev Mats (G : Gauge) (c : Side) := Edge (Site c) → G.Mat |
| 40 | |
| 41 | private def linear (J : Edges c) : Mats G c →L[ℝ] C(Config G c,ℝ) := LinearMap.toContinuousLinearMap { |
| 42 | toFun W := ⟨(fun Q => ∑ i ∈ J, pairing (W i * G.mat (Q i)⁻¹)),by fun_prop⟩ |
| 43 | map_add' W Z := by ext; simp [add_mul,Finset.sum_add_distrib] |
| 44 | map_smul' a W := by ext; simp [Finset.mul_sum] |
| 45 | } |
| 46 | |
| 47 | def noiseLift (β : ℝ) (J : Edges c) (V : Config G c) : C(Config G c,ℝ) := |
| 48 | ((S.penaltyZ β G)⁻¹ ^ J.card) • NormedSpace.exp ((-β*S.kernel.penalty : ℝ) • |
| 49 | ((J.card:ℝ) • (1:C(Config G c,ℝ)) - linear J (G.mat ∘ V))) |
| 50 | |
| 51 | theorem lifted (β : ℝ) (J : Edges c) (V Q : Config G c) : noiseLift S β J V Q = noisy S β J Q V := by |
| 52 | haveI : NormedAlgebra ℚ C(Config G c,ℝ) := .restrictScalars ℚ ℝ _ |
| 53 | have he (h : C(Config G c,ℝ)) : NormedSpace.exp h Q = Real.exp (h Q) := by |
| 54 | rw [Real.exp_eq_exp_ℝ]; exact NormedSpace.map_exp (ContinuousMap.evalAlgHom ℝ ℝ Q) (ContinuousMap.evalCLM ℝ Q (M:=ℝ)).continuous _ |
| 55 | simp only [noisy,StepData.penaltyWeight, paired,Finset.prod_mul_distrib, ← Real.exp_sum, ← Finset.mul_sum,Finset.sum_sub_distrib,Finset.prod_const] |
| 56 | simp [noiseLift,he,linear] |
| 57 | |
| 58 | theorem smooth_lift (β : ℝ) (J : Edges c) (V : Config G c) (k : ℕ) : Chart k (noiseLift S β J) V := by |
| 59 | have hs := show Chart k (fun U : Config G c => G.mat ∘ U) V by |
| 60 | refine contDiffAt_pi.mpr fun i => ((G.exp_jet.contDiffAt.of_le le_top |>.comp (f:=fun x : Directions G c => x i) _ (contDiff_apply ..).contDiffAt).mul contDiffAt_const) |
| 61 | let e := linear (G:=G) J |
| 62 | have hg := ((contDiffAt_const (c:=(J.card:ℝ) • (1:C(Config G c,ℝ))) |>.sub (e.contDiff.contDiffAt.comp _ hs)).const_smul (-β*S.kernel.penalty)) |
| 63 | exact ((NormedSpace.exp_analytic (𝕂:=ℝ) _).contDiffAt.of_le le_top |>.comp _ hg).const_smul _ |
| 64 | end Lift |
| 65 | |
| 66 | theorem weights_meas (h : S.patch.Branches S.kernel G) (g : C(Config G c,ℝ)) : Measurable (fun U => weights S U g) := |
| 67 | Finset.measurable_fun_sum _ fun t _ => (S.likelihood_meas h t).mul (g.continuous.measurable.comp (S.prediction_meas h t)) |
| 68 | |
| 69 | theorem weights_bound (h : S.patch.Branches S.kernel G) (g : C(Config G c,ℝ)) (U : Config G f) : ‖weights S U g‖ ≤ ‖g‖ := by |
| 70 | refine (norm_sum_le ..).trans ?_ |
| 71 | conv_rhs => rw [← one_mul ‖g‖,← S.chosen h U,Finset.sum_mul] |
| 72 | exact Finset.sum_le_sum fun t _ => (norm_mul ..).trans_le (le_of_le_of_eq (mul_le_mul_of_nonneg_left (g.norm_coe_le_norm _) (norm_nonneg _)) (by rw [Real.norm_of_nonneg (S.likelihood_pos ..)])) |
| 73 | |
| 74 | section Pass |
| 75 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 76 | |
| 77 | def pass (β : ℝ) (J : Edges c) (F : Config G f → E) (V : Config G c) := ∫ U, pdf S β J U V • F U ∂prior G f |
| 78 | |
| 79 | theorem pass_full (β : ℝ) (F : Config G f → E) : pass S β Finset.univ F = S.push β F := rfl |
| 80 | |
| 81 | variable {F : Config G f → E} |
| 82 | |
| 83 | theorem slice_int (h : S.patch.Branches S.kernel G) (hF : Integrable F (prior G f)) (g : C(Config G c,ℝ)) : |
| 84 | Integrable (fun U => weights S U g • F U) (prior G f) := |
| 85 | hF.bdd_smul ‖g‖ (weights_meas S h g).aestronglyMeasurable (.of_forall (weights_bound S h g)) |
| 86 | |
| 87 | private def observe (h : S.patch.Branches S.kernel G) (hF : Integrable F (prior G f)) : C(Config G c,ℝ) →L[ℝ] E := by |
| 88 | let D : C(Config G c,ℝ) →ₗ[ℝ] E := { |
| 89 | toFun g := ∫ U, weights S U g • F U ∂prior G f |
| 90 | map_add' a b := by |
| 91 | simp_rw [show ∀ U, weights S U ⇑(a+b) = weights S U a + weights S U b from fun U => by simp [weights,mul_add,Finset.sum_add_distrib], add_smul] |
| 92 | rw [integral_add (slice_int ..) (slice_int ..)] <;> assumption |
| 93 | map_smul' a b := by |
| 94 | simp_rw [show ∀ U, weights S U ⇑(a • b) = a*weights S U b from fun U => by simp [weights,Finset.mul_sum,mul_left_comm],mul_smul,integral_smul]; rfl |
| 95 | } |
| 96 | apply D.mkContinuous (∫ U, ‖F U‖ ∂prior G f) |
| 97 | intro g; rw [mul_comm _ ‖g‖, ← integral_const_mul]; exact norm_integral_le_of_norm_le (hF.norm.const_mul _) (.of_forall fun U => (norm_smul ..).trans_le (mul_le_mul_of_nonneg_right (weights_bound S h g U) (norm_nonneg _))) |
| 98 | |
| 99 | private theorem pass_observe (β : ℝ) (J : Edges c) (h : S.patch.Branches S.kernel G) (hF : Integrable F (prior G f)) : |
| 100 | pass S β J F = observe S h hF ∘ noiseLift S β J := by |
| 101 | funext V; unfold pass pdf; simp_rw [← lifted]; rfl |
| 102 | |
| 103 | theorem smooth_pass (β : ℝ) (J : Edges c) (h : S.patch.Branches S.kernel G) (hF : Integrable F (prior G f)) (V : Config G c) (k : ℕ) : Chart k (pass S β J F) V := by |
| 104 | rw [pass_observe S β J h hF]; exact (observe S h hF).contDiff.contDiffAt.comp _ (smooth_lift S β J V k) |
| 105 | |
| 106 | theorem left_pass (β : ℝ) (J : Edges c) (h : S.patch.Branches S.kernel G) (hF : Integrable F (prior G f)) (V : Config G c) (l : List (Directions G c)) : |
| 107 | leftDerivs (pass S β J F) l V = ∫ U, weights S U (fun Q => leftDerivs (noisy S β J Q) l V) • F U ∂prior G f := by |
| 108 | have hd := smooth_lift S β J V l.length |
| 109 | rw [pass_observe S β J h hF,left_linear (observe S h hF) l hd le_rfl] |
| 110 | have he (Q : Config G c) : leftDerivs (noisy S β J Q) l V = leftDerivs (noiseLift S β J) l V Q := by |
| 111 | let L : C(Config G c,ℝ) →L[ℝ] ℝ := ContinuousMap.evalCLM ℝ Q |
| 112 | rw [show noisy S β J Q = L ∘ noiseLift S β J from funext fun v => (lifted ..).symm,left_linear L l hd le_rfl]; rfl |
| 113 | rw [funext he]; rfl |
| 114 | end Pass |
| 115 | |
| 116 | theorem pdf_pos (β : ℝ) (J : Edges c) (h : S.patch.Branches S.kernel G) (U : Config G f) (V : Config G c) : 0 < pdf S β J U V := by |
| 117 | obtain ⟨t,ht⟩ : ∃ t, 0 < S.likelihood U t := by by_contra! hx; have he := Finset.sum_nonpos (s:=Finset.univ) fun t _ => hx t; rw [S.chosen h] at he; linarith |
| 118 | have he Q : 0 < noisy S β J Q V := Finset.prod_pos fun _ _ => mul_pos (inv_pos.mpr (S.penaltyZ_pos β)) (Real.exp_pos _) |
| 119 | exact Finset.sum_pos' (fun t _ => mul_nonneg (S.likelihood_pos ..) (he _).le) ⟨t, Finset.mem_univ _, mul_pos ht (he _)⟩ |
| 120 | |
| 121 | theorem pdf_integrable (β : ℝ) (J : Edges c) (h : S.patch.Branches S.kernel G) (V : Config G c) {D : Config G f → ℝ} |
| 122 | (hD : Integrable D (prior G f)) : Integrable (fun U => pdf S β J U V * D U) (prior G f) := by |
| 123 | unfold pdf; simp_rw [← lifted]; exact slice_int S h hD _ |
| 124 | |
| 125 | theorem pass_pos (β : ℝ) (J : Edges c) (h : S.patch.Branches S.kernel G) (V : Config G c) {D : Config G f → ℝ} |
| 126 | (hD : Integrable D (prior G f)) (hp : ∀ U, 0 < D U) : 0 < pass S β J D V := by |
| 127 | have he U := mul_pos (pdf_pos S β J h U V) (hp U) |
| 128 | refine (integral_pos_iff_support_of_nonneg (fun U => (he U).le) (pdf_integrable S β J h V hD)).2 ?_ |
| 129 | rw [show Function.support _ = Set.univ from Set.eq_univ_of_forall fun x => (he x).ne']; simp |
| 130 | end YM.Push.Local.Kernel |