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.Source |
| 2 | |
| 3 | /-! |
| 4 | # G01: pulling the actual scaled holonomy |
| 5 | |
| 6 | `pull s 0` evaluates the old configuration at the signed-permuted edge, |
| 7 | so the Taylor components of the connection on the new edge use `turn s.ortho⁻¹`. |
| 8 | For a flipped axis we solve the new ODE by reversing time on the corresponding |
| 9 | positive edge. Separately, **constant** gauge action on the radial variables is |
| 10 | implemented by conjugation, including on the projected curvature readout. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Work.G01 |
| 16 | |
| 17 | open Lattice Labels Source RG Wilson |
| 18 | open Source.Drops |
| 19 | open scoped Matrix.Norms.Frobenius BigOperators |
| 20 | |
| 21 | variable {G : Gauge} |
| 22 | |
| 23 | /-! ### Signed permutation on links -/ |
| 24 | |
| 25 | private def realSite (x : Cover) : E4 := WithLp.toLp 2 fun i => (x i : ℝ) |
| 26 | |
| 27 | private theorem motion_site (s : Signed) (x : Cover) : |
| 28 | Ortho.motion s.ortho (realSite x) = realSite (s.act x) := by |
| 29 | rw [Ortho.motion_at, Signed.ortho_move] |
| 30 | apply PiLp.ext |
| 31 | intro k |
| 32 | obtain ⟨i, rfl⟩ := s.perm.surjective k |
| 33 | cases h : s.flip i <;> simp [realSite, h] |
| 34 | |
| 35 | private theorem motion_axis (s : Signed) (i : Axis) : |
| 36 | Ortho.motion s.ortho (basis i) = (if s.flip i then (-1 : ℝ) else 1) • basis (s.perm i) := by |
| 37 | apply PiLp.ext |
| 38 | intro k |
| 39 | rw [Ortho.motion_at, Ortho.move, M4.move_basis] |
| 40 | by_cases h : s.perm i = k |
| 41 | · subst k |
| 42 | cases hf : s.flip i <;> simp [Signed.ortho, Signed.matrix_at, hf] |
| 43 | · cases hf : s.flip i <;> simp [Signed.ortho, Signed.matrix_at, h, Ne.symm h] |
| 44 | |
| 45 | private theorem realSite_prev (x : Cover) (i : Axis) : |
| 46 | realSite (x - step i) = realSite x - basis i := by |
| 47 | apply PiLp.ext |
| 48 | intro k |
| 49 | by_cases hk : k = i <;> simp [realSite, hk] |
| 50 | |
| 51 | private theorem potential_turn (s : Signed) (d : ℕ) (J : Jet G) (i : Axis) (z : E4) : |
| 52 | potential d (changedJet (fun _ => Taylor.turn s.ortho⁻¹) J) i z = |
| 53 | (if s.flip i then (-1 : ℝ) else 1) • potential d J (s.perm i) (Ortho.motion s.ortho z) := by |
| 54 | unfold potential |
| 55 | rw [Finset.smul_sum] |
| 56 | apply Finset.sum_congr rfl |
| 57 | intro j _ |
| 58 | simp only [changedJet, Taylor.turn_value, inv_inv, Ortho.motion_at] |
| 59 | rw [Finset.sum_eq_single_of_mem (s.perm i) (Finset.mem_univ _)] |
| 60 | · rw [show s.ortho⁻¹.val i (s.perm i) = star (s.matrix (s.perm i) i) from rfl] |
| 61 | simp only [star_trivial, s.matrix_at, ↓reduceIte] |
| 62 | · intro k _ hk |
| 63 | rw [show s.ortho⁻¹.val i k = star (s.matrix k i) from rfl] |
| 64 | simp [Signed.matrix_at, Ne.symm hk] |
| 65 | |
| 66 | private theorem part_turn (s : Signed) (d : ℕ) (J : Jet G) (h t : ℝ) (x : Cover) (i : Axis) : |
| 67 | partConnection d (changedJet (fun _ => Taylor.turn s.ortho⁻¹) J) h (x, i) t = |
| 68 | h • ((if s.flip i then (-1 : ℝ) else 1) • |
| 69 | potential d J (s.perm i) |
| 70 | (h • (realSite (s.act x) + t • ((if s.flip i then (-1 : ℝ) else 1) • basis (s.perm i))))) := by |
| 71 | change h • potential d _ i (h • (realSite x + t • basis i)) = _ |
| 72 | rw [potential_turn, map_smul, map_add, map_smul, motion_axis, motion_site] |
| 73 | |
| 74 | /-- For `u'=u A` we multiply the reversed path on the *left* by its |
| 75 | (new) initial value's inverse. This realizes transport for the minus direction. -/ |
| 76 | theorem solves_backward {A : ℝ → G.Color} {u : ℝ → G.El} (hu : SolvesLink u A) : |
| 77 | SolvesLink (fun t => (u 1)⁻¹ * u (1-t)) (fun t => - A (1-t)) := by |
| 78 | refine ⟨by simp, fun t => ?_⟩ |
| 79 | have hr : HasDerivAt (fun x : ℝ => G.mat (u (1-x))) |
| 80 | (-(G.mat (u (1-t)) * G.colorMat (A (1-t)))) t := |
| 81 | (hu.2 (1-t)).comp_const_sub 1 t |
| 82 | simpa only [G.mat_mul, mul_assoc, map_neg, mul_neg] using! (hr.const_mul (G.mat ((u 1)⁻¹))) |
| 83 | |
| 84 | theorem swirls_of_flow (H : Hol G) : Bid.swirls H := by |
| 85 | intro s d J h |
| 86 | funext e |
| 87 | rcases e with ⟨x, i⟩ |
| 88 | let Y := changedJet (fun _ => Taylor.turn s.ortho⁻¹) J |
| 89 | change ((posDir i).rotate s).read (H.links d J h) (affine s 0 x) = H.flow d Y h (x,i) 1 |
| 90 | rw [affine, add_zero] |
| 91 | cases hs : s.flip i with |
| 92 | | false => |
| 93 | have he : partConnection d Y h (x,i) = partConnection d J h (s.act x,s.perm i) := by |
| 94 | funext t |
| 95 | unfold Y |
| 96 | rw [part_turn] |
| 97 | simp [hs, partConnection, realSite] |
| 98 | have hu := H.solves d Y h (x,i) |
| 99 | rw [he] at hu |
| 100 | rw [show (posDir i).rotate s = posDir (s.perm i) by simp [Step.rotate, posDir, hs], |
| 101 | Step.pos_read] |
| 102 | exact congr_fun ((H.solves _ _ _ _).unique hu) 1 |
| 103 | | true => |
| 104 | let p : Edge Cover := (s.act x - step (s.perm i), s.perm i) |
| 105 | have he : partConnection d Y h (x,i) = fun t => - partConnection d J h p (1-t) := by |
| 106 | funext t |
| 107 | unfold Y |
| 108 | rw [part_turn] |
| 109 | change h • ((if s.flip i then (-1 : ℝ) else 1) • _) = |
| 110 | -(h • potential d J (s.perm i) (h • (realSite (s.act x - step (s.perm i)) + |
| 111 | (1-t) • basis (s.perm i)))) |
| 112 | simp only [hs, ↓reduceIte, neg_one_smul, smul_neg, realSite_prev] |
| 113 | rw [show realSite (s.act x) + -(t • basis (s.perm i)) = |
| 114 | realSite (s.act x) - basis (s.perm i) + (1-t) • basis (s.perm i) by |
| 115 | rw [sub_smul, one_smul] |
| 116 | abel] |
| 117 | have hu := H.solves d Y h (x,i) |
| 118 | rw [he] at hu |
| 119 | rw [show (posDir i).rotate s = negDir (s.perm i) by simp [Step.rotate, posDir, negDir, hs], |
| 120 | Step.neg_read] |
| 121 | change (H.flow d J h p 1)⁻¹ = _ |
| 122 | simpa only [sub_self, (H.solves d J h p).1, mul_one] using |
| 123 | congr_fun ((solves_backward (H.solves d J h p)).unique hu) 1 |
| 124 | |
| 125 | /-! ### Gauge action -/ |
| 126 | |
| 127 | theorem solves_adjoint (q : G.El) {A : ℝ → G.Color} {u : ℝ → G.El} (hu : SolvesLink u A) : |
| 128 | SolvesLink (fun t => q * u t * q⁻¹) (fun t => G.adjoint q (A t)) := by |
| 129 | refine ⟨by simp [hu.1], fun t => ?_⟩ |
| 130 | simp only [G.mat_mul, G.mat_inv, G.mat_adjoint, Gauge.conjugate] |
| 131 | have hd := ((hu.2 t).const_mul (G.mat q)).mul_const (star (G.mat q)) |
| 132 | apply hd.congr_deriv |
| 133 | rw [show G.mat q * G.mat (u t) * star (G.mat q) * (G.mat q * G.colorMat (A t) * star (G.mat q)) = |
| 134 | G.mat q * G.mat (u t) * (star (G.mat q) * G.mat q) * G.colorMat (A t) * star (G.mat q) by |
| 135 | simp only [mul_assoc], G.mat_star_mul, mul_one] |
| 136 | simp only [mul_assoc] |
| 137 | |
| 138 | theorem links_colored (H : Hol G) (d : ℕ) (q : G.El) (J : Jet G) (h : ℝ) : |
| 139 | H.links d (colored q J) h = gauge (fun _ => q) (H.links d J h) := by |
| 140 | funext p |
| 141 | have he : partConnection d (colored q J) h p = fun t => G.adjoint q (partConnection d J h p t) := by |
| 142 | funext t |
| 143 | simp only [partConnection, potential, colored, Taylor.paint_value, map_smul, map_sum] |
| 144 | have hn := H.solves d (colored q J) h p |
| 145 | rw [he] at hn |
| 146 | exact congr_fun (hn.unique (solves_adjoint q (H.solves d J h p))) 1 |
| 147 | |
| 148 | /-- The based slot eval retains only the gauge action at the origin: |
| 149 | its curvature is *transported* and uses the actual real Lie projection. -/ |
| 150 | theorem slot_eval_gauge (v : Slot) (U : CoverConfig G) (q : Cover → G.El) : |
| 151 | v.eval (gauge q U) = G.adjoint (q 0) (v.eval U) := by |
| 152 | simp only [Slot.eval, travel_gauge, face_gauge, Gauge.curvature_conjugate] |
| 153 | rw [Slot.offset] |
| 154 | rw [← G.adjoint_mul, ← G.adjoint_mul] |
| 155 | rw [inv_mul_cancel_right] |
| 156 | |
| 157 | theorem answer : YM.Bid.G01 := by |
| 158 | intro G H |
| 159 | refine ⟨swirls_of_flow H, fun d v u A => ?_⟩ |
| 160 | have he : expand d (Cast u A) = colored u (expand d A) := by |
| 161 | funext i |
| 162 | by_cases h : i < d-1 <;> simp [expand, h, Cast, colored] |
| 163 | unfold takes |
| 164 | rw [he, links_colored, slot_eval_gauge] |
| 165 | |
| 166 | end YM.Work.G01 |