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.Bid.Craft |
| 2 | import YM.Next.BOUNDARY.Unique |
| 3 | import YM.Push.STRESS_FLUX.Jets |
| 4 | import YM.Shift.Breath |
| 5 | |
| 6 | /-! Orbit test under the FULL signed cube for coefficients with two antisymmetric pairs. |
| 7 | This is *not* an isotropic-tensor assumption. Shared by Stress.Line's d=4 and d=5 counts. -/ |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | namespace YM.StressFlux |
| 11 | open Function Gauge |
| 12 | open scoped BigOperators Matrix.Norms.Frobenius ContDiff |
| 13 | |
| 14 | lemma extend_three (i j k : Axis) (h : i ≠ j) (h' : i ≠ k) (h'' : j ≠ k) : |
| 15 | ∃ p : Equiv.Perm Axis, p 0=i ∧ p 1=j ∧ p 2=k := by |
| 16 | have he (a b c : Axis) (hab : a≠b) (hac : a≠c) (hbc : b≠c) : Injective ![a,b,c] := by |
| 17 | intro x y h; fin_cases x <;> fin_cases y <;> simp_all |
| 18 | obtain ⟨p,hp⟩ := Equiv.Perm.exists_extending_pair _ _ (he 0 1 2 (by decide) (by decide) (by decide)) (he i j k h h' h'') |
| 19 | exact ⟨p,hp 0,hp 1,hp 2⟩ |
| 20 | lemma extend_two (i j : Axis) (h : i≠j) : ∃ p : Equiv.Perm Axis, p 0=i ∧ p 1=j := by |
| 21 | obtain ⟨p,hp⟩ := Equiv.Perm.exists_extending_pair ![(0:Axis),1] ![i,j] |
| 22 | (by decide +revert) (by intro a b ha; fin_cases a <;> fin_cases b <;> simp_all) |
| 23 | exact ⟨p,hp 0,hp 1⟩ |
| 24 | |
| 25 | private abbrev hits (t i j : Axis) := t=i ∨ t=j |
| 26 | private abbrev parallel (i j k l : Axis) := (i=k ∧ j=l) ∨ (i=l ∧ j=k) |
| 27 | |
| 28 | private lemma flip_pair (x i j : Axis) : sign (Signed.mirror x) i * sign (Signed.mirror x) j = |
| 29 | if (x=i ↔ x=j) then 1 else -1 := by simp only [sign,Signed.mirror,decide_eq_true_eq]; split_ifs <;> simp_all |
| 30 | private lemma flip_of_ne (x i j : Axis) (h : i≠j) : sign (Signed.mirror x) i * sign (Signed.mirror x) j = |
| 31 | if hits x i j then -1 else 1 := by rw [flip_pair]; unfold hits; split_ifs <;> simp_all |
| 32 | |
| 33 | private lemma eq_parallel {p q i j : Axis} (hp : p ≠ q) (h : hits p i j) (h' : hits q i j) : parallel i j p q := by |
| 34 | obtain h|h := h <;> obtain h'|h' := h' <;> simp_all [parallel] |
| 35 | |
| 36 | private lemma forms {p q i j k l : Axis} (hp : i ≠ j) |
| 37 | (hP : ∀ x, (hits x i j ↔ hits x k l) ↔ (x=p ↔ x=q)) : |
| 38 | (p=q ∧ parallel k l i j) ∨ ∃ t, p≠q ∧ p≠t ∧ q≠t ∧ |
| 39 | ((parallel i j p t ∧ parallel k l q t) ∨ (parallel k l p t ∧ parallel i j q t)) := by |
| 40 | by_cases hq : p=q |
| 41 | · refine Or.inl ⟨hq,eq_parallel hp ((hP i).2 (by rw [hq]) |>.mp (.inl rfl)) ((hP j).2 (by rw [hq]) |>.mp (.inr rfl))⟩ |
| 42 | right |
| 43 | have he : ¬ (hits p i j ↔ hits p k l) := mt (hP p).1 (by simp [hq]) |
| 44 | have hw : ¬ (hits q i j ↔ hits q k l) := mt (hP q).1 (by simp [Ne.symm hq]) |
| 45 | have ht : hits p i j → hits q i j → False := by |
| 46 | intro h h' |
| 47 | have hu := eq_parallel hq h h' |
| 48 | have hk1 : ¬hits p k l := fun e => he (iff_of_true h e) |
| 49 | have hk2 : ¬hits q k l := fun e => hw (iff_of_true h' e) |
| 50 | have hk := (hP k).2 (show (k=p ↔ k=q) by unfold hits at hk1 hk2; grind) |>.2 (Or.inl rfl) |
| 51 | unfold hits parallel at *; grind |
| 52 | obtain hi|hi := Classical.em (hits i k l) |
| 53 | · have hj : ¬hits j k l := by |
| 54 | intro hv |
| 55 | have hv := eq_parallel hp hi hv |
| 56 | unfold parallel hits at *; grind |
| 57 | have hv := (hP j).not.mp (by simp [hits,hj] at *) |
| 58 | have hx := (hP i).mp (by simp [hi,hits] at *) |
| 59 | refine ⟨i,hq,?_,?_,?_⟩ <;> (simp only [hits,parallel] at *; grind) |
| 60 | have hj : hits j k l := by |
| 61 | by_contra! hj |
| 62 | have hv : ¬ (j=p ↔ j=q) := mt (hP j).mpr (by simpa [hits] using hj) |
| 63 | have hx : ¬ (i=p ↔ i=q) := mt (hP i).mpr (by simpa [hits] using hi) |
| 64 | unfold hits at *; grind |
| 65 | have hv := (hP j).mp (show _ from iff_of_true (Or.inr rfl) hj) |
| 66 | have hx := mt (hP i).mpr (show ¬_ from (by simpa [hits] using hi)) |
| 67 | refine ⟨j,hq,?_,?_,?_⟩ <;> (simp only [hits,parallel] at *; grind) |
| 68 | |
| 69 | abbrev Six := Axis → Axis → Axis → Axis → Axis → Axis → ℂ |
| 70 | structure Orbit (A : Six) : Prop where |
| 71 | law (s : Signed) p q i j k l : A p q i j k l = |
| 72 | ((sign s p*sign s q)*((sign s i*sign s j)*(sign s k*sign s l))) • A (s.perm p) (s.perm q) (s.perm i) (s.perm j) (s.perm k) (s.perm l) |
| 73 | swap p q i j k l : A p q i j k l = - A p q j i k l |
| 74 | reverse p q i j k l : A p q i j k l = - A p q i j l k |
| 75 | |
| 76 | private lemma zero_of_neg_self {x : ℂ} (hx : x = - x) : x = 0 := by linear_combination hx/2 |
| 77 | |
| 78 | private lemma Orbit.stencil {A : Six} (h : Orbit A) (p q i j k l : Axis) (hn : A p q i j k l ≠ 0) : |
| 79 | i ≠ j ∧ k ≠ l ∧ ((p=q ∧ parallel k l i j) ∨ ∃ t, p≠q ∧ p≠t ∧ q≠t ∧ |
| 80 | ((parallel i j p t ∧ parallel k l q t) ∨ (parallel k l p t ∧ parallel i j q t))) := by |
| 81 | have hi : i≠j := by rintro rfl; exact hn (zero_of_neg_self (h.swap ..)) |
| 82 | have hk : k≠l := by rintro rfl; exact hn (zero_of_neg_self (h.reverse ..)) |
| 83 | refine ⟨hi,hk, forms hi (fun x => ?_)⟩ |
| 84 | have he := h.law (Signed.mirror x) p q i j k l |
| 85 | rw [flip_pair x p q,flip_of_ne x i j hi, flip_of_ne x k l hk] at he |
| 86 | simp only [Signed.mirror,Equiv.refl_apply] at he |
| 87 | split_ifs at he <;> first | tauto | (exfalso; apply hn; apply zero_of_neg_self; simpa using he) |
| 88 | |
| 89 | lemma Orbit.test {A : Six} (h : Orbit A) |
| 90 | (h1 : A 0 0 0 1 0 1 = 0) (h2 : A 0 0 1 2 1 2 = 0) |
| 91 | (h3 : A 0 2 0 1 2 1 = 0) (h4 : A 0 2 2 1 0 1 = 0) : ∀ a b i j k l, A a b i j k l = 0 := by |
| 92 | have perm (s : Equiv.Perm Axis) := h.law ⟨s, fun _ => false⟩ |
| 93 | simp only [sign,Bool.false_eq_true,if_false,one_mul,one_smul] at perm |
| 94 | have shift (p q i j k l i' j' k' l') (ha : parallel i' j' i j) (hb : parallel k' l' k l) (hz : A p q i j k l=0) : A p q i' j' k' l' = 0 := by |
| 95 | rcases ha with ⟨rfl,rfl⟩|⟨rfl,rfl⟩ <;> rcases hb with ⟨rfl,rfl⟩|⟨rfl,rfl⟩ |
| 96 | · exact hz |
| 97 | · rw [h.reverse, hz,neg_zero] |
| 98 | · rw [h.swap,hz,neg_zero] |
| 99 | rw [h.reverse, h.swap p q _ _ l' k',hz]; simp |
| 100 | have one (p i j : Axis) (hi : i ≠ j) : A p p i j i j = 0 := by |
| 101 | have check (i j : Axis) (hi : i ≠ j) : A i i i j i j = 0 := by |
| 102 | obtain ⟨s,hs,hs'⟩ := extend_two i j hi |
| 103 | rwa [perm s,hs,hs'] at h1 |
| 104 | by_cases hp : p=i |
| 105 | · subst i; exact check _ _ hi |
| 106 | by_cases hq : p=j |
| 107 | · subst j; exact shift _ _ p i p i _ _ _ _ (Or.inr ⟨rfl,rfl⟩) (Or.inr ⟨rfl,rfl⟩) (check p i hi.symm) |
| 108 | obtain ⟨s, hs, hS, hJ⟩ := extend_three p i j hp hq hi |
| 109 | rwa [perm s,hs,hS,hJ] at h2 |
| 110 | have shared (a b t : Axis) (hab : a≠b) (hat : a≠t) (hbt : b≠t) : A a b a t b t=0 ∧ A a b b t a t=0 := by |
| 111 | obtain ⟨s,hs,hS,hB⟩ := extend_three a t b hat hab hbt.symm |
| 112 | rw [perm s, hs, hS,hB] at h3 h4 |
| 113 | exact ⟨h3,h4⟩ |
| 114 | intro a b i j k l |
| 115 | by_contra! he |
| 116 | obtain ⟨hi,-,⟨rfl,H⟩|⟨t,ht,ha,hb,hk|hk⟩⟩ := h.stencil a b i j k l he |
| 117 | · exact he (shift _ _ i j i j _ _ _ _ (Or.inl ⟨rfl,rfl⟩) H (one a i j hi)) |
| 118 | · exact he (shift _ _ a t b t _ _ _ _ hk.1 hk.2 (shared a b t ht ha hb).1) |
| 119 | exact he (shift _ _ b t a t _ _ _ _ hk.2 hk.1 (shared a b t ht ha hb).2) |
| 120 | end YM.StressFlux |