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 Mathlib.MeasureTheory.Measure.Tilted |
| 2 | import Mathlib.Probability.Distributions.Gaussian.Multivariate |
| 3 | import YM.Primitives.SMALL_FIELD_EXTERIOR.Squares |
| 4 | import YM.Push.STATIONARY_UNIFORM.Array |
| 5 | |
| 6 | |
| 7 | |
| 8 | /-! |
| 9 | # Hessian cost for the TRUE local Haar density |
| 10 | |
| 11 | In counting coords of forests. Charge before choosing any period. The |
| 12 | correction is block diagonal but not assumed log-concave; pay it at the same |
| 13 | addresses and only on this domain. This is not a claim about Fresnel or |
| 14 | absolute values of analytic continuations. |
| 15 | -/ |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | namespace YM.Primitives.SmallFieldExterior.HaarCoin |
| 19 | open Function Set Filter Metric MeasureTheory Matrix |
| 20 | open Lattice Precision Push.Uniform Tree |
| 21 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius Classical |
| 22 | |
| 23 | variable {G : Gauge} {ι : Type} [Fintype ι] -- decidability via classical |
| 24 | variable {P : ChartRatio G} {r R m k : ℝ} |
| 25 | |
| 26 | def brow (G : Gauge) : Points G.ColorIndex ≃L[ℝ] G.Color := (PiLp.continuousLinearEquiv 2 ℝ _).symm |
| 27 | def pick (G : Gauge) (i : ι) : Points (ι × G.ColorIndex) →L[ℝ] Points G.ColorIndex := |
| 28 | (brow G).symm.toContinuousLinearMap ∘L (ContinuousLinearMap.proj (R:=ℝ) i ∘L (tint G ι).toContinuousLinearMap) |
| 29 | |
| 30 | lemma pick_ap (x : Points (ι × G.ColorIndex)) (i j) : pick G i x j=x (i,j) := rfl |
| 31 | lemma picked (x : Points (ι × G.ColorIndex)) (i) : brow G (pick G i x)=(tint G ι x) i := rfl |
| 32 | |
| 33 | /-- Negative-log of probability Haar density on one chart. -/ |
| 34 | def taxes (P : ChartRatio G) (y : Points G.ColorIndex) : ℝ := -Real.log (P.scale * P.J (brow G y)) |
| 35 | |
| 36 | structure Stamp (P : ChartRatio G) (R m k : ℝ) : Prop where |
| 37 | paid : LocalRatio P |
| 38 | pos : 0 < R |
| 39 | levy : 0 < m |
| 40 | entry : 0 ≤ k |
| 41 | fits : MapsTo (brow G) (cube G.ColorIndex R) (ball 0 P.radius) |
| 42 | stays (y : Points G.ColorIndex) : y∈cube G.ColorIndex R → m ≤ P.scale * P.J (brow G y) |
| 43 | germs : SmallFieldExterior.Regular R 2 (taxes P) |
| 44 | bills (y : Points G.ColorIndex) : y∈cube G.ColorIndex R → ∀ i j, |curvature (taxes P) y i j| ≤ k |
| 45 | |
| 46 | |
| 47 | |
| 48 | lemma pick_mem (h : Stamp P R m k) (hr : 0 ≤ r) (hp : r ≤ R) (v : Points (ι × G.ColorIndex)) |
| 49 | (hv : v∈cube _ r) (i : ι) : pick G i v∈cube G.ColorIndex R := |
| 50 | (cube_iff h.pos.le).2 fun j => ((cube_iff hr).1 hv (i,j)).trans hp |
| 51 | |
| 52 | def wag (P : ChartRatio G) (i : ι) := taxes P ∘ pick G i |
| 53 | |
| 54 | def dues (P : ChartRatio G) (ι : Type) [Fintype ι] : Points (ι × G.ColorIndex) → ℝ := ∑ i : ι,wag P i |
| 55 | |
| 56 | lemma wag_smooth (h : Stamp P R m k) (hr : 0 ≤ r) (hp : r≤R) (i : ι) : SmallFieldExterior.Regular r 2 (wag P i) := |
| 57 | fun x hx => (h.germs _ (pick_mem h hr hp x hx i)).comp _ (pick G i).contDiff.contDiffAt |
| 58 | lemma dues_smooth (h : Stamp P R m k) (hr : 0 ≤ r) (hp : r≤R) (ι : Type) [Fintype ι] : SmallFieldExterior.Regular r 2 (dues P ι) := |
| 59 | SmallFieldExterior.Regular.fsum _ (fun i _ => wag_smooth h hr hp i) |
| 60 | |
| 61 | -- Decidability-tracking helpers; pc computed with StepData keys. |
| 62 | private lemma pick_yes (i : ι) (j : G.ColorIndex) : pick G i (Pi.single (i,j) 1)=Pi.single j 1 := by |
| 63 | ext l; rw [pick_ap]; by_cases hi : l=j <;> simp [hi] |
| 64 | private lemma pick_no {i u : ι} (h : u ≠ i) (j : G.ColorIndex) : pick G i (Pi.single (u,j) 1)=0 := by |
| 65 | ext l; rw [pick_ap]; simp [Ne.symm h] |
| 66 | private lemma pc_pick (i j : ι) (p : G.ColorIndex) {f : Points G.ColorIndex → ℝ} {x} (h : DifferentiableAt ℝ f (pick G i x)) : |
| 67 | pc (j,p) (f ∘ pick G i) x = if i=j then pc p f (pick G i x) else 0 := by |
| 68 | unfold pc; rw [fderiv_comp _ h (pick G i |>.differentiableAt),ContinuousLinearMap.fderiv,ContinuousLinearMap.comp_apply] |
| 69 | by_cases hb : i=j |
| 70 | · subst j; rw [pick_yes,if_pos rfl] |
| 71 | rw [pick_no (Ne.symm hb), map_zero, if_neg hb] |
| 72 | private lemma wag_second (i : ι) (h : Stamp P R m k) (hr : 0 ≤ r) (hp : r≤R) (x : Points (ι × G.ColorIndex)) |
| 73 | (hx : x∈cube _ r) (j l : ι × G.ColorIndex) : |
| 74 | curvature (wag P i) x j l = if i=l.1 then (if i=j.1 then curvature (taxes P) (pick G i x) j.2 l.2 else 0) else 0 := by |
| 75 | let H := taxes P; let L := pick G i; let T := wag P i |
| 76 | have hf := pick_mem h hr hp x hx i |
| 77 | have he := h.germs _ hf |
| 78 | have hv : pc l T=ᶠ[𝓝 x] (if i=l.1 then pc l.2 H ∘ L else 0) := by |
| 79 | have ht := he.eventually (by norm_num) |
| 80 | filter_upwards [L.continuous.continuousAt.tendsto.eventually ht] with y hy |
| 81 | have he := pc_pick i l.1 l.2 (x:=y) (hy.differentiableAt two_ne_zero) |
| 82 | rw [Prod.eta] at he |
| 83 | split_ifs with hb |
| 84 | · rw [if_pos hb] at he; exact he |
| 85 | rw [if_neg hb] at he; exact he |
| 86 | change pc j (pc l T) x=_ |
| 87 | by_cases hh : i=l.1 |
| 88 | · rw [if_pos hh] at hv ⊢ |
| 89 | rw [pc,hv.fderiv_eq]; exact pc_pick i j.1 j.2 (f:=pc l.2 H) (x:=x) ((h.germs.tangent l.2).diff one_ne_zero hf) |
| 90 | rw [if_neg hh] at hv ⊢ |
| 91 | rw [pc,hv.fderiv_eq]; simp |
| 92 | |
| 93 | lemma duty_matrix (h : Stamp P R m k) (hr : 0 ≤ r) (hp : r ≤ R) (x : Points (ι × G.ColorIndex)) (hx : x∈cube _ r) |
| 94 | (j l : ι × G.ColorIndex) : |
| 95 | curvature (dues P ι) x j l = if l.1=j.1 then curvature (taxes P) (pick G l.1 x) j.2 l.2 else 0 := by |
| 96 | have hf i := wag_smooth h hr hp i x hx |
| 97 | have hv : pc l (dues P ι)=ᶠ[𝓝 x] ∑ i : ι,pc l (wag P i) := by |
| 98 | have he : ∀ i : ι, ∀ᶠ y in 𝓝 x, ContDiffAt ℝ 2 (wag P i) y := fun i => (hf i).eventually (by norm_num) |
| 99 | filter_upwards [eventually_all.mpr he] with y hy |
| 100 | rw [Finset.sum_apply]; exact pc_sum l _ fun i _ => (hy i).differentiableAt two_ne_zero |
| 101 | change fderiv ℝ _ x (Pi.single j 1)=_ |
| 102 | rw [hv.fderiv_eq]; change pc j _ _=_ |
| 103 | rw [pc_sum (f:=fun i => pc l (wag P i)) j _ (fun i _ => ((wag_smooth h hr hp i).tangent l).diff one_ne_zero hx)] |
| 104 | change (∑ i : ι, curvature (wag P i) x j l) = _ |
| 105 | simp_rw [wag_second _ h hr hp x hx j l]; simp |
| 106 | |
| 107 | def tariff (G : Gauge) (k : ℝ) : ℝ := k * Fintype.card G.ColorIndex |
| 108 | lemma Stamp.receipt (h : Stamp P R m k) (hr : 0 ≤ r) (hp : r≤R) : Charged r (dues P ι) (-tariff G k) := by |
| 109 | intro x hx |
| 110 | let S := curvature (dues P ι) x |
| 111 | have hc (i : ι × G.ColorIndex) : ∑ j, |S i j| ≤ tariff G k := by |
| 112 | unfold S; rw [Fintype.sum_prod_type]; |
| 113 | rw [Finset.sum_eq_single_of_mem i.1 (Finset.mem_univ _)] |
| 114 | · calc |
| 115 | _ ≤ ∑ _j : G.ColorIndex, k := Finset.sum_le_sum fun j _ => by |
| 116 | rw [duty_matrix h hr hp x hx i]; simp only [if_true]; exact h.bills _ (pick_mem h hr hp x hx _) _ _ |
| 117 | _ = _ := by simp [tariff,mul_comm k] |
| 118 | intro b _ hb; simp [duty_matrix h hr hp x hx,hb] |
| 119 | have he j : ∑ i, |S i j| ≤ tariff G k := by |
| 120 | have hh : S.IsSymm := isHermitian_iff_isSymm.mp (curvature_sym (dues_smooth h hr hp _ _ hx)) |
| 121 | conv_lhs => arg 2; ext i; rw [show S i j = S j i from hh.apply j i] |
| 122 | exact hc j |
| 123 | intro v |
| 124 | rw [neg_mul]; exact (abs_le.mp (quadratic_test hc he v)).1 |
| 125 | |
| 126 | lemma Stamp.still (h : Stamp P R m k) (hr : 0 ≤ r) (hp : r≤R) {w : ι → ℝ} (hw : ∀ i,w i ≠ 0) |
| 127 | (x : Points (ι × G.ColorIndex)) (hx : x∈cube _ r) : |
| 128 | conjugated (fun i => w i.1) (curvature (dues P ι) x)=curvature (dues P ι) x := by |
| 129 | ext i j |
| 130 | rw [conjugated,Matrix.of_apply,duty_matrix h hr hp x hx i j] |
| 131 | split_ifs with he |
| 132 | · rw [he]; field_simp [hw] |
| 133 | simp |
| 134 | end YM.Primitives.SmallFieldExterior.HaarCoin |