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.FullVolume.Ray.Anchor |
| 2 | import Mathlib.Algebra.Group.ForwardDiff |
| 3 | /-! Mixed to pure ∆ stencil. -/ |
| 4 | set_option autoImplicit false |
| 5 | noncomputable section |
| 6 | namespace YM.FullVolume.Amp |
| 7 | open Filter Function Finset Asymptotics |
| 8 | open scoped Topology BigOperators NNReal ENNReal ContDiff |
| 9 | variable {X Y I : Type*} [DecidableEq I][SeminormedAddCommGroup X][NormedSpace ℝ X][NormedAddCommGroup Y][NormedSpace ℝ Y] |
| 10 | variable (s:Finset I)(u:I→X)(f:X→Y)(x:X){n:ℕ} |
| 11 | def signed (s:Finset I)(T:Finset I):ℝ:=(-1)^(s.card-T.card) |
| 12 | lemma unfoldP (F : Finset I → Y) {i:I}(h:i∉s): (∑ T ∈ (insert i s|>.powerset), signed (insert i s) T • F T)=(∑ T∈s.powerset,signed s T • (F (insert i T)-F T)):=by |
| 13 | have hh t (ht:t∈s.powerset): i∉t:= fun hf=> h (mem_powerset.mp ht hf) |
| 14 | rw [powerset_insert, sum_union, sum_image]; rotate_left |
| 15 | · intro a ha b hb hu |
| 16 | -- Insertion |
| 17 | simpa [erase_insert (hh _ ha),erase_insert (hh _ hb)] using congr_arg (fun t:Finset I=>t.erase i) hu |
| 18 | · rw [disjoint_left]; intros t ht hV |
| 19 | obtain ⟨w,_,rfl⟩:= mem_image.mp hV |
| 20 | exact hh _ ht (mem_insert_self ..) |
| 21 | rw [← sum_add_distrib]; apply sum_congr rfl; intro t ht |
| 22 | have hp:= card_le_card (mem_powerset.mp ht); rw [smul_sub,signed, signed, signed,card_insert_of_notMem h,card_insert_of_notMem (hh t ht),show s.card+1-(t.card+1)=s.card-t.card from (by omega),show s.card+1-t.card=s.card-t.card+1 from (by omega),pow_succ]; simp; abel |
| 23 | |
| 24 | def block (s:Finset I)(u:I→X)(f:X→Y)(x:X):Y:= ∑ T∈ s.powerset,signed s T • f (x+∑ i∈T,u i) |
| 25 | lemma start : block ∅ u f x=f x:= by simp [block,signed] |
| 26 | lemma cons {i:I}(hi:i∉s): block (insert i s) u f x= block s u f (x+u i)-block s u f x:=by |
| 27 | unfold block; rw [unfoldP _ _ hi, ← sum_sub_distrib]; apply sum_congr rfl; intro T h; rw [smul_sub,sum_insert (show i∉T from fun ht=> hi (mem_powerset.mp h ht)),add_assoc x] |
| 28 | lemma same {v:I→X}(h:∀ i∈s,u i=v i) : block s u f x=block s v f x:= by apply sum_congr rfl; intro T hT; exact congr_arg (fun a=>signed s T • f (x+a)) (sum_congr rfl (fun j hj=>h j (mem_powerset.mp hT hj))) |
| 29 | lemma rear (y:X): block s (fun _=>y) f x= (fwdDiff y)^[s.card] f x := by |
| 30 | induction s using Finset.induction_on generalizing x with |
| 31 | | empty=> rw [start]; rfl |
| 32 | | insert a s h ih=>rw [cons _ _ _ _ h,ih,ih,card_insert_of_notMem h,Function.iterate_succ_apply']; rfl |
| 33 | -- pure weights = REAL |
| 34 | abbrev hat (n j:ℕ):ℝ:= (-1)^(n-j)* n.choose j |
| 35 | lemma face (y:X)(n:ℕ): (fwdDiff y)^[n] f x= ∑ j∈range (n+1), hat n j • f (x+(j:ℝ) • y):= by |
| 36 | rw [fwdDiff_iter_eq_sum_shift]; apply sum_congr rfl; intro j hj; rw [← Int.cast_smul_eq_zsmul ℝ,Nat.cast_smul_eq_nsmul]; simp [hat] |
| 37 | lemma snow (x:X)(x':X)(c:ℝ): block s (fun i=>c • u i) f (x+c • x')= ∑ i∈s.powerset,signed s i • f (x+c • (x'+∑ j∈i,u j)):=by simp [block,smul_add,add_assoc, smul_sum] |
| 38 | section cancel |
| 39 | -- use indexed s, m=s.card and given bij or Fin n univ. Additivity later needs (j+1)= I size changed. generalized inject stamps. |
| 40 | variable (r:I→ℕ)(he:∀ i∈s,r i<s.card)(hu:∀ j,j<s.card→∃ i∈s,r i=j) |
| 41 | def stiff (i:I):ℝ:=( (s.card:ℝ) - r i)⁻¹ |
| 42 | def spine (T:Finset I):X:=∑ i∈T, stiff s r i • u i |
| 43 | def leanW (T:Finset I):X:= ∑ i∈T, -(r i:ℝ) • stiff s r i • u i -- precedence |
| 44 | lemma pinned {i:I}(h:i∉s)(K:Finset I) : spine K u r (insert i s)= stiff K r i • u i+spine K u r s:=sum_insert h |
| 45 | include hu |
| 46 | lemma vacant {j:ℕ}(hj:j<s.card) : (∑ T∈s.powerset,signed s T • f (x+ leanW s u r T+(j:ℝ) • spine s u r T))=0:=by |
| 47 | obtain ⟨a,ha,h⟩:= hu j hj |
| 48 | let H(T:Finset I):= f (x+leanW s u r T +(j:ℝ) • spine s u r T) |
| 49 | have hh t (ht:t∈(s.erase a|>.powerset)): H (insert a t)=H t:=by |
| 50 | have hV:a∉t:= fun h=> notMem_erase _ _ (mem_powerset.mp ht h) |
| 51 | unfold H leanW spine; rw [sum_insert hV,sum_insert hV,h, smul_add]; simp only [neg_smul]; congr 1; abel |
| 52 | change (∑ T∈ _, _ • H T)=0 |
| 53 | have hp : (∑ T∈ s.powerset,signed s T • H T)= ∑ T∈(s.erase a).powerset,signed (s.erase a) T • (H (insert a T)-H T):=by simpa only [insert_erase ha] using unfoldP (s.erase a) H (notMem_erase a s) |
| 54 | exact hp.trans (sum_eq_zero fun t ht=> by rw [hh t ht,sub_self,smul_zero]) |
| 55 | omit hu |
| 56 | include he |
| 57 | lemma diagonal (T:Finset I) (ht:T∈s.powerset): leanW s u r T+(s.card:ℝ) • spine s u r T=∑ i∈T,u i:= by |
| 58 | unfold spine leanW; rw [Finset.smul_sum,← sum_add_distrib]; apply sum_congr rfl; intro i hi |
| 59 | have hp := sub_ne_zero_of_ne ((Nat.cast_lt.mpr (he i (mem_powerset.mp ht hi)): (r i:ℝ)<s.card).ne') |
| 60 | unfold stiff; rw [← add_smul,add_comm,← sub_eq_add_neg,smul_smul,mul_inv_cancel₀ hp,one_smul] |
| 61 | include hu |
| 62 | -- equivalent stencil using t scaling |
| 63 | lemma spelled (x':X) (t:ℝ): block s (fun i=>t • u i) f (x+t • x')= ∑ T∈s.powerset, signed s T • (fwdDiff (t • spine s u r T))^[s.card] f (x+t • (x'+leanW s u r T)) := by |
| 64 | simp_rw [face,smul_sum,smul_comm (signed ..)] |
| 65 | rw [sum_comm,sum_range_succ,sum_eq_zero, zero_add]; swap |
| 66 | · intro j hj; rw [←smul_sum]; suffices hp : (∑ T∈s.powerset, _ • f (x+t • (x'+leanW s u r T)+(j:ℝ) • t • spine s u r T))=0 by rw [hp,smul_zero] |
| 67 | simpa only [smul_add,add_assoc,smul_comm t] using (vacant s u (fun z=> f (x+t • z)) x' r hu (mem_range.mp hj)) |
| 68 | simp [hat]; rw [snow s u _ x x']; apply sum_congr rfl; intro T h; rw [← diagonal s u r he T h]; simp only [smul_add,add_assoc,smul_comm t] |
| 69 | end cancel |
| 70 | end YM.FullVolume.Amp |