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 Mathlib.Analysis.Calculus.ParametricIntegral |
| 2 | import YM.Next.MAXWELL.Contact |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # One-jet and two-source Ward charges |
| 7 | |
| 8 | Same actual collar Window, not needing uniformity of shrinking the arm |
| 9 | of the test. Translation center derivatives below keep even the angular |
| 10 | vector field **fixed**. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Maxwell.Free |
| 15 | open Set Function Filter Tensor Analysis MeasureTheory |
| 16 | open scoped ContDiff Topology BigOperators InnerProductSpace |
| 17 | |
| 18 | variable {G : Gauge} {j l : ℕ} |
| 19 | |
| 20 | lemma pulse_differentiated (x u : E4) (s : ℝ) (p : Probe G j) (i l : Axis) {y : E4} (h : x+s • u ≠ y) : |
| 21 | HasDerivAt (fun t : ℝ => pulse p (x+t • u) i l y) (pulse (raiseLeg u p) (x+s • u) i l y) s := by |
| 22 | let P (t : ℝ) := x+t • u |
| 23 | let F := responded G (extension p) i l |
| 24 | have hp : HasDerivAt P u s := by |
| 25 | refine (((hasDerivAt_id' s).smul_const u).const_add x).congr_deriv ?_ |
| 26 | simp |
| 27 | have he : ContDiffAt ℝ ∞ F (P s-y) := (response (G := G) (extension p)).smooth i l _ (sub_ne_zero.mpr h) |
| 28 | have hs := (he.differentiableAt (by simp)).hasFDerivAt.comp_hasDerivAt s (hp.sub_const y) |
| 29 | change HasDerivAt (fun t : ℝ => pulse p (x+t • u) i l y) (D u F _) s at hs |
| 30 | refine hs.congr_deriv ?_ |
| 31 | ext c |
| 32 | let g := fun z : E4 => K p (omegaLeg c i l) z y |
| 33 | let L := (EuclideanSpace.proj c : G.Color →L[ℝ] ℝ) |
| 34 | have hk : (fderiv ℝ g (P s)) u = K (raiseLeg u p) (omegaLeg c i l) (P s) y := |
| 35 | K_left_D _ _ h u |
| 36 | have hw : g =ᶠ[𝓝 (P s)] L ∘ F ∘ ((·-y) : E4 → E4) := by |
| 37 | filter_upwards [isOpen_compl_singleton.mem_nhds (show P s ∈ ({y} : Set E4)ᶜ from h)] with z hz |
| 38 | exact K_observe p c i l hz |
| 39 | have hf : HasFDerivAt ((·-y) : E4 → E4) (ContinuousLinearMap.id ℝ E4) (P s) := |
| 40 | (hasFDerivAt_id (P s)).sub_const _ |
| 41 | have hg : HasFDerivAt g (L ∘L fderiv ℝ F (P s-y) ∘L ContinuousLinearMap.id ℝ E4) (P s) := |
| 42 | (L.hasFDerivAt.comp (P s) ((he.differentiableAt (by simp)).hasFDerivAt.comp (P s) hf)).congr_of_eventuallyEq hw |
| 43 | rw [K_observe _ _ _ _ h, hg.fderiv] at hk |
| 44 | exact hk |
| 45 | |
| 46 | lemma pulse_cont_pair (p : Probe G j) (a b : Axis) {z : E4 × E4} (h : z.1 ≠ z.2) : |
| 47 | ContinuousAt (fun z : E4 × E4 => pulse p z.1 a b z.2) z := |
| 48 | ((response (G := G) (extension p)).smooth a b (z.1-z.2) (sub_ne_zero.mpr h)).continuousAt.comp (x:=z) (f:=fun z : E4 × E4 => z.1-z.2) (continuousAt_fst.sub continuousAt_snd) |
| 49 | |
| 50 | private lemma deriv_current (x u : E4) (s : ℝ) (p : Probe G j) (f : Field G.Color) (v : Drive) |
| 51 | (a : Axis) {y : E4} (h : x+s • u ≠ y) : |
| 52 | HasDerivAt (fun t : ℝ => current v (pulse p (x+t • u)) f a y) |
| 53 | (current v (pulse (raiseLeg u p) (x+s • u)) f a y) s := by |
| 54 | have ht (a b c d) : HasDerivAt (fun t : ℝ => ⟪pulse p (x+t • u) a b y, f c d y⟫_ℝ) |
| 55 | (⟪pulse (raiseLeg u p) (x+s • u) a b y,f c d y⟫_ℝ) s := by |
| 56 | simpa using (pulse_differentiated x u s p a b h).inner ℝ (hasDerivAt_const s (f c d y)) |
| 57 | unfold current cross; refine HasDerivAt.fun_sum fun b _ => HasDerivAt.const_mul (v b y) (HasDerivAt.sub |
| 58 | (HasDerivAt.fun_sum fun c _ => (ht a c b c).add (ht b c a c)) ?_) |
| 59 | exact HasDerivAt.const_mul _ (HasDerivAt.fun_sum fun i _ => HasDerivAt.fun_sum fun l _ => ht i l i l) |
| 60 | |
| 61 | section Charge |
| 62 | variable {U : Set E4} (hU : IsOpen U) {f : Field G.Color} (H : WaveOn U f) |
| 63 | variable {v : Drive} (hv : Killing v) |
| 64 | variable {χ : E4 → ℝ} (hχ : ContDiff ℝ ∞ χ) (Hχ : HasCompactSupport χ) (hs : tsupport χ ⊆ U) |
| 65 | variable {x : E4} (hw : χ =ᶠ[𝓝 x] fun _ => 1) |
| 66 | |
| 67 | include H hv hχ Hχ hs hw |
| 68 | |
| 69 | private theorem flux_pulse_integrable (a : Axis) (p : Probe G j) : |
| 70 | Integrable fun y => grad a χ y • current v (pulse p x) f a y := |
| 71 | shell_cost hχ Hχ (fun y hy => (current_diff hv _ (fun i l => |
| 72 | (pulse_wave p x).smooth i l y (fun he : y=x => collar hw (he ▸ hy))) |
| 73 | (fun i l => H.smooth i l y (hs (tsupport_fderiv_subset ℝ hy)))).continuousAt) a |
| 74 | |
| 75 | private theorem deriv_flux (p : Probe G j) (u : E4) : HasDerivAt (fun t : ℝ => singleFlux v χ (pulse p (x+t • u)) f) |
| 76 | (singleFlux v χ (pulse (raiseLeg u p) x) f) 0 := by |
| 77 | classical |
| 78 | unfold singleFlux exportFlux; apply HasDerivAt.neg; apply HasDerivAt.fun_sum; intro a _ |
| 79 | let X (t : ℝ) := x+t • u |
| 80 | have hx : X 0 = x := by simp [X] |
| 81 | have hc : Continuous X := by unfold X; fun_prop |
| 82 | let V := tsupport (fderiv ℝ χ) |
| 83 | have hK : IsCompact V := Hχ.fderiv _ |
| 84 | have ht : ∀ᶠ t in 𝓝 (0:ℝ), χ =ᶠ[𝓝 (X t)] fun _ => 1 := (show Tendsto X (𝓝 0) (𝓝 x) from hx ▸ (show Tendsto X (𝓝 0) (𝓝 (X 0)) from hc.continuousAt)) hw.eventuallyEq_nhds |
| 85 | obtain ⟨r,hr,hr'⟩ := Metric.nhds_basis_closedBall.mem_iff.mp ht |
| 86 | let A := Metric.closedBall (0:ℝ) r |
| 87 | have ha : A ∈ 𝓝 (0:ℝ) := Metric.closedBall_mem_nhds _ hr |
| 88 | let P {j : ℕ} (p : Probe G j) (t : ℝ) (y : E4) := grad a χ y * current v (pulse p (X t)) f a y |
| 89 | let q := raiseLeg u p |
| 90 | have Ht {j : ℕ} (p : Probe G j) {t} (ht : t ∈ A) : Integrable (P p t) := |
| 91 | flux_pulse_integrable H hv hχ Hχ hs (hr' ht) a p |
| 92 | have sep {t} (ht : t ∈ A) {y} (hy : y ∈ V) : X t ≠ y := fun he => collar (hr' ht) (he ▸ hy) |
| 93 | have hg : ContinuousOn (fun z : ℝ × E4 => P q z.1 z.2) (A ×ˢ V) := by |
| 94 | intro z hz; obtain ⟨ht,hy⟩ := hz |
| 95 | have Hu := hs (tsupport_fderiv_subset ℝ hy) |
| 96 | have hp (a b) : ContinuousAt (fun w : ℝ × E4 => pulse q (X w.1) a b w.2) z := |
| 97 | (pulse_cont_pair q a b (z := (X z.1,z.2)) (sep ht hy)).comp (x:=z) (f := fun w : ℝ × E4 => (X w.1,w.2)) |
| 98 | ((hc.continuousAt.comp continuousAt_fst).prodMk continuousAt_snd) |
| 99 | have Hi (a b) : ContinuousAt (fun w : ℝ × E4 => f a b w.2) z := |
| 100 | (H.smooth a b z.2 Hu).continuousAt.comp continuousAt_snd |
| 101 | apply ContinuousAt.continuousWithinAt; unfold P current cross |
| 102 | have sum {q : Axis → ℝ × E4 → ℝ} (h : ∀ i ∈ (Finset.univ : Finset Axis), ContinuousAt (q i) z) : |
| 103 | ContinuousAt (fun p => ∑ i, q i p) z := tendsto_finsetSum _ h |
| 104 | apply ((gradient_smooth hχ a).continuous.comp continuous_snd).continuousAt.mul |
| 105 | refine sum (fun b _ => ((hv.diff b).continuous.continuousAt.comp continuousAt_snd).mul |
| 106 | (ContinuousAt.sub ?_ (continuousAt_const.mul ?_))) |
| 107 | · exact sum (fun i _ => ((hp ..).inner (Hi ..)).add ((hp ..).inner (Hi ..))) |
| 108 | exact sum fun i _ => sum fun j _ => (hp ..).inner (Hi ..) |
| 109 | obtain ⟨C,hC⟩ := ((isCompact_closedBall (0:ℝ) r).prod hK).exists_bound_of_continuousOn hg |
| 110 | let B := V.indicator fun _ => C |
| 111 | have he : HasDerivAt (fun t : ℝ => ∫ y : E4, P p t y) (∫ y : E4, P q 0 y) 0 := |
| 112 | (hasDerivAt_integral_of_dominated_loc_of_deriv_le (F' := P q) (bound := B) ha |
| 113 | (Eventually.mono ha fun t ht => (Ht p ht).1) (Ht p (mem_of_mem_nhds ha)) |
| 114 | (Ht q (mem_of_mem_nhds ha)).1 ?_ ((continuousOn_const.integrableOn_compact hK).integrable_indicator hK.measurableSet) ?_).2 |
| 115 | · simp only [P,hx,q] at he; exact he |
| 116 | · refine Eventually.of_forall fun y t ht => ?_ |
| 117 | by_cases hy : y ∈ V |
| 118 | · rw [show B y = C from indicator_of_mem hy _]; exact hC (t,y) ⟨ht,hy⟩ |
| 119 | have hh : grad a χ y = 0 := image_eq_zero_of_notMem_tsupport fun h => hy (gradient_part χ a h) |
| 120 | simp [B,P,hy,hh] |
| 121 | refine Eventually.of_forall fun y t ht => ?_ |
| 122 | by_cases hy : y ∈ V |
| 123 | · exact (deriv_current x u t p f v a (sep ht hy)).const_mul (grad a χ y) |
| 124 | have hh : grad a χ y = 0 := image_eq_zero_of_notMem_tsupport fun h => hy (gradient_part χ a h) |
| 125 | simpa only [P,hh,zero_mul] using! hasDerivAt_const t (0:ℝ) |
| 126 | |
| 127 | include hU |
| 128 | |
| 129 | /-- One contraction at enclosure. Need `variation` wave (prove for |
| 130 | our translations etc separately). No first-position specialization. -/ |
| 131 | theorem jet_force (h : WaveOn U (variation v f)) (p : Probe G j) : |
| 132 | singleFlux v χ (pulse p x) f = - sample p (variation v f) x := by |
| 133 | induction p using leg_probe_induction generalizing x with |
| 134 | | zero => simp [pulse_zero,singleFlux,exportFlux,current,cross,sample,extension] |
| 135 | | add p q hp hq => |
| 136 | unfold singleFlux exportFlux at hp hq ⊢ |
| 137 | have ht (a : Axis) (y) : current v (pulse (p+q) x) f a y = |
| 138 | current v (pulse p x) f a y + current v (pulse q x) f a y := by |
| 139 | unfold current; simp_rw [pulse_add, cross_comm (_+_) f,cross_adjoin,mul_add, Finset.sum_add_distrib, |
| 140 | ← cross_comm (pulse p x) f, ← cross_comm (pulse q x) f] |
| 141 | simp_rw [ht, smul_add]; simp_rw [integral_add (flux_pulse_integrable H hv hχ Hχ hs hw _ p) |
| 142 | (flux_pulse_integrable H hv hχ Hχ hs hw _ q)] |
| 143 | rw [Finset.sum_add_distrib,neg_add, hp hw,hq hw, ← neg_add,sample_addLeg] |
| 144 | | smul t p hp => |
| 145 | unfold singleFlux exportFlux at hp ⊢ |
| 146 | have ht (a : Axis) (y) : current v (pulse (t • p) x) f a y = t * current v (pulse p x) f a y := by |
| 147 | unfold current; simp_rw [pulse_scale,cross_comm (t • _) f,cross_stretch, ← cross_comm (pulse p x) f, |
| 148 | Finset.mul_sum]; exact Finset.sum_congr rfl fun _ _ => mul_left_comm .. |
| 149 | simp_rw [ht, show ∀ a y, grad a χ y • (t * current v (pulse p x) f a y) = |
| 150 | t * (grad a χ y • current v (pulse p x) f a y) from fun a y => mul_left_comm .., integral_const_mul, ← Finset.mul_sum] |
| 151 | rw [← mul_neg, hp hw, mul_neg,sample_smulLeg] |
| 152 | | vars u c i l => |
| 153 | induction j generalizing x with |
| 154 | | zero => |
| 155 | rw [sample_leg u c i l h hU (hs (enclosed _ hw)),coeff_apply_zero]; |
| 156 | rw [show leg u c i l = omegaLeg c i l by unfold omegaLeg; rw [show u = fun _ => 0 from Subsingleton.elim ..]] |
| 157 | exact local_force hU f H v hv χ hχ Hχ hs hw i l c |
| 158 | | succ j ih => |
| 159 | let p := leg (Fin.tail u) c i l |
| 160 | let X (t : ℝ) := x+t • u 0 |
| 161 | have hx : X 0 = x := by simp [X] |
| 162 | have hc : Continuous X := by unfold X; fun_prop |
| 163 | have he := deriv_flux H hv hχ Hχ hs hw p (u 0) |
| 164 | have hu : HasDerivAt X (u 0) 0 := by |
| 165 | refine (((hasDerivAt_id' (0:ℝ)).smul_const (u 0)).const_add x).congr_deriv ?_ |
| 166 | simp |
| 167 | have hs' : X 0 ∈ U := hx.symm ▸ hs (enclosed _ hw) |
| 168 | have hg := (((sample_smooth p h hs').differentiableAt (by simp)).hasFDerivAt.comp_hasDerivAt 0 hu).neg |
| 169 | have hd : singleFlux v χ (pulse (raiseLeg (u 0) p) x) f = -D (u 0) (sample p (variation v f)) x := by |
| 170 | refine he.unique ((hg.congr_deriv (by rw [hx]; rfl)).congr_of_eventuallyEq ?_) |
| 171 | filter_upwards [(show Tendsto X (𝓝 0) (𝓝 x) from hx ▸ (show Tendsto X (𝓝 0) (𝓝 (X 0)) from hc.continuousAt)) hw.eventuallyEq_nhds] with t ht |
| 172 | exact ih (Fin.tail u) ht |
| 173 | rw [sample_deriv p (u 0) (fun a b => (h.smooth a b x (hs (enclosed _ hw))).of_le |
| 174 | (WithTop.coe_le_coe.mpr le_top)), sample_deriv_label _ p h hU (hs (enclosed _ hw))] at hd |
| 175 | unfold p at hd; rw [raises, Fin.cons_self_tail] at hd |
| 176 | let t : ℝ := (↑(j+1 : ℕ) : ℝ) |
| 177 | have ht' (a : Axis) (y) : current v (pulse (t • leg u c i l) x) f a y = |
| 178 | t * current v (pulse (leg u c i l) x) f a y := by |
| 179 | unfold current; simp_rw [pulse_scale,cross_comm (t • _) f,cross_stretch, ← cross_comm (pulse (leg u c i l) x) f, |
| 180 | Finset.mul_sum]; exact Finset.sum_congr rfl fun _ _ => mul_left_comm .. |
| 181 | rw [show (↑(j+1 : ℕ):ℝ) = t from rfl, sample_smulLeg, singleFlux,exportFlux] at hd |
| 182 | simp_rw [ht',show ∀ a y, grad a χ y • (t * current v (pulse (leg u c i l) x) f a y) = |
| 183 | t * (grad a χ y • current v (pulse (leg u c i l) x) f a y) from fun a y => mul_left_comm .., |
| 184 | integral_const_mul, ← Finset.mul_sum] at hd |
| 185 | rw [← mul_neg, ← mul_neg] at hd |
| 186 | exact mul_left_cancel₀ (by dsimp [t]; positivity : t≠0) hd |
| 187 | |
| 188 | end Charge |
| 189 | |
| 190 | end YM.Maxwell.Free |