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.Complex.ExponentialBounds |
| 2 | import Mathlib.Analysis.Complex.Schwarz |
| 3 | import Mathlib.Analysis.Fourier.Convolution |
| 4 | import Mathlib.Analysis.PSeries |
| 5 | import Mathlib.LinearAlgebra.Lagrange |
| 6 | import Mathlib.MeasureTheory.Measure.Decomposition.RadonNikodym |
| 7 | import YM.Next.BOUNDARY.Coordinates |
| 8 | import YM.Next.SCHEDULE.Dues |
| 9 | import YM.Push.BETA_TRANSPORT.Comparisons |
| 10 | import YM.Push.CUTOFF_PROJECTORS.Along |
| 11 | import YM.Push.PRICE_COMPILER.Post |
| 12 | import YM.UVNext.FREE_STRESS_CERTIFICATE.Diagonal |
| 13 | |
| 14 | /-! Count ranks at and below 4, with basis response data. -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.UVNext.FreeStress |
| 18 | open Maxwell Labels Climb Table Work.A01 Next.UVStress Function Set Submodule MvPolynomial |
| 19 | variable {G : Gauge} (F : Frames G) {d : ℕ} (hG : G.Simple) |
| 20 | |
| 21 | private lemma not_thin {P : Pol G} (H : IsWeightedHomogeneous generation P 4) (h : d < 4) (hp : P∈limited G d) : P=0 := by |
| 22 | ext b |
| 23 | rw [coeff_zero] |
| 24 | by_contra hv |
| 25 | have hz := (MvPolynomial.mem_restrictSupport_iff ℂ).mp hp (mem_support_iff.mpr hv) |
| 26 | change height b ≤ d at hz; have he : height b = 4 := H hv |
| 27 | omega |
| 28 | |
| 29 | include hG in |
| 30 | lemma just_one (h : d < 4) (P : Label G d) : ∃ t : ℂ, P = t • Labels.unit G d := by |
| 31 | obtain ⟨c,f,hf⟩ := span_four hG (raiseLabel G h.le P) |
| 32 | let Q : Pol G := ∑ i : Place 0, ∑ k : Place 0, f i k • tape i k |
| 33 | have he : P.val = c • (1:Pol G) + Q := by |
| 34 | have hh := congr_arg (fun x : Label G 4 => x.val) hf |
| 35 | change P.val = _ at hh |
| 36 | simpa only [Submodule.coe_add,SetLike.val_smul, AddSubmonoidClass.coe_finsetSum,bond,Q,Labels.unit] using hh |
| 37 | have hl : Q=0 := by |
| 38 | refine not_thin ?_ h ?_ |
| 39 | · apply IsWeightedHomogeneous.sum; intro i _; apply IsWeightedHomogeneous.sum; intro k _ |
| 40 | rw [← MvPolynomial.C_mul']; exact (graded_tape i k).C_mul _ |
| 41 | rw [show Q=P.val-c • (1:Pol G) by rw [he]; abel] |
| 42 | exact (limited G d).sub_mem P.property.1 ((limited G d).smul_mem c (Labels.unit G d).property.1) |
| 43 | rw [hl,add_zero] at he |
| 44 | exact ⟨c,Subtype.ext he⟩ |
| 45 | |
| 46 | include hG in |
| 47 | lemma below (h : d < 4) (P : (freeTable F).Field d) : ∃ t : ℂ, P=t • (freeTable F).unit d := by |
| 48 | obtain ⟨P,rfl⟩ := covers F P; obtain ⟨t,rfl⟩ := just_one hG h P |
| 49 | exact ⟨t,by rw [map_smul,pin_unit]⟩ |
| 50 | |
| 51 | include hG in |
| 52 | theorem dim_before (h : d < 4) : Module.finrank ℂ ((freeTable F).Field d)=1 := by |
| 53 | apply (finrank_eq_one_iff_of_nonzero' ((freeTable F).unit d) ((freeTable F).alive d (table_regular F))).mpr |
| 54 | intro x; obtain ⟨t,rfl⟩ := below F hG h x; exact ⟨t,rfl⟩ |
| 55 | |
| 56 | def keyNo (p : Plane) : ℕ := p.val.1.val*4+p.val.2.val |
| 57 | set_option maxRecDepth 40000 in |
| 58 | lemma numbering : ∀ (p q : Plane), keyNo p = keyNo q → p=q := by decide |
| 59 | abbrev Face := {p : Plane × Plane // keyNo p.1 ≤ keyNo p.2} |
| 60 | |
| 61 | -- Fintype.card_decide via finset not reduces card? try |
| 62 | set_option maxRecDepth 20000 in |
| 63 | lemma howMany : Fintype.card (Option Face) = 22 := by decide |
| 64 | |
| 65 | def sectors : Option Face → Label G 4 |
| 66 | | none => Labels.unit G 4 |
| 67 | | some p => two G 4 le_rfl p.val.1 p.val.2 |
| 68 | |
| 69 | include hG in |
| 70 | lemma up_to : ⊤ ≤ span ℂ (range (sectors (G:=G))) := by |
| 71 | rw [← spanFour hG]; apply span_mono; rintro _ (rfl|⟨i,k,rfl⟩) |
| 72 | exact ⟨none,rfl⟩ |
| 73 | rcases le_total (keyNo i) (keyNo k) with h|h |
| 74 | exact ⟨some ⟨(i,k),h⟩,rfl⟩ |
| 75 | exact ⟨some ⟨(k,i),h⟩,two_flip _ k i⟩ |
| 76 | |
| 77 | def modulator (p : Face) := if p.val.1=p.val.2 then (2:ℂ)⁻¹ else 1 |
| 78 | def portLine : Option Face → ((freeTable F).Field 4 →ₗ[ℂ] ℂ) |
| 79 | | none => expectation (freeTable F) 4 |
| 80 | | some p => modulator p • reader F 0 p.val.1 p.val.2 |
| 81 | |
| 82 | include hG in |
| 83 | lemma separates (p q : Option Face) : portLine F p (embed F 4 (sectors q)) = if p=q then 1 else 0 := by |
| 84 | classical |
| 85 | rcases p with _|⟨⟨i,k⟩,hi⟩ <;> rcases q with _|⟨⟨j,g⟩,hj⟩ |
| 86 | · simp only [portLine,sectors,pin_unit,mean_unit (table_regular F),if_true] |
| 87 | · rw [show (if (none: Option Face) = some ⟨(j,g),hj⟩ then (1:ℂ) else 0)=0 from if_neg (by simp)]; exact mean_bond .. |
| 88 | · simp only [portLine, LinearMap.smul_apply,sectors,reader,negative_unit F,smul_zero] |
| 89 | exact (if_neg (by simp)).symm |
| 90 | simp only [portLine,sectors,LinearMap.smul_apply, reader_two F hG,modulator,Option.some.injEq,Subtype.mk.injEq,Prod.mk.injEq] |
| 91 | change ((if i=k then (2:ℂ)⁻¹ else 1) • _) = if i=j ∧ k=g then 1 else 0 |
| 92 | have he : j=k → g=i → i=k := fun h w => numbering _ _ (Nat.le_antisymm hi (by |
| 93 | change keyNo j ≤ _ at hj; rwa [h, w] at hj)) |
| 94 | split_ifs <;> norm_num at * <;> grind |
| 95 | |
| 96 | include hG in |
| 97 | lemma freelance : LinearIndependent ℂ (embed F 4 ∘ sectors) := by |
| 98 | classical |
| 99 | apply Fintype.linearIndependent_iff.mpr |
| 100 | intro g he i |
| 101 | have hh := congr_arg (portLine F i) he |
| 102 | simpa only [map_zero,map_sum,map_smul,Function.comp_apply,separates F hG,smul_eq_mul,mul_ite, |
| 103 | mul_one,mul_zero,Finset.sum_ite_eq,Finset.mem_univ,if_true] using hh |
| 104 | |
| 105 | include hG in |
| 106 | def stand : Module.Basis (Option Face) ℂ ((freeTable F).Field 4) := Module.Basis.mk (freelance F hG) (by |
| 107 | let s := span ℂ (Set.range (sectors (G:=G))) |
| 108 | have he : s.map (embed F 4) = span ℂ (range (embed F 4 ∘ sectors)) := by unfold s; rw [map_span, ← range_comp] |
| 109 | rw [show s = ⊤ from eq_top_iff.mpr (up_to hG),Submodule.map_top, LinearMap.range_eq_top.mpr (covers F)] at he |
| 110 | exact le_of_eq he) |
| 111 | |
| 112 | include hG in |
| 113 | theorem four_size : Module.finrank ℂ ((freeTable F).Field 4) = 22 := by |
| 114 | rw [Module.finrank_eq_card_basis (stand F hG),howMany] |
| 115 | |
| 116 | end YM.UVNext.FreeStress |