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.Analysis.Matrix.Normed |
| 2 | import Mathlib.Data.Pi.Interval |
| 3 | import Mathlib.Data.ZMod.ValMinAbs |
| 4 | import Mathlib.MeasureTheory.Integral.Pi |
| 5 | import Mathlib.MeasureTheory.Measure.Haar.InnerProductSpace |
| 6 | import Mathlib.Topology.Algebra.Star.Unitary |
| 7 | |
| 8 | /-! |
| 9 | # Factor functions in integrations over subsets of tags/links |
| 10 | |
| 11 | Algebraic integral identities. As with `integral_prod_mul`, useful even |
| 12 | without integrability assumptions in the lemmas. Use as *expectations* |
| 13 | only when also proving integrability and positivity/normalization. |
| 14 | -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.Next.UVStress |
| 18 | open Set Function Filter MeasureTheory |
| 19 | open scoped Topology BigOperators |
| 20 | variable {ι B : Type*} [Fintype ι] [Nonempty B] (p : ι → Prop) [DecidablePred p] |
| 21 | |
| 22 | abbrev MinusPart := Subtype (fun i => ¬ p i) |
| 23 | |
| 24 | /-- Function depends only on these coordinates. -/ |
| 25 | def Draws (p : ι → Prop) (f : (ι → B) → ℂ) := ∀ x y : ι → B, (∀ i,p i → x i=y i) → f x=f y |
| 26 | |
| 27 | def traceLeft (f : (ι → B) → ℂ) (x : Subtype p→B) : ℂ := |
| 28 | f ((Equiv.piEquivPiSubtypeProd p (fun _ => B)).symm (x,Classical.ofNonempty)) |
| 29 | |
| 30 | def traceRight (f : (ι → B) → ℂ) (y : MinusPart p→ B) : ℂ := |
| 31 | f ((Equiv.piEquivPiSubtypeProd p (fun _ => B)).symm (Classical.ofNonempty,y)) |
| 32 | |
| 33 | private def letters (w : ι → B → ℂ) (f : (ι → B) → ℂ) (u : ι → B) := (∏ i,w i (u i))*f u |
| 34 | |
| 35 | private lemma packetSplit (w : ι → B → ℂ) (f g : (ι → B) → ℂ) (hf : Draws p f) (hg : Draws (fun i => ¬ p i) g) |
| 36 | (x : Subtype p→ B) (y : MinusPart p → B) : letters w (f*g) ((Equiv.piEquivPiSubtypeProd p _).symm (x,y))= |
| 37 | letters (fun i : Subtype p => w i) (traceLeft p f) x * |
| 38 | letters (fun i : MinusPart p => w i) (traceRight p g) y := by |
| 39 | let U := Equiv.piEquivPiSubtypeProd p (fun _ => B) |
| 40 | let z := U.symm (x,y) |
| 41 | have he (i : Subtype p) : z i = x i := by simp [z,U,Equiv.piEquivPiSubtypeProd,i.property] |
| 42 | have ht (i : MinusPart p) : z i = y i := by simp [z,U,Equiv.piEquivPiSubtypeProd,i.property] |
| 43 | have hp : f z=traceLeft p f x := hf _ _ (fun i hi => by simp only [z,U,Equiv.piEquivPiSubtypeProd_symm_apply,dif_pos hi]) |
| 44 | have hq : g z=traceRight p g y := hg _ _ (fun i hi => by simp only [z,U,Equiv.piEquivPiSubtypeProd_symm_apply,dif_neg hi]) |
| 45 | change (∏ i : ι, w i (z i))*(f z*g z)=_ |
| 46 | rw [← Fintype.prod_subtype_mul_prod_subtype p fun i => w i (z i), hp,hq]; simp_rw [he,ht] |
| 47 | unfold letters; ring |
| 48 | |
| 49 | section Weights |
| 50 | variable [MeasurableSpace B] (μ : Measure B) [SigmaFinite μ] |
| 51 | |
| 52 | def scatter (w : ι → B → ℂ) (f : (ι→ B) → ℂ) := ∫ x, (∏ i,w i (x i)) * f x ∂(Measure.pi fun _ => μ) |
| 53 | |
| 54 | private lemma scatter_both (w : ι → B→ ℂ) {f g : (ι → B) → ℂ} (hf : Draws p f) (hg : Draws (fun i => ¬ p i) g) : |
| 55 | scatter μ w (f*g)= scatter μ (fun i : Subtype p => w i) (traceLeft p f)* |
| 56 | scatter μ (fun i : MinusPart p => w i) (traceRight p g) := by |
| 57 | let e := MeasurableEquiv.piEquivPiSubtypeProd (fun _ : ι => B) p |
| 58 | let m := Measure.pi (fun _ : ι => μ) |
| 59 | change (∫ x, letters w (f*g) x ∂m)=_ |
| 60 | rw [← (measurePreserving_piEquivPiSubtypeProd (fun _ : ι => μ) p).symm.integral_comp e.symm.measurableEmbedding] |
| 61 | have hx (z : (Subtype p→B) × (MinusPart p→B)) := packetSplit p w f g hf hg z.1 z.2 |
| 62 | convert integral_prod_mul (μ:=Measure.pi (fun _ : Subtype p => μ)) (ν:=Measure.pi (fun _ : MinusPart p => μ)) |
| 63 | (letters (fun i : Subtype p => w i) (traceLeft p f)) (letters (fun i : MinusPart p => w i) (traceRight p g)) using 1 |
| 64 | · congr! 2 |
| 65 | exact hx _ |
| 66 | rfl |
| 67 | |
| 68 | omit [Nonempty B] in |
| 69 | private lemma scatter_mass (w : ι → B → ℂ) (h : ∀ i, (∫ x,w i x ∂μ)=1) : scatter μ w 1=1 := by |
| 70 | unfold scatter; simp only [Pi.one_apply,mul_one]; rw [integral_fintype_prod_eq_prod]; simp_rw [h]; simp |
| 71 | |
| 72 | lemma scatter_uses (w : ι → B→ ℂ) {f : (ι → B) → ℂ} (hf : Draws p f) (hp : ∀ i, (∫ x,w i x ∂μ)=1) : |
| 73 | scatter μ w f=scatter μ (fun i : Subtype p => w i) (traceLeft p f) := by |
| 74 | have he := scatter_both p μ w hf (g:=1) (fun _ _ _ => rfl) |
| 75 | rwa [mul_one,show traceRight p (1: (ι→B)→ℂ)=1 from rfl,scatter_mass (ι:=MinusPart p) _ _ (fun i => hp i),mul_one] at he |
| 76 | |
| 77 | lemma scatter_parts (w : ι → B→ ℂ) {f g : (ι → B) → ℂ} (hf : Draws p f) (hg : Draws (fun i => ¬ p i) g) |
| 78 | (hp : ∀ i,(∫ x,w i x ∂μ)=1) : scatter μ w (f*g)=scatter μ w f*scatter μ w g := by |
| 79 | have he := scatter_both p μ w (f:=1) (fun _ _ _ => rfl) hg |
| 80 | rw [one_mul,show traceLeft p (1: (ι→B)→ℂ)=1 from rfl,scatter_mass (ι:=Subtype p) _ _ (fun i => hp i),one_mul] at he |
| 81 | rw [scatter_both p μ _ hf hg,he,scatter_uses p μ _ hf hp] |
| 82 | end Weights |
| 83 | |
| 84 | section FiniteTags |
| 85 | variable [DecidableEq ι] [Fintype B] |
| 86 | |
| 87 | def scanning (w : ι → B → ℂ) (f : (ι→ B) → ℂ) := ∑ x : ι→B,(∏ i,w i (x i)) * f x |
| 88 | |
| 89 | private lemma scanning_both (w : ι → B→ ℂ) {f g : (ι → B) → ℂ} (hf : Draws p f) (hg : Draws (fun i => ¬ p i) g) : |
| 90 | scanning w (f*g)= scanning (fun i : Subtype p => w i) (traceLeft p f)* |
| 91 | scanning (fun i : MinusPart p => w i) (traceRight p g) := by |
| 92 | -- match actual finite Fintype-using sums |
| 93 | let e := Equiv.piEquivPiSubtypeProd p (fun _ : ι => B) |
| 94 | change (∑ x : ι → B, letters w (f*g) x) = _ |
| 95 | rw [← Equiv.sum_comp e.symm (letters w (f*g)), Fintype.sum_prod_type] |
| 96 | simp_rw [show ∀ x y, letters w (f*g) (e.symm (x,y))=_ from packetSplit p w f g hf hg, ← Finset.mul_sum, ← Finset.sum_mul]; rfl |
| 97 | |
| 98 | omit [Nonempty B] in |
| 99 | private lemma scanning_mass (w : ι → B → ℂ) (h : ∀ i, (∑ x,w i x)=1) : scanning w 1=1 := by |
| 100 | unfold scanning; simp only [Pi.one_apply,mul_one]; rw [← Fintype.prod_sum]; simp_rw [h]; simp |
| 101 | |
| 102 | lemma scanning_uses (w : ι → B→ ℂ) {f : (ι → B) → ℂ} (hf : Draws p f) (hp : ∀ i, (∑ x,w i x)=1) : |
| 103 | scanning w f=scanning (fun i : Subtype p => w i) (traceLeft p f) := by |
| 104 | have he := scanning_both p w hf (g:=1) (fun _ _ _ => rfl) |
| 105 | rwa [mul_one,show traceRight p (1: (ι→B)→ℂ)=1 from rfl,scanning_mass (ι:=MinusPart p) _ (fun i => hp i),mul_one] at he |
| 106 | |
| 107 | lemma scanning_parts (w : ι → B→ ℂ) {f g : (ι → B) → ℂ} (hf : Draws p f) (hg : Draws (fun i => ¬ p i) g) |
| 108 | (hp : ∀ i,(∑ x,w i x)=1) : scanning w (f*g)=scanning w f*scanning w g := by |
| 109 | have he := scanning_both p w (f:=1) (fun _ _ _ => rfl) hg |
| 110 | rw [one_mul,show traceLeft p (1: (ι→B)→ℂ)=1 from rfl,scanning_mass (ι:=Subtype p) _ (fun i => hp i),one_mul] at he |
| 111 | rw [scanning_both p _ hf hg,he,scanning_uses p _ hf hp] |
| 112 | |
| 113 | lemma scanning_congr (w g : ι → B → ℂ) (f h : (ι → B) → ℂ) (hf : Draws p f) (hg : Draws p h) (hw : ∀ i, (∑ x,w i x)=1) |
| 114 | (hu : ∀ i, (∑ x,g i x)=1) (he : ∀ i,p i → w i=g i) (hh : f=h) : scanning w f=scanning g h := by |
| 115 | rw [scanning_uses p w hf hw,scanning_uses p g hg hu, hh, |
| 116 | show (fun i : Subtype p => w i)=(fun i : Subtype p => g i) from funext fun i => he _ i.property] |
| 117 | end FiniteTags |
| 118 | end YM.Next.UVStress |