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.Push.STRESS_FLUX.Counts |
| 2 | |
| 3 | /-! |
| 4 | # Dilation contraction in real polar weight five |
| 5 | -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.Trace |
| 9 | open StressFlux Labels Gauge Maxwell Tensor Analysis Function Set |
| 10 | open scoped Topology BigOperators Matrix.Norms.Frobenius InnerProductSpace ContDiff |
| 11 | variable {G : Gauge} |
| 12 | |
| 13 | /-- Half the gradient of the curvature total `∑ Fij Fij`. -/ |
| 14 | def momentum2 (G : Gauge) (b : Axis) := ∑ i : Axis, ∑ j : Axis, pairDeriv G i j b i j |
| 15 | /-- Half the derivative in direction b of the curvature mountain `∑ Fbi Fbi`. -/ |
| 16 | def momentum1 (G : Gauge) (b : Axis) := ∑ i : Axis, pairDeriv G b i b b i |
| 17 | private lemma sumPerm (s : Signed) (F : Axis→Axis→Label G 5) : (∑ i : Axis, ∑ j : Axis, F (s.perm i) (s.perm j))= |
| 18 | ∑ i : Axis, ∑ j : Axis, F i j:= by |
| 19 | have h (b): (∑ j, F b (s.perm j)) = ∑ j, F b j := Equiv.sum_comp s.perm _ |
| 20 | simp_rw [h]; exact Equiv.sum_comp s.perm (fun b=>∑ j, F b j) |
| 21 | lemma momentum2_turn (t : Signed) (a : Axis) : tensor t.ortho (momentum2 G a)= sign t a • momentum2 G (t.perm a) := by |
| 22 | have he i j b : (sign t i*sign t j)*(sign t b*(sign t i*sign t j)) = sign t b := by unfold sign; split_ifs <;> norm_num |
| 23 | have ht := sumPerm t (fun i j=> pairDeriv G i j (t.perm a) i j) |
| 24 | simp only [momentum2,map_sum,pairDeriv_turn,he,← Finset.smul_sum,ht] |
| 25 | lemma momentum2_mem : momentum2 G ∈ RawOne G := by |
| 26 | refine ⟨fun a => ?_,momentum2_turn⟩ |
| 27 | change realBar _ = _; simp [momentum2,pairDeriv_real] |
| 28 | lemma momentum1_mem : momentum1 G ∈ RawOne G := by |
| 29 | refine ⟨fun a => ?_, fun t a => ?_⟩ |
| 30 | · change realBar _ = _; simp [momentum1,pairDeriv_real] |
| 31 | change tensor _ _ = _ |
| 32 | have he b j : (sign t b*sign t j)*(sign t b*(sign t b*sign t j)) = sign t b := by unfold sign; split_ifs <;> norm_num |
| 33 | unfold momentum1; simp only [map_sum,pairDeriv_turn,he,← Finset.smul_sum] |
| 34 | exact congr_arg (fun z : Label G 5=> sign t a • z) (Equiv.sum_comp t.perm (fun i=>pairDeriv G (t.perm a) i (t.perm a) (t.perm a) i)) |
| 35 | |
| 36 | -- Certify basis via actual shell jets |
| 37 | lemma curl_degree_one (A : Taylor G 1) (a b i : Axis) (x : E4) : grad i (Tensor.diagonal (takeCurl A a b)) x = curl1 i a b A := by |
| 38 | let L := ContinuousMultilinearMap.ofSubsingleton ℝ E4 G.Color (0:Fin 1) |
| 39 | obtain ⟨f,hf⟩ := L.surjective (takeCurl A a b) |
| 40 | change _=Tensor.diagonal (takeCurl A a b) _ |
| 41 | rw [← hf]; change fderiv ℝ (fun z => f z) x _ = _; rw [f.fderiv]; rfl |
| 42 | |
| 43 | lemma shell_affine (A : Taylor G 0) : ∃ X : Maxwell.Shell G 0, gaugeJet X=A := by |
| 44 | let C:=potential A |
| 45 | have he : C.val ∈ onShell G.Color 0 := by |
| 46 | refine ⟨C.property,fun b z=> Finset.sum_eq_zero fun a _=>?_⟩ |
| 47 | rw [show Tensor.diagonal (C.val a b)=fun _=>Tensor.diagonal (C.val a b) 0 from funext fun x=> congr_arg (C.val a b) (Subsingleton.elim ..)]; simp [grad,D] |
| 48 | refine ⟨⟨C.val,he⟩,?_⟩ |
| 49 | change potential.symm (potential A)=_ |
| 50 | rw [LinearEquiv.symm_apply_apply] |
| 51 | |
| 52 | lemma shell_quadratic (A : Taylor G 1) (h : ∀ b : Axis, ∑ i : Axis, curl1 i i b A = 0) : |
| 53 | ∃ X : Maxwell.Shell G 1, gaugeJet X=A := by |
| 54 | let C:=potential A |
| 55 | have he : C.val ∈ onShell G.Color 1 := by |
| 56 | refine ⟨C.property, fun b x=> ?_⟩ |
| 57 | change ∑ i : Axis, grad i (Tensor.diagonal (takeCurl A i b)) _ = _ |
| 58 | simp only [curl_degree_one]; exact h b |
| 59 | refine ⟨⟨C.val,he⟩,?_⟩ |
| 60 | change potential.symm (potential A)=_ |
| 61 | rw [LinearEquiv.symm_apply_apply] |
| 62 | |
| 63 | def basisV : (Fin 3 → ℝ) →ₗ[ℝ] RawOne G where |
| 64 | toFun w := w 0 • (⟨momentum1 G,momentum1_mem⟩ : RawOne G) + w 1 • (⟨momentum2 G,momentum2_mem⟩ : RawOne G) + w 2 • (⟨eom G,eom_rows G⟩ : RawOne G) |
| 65 | map_add' v w := by simp only [Pi.add_apply,add_smul]; abel |
| 66 | map_smul' t v := by simp only [Pi.smul_apply,smul_eq_mul, smul_add,mul_smul, RingHom.id_apply] |
| 67 | lemma basisV_apply (w : Fin 3 → ℝ) (a : Axis) : ((basisV (G:=G) w).val a) = w 0 • momentum1 G a + w 1 • momentum2 G a + w 2 • eom G a := rfl |
| 68 | |
| 69 | set_option maxHeartbeats 600000 in |
| 70 | private lemma test_m (e : G.Color) (he : ‖e‖=1) : ∃ X : TaylorTower G, let J:=fun i=> gaugeJet (X i); |
| 71 | read J (momentum1 G 0).val=0 ∧ read J (momentum2 G 0).val=(4/3:ℂ) := by |
| 72 | obtain ⟨x,hx⟩:= shell_affine (leg0 1 2 e) |
| 73 | obtain ⟨y,hy⟩:= shell_quadratic (leg1 0 1 2 e) (by |
| 74 | intro b; fin_cases b <;> norm_num [Fin.sum_univ_four,curl1_leg,basis_eq,Fin.ext_iff]) |
| 75 | refine ⟨fun i=> match i with | 0 => x | 1=>y | i+2=>0,?_⟩ |
| 76 | dsimp only |
| 77 | have he' : inner ℝ e e = 1 := by rw [real_inner_self_eq_norm_sq,he]; ring |
| 78 | suffices hh : ∀ J : Jet G, J 0 = leg0 1 2 e→J 1=leg1 0 1 2 e → |
| 79 | read J (momentum1 G 0).val=0 ∧ read J (momentum2 G 0).val=(4/3:ℂ) from hh _ hx hy |
| 80 | intro J hJ hK; simp only [momentum1, momentum2, AddSubmonoidClass.coe_finsetSum,map_sum]; change (∑ i, read J (pairDeriv ..).val)=_ ∧ (∑ i, ∑ j, read J (pairDeriv ..).val)=_ |
| 81 | simp only [pairDeriv_value,hJ,hK] |
| 82 | norm_num [Fin.sum_univ_four,curl0_leg,curl1_leg,basis_eq,Fin.ext_iff,real_inner_smul_right,real_inner_smul_left,he] |
| 83 | |
| 84 | private lemma test_n (e : G.Color) (he : ‖e‖=1) : ∃ X : TaylorTower G, |
| 85 | read (fun i=> gaugeJet (X i)) (momentum1 G 0).val=1 := by |
| 86 | obtain ⟨x,hx⟩:= shell_affine (leg0 0 1 e) |
| 87 | obtain ⟨y,hy⟩:= shell_quadratic (leg1 0 0 1 e-leg1 2 2 1 e) (by |
| 88 | intro b; fin_cases b <;> norm_num [Fin.sum_univ_four,curl1_leg,basis_eq,Fin.ext_iff]) |
| 89 | refine ⟨fun i=> match i with | 0 => x | 1=>y | i+2=>0,?_⟩ |
| 90 | suffices hh : ∀ J : Jet G, J 0=leg0 0 1 e→J 1=leg1 0 0 1 e-leg1 2 2 1 e → |
| 91 | read J (momentum1 G 0).val=1 from hh _ hx hy |
| 92 | intro J hJ hK; simp only [momentum1, AddSubmonoidClass.coe_finsetSum,map_sum]; change (∑ i, read J (pairDeriv ..).val)=1 |
| 93 | simp only [pairDeriv_value,hJ,hK] |
| 94 | norm_num [Fin.sum_univ_four,curl0_leg,curl1_leg,basis_eq,Fin.ext_iff,real_inner_smul_right,real_inner_smul_left,he] |
| 95 | |
| 96 | lemma through_eq (w : Fin 3 → ℝ) (h : G.Simple) : |
| 97 | (∀ b : Axis, (basisV w).val b ∈ equationIdeal G 5) ↔ w 0=0 ∧ w 1=0 := by |
| 98 | constructor |
| 99 | · intro H |
| 100 | obtain ⟨v,hv⟩ := has_color h |
| 101 | have he (X : TaylorTower G) (b : Axis) : let J:=fun i=>gaugeJet (X i); |
| 102 | w 0 • read J (momentum1 G b).val+w 1 • read J (momentum2 G b).val=0 := by |
| 103 | have ha:= ideal_meaning.mp (H b) X; simp only [basisV_apply,Submodule.coe_add,Submodule.coe_smul_of_tower,map_add,read_smul,ideal_meaning.mp (eom_null (G:=G) b) X,smul_zero,add_zero] at ha; exact ha |
| 104 | obtain ⟨X,hX,hY⟩:= test_m v hv |
| 105 | obtain ⟨Y,hF⟩:= test_n v hv |
| 106 | have h1 : w 1=0 := by |
| 107 | have ht:=he X 0; simp only [hX,hY,smul_zero,zero_add] at ht; norm_num [Complex.real_smul] at ht; exact ht |
| 108 | refine ⟨?_,h1⟩; have ht:=he Y 0; simp [hF,h1, Complex.real_smul] at ht; exact ht |
| 109 | rintro ⟨hw,hW⟩ b; rw [basisV_apply,hW,hw,zero_smul,zero_smul,add_zero,zero_add] |
| 110 | rw [ideal_meaning]; intro X; rw [Submodule.coe_smul_of_tower,read_smul,ideal_meaning.mp (eom_null _) X,smul_zero] |
| 111 | |
| 112 | lemma coordinates1 (h : G.Simple) : Bijective (basisV (G:=G)) := by |
| 113 | have hu : Injective (basisV (G:=G)) := by |
| 114 | refine (LinearMap.ker_eq_bot (R:=ℝ) (R₂:=ℝ) (M:=Fin 3 → ℝ) (M₂:=↥(RawOne G)) (f:=(basisV (G:=G)))).mp ?_ |
| 115 | refine LinearMap.ker_eq_bot'.mpr ?_; intro w hw |
| 116 | obtain ⟨h1,h2⟩:= (through_eq w h).mp (fun b=>by rw [hw]; exact (equationIdeal G 5).zero_mem) |
| 117 | have hz : w 2 • eom G=0 := funext fun i=>by |
| 118 | have he:=basisV_apply (G:=G) w i; rw [hw,h1,h2] at he; simpa using! he.symm |
| 119 | have hc := (smul_eq_zero.mp hz).resolve_right (eom_nonzero h); ext1 i; fin_cases i <;> simp [*] |
| 120 | have he:= finrank_one h |
| 121 | haveI : FiniteDimensional ℝ (Label G 5) := Module.Finite.trans ℂ _ |
| 122 | refine ⟨hu,LinearMap.range_eq_top.mp (Submodule.eq_top_of_finrank_eq (K:=ℝ) (V:=↥(RawOne G)) ?_)⟩ |
| 123 | have ht:=LinearMap.finrank_range_of_inj hu; rw [Module.finrank_fin_fun] at ht |
| 124 | exact le_antisymm (Submodule.finrank_le _) (ht.symm ▸ he) |
| 125 | |
| 126 | end YM.Trace |