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.UVNext.FREE_STRESS_CERTIFICATE.Cube |
| 2 | |
| 3 | /-! Residual permutations in the frame fixing axis zero (or zero and one). |
| 4 | Count both orders for the two-tail sums. -/ |
| 5 | set_option autoImplicit false |
| 6 | noncomputable section |
| 7 | namespace YM.UVNext.FreeStress |
| 8 | open Maxwell Labels Climb Table Work.A01 Next.UVStress Function Set Submodule |
| 9 | variable {G : Gauge} (F : Frames G) {d : ℕ} (H : (freeTable F).RealSpin) |
| 10 | |
| 11 | abbrev Wheels := Equiv.Perm Axis |
| 12 | def round (s : Wheels) : Signed := ⟨s,fun _ => false⟩ |
| 13 | def ride (d : ℕ) (s : Wheels) : Module.End ℂ ((freeTable F).Field d) := |
| 14 | (freeTable F).mirror H d (round s) |
| 15 | lemma eps_round (s : Wheels) (i : Axis) : eps (round s) i = 1 := by |
| 16 | simp [round,eps,Signed.matrix_at] |
| 17 | |
| 18 | @[simp] lemma ride_link (p : Wheels) (a b c k : Axis) (h : 4 ≤ d) : |
| 19 | ride F H d p (link F d h a b c k) = link F d h (p a) (p b) (p c) (p k) := by |
| 20 | simp only [ride,signed_link,eps_round,one_mul,Complex.ofReal_one,one_smul]; rfl |
| 21 | @[simp] lemma ride_first (p : Wheels) (a b c e k : Axis) : |
| 22 | ride F H 5 p (first F a b c e k) = first F (p a) (p b) (p c) (p e) (p k) := by |
| 23 | simp only [ride,signed_first,eps_round,one_mul,Complex.ofReal_one,one_smul]; rfl |
| 24 | @[simp] lemma ride_unit (p : Wheels) : ride F H d p ((freeTable F).unit d) = (freeTable F).unit d := by simp [ride] |
| 25 | |
| 26 | variable {X : Type*} [AddCommGroup X] |
| 27 | |
| 28 | def singles (f : Axis → X) := ∑ a : Axis, if a=0 then 0 else f a |
| 29 | def pairs (f : Axis → Axis → X) := singles fun a => singles fun b => if a=b then 0 else f a b |
| 30 | |
| 31 | def thirds (f : Axis → X) := ∑ a : Axis, if a=0 ∨ a=1 then 0 else f a |
| 32 | |
| 33 | lemma singles_sum (f : Axis → X) (h : f 0=0) : (∑ a : Axis, f a) = singles f := by |
| 34 | unfold singles; apply Finset.sum_congr rfl; intro b _; by_cases he : b=0 <;> simp [he,h] |
| 35 | lemma pairs_sum (f : Axis → Axis → X) (h : ∀ a, f a 0=0) (hl : ∀ a, f 0 a=0) (he : ∀ a, f a a=0) : |
| 36 | (∑ a : Axis, ∑ b : Axis, f a b)=pairs f := by |
| 37 | have hp (a : Axis) : (∑ b : Axis, f a b) = singles fun b => if a=b then 0 else f a b := by |
| 38 | rw [singles_sum _ (h a)]; unfold singles |
| 39 | congr 1; funext b; split_ifs with hh <;> simp_all |
| 40 | unfold pairs; rw [singles_sum _ (by simp [hl])]; simp_rw [hp] |
| 41 | lemma thirds_sum (f : Axis → X) (h : f 0=0) (k : f 1=0) : (∑ a : Axis, f a) = thirds f := by |
| 42 | unfold thirds; apply Finset.sum_congr rfl; intro b _; split_ifs with he |
| 43 | · rcases he with rfl|rfl <;> assumption |
| 44 | rfl |
| 45 | |
| 46 | lemma single_change (f g : Axis → X) (h : ∀ i≠0, f i=g i) : singles f = singles g := by |
| 47 | apply Finset.sum_congr rfl; intro i _; split_ifs with he |
| 48 | rfl |
| 49 | exact h _ he |
| 50 | lemma pair_change (f g : Axis → Axis → X) (h : ∀ i≠0,∀ j≠0,i≠j→f i j=g i j) : pairs f=pairs g := by |
| 51 | apply single_change; intro i he; apply single_change; intro j hj |
| 52 | split_ifs with hh |
| 53 | rfl |
| 54 | exact h _ he _ hj hh |
| 55 | |
| 56 | -- axis certificate indep of fields |
| 57 | lemma single_eval (f : Axis → X) : singles f = f 1 + f 2 + f 3 := by |
| 58 | change (∑ a : Fin (3+1), if a=(0:Axis) then (0:X) else f a) = _ |
| 59 | rw [Fin.sum_univ_succ,Fin.sum_univ_succ, Fin.sum_univ_succ,Fin.sum_univ_one] |
| 60 | change (if (0:Axis)=0 then (0:X) else _) + ((if (1:Axis)=0 then 0 else f 1) + |
| 61 | ((if (2:Axis)=0 then 0 else f 2)+(if (3:Axis)=0 then 0 else f 3))) = _ |
| 62 | simp [add_assoc] |
| 63 | lemma pair_eval (f : Axis→Axis→X) : pairs f = f 1 2 + f 1 3 + f 2 1 + f 2 3 + f 3 1 + f 3 2 := by |
| 64 | simp only [pairs,single_eval] |
| 65 | simp [add_assoc] |
| 66 | lemma third_eval (f : Axis → X) : thirds f = f 2 + f 3 := by |
| 67 | change (∑ a : Fin (3+1), if a=0∨a=1 then (0:X) else f a) = _ |
| 68 | rw [Fin.sum_univ_succ,Fin.sum_univ_succ, Fin.sum_univ_succ, Fin.sum_univ_one] |
| 69 | change (if (0:Axis)=0 ∨ (0:Axis)=1 then (0:X) else _) + ((if (1:Axis)=0 ∨ (1:Axis)=1 then 0 else _) + |
| 70 | ((if (2:Axis)=0 ∨ (2:Axis)=1 then 0 else f 2)+(if (3:Axis)=0 ∨ (3:Axis)=1 then 0 else f 3))) = _ |
| 71 | simp |
| 72 | |
| 73 | -- Six orders; not relying on abstract orientation of perm group multiplication |
| 74 | def l12 : Wheels := Equiv.swap 1 2 |
| 75 | def l13 : Wheels := Equiv.swap 1 3 |
| 76 | def l23 : Wheels := Equiv.swap 2 3 |
| 77 | def lP := l12*l23 |
| 78 | def lM := l23*l12 |
| 79 | |
| 80 | def around (f : Wheels → X) := f 1 + f l12 + f l13 + f l23 + f lP + f lM |
| 81 | |
| 82 | lemma tail_four : ∀ i : Axis, i=0 ∨ i=1 ∨ i=2 ∨ i=3 := by decide |
| 83 | |
| 84 | -- `simp` decide handles swaps on literal axes; abbreviate |
| 85 | set_option linter.unusedSimpArgs false in |
| 86 | lemma six_one (f : Axis → X) (i : Axis) (h : i≠0) : |
| 87 | around (fun p => f (p i)) = singles f + singles f := by |
| 88 | rw [single_eval] |
| 89 | rcases tail_four i with rfl | rfl | rfl | rfl |
| 90 | all_goals first | contradiction | (simp [around, l12,l13,l23,lP,lM,Equiv.swap_apply_def]; abel) |
| 91 | set_option linter.unusedSimpArgs false in |
| 92 | lemma six_two (f : Axis→Axis→X) (i j : Axis) (h : i≠0) (hj : j≠0) (ht : i≠j) : |
| 93 | around (fun p => f (p i) (p j)) = pairs f := by |
| 94 | rw [pair_eval] |
| 95 | rcases tail_four i with rfl | rfl | rfl | rfl <;> rcases tail_four j with rfl | rfl | rfl | rfl |
| 96 | all_goals first | contradiction | (simp [around, l12,l13,l23,lP,lM,Equiv.swap_apply_def]; abel) |
| 97 | lemma two_one (f : Axis→X) (i : Axis) (h : i≠0) (ht : i≠1) : f i + f (l23 i) = thirds f := by |
| 98 | rw [third_eval] |
| 99 | rcases tail_four i with rfl|rfl|rfl|rfl |
| 100 | all_goals first | contradiction | simp [l23, add_comm] |
| 101 | lemma around_ext (f g : Wheels → X) (h : ∀ p : Wheels,p 0=0→ f p=g p) : around f=around g := by |
| 102 | unfold around; rw [h 1 (by decide), h l12 (by decide), h l13 (by decide), h l23 (by decide),h lP (by decide),h lM (by decide)] |
| 103 | |
| 104 | def revolving (d : ℕ) : Module.End ℂ ((freeTable F).Field d) := around (ride F H d) |
| 105 | def lastPair (d : ℕ) : Module.End ℂ ((freeTable F).Field d) := LinearMap.id + ride F H d l23 |
| 106 | |
| 107 | theorem revolve_value (v : (freeTable F).Field d) : revolving F H d v = around fun p => ride F H d p v := by |
| 108 | simp only [revolving,around,LinearMap.add_apply] |
| 109 | |
| 110 | theorem secure (v : (freeTable F).Field d) (h : ∀ p : Wheels,p 0=0 → ride F H d p v=v) |
| 111 | (U : Submodule ℂ ((freeTable F).Field d)) (ht : v ∈ U.comap (revolving F H d)) : v∈U := by |
| 112 | change revolving F H d v ∈ U at ht; rw [revolve_value, around_ext _ (fun _ : Wheels=>v) h] at ht |
| 113 | have he : around (fun _ : Wheels=>v) = (6:ℂ) • v := by unfold around; module |
| 114 | rw [he] at ht; have hQ := U.smul_mem ((6:ℂ)⁻¹) ht; rw [smul_smul] at hQ; norm_num at hQ; exact hQ |
| 115 | |
| 116 | theorem securing (v : (freeTable F).Field d) (h : ride F H d l23 v=v) |
| 117 | (U : Submodule ℂ ((freeTable F).Field d)) (ht : v ∈ U.comap (lastPair F H d)) : v∈U := by |
| 118 | change v+ride F H d l23 v ∈ U at ht; rw [h,← two_smul ℂ] at ht |
| 119 | have hQ := U.smul_mem ((2:ℂ)⁻¹) ht; rw [smul_smul] at hQ; norm_num at hQ; exact hQ |
| 120 | |
| 121 | lemma harvest_single (f : Axis → (freeTable F).Field d) (i : Axis) (hi : i ≠ 0) (he : ∀ p : Wheels,p 0=0 → ride F H d p (f i) = f (p i)) |
| 122 | (U : Submodule ℂ ((freeTable F).Field d)) (hU : singles f∈U) : f i ∈ U.comap (revolving F H d) := by |
| 123 | change revolving F H d (f i) ∈ U |
| 124 | rw [revolve_value,around_ext _ (fun p => f (p i)) he,six_one _ _ hi]; exact U.add_mem hU hU |
| 125 | lemma harvest_pair (f : Axis → Axis → (freeTable F).Field d) (i j : Axis) (hi : i≠0) (hj : j≠0) (ht : i≠j) |
| 126 | (he : ∀ p : Wheels,p 0=0 → ride F H d p (f i j) = f (p i) (p j)) |
| 127 | (U : Submodule ℂ ((freeTable F).Field d)) (hU : pairs f∈U) : f i j ∈ U.comap (revolving F H d) := by |
| 128 | change revolving F H d (f i j) ∈ U |
| 129 | rw [revolve_value,around_ext _ (fun p => f (p i) (p j)) he,six_two _ _ _ hi hj ht]; exact hU |
| 130 | |
| 131 | end YM.UVNext.FreeStress |