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.Next.ROTATIONS.Axis |
| 2 | import YM.Ward.Genuine |
| 3 | |
| 4 | /-! |
| 5 | # Character projection with off-centre spectators. Includes complex-conjugate convention |
| 6 | |
| 7 | Orbit projections in raw alphabet distinct words vs actual labels in quotient. Equations |
| 8 | use only guarded readout. -/ |
| 9 | noncomputable section |
| 10 | namespace YM.Outer |
| 11 | open Set Filter Function MeasureTheory Measure Table OS Row Word Boundary Complex |
| 12 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators NNReal ENNReal ComplexConjugate |
| 13 | variable {G : Gauge} {L : Register G} {S : Table L} |
| 14 | |
| 15 | lemma ink_join (s t : Signed) (A : Weight L) : ink s (ink t A)=ink (s*t) A := by |
| 16 | induction A using Finsupp.induction_linear with |
| 17 | | zero => simp |
| 18 | | add _ _ h k => simp [h,k] |
| 19 | | single i z => rw [ink_single,ink_single,ink_single]; congr 1; exact Subtype.ext (act_comp s t _) |
| 20 | lemma ink_one (A : Weight L) : ink 1 A=A := by |
| 21 | induction A using Finsupp.induction_linear with |
| 22 | | zero => simp |
| 23 | | add _ _ h k => simp [h,k] |
| 24 | | single i z => rw [ink_single]; congr 1; exact Subtype.ext (act_id _) |
| 25 | lemma mirror_k (i j : Axis) (A : Weight L) : ink (Signed.mirror i) (ink (Signed.mirror j) A)=ink (Signed.mirror j) (ink (Signed.mirror i) A) := by |
| 26 | rw [ink_join,ink_join, show Signed.mirror i*Signed.mirror j=Signed.mirror j*Signed.mirror i from ?_] |
| 27 | refine Signed.ext rfl ?_ |
| 28 | ext1 k |
| 29 | simp [Signed.mirror,Bool.xor_comm]; rfl |
| 30 | lemma mirror_square (i : Axis) (A : Weight L) : ink (Signed.mirror i) (ink (Signed.mirror i) A)= A := by |
| 31 | rw [ink_join, show Signed.mirror i*Signed.mirror i=1 from by |
| 32 | conv_lhs => lhs; rw [← Signed.mirror_inv i] |
| 33 | exact inv_mul_cancel _, ink_one] |
| 34 | |
| 35 | def chooseSign (i : Axis) (b : Bool) (A : Weight L) := (2:ℂ)⁻¹ • (A+signValue b • ink (Signed.mirror i) A) |
| 36 | lemma chosen (i : Axis) (b : Bool) (A : Weight L) : Own (chooseSign i b A) i b := by |
| 37 | unfold Own chooseSign |
| 38 | rw [map_smul,map_add,map_smul,mirror_square,smul_comm,smul_add (signValue b),smul_smul,sign_sq,one_smul,add_comm] |
| 39 | lemma stable {j : Axis} (i b c) (A : Weight L) (h : Own A j c) : Own (chooseSign i b A) j c := by |
| 40 | unfold Own chooseSign |
| 41 | rw [map_smul,map_add,h,map_smul,mirror_k,h,map_smul,smul_comm (signValue c),smul_add (signValue c),smul_comm (signValue b)] |
| 42 | lemma joins (i : Axis) (A : Weight L) : chooseSign i true A+chooseSign i false A=A := by |
| 43 | rw [chooseSign,chooseSign, ← smul_add] |
| 44 | simp only [signValue, Bool.false_eq_true, ↓reduceIte, one_smul,neg_smul] |
| 45 | rw [show (A + -ink (Signed.mirror i) A) + (A + ink (Signed.mirror i) A)=A+A by abel,← two_smul ℂ]; exact inv_smul_smul₀ (by norm_num) _ |
| 46 | |
| 47 | lemma pressed_ink (i a : Axis) (A : Weight L) (H : Pressed i A) : Pressed i (ink (Signed.mirror a) A) := by |
| 48 | intro j hj p hp |
| 49 | obtain ⟨v,rfl⟩ := (rotate (Signed.mirror a)).surjective j |
| 50 | have hv : v∈A.support := by |
| 51 | simp only [Finsupp.mem_support_iff] at * |
| 52 | unfold ink at hj; simpa using hj |
| 53 | obtain ⟨w, hw, rfl⟩ := List.mem_map.mp hp |
| 54 | change Ortho.move (Signed.reflect a) w.1 i=0 |
| 55 | rw [Signed.mirrored, H v hv w hw]; split_ifs <;> simp |
| 56 | lemma pressed_choose (i a : Axis) (A : Weight L) (h : Pressed i A) (b) : Pressed i (chooseSign a b A) := by |
| 57 | classical |
| 58 | intro j hj |
| 59 | rcases Finset.mem_union.mp (Finsupp.support_add (Finsupp.support_smul hj)) with g|g |
| 60 | · exact h j g |
| 61 | exact pressed_ink i a A h j (Finsupp.support_smul g) |
| 62 | |
| 63 | abbrev nice (w : Core L) : Weight L := Finsupp.single w 1 |
| 64 | lemma reads_nice (S : Table L) (v w : Core L) (y : E4) : readsCluster S (nice v) (nice w) y=bare S v w y := by simp [readsCluster,nice] |
| 65 | |
| 66 | def piece {d : ℕ} (v : L.Ref d) : Core L := ⟨[(0,⟨d,v⟩)],locations.mpr (by simp)⟩ |
| 67 | abbrev pick {d : ℕ} (b : S.Field d) := nice (piece (S.representative _ b)) |
| 68 | |
| 69 | lemma raw_read (H : S.Hierarchy) {d : ℕ} (p q : L.Ref d) (z : ℂ) (he : S.project _ p=z • S.project _ q) |
| 70 | (x : E4) (v : L.Word) : |
| 71 | let F (p : L.Ref d) := open scoped Classical in if distinct ((x,⟨d,p⟩)::v) then S.expect ((x,⟨d,p⟩)::v) else 0 |
| 72 | F p=z*F q := by |
| 73 | classical |
| 74 | intro F |
| 75 | have hu : distinct ((x,⟨d,p⟩)::v) ↔ distinct ((x,⟨d,q⟩)::v) := by rw [locations,locations]; rfl |
| 76 | unfold F |
| 77 | by_cases h : distinct ((x,⟨d,q⟩)::v) |
| 78 | swap; · rw [if_neg (mt hu.mp h),if_neg h,mul_zero] |
| 79 | rw [if_pos (hu.2 h),if_pos h,Ward.exact_table (hu.2 h) H, Ward.exact_table h H] |
| 80 | let k := fun i => S.classTokens (tokens v i) |
| 81 | let Q := Fin.cons (α:=fun _ => S.Tag) (⟨d,S.project d q⟩) k |
| 82 | let y := Points.cons x (positions v) |
| 83 | let b (u : S.Field d) := Fin.cons (α:=fun _ => S.Tag) ⟨d,u⟩ k |
| 84 | have heq u : update Q 0 (⟨d,u⟩:S.Tag)= b u := by |
| 85 | ext1 i; refine Fin.cases ?_ (fun j => ?_) i <;> simp [Q,b] |
| 86 | change Ward.disc (b (S.project d p)) y=z*Ward.disc (b (S.project d q)) y |
| 87 | rw [← heq,← heq,← Ward.takes,← Ward.takes,he,map_smul]; rfl |
| 88 | |
| 89 | lemma swapped_cons (H : S.Hierarchy) (x : L.Plant) (w : L.Word) : |
| 90 | let K (p : L.Word) := open scoped Classical in if distinct p then S.expect p else 0 |
| 91 | K (w++[x])=K (x::w) := by |
| 92 | classical |
| 93 | let h : (x::w).Perm (w++[x]) := @List.perm_append_comm _ [x] w |
| 94 | intro K; unfold K |
| 95 | by_cases hp : distinct (x::w) |
| 96 | · rw [if_pos ((locations).mpr ((h.map Prod.fst).nodup (locations.mp hp))), if_pos hp]; exact Table.order S H.laws.toSymmetric hp h |
| 97 | rw [if_neg (fun hz => hp (locations.mpr ((h.symm.map Prod.fst).nodup (locations.mp hz)))),if_neg hp] |
| 98 | |
| 99 | def equalRead (S : Table L) (A B : Weight L) := (∀ C y, readsCluster S C A y=readsCluster S C B y) ∧ ∀ C y, readsCluster S A C y=readsCluster S B C y |
| 100 | lemma raw_value (H : S.Hierarchy) {d} (p q : L.Ref d) (z : ℂ) (he : S.project _ p=z • S.project _ q) : |
| 101 | equalRead S (nice (piece p)) (z • nice (piece q)) := by |
| 102 | classical |
| 103 | have hv (u : L.Ref d) w y : bare S w (piece u) y= if distinct ((y,⟨d,u⟩)::conjugate w.val.reverse) then S.expect ((y,⟨d,u⟩)::conjugate w.val.reverse) else 0 := by |
| 104 | unfold bare piece carry |
| 105 | simp only [List.map_cons,List.map_nil,zero_add]; exact swapped_cons H _ _ |
| 106 | have hl (u : L.Ref d) w y : bare S (piece u) w y= if distinct ((0,⟨d,star u⟩)::carry w.val y) then S.expect ((0,⟨d,star u⟩)::carry w.val y) else 0 := by rfl |
| 107 | constructor |
| 108 | · intro C y; rw [reads_smul_r] |
| 109 | have hr w : bare S w (piece p) y=z*bare S w (piece q) y := by |
| 110 | rw [hv, hv]; exact raw_read H p q z he y _ |
| 111 | unfold nice readsCluster |
| 112 | simp [hr, Finsupp.sum, Finset.mul_sum] |
| 113 | exact Finset.sum_congr rfl fun i hi => by ring |
| 114 | intro C y; rw [reads_smul_l] |
| 115 | have h : S.project _ (star p)=star z • S.project _ (star q) := by rw [← S.conj_project H.spin,he,map_smulₛₗ,S.conj_project];rfl |
| 116 | have hr w : bare S (piece p) w y=star z*bare S (piece q) w y := by |
| 117 | rw [hl,hl]; exact raw_read H _ _ _ h _ _ |
| 118 | unfold nice readsCluster |
| 119 | simp [hr,Finsupp.sum,Finset.mul_sum] |
| 120 | exact Finset.sum_congr rfl fun i hi => by ring |
| 121 | lemma equalRead.trans {A B C : Weight L} (h : equalRead S A B) (l : equalRead S B C) : equalRead S A C := |
| 122 | ⟨fun i j => (h.1 i j).trans (l.1 i j),fun i j => (h.2 i j).trans (l.2 i j)⟩ |
| 123 | lemma equalRead.scale {A B : Weight L} (h : equalRead S A B) (z : ℂ) : equalRead S (z • A) (z • B) := by |
| 124 | constructor |
| 125 | · intro v i; rw [reads_smul_r,reads_smul_r,h.1] |
| 126 | intro v i; rw [reads_smul_l,reads_smul_l,h.2] |
| 127 | lemma equalRead.add {A B C D : Weight L} (h : equalRead S A B) (l : equalRead S C D) : equalRead S (A+C) (B+D) := by |
| 128 | constructor |
| 129 | · intro v i; rw [reads_add_r,reads_add_r,h.1,l.1] |
| 130 | intro v i; rw [reads_add_l,reads_add_l,h.2,l.2] |
| 131 | lemma equalRead.transport (H : S.Hierarchy) {A B : Weight L} (h : equalRead S A B) (s : Signed) : |
| 132 | equalRead S (ink s A) (ink s B) := by |
| 133 | constructor <;> intro v i <;> obtain ⟨y,rfl⟩ := (ink s).surjective v <;> obtain ⟨x,rfl⟩ := s.ortho.motion.surjective i |
| 134 | · rw [Ortho.motion_at,reads_turn S H.spin,reads_turn S H.spin,h.1] |
| 135 | rw [Ortho.motion_at,reads_turn S H.spin,reads_turn S H.spin,h.2] |
| 136 | |
| 137 | lemma signed_value (H : S.Hierarchy) {d} (b : S.Field d) (s : Signed) (e : ℂ) (v : S.Field d) |
| 138 | (h : S.mirror H.spin _ s b=e • v) : equalRead S (ink s (pick b)) (e • pick v) := by |
| 139 | unfold pick nice; rw [ink_single] |
| 140 | let u := S.representative d b |
| 141 | rw [show rotate s (piece (S.representative d b))=piece (L.mirrorGroup d s u) by |
| 142 | apply Subtype.ext |
| 143 | change [(Ortho.move s.ortho 0,L.move s _)] = _ |
| 144 | rw [← Ortho.motion_at,map_zero];rfl] |
| 145 | refine raw_value H _ _ _ ?_ |
| 146 | rw [← S.mirror_project,S.rep]; exact h.trans (by rw [S.rep]) |
| 147 | |
| 148 | /-- Upper singleton stress/fixed field probe, included in all axis matrices in a family. -/ |
| 149 | def Enters (H : S.Hierarchy) (e : Axis → Bool) {d : ℕ} (v : S.Field d) := ∀ i, |
| 150 | S.mirror H.spin d (Signed.mirror i) v=signValue (e i) • v |
| 151 | lemma enters_weights (H : S.Hierarchy) (e : Axis → Bool) {d} (v : S.Field d) (hp : Enters H e v) : |
| 152 | ∃ A : Weight L, equalRead S A (pick v) ∧ (∀ i,Own A i (e i)) ∧ ∀ i,Pressed i A := by |
| 153 | classical |
| 154 | have he (s : Finset Axis) : ∃ A : Weight L,equalRead S A (pick v) ∧ (∀ i∈s,Own A i (e i)) ∧ ∀ i, Pressed i A := by |
| 155 | induction s using Finset.induction_on with |
| 156 | | empty => |
| 157 | refine ⟨pick v,⟨fun _ _ => rfl,fun _ _ => rfl⟩,by simp,fun a i hi p hj => ?_⟩ |
| 158 | unfold pick nice at hi; simp only [Finsupp.support_single _ one_ne_zero, Finset.mem_singleton] at hi |
| 159 | subst i; rw [List.mem_singleton.mp hj]; rfl |
| 160 | | insert i s hi ih => |
| 161 | obtain ⟨A,h,hb,hA⟩ := ih |
| 162 | refine ⟨chooseSign i (e i) A, ?_, fun j he => ?_, fun j => pressed_choose j i A (hA j) _⟩ |
| 163 | · have ht := (h.transport H (Signed.mirror i)).trans (signed_value H v (Signed.mirror i) _ _ (hp i)) |
| 164 | have hl := (h.add (ht.scale (signValue (e i)))).scale ((2:ℂ)⁻¹) |
| 165 | rw [smul_smul (signValue (e i)),sign_sq,one_smul,← two_smul ℂ,inv_smul_smul₀ (by norm_num)] at hl |
| 166 | exact hl |
| 167 | rcases Finset.mem_insert.mp he with rfl|h |
| 168 | · exact chosen .. |
| 169 | exact stable i (e i) (e j) A (hb j h) |
| 170 | obtain ⟨A,h,hb,hA⟩ := he Finset.univ |
| 171 | exact ⟨A,h,fun i => hb i (Finset.mem_univ i),hA⟩ |
| 172 | |
| 173 | lemma pair_reply (H : S.Hierarchy) {d l} (A B : Weight L) (v : S.Field d) (w : S.Field l) |
| 174 | (hp : equalRead S A (pick v)) (hr : equalRead S B (pick w)) (y : E4) (hy : y≠0) : |
| 175 | readsCluster S B A y= Ward.pair ⟨d,v⟩ ⟨l,S.conj H.spin _ w⟩ y := by |
| 176 | rw [hp.1,hr.2]; unfold pick; rw [reads_nice] |
| 177 | let a : L.Plant := (0,⟨l,star (S.representative l w)⟩) |
| 178 | let b : L.Plant := (y,⟨d,S.representative d v⟩) |
| 179 | unfold bare; simp only [piece, carry,List.map_nil,List.map_cons,List.reverse_singleton,Word.conjugate,List.cons_append,List.nil_append,zero_add]; rw [if_pos] |
| 180 | swap; · rw [locations]; simp [Ne.symm hy] |
| 181 | change S.expect [a,b]=_ |
| 182 | rw [Table.order S H.laws.toSymmetric (w:=[a,b]) (v:=[b,a]) (locations.mpr (by simp [b,a,hy])) (List.Perm.swap ..), |
| 183 | show S.expect [b,a]=_ from Ward.scan H b a (show _ from hy)] |
| 184 | simp only [b,a,Table.classTokens,← S.conj_project H.spin,S.rep,sub_zero] |
| 185 | |
| 186 | end YM.Outer |