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.EveryPhase.Cross |
| 2 | import YM.Euclid.Window |
| 3 | |
| 4 | /-! # Bind to the normalized enclosing-shell rule. Use Euclidean time on this side. -/ |
| 5 | set_option autoImplicit false |
| 6 | noncomputable section |
| 7 | namespace YM.EveryPhase.Stress |
| 8 | open Function Set Filter MeasureTheory Metric Boundary Next.BOUNDARY Mink Complex Probe Table |
| 9 | open Work.C20 Next.BOUNDARY.Descent |
| 10 | open scoped Topology BigOperators LineDeriv |
| 11 | variable {n d : ℕ} |
| 12 | |
| 13 | def first (j : Fin (n+1)) : Equiv.Perm (Fin (n+1)) where |
| 14 | toFun := Fin.cons j j.succAbove |
| 15 | invFun := hole j Fin.succ 0 |
| 16 | left_inv i := by refine Fin.cases ?_ ?_ i <;> simp |
| 17 | right_inv i := by refine Fin.succAboveCases j ?_ ?_ i <;> simp |
| 18 | |
| 19 | lemma first_coord (j : Fin (n+1)) : first j 0=j := rfl |
| 20 | lemma first_next (j : Fin (n+1)) (k : Fin n) : first j k.succ=j.succAbove k := by |
| 21 | simp [first] |
| 22 | lemma hole_first {A : Type*} (j : Fin (n+1)) (v : Fin n → A) (a) : hole j v a ∘ first j=Fin.cons a v := by |
| 23 | funext i; refine Fin.cases ?_ ?_ i <;> simp [first_coord,first_next] |
| 24 | lemma seat_first (j : Fin (n+1)) (x : Points n) (y : E4) : Points.rearrange (first j) (seat j x y)=Points.cons y x := by |
| 25 | ext1 i; refine Fin.cases ?_ ?_ i <;> simp [first_coord,first_next, Points.cons] |
| 26 | |
| 27 | def pureU (x : Points n) : Times n := fun i => (YM.time (x i) : ℂ)*I |
| 28 | def pureDock (x : Points n) : Dock n := ((Boundary.trace x,pureU x),0) |
| 29 | lemma pure_time {x : Points n} (hx : x∈ordered n) : pureU x ∈ strict n := by |
| 30 | intro i j hj; simp [pureU]; exact hx hj |
| 31 | lemma pure_lay (x : Points n) : laid (Boundary.trace x) (pureU x)=wickSlice n x := by |
| 32 | rw [wick_glow,laid]; congr 2 |
| 33 | all_goals (funext i; simp [pureU,readings]) |
| 34 | lemma ink_hole {G : Gauge} {L : Register G} {S : Table L} (v : Fin n → S.Tag) (j : Fin (n+1)) (i : S.Tag) : |
| 35 | Bid.ink (hole j v i)=hole j (Bid.ink v) (S.pin i.1 i.2) := by |
| 36 | funext k; refine Fin.succAboveCases j ?_ ?_ k |
| 37 | · unfold Bid.ink; rw [hole_self,hole_self] |
| 38 | intro k; unfold Bid.ink; rw [hole_next,hole_next] |
| 39 | lemma sets_scene (x : Points n) (y : E4) (j : Fin (n+1)) : |
| 40 | hole j (pureU x) ((YM.time y:ℂ)*I) = pureU (seat j x y) := by |
| 41 | funext i; refine Fin.succAboveCases j ?_ ?_ i <;> simp [pureU] |
| 42 | lemma opens_scene (x : Points n) (y : E4) (j : Fin (n+1)) |
| 43 | (h : hole j (pureU x) ((YM.time y:ℂ)*I)∈strict (n+1)) : seat j x y ∈ ordered (n+1) := by |
| 44 | rw [sets_scene] at h |
| 45 | intro p q hp; simpa only [pureU,Complex.mul_I_im,ofReal_re,readings] using! h hp |
| 46 | lemma lodge_sets (j : Fin (n+1)) (x : Points n) (y : E4) : |
| 47 | lodge j (Boundary.trace x) (pureU x) (spatial y) ((YM.time y:ℂ)*I) = wickSlice _ (seat j x y) := by |
| 48 | rw [lodge,sets_scene] |
| 49 | rw [show hole j (Boundary.trace x) (spatial y)= Boundary.trace (seat j x y) by |
| 50 | funext i; refine Fin.succAboveCases j ?_ ?_ i <;> simp [Boundary.trace],pure_lay] |
| 51 | lemma ordered_conf {x : Points n} (h : x∈ordered n) : x∈conf n := place_same x ▸ clear (y:=readings x) h (Boundary.trace x) |
| 52 | |
| 53 | -- relabel spectators to prepared shell, moving B to 0 |
| 54 | -- leave stress first |
| 55 | def linger (v : Equiv.Perm (Fin n)) : Equiv.Perm (Fin (n+1)) where |
| 56 | toFun := Fin.cons (α:=fun _ => Fin (n+1)) 0 (fun i => (v i).succ) |
| 57 | invFun := Fin.cons (α:=fun _ => Fin (n+1)) 0 (fun i => (v.symm i).succ) |
| 58 | left_inv i := by refine Fin.cases ?_ ?_ i <;> simp |
| 59 | right_inv i := by refine Fin.cases ?_ ?_ i <;> simp |
| 60 | |
| 61 | variable {G : Gauge} {L : Register G} {S U : Table L} {W : Surface S} |
| 62 | {D : ∀ n, Blanket n} {Z : W.Aurora D} {P : DiffPlan S} {H : S.RealSpin} {F : Waves S} |
| 63 | |
| 64 | -- define Euclidean densities, with B moved front. B given at weight d. |
| 65 | |
| 66 | def ordering (S U : Table L) (v : Fin n → S.Tag) (x : Points (n+1)) (k : Fin (n+1)) (B : S.Tag) |
| 67 | (a : S.Tag) (y : E4) := S.useAt U (Points.cons y (Points.rearrange (first k) x)) (Fin.cons a (Fin.cons B v)) |
| 68 | lemma order_corr (U : Table L) (hU : U.Symmetric) (v : Fin n → S.Tag) (x : Points (n+1)) (k : Fin (n+1)) (B : S.Tag) |
| 69 | (a : S.Tag) (y : E4) (j : Fin (n+2)) (hx : seat j x y∈conf (n+2)) : |
| 70 | S.useAt U (seat j x y) (hole j (hole k v B) a)=ordering S U v x k B a y := by |
| 71 | have hz := Points.rearrange_in (first j) hx; rw [seat_first] at hz |
| 72 | rw [← S.class_perm U hU (first j) hx,seat_first,hole_first, ← S.class_perm U hU (linger (first k)) hz] |
| 73 | unfold ordering; congr 1 |
| 74 | · ext1 i; refine Fin.cases ?_ ?_ i |
| 75 | · simp [linger,Points.cons] |
| 76 | intro l; simp [Points.cons,linger] |
| 77 | funext i; refine Fin.cases ?_ ?_ i |
| 78 | · simp [linger] |
| 79 | intro l; simp [linger]; exact congr_fun (hole_first k v B) l |
| 80 | |
| 81 | def curtain (U : Table L) (K : Killing) (T : S.Stress) (v : Fin n → S.Tag) (x : Points (n+1)) (k : Fin (n+1)) |
| 82 | (B : S.Tag) (a : Axis) (y : E4) := ∑ b : Axis, K.we b y * ordering S U v x k B ⟨4,T a b⟩ y |
| 83 | |
| 84 | lemma waveT_pure (hU : U.Hierarchy) (hF : F.Region U) (hZ : Z.FullBody F) (K : Killing) (T : S.Stress) (v : Fin n → S.Tag) |
| 85 | (x : Points (n+1)) (k : Fin (n+1)) (j : Fin (n+2)) (B : S.Tag) (a : Axis) (y : E4) |
| 86 | (h : hole j (pureU x) ((YM.time y:ℂ)*I) ∈ strict (n+2)) : |
| 87 | waveT Z K (Bid.ink (hole k v B)) T j a (Boundary.trace x) (pureU x) ((YM.time y:ℂ)*I) (spatial y)= |
| 88 | curtain U K T v x k B a y := by |
| 89 | unfold waveT tide; rw [lodge_sets]; unfold curtain |
| 90 | apply Finset.sum_congr rfl; intro b _; rw [K.w_wick,seat_seat, |
| 91 | show hole j (Bid.ink (hole k v B)) (S.pin 4 (T a b))=Bid.ink (hole j (hole k v B) ⟨4,T a b⟩) from |
| 92 | (ink_hole (hole k v B) j ⟨4,T a b⟩).symm,emit_root hF hZ _ (opens_scene x y j h), |
| 93 | order_corr U hU.laws.toSymmetric v _ _ _ _ _ _ (ordered_conf (opens_scene x y j h))] |
| 94 | |
| 95 | lemma one_variable (v : Fin n → S.Tag) (q : Points (n+1)) (d : ℕ) (U : Table L) : |
| 96 | ∃ A : S.Field d →ₗ[ℂ] ℂ, ∀ w, A w=S.useAt U q (Fin.cons ⟨d,w⟩ v) := by |
| 97 | let r := fun i : Fin n => (⟨(v i).1,S.representative _ (v i).2⟩ : L.Token) |
| 98 | refine ⟨(U.injectFront r q d).comp (S.representative d), ?_⟩ |
| 99 | intro w; rw [LinearMap.comp_apply,U.head_read] |
| 100 | let t := Fin.cons (α:=fun _ => S.Tag) (⟨d,w⟩ : S.Tag) v |
| 101 | have he : S.useAt U q t= U.read q (fun i => ⟨(t i).1,S.representative _ (t i).2⟩) := rfl |
| 102 | rw [he] |
| 103 | congr 1; funext i; refine Fin.cases ?_ ?_ i |
| 104 | · rfl |
| 105 | intro l; rw [Fin.cons_succ]; exact congr_arg (fun s : S.Tag => (⟨s.1,S.representative s.1 s.2⟩ : L.Token)) |
| 106 | (show t l.succ=v l from Fin.cons_succ ..).symm |
| 107 | |
| 108 | lemma we_split (K : Killing) (x y : E4) (A Y : M4) (ha : K.V=A+Y) (hs : spaceLikeGen A) (ht : boostLike Y) (b) : |
| 109 | K.we b y=K.we b x + (M4.move A (y-x) b : ℂ)+(-I)*(M4.move (Y*theta) (y-x) b:ℂ) := by |
| 110 | have hw (p : E4) : K.we b p = zeta b*(K.translation b:ℂ)+(∑ i : Axis, Killing.tilted K.V b i * (p i:ℂ)) := by |
| 111 | unfold Killing.we Killing.w |
| 112 | rw [mul_add,Finset.mul_sum]; refine congr_arg (zeta b*(K.translation b:ℂ) + ·) ?_ |
| 113 | exact Finset.sum_congr rfl fun i _ => by unfold Killing.tilted; ring |
| 114 | simp only [hw,ha,Killing.tilted_add,Killing.tilted_space hs,Killing.tilted_boost ht, |
| 115 | M4.at_coord,PiLp.sub_apply,ofReal_sum,ofReal_mul,ofReal_sub,add_assoc,Finset.mul_sum] |
| 116 | rw [← Finset.sum_add_distrib,← Finset.sum_add_distrib] |
| 117 | refine congr_arg (zeta b*(K.translation b:ℂ) + ·) ?_; exact Finset.sum_congr rfl fun i _ => by ring |
| 118 | |
| 119 | -- tested Euclidean charge |
| 120 | |
| 121 | def grounds (U : Table L) (K : Killing) (T : S.Stress) (v : Fin n → S.Tag) (x : Points (n+1)) (k : Fin (n+1)) (B : S.Tag) |
| 122 | (χ : E4 → ℝ) (y : E4) := ∑ a : Axis, ((Analysis.D (basis a) χ y : ℝ) : ℂ)*curtain U K T v x k B a y |
| 123 | |
| 124 | def taskE (U : Table L) (K : Killing) (R : S.Rotation) (P : DiffPlan S) (v : Fin n → S.Tag) (x : Points (n+1)) (k : Fin (n+1)) |
| 125 | (t : S.Tag) := S.useAt U x (hole k v ⟨t.1,rankAction R t.1 K.V t.2⟩)+∑ b : Axis, |
| 126 | K.we b (x k) * S.useAt U x (hole k v ⟨t.1+1,P.deriv t.1 b t.2⟩) |
| 127 | |
| 128 | lemma euclidean_shell (U : Table L) (K : Killing) (P : DiffPlan S) (T : S.Stress) (R : S.Rotation) (v : Fin n → S.Tag) |
| 129 | (x : Points (n+1)) (hx : x∈conf (n+1)) (k : Fin (n+1)) (B : S.Tag) (hU : U.Hierarchy) |
| 130 | (hh : StressLaws U T P.deriv R.lie) (χ : E4 → ℝ) (hχ : Window (Points.rearrange (first k) x) χ) : |
| 131 | Integrable (grounds U K T v x k B χ) ∧ -(∫ y, grounds U K T v x k B χ y)=taskE U K R P v x k B := by |
| 132 | obtain ⟨A,Y,ha,hA,hY⟩ := tangent_parts K.ok |
| 133 | let c : Ortho.Skew := ⟨A,hA.1⟩ |
| 134 | let e : Ortho.Skew := ⟨Y*theta,off_skew hY⟩ |
| 135 | let f (a b : Axis) (w : E4→ℂ) (y : E4) := (((Analysis.D (basis a) χ y : ℝ) : ℂ) * w y)* ordering S U v x k B ⟨4,T a b⟩ y |
| 136 | let X := Points.rearrange (first k) x |
| 137 | have h0 : X 0=x k := by simp [X,first_coord] |
| 138 | have hv := Points.rearrange_in (first k) hx |
| 139 | have h a b w (hw : Continuous w) : Integrable (f a b w) := integrableShell hv hχ hU.smooth _ a w hw |
| 140 | have hf a b : Integrable (f a b (K.we b)) := h a b _ (by unfold Killing.we Killing.w; fun_prop) |
| 141 | have hm (y) : grounds U K T v x k B χ y=∑ a : Axis, ∑ b : Axis, f a b (K.we b) y := by |
| 142 | simp only [grounds,curtain,f,mul_assoc, Finset.mul_sum] |
| 143 | have ht a : Integrable (fun y => ∑ b : Axis, f a b (K.we b) y) := integrable_finsetSum _ fun b _ => hf a b |
| 144 | constructor |
| 145 | · change Integrable (fun y => grounds U K T v x k B χ y) |
| 146 | simp_rw [hm]; exact integrable_finsetSum _ fun a _ => ht a |
| 147 | let W (b : Axis) (r : Ortho.Skew) (y : E4) := (M4.move r.val (y-X 0) b:ℂ) |
| 148 | have hw b r : Continuous (W b r) := by unfold W; apply continuous_ofReal.comp; simp_rw [M4.at_coord]; fun_prop |
| 149 | have he (a b) : (∫ y, f a b (K.we b) y) = K.we b (x k)*(∫ y, f a b (fun _ => 1) y)+ |
| 150 | ((∫ y, f a b (W b c) y)+ (-I)*(∫ y, f a b (W b e) y)) := by |
| 151 | rw [show f a b (K.we b)=fun y => K.we b (x k)*f a b (fun _ => 1) y+(f a b (W b c) y+ (-I)*f a b (W b e) y) by |
| 152 | funext y; dsimp only [f,W,c,e]; rw [h0,we_split K _ _ _ _ ha hA hY]; ring] |
| 153 | have ht : Integrable (fun y => f a b (W b c) y+ (-I)*f a b (W b e) y) := |
| 154 | (h a b _ (hw b c)).add ((h a b _ (hw b e)).const_mul _) |
| 155 | rw [integral_add ((h a b (fun _ => 1) continuous_const).const_mul (K.we b (x k))) ht, |
| 156 | integral_add (h a b _ (hw b c)) ((h a b _ (hw b e)).const_mul (-I)),integral_const_mul,integral_const_mul] |
| 157 | let D₁ (b : Axis) := shellGrad U T χ b X v B.2 |
| 158 | let D₂ (b : Ortho.Skew) := shellSpin U T χ b X v B.2 |
| 159 | have he₁ b : (∑ a : Axis, ∫ y, f a b (fun _ => 1) y)= - D₁ b := by |
| 160 | simp [D₁,shellGrad, ordering,X,f] |
| 161 | have he₂ r : (∑ a : Axis, ∑ b : Axis, ∫ y, f a b (W b r) y)= -D₂ r := by |
| 162 | simp [D₂,shellSpin, W,X,f,ordering] |
| 163 | have hr : rankAction R B.1 K.V B.2 = R.lie B.1 c B.2 + (-I) • R.lie B.1 e B.2 := by |
| 164 | rw [ha,map_add,rank_space R _ hA, rank_boost R _ hY]; rfl |
| 165 | have hq t : S.useAt U x (hole k v t)= S.useAt U X (Fin.cons t v) := by |
| 166 | rw [← S.class_perm U hU.laws.toSymmetric (first k) hx,hole_first] |
| 167 | have hD (b : Axis) : D₁ b = S.useAt U x (hole k v ⟨B.1+1,P.deriv _ b B.2⟩) := (hh.translation hv v hχ b B.1 B.2).trans (hq _).symm |
| 168 | have hH : D₂ c+(-I)*D₂ e=S.useAt U x (hole k v ⟨B.1,rankAction R B.1 K.V B.2⟩) := by |
| 169 | have hz b : D₂ b=S.useAt U X (Fin.cons ⟨B.1,R.lie B.1 b B.2⟩ v) := hh.rotation hv v hχ b B.1 B.2 |
| 170 | obtain ⟨M,hM⟩ := one_variable v X B.1 U |
| 171 | rw [hz,hz,hq,hr]; simp_rw [← hM]; simp |
| 172 | unfold taskE; simp_rw [hm] |
| 173 | rw [← hH,integral_finsetSum _ (fun a _ => ht a)] |
| 174 | simp_rw [integral_finsetSum _ (fun b _ => hf _ b),he,Finset.sum_add_distrib] |
| 175 | rw [Finset.sum_comm (f:=fun a b => K.we b (x k)*(∫ y, f a b (fun _ => 1) y)),he₂] |
| 176 | simp_rw [← Finset.mul_sum]; rw [he₂]; simp_rw [he₁,hD]; simp; ring |
| 177 | end YM.EveryPhase.Stress |