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.Docks |
| 2 | |
| 3 | /-! # The jump is locally constant in the stress time while in range -/ |
| 4 | set_option autoImplicit false |
| 5 | noncomputable section |
| 6 | namespace YM.EveryPhase.Stress |
| 7 | open Function Set Filter MeasureTheory Metric Boundary Next.BOUNDARY Mink Complex Probe |
| 8 | open scoped Topology BigOperators Interval |
| 9 | |
| 10 | lemma vertical {A : Type*} [TopologicalSpace A] {f g : A × ℝ → ℂ} {x : A} (M : ℝ) |
| 11 | (h : ∀ᶠ p in 𝓝 x ×ˢ 𝓝[>] 0, HasDerivAt (fun s => f (p.1,s)) (g p) p.2 ∧ ‖g p‖ ≤ M) |
| 12 | (hk : ∀ᶠ s : ℝ in 𝓝[>] 0, ContinuousAt (fun t => f (t,s)) x) : |
| 13 | ∃ y : ℂ, Tendsto f (𝓝 x ×ˢ 𝓝[>] 0) (𝓝 y) := by |
| 14 | obtain ⟨Z,hZ,W,hW,h⟩ := mem_prod_iff.mp h |
| 15 | obtain ⟨r,hr,hR⟩ := (nhdsGT_basis_Ioc 0).mem_iff.mp hW |
| 16 | let N := max 1 M |
| 17 | have hp : 0<N := lt_of_lt_of_le zero_lt_one (le_max_left _ _) |
| 18 | have he (z : A) (hz : z∈Z) (s t) (hs : s∈Ioc 0 r) (ht : t∈Ioc 0 r) : |
| 19 | dist (f (z,s)) (f (z,t)) ≤ N*|s-t| := by |
| 20 | have hv (i : ℝ) (hi : i∈Ioc 0 r) := h (show (z,i)∈Z ×ˢ W from ⟨hz,hR hi⟩) |
| 21 | rw [dist_eq_norm, ← Real.norm_eq_abs] |
| 22 | exact (convex_Ioc _ _).norm_image_sub_le_of_norm_hasDerivWithin_le (f:=fun s => f (z,s)) (f':=fun j => g (z,j)) |
| 23 | (fun y hy => (hv y hy).1.hasDerivWithinAt) (fun y hy => (hv y hy).2.trans (le_max_right ..)) ht hs |
| 24 | refine cauchy_map_iff_exists_tendsto.mp (uniformity_basis_dist.cauchy_iff.mpr ⟨inferInstance, ?_⟩) |
| 25 | intro ε hε |
| 26 | have hb : ∀ᶠ d in 𝓝[>] (0:ℝ), d≤r := mem_nhdsWithin_of_mem_nhds (ge_mem_nhds hr) |
| 27 | have hy : ∀ᶠ d in 𝓝[>] (0:ℝ), d<ε/4/N := mem_nhdsWithin_of_mem_nhds (gt_mem_nhds (by positivity)) |
| 28 | obtain ⟨d, hd, hw, hb, ht⟩ := (hk.and ((show ∀ᶠ d in 𝓝[>] (0:ℝ), 0<d from self_mem_nhdsWithin).and (hb.and hy))).exists |
| 29 | refine ⟨ball (f (x,d)) (ε/2),?_,?_⟩ |
| 30 | · refine mem_map.mpr ?_ |
| 31 | filter_upwards [prod_mem_prod hZ ((nhdsGT_basis_Ioc 0).mem_of_mem hw), |
| 32 | tendsto_fst.eventually (hd (ball_mem_nhds _ (show 0<ε/4 by positivity)))] with p hp₁ hp₂ |
| 33 | change dist (f (p.1,d)) (f (x,d)) < ε/4 at hp₂ |
| 34 | have hz : 0<p.2 ∧ p.2 ≤ d := hp₁.2 |
| 35 | have hy := he _ hp₁.1 p.2 d ⟨hz.1,hz.2.trans hb⟩ ⟨hw,hb⟩ |
| 36 | have hH : dist (f p) (f (p.1,d)) ≤ N*d := hy.trans (mul_le_mul_of_nonneg_left |
| 37 | (abs_le.mpr ⟨by linarith [hz.1],by linarith [hz.2]⟩) hp.le) |
| 38 | have hv := (lt_div_iff₀ hp).1 ht |
| 39 | change dist (f p) (f (x,d)) < ε/2 |
| 40 | linarith [dist_triangle (f p) (f (p.1,d)) (f (x,d))] |
| 41 | intro a ha b hb |
| 42 | have hh := dist_triangle_right a b (f (x,d)) |
| 43 | change dist a b < ε |
| 44 | linarith [mem_ball.mp ha,mem_ball.mp hb] |
| 45 | |
| 46 | lemma horizontal {f g : ℝ → ℝ → ℂ} {x y : ℝ} (h : ∀ i∈uIcc x y, |
| 47 | (∀ᶠ q : ℝ × ℝ in 𝓝[>] 0 ×ˢ 𝓝 i, HasDerivAt (f q.1) (g q.1 q.2) q.2) ∧ Tendsto g.uncurry (𝓝[>] 0 ×ˢ 𝓝 i) (𝓝 0)) : |
| 48 | Tendsto (fun s => f s y-f s x) (𝓝[>] 0) (𝓝 0) := by |
| 49 | apply Metric.tendsto_nhds.mpr |
| 50 | intro ε hε |
| 51 | let r := ε/(‖y-x‖+1) |
| 52 | have hr : 0<r := by unfold r; positivity |
| 53 | have hC : {p : ℝ × ℝ | HasDerivAt (f p.1) (g p.1 p.2) p.2 ∧ ‖g p.1 p.2‖≤r} ∈ 𝓝[>] 0 ×ˢ 𝓝ˢ (uIcc x y) := by |
| 54 | refine isCompact_uIcc.mem_prod_nhdsSet_of_forall ?_ |
| 55 | intro p hp |
| 56 | filter_upwards [(h p hp).1,(h p hp).2.eventually (ball_mem_nhds 0 hr)] with z hz hw |
| 57 | exact ⟨hz,(lt_of_lt_of_le (by simpa only [Function.uncurry, dist_zero_right] using! mem_ball.mp hw) (le_refl r)).le⟩ |
| 58 | obtain ⟨U,hU,V,hV,h⟩ := mem_prod_iff.mp hC |
| 59 | filter_upwards [hU] with s hs |
| 60 | have ht p (hp : p∈uIcc x y) := h (show (s,p)∈U ×ˢ V from ⟨hs,subset_of_mem_nhdsSet hV hp⟩) |
| 61 | rw [dist_zero_right] |
| 62 | refine lt_of_le_of_lt ((convex_Icc (min x y) (max x y)).norm_image_sub_le_of_norm_hasDerivWithin_le |
| 63 | (fun i hi => (ht i hi).1.hasDerivWithinAt) (fun i hi => (ht i hi).2) left_mem_uIcc right_mem_uIcc) ?_ |
| 64 | calc r * ‖y-x‖ < r*(‖y-x‖+1) := mul_lt_mul_of_pos_left (by linarith) hr |
| 65 | _ = ε := div_mul_cancel₀ _ (by positivity) |
| 66 | |
| 67 | lemma real_path {f : ℂ→ℂ} {u : ℝ→ℂ} {u' f' : ℂ} {p : ℝ} |
| 68 | (h : HasDerivAt f f' (u p)) (hu : HasDerivAt u u' p) : HasDerivAt (fun s => f (u s)) (u'*f') p := |
| 69 | (h.hasFDerivAt.restrictScalars ℝ).comp_hasDerivAt p hu |
| 70 | |
| 71 | variable {G : Gauge} {L : Register G} {S U : Table L} {W : Surface S} |
| 72 | {D : ∀ n, Blanket n} {Z : W.Aurora D} {P : DiffPlan S} {H : S.RealSpin} {F : Waves S} |
| 73 | {n : ℕ} |
| 74 | |
| 75 | -- Common hypotheses of flux passage. Don't forget Euclidean identities later. |
| 76 | structure Prospect (F : Waves S) (Z : W.Aurora D) (U : Table L) (P : DiffPlan S) (H : S.RealSpin) (T : S.Stress) : Prop where |
| 77 | hT : Table.Conserved P H T |
| 78 | hu : U.Hierarchy |
| 79 | hs : S.Symmetric |
| 80 | hi : P.Inclusions S |
| 81 | hd : P.Derivatives U |
| 82 | hF : F.Region U |
| 83 | hZ : Z.FullBody F |
| 84 | |
| 85 | def crest (Z : W.Aurora D) (K : Killing) (T : S.Stress) (v : Fin n → S.Union) (g : Probe Space3) (k : Fin n) |
| 86 | (w : Dock n × ℝ) := harbors Z K v T g k.succ w.1.1.1 w.1.1.2 (morn w.1 k w.2) |
| 87 | |
| 88 | def trough (Z : W.Aurora D) (K : Killing) (T : S.Stress) (v : Fin n → S.Union) (g : Probe Space3) (k : Fin n) |
| 89 | (w : Dock n × ℝ) := harbors Z K v T g k.castSucc w.1.1.1 w.1.1.2 (eve w.1 k w.2) |
| 90 | |
| 91 | lemma first_ports (K : Killing) (T : S.Stress) (v : Fin n → S.Union) (k : Fin n) |
| 92 | (p : Dock n) (hp : p.1.2∈strict n) (he : atlases Z (sundial p k) k) (w : Prospect F Z U P H T) |
| 93 | (g : Probe Space3) (hg : HasCompactSupport ⇑g) (hr : allows p g k) : |
| 94 | ∃ a b : ℂ, |
| 95 | Tendsto (crest Z K T v g k) (𝓝 p ×ˢ 𝓝[>] 0) (𝓝 a) ∧ |
| 96 | Tendsto (trough Z K T v g k) (𝓝 p ×ˢ 𝓝[>] 0) (𝓝 b) := by |
| 97 | obtain ⟨c,hc,hc'⟩ := tidal_shift K T v k p hp he w.hZ g hg hr |
| 98 | let A := crest Z K T v g k |
| 99 | let B := trough Z K T v g k |
| 100 | have h (j) (z : Dock n → ℂ) (h : Continuous z) (ht : hole j p.1.2 (z p)∈strict (n+1)) : |
| 101 | ContinuousAt (fun m : Dock n => harbors Z K v T g j m.1.1 m.1.2 (z m)) p := by |
| 102 | let U := {t : Dock n | hole j t.1.2 (z t)∈strict (n+1)} |
| 103 | have hX : Continuous (fun t : Dock n => t.1.1) := by fun_prop |
| 104 | have hu : Continuous (fun t : Dock n => t.1.2) := by fun_prop |
| 105 | have hU : IsOpen U := (open_strict _).preimage ((hole_hol j).continuous.comp (hu.prodMk h)) |
| 106 | exact (harbors_cont (s:=U) j hX.continuousOn hu.continuousOn h.continuousOn (fun _ h => h) K v T g hg w.hZ).continuousAt (hU.mem_nhds ht) |
| 107 | have hh j q r z := fun hy => harbors_speed K j v T g hg w.hT w.hu w.hs w.hi w.hd w.hF w.hZ q r z hy |
| 108 | have ht : Tendsto (fun s : ℝ => (p,s)) (𝓝[>] 0) (𝓝 p ×ˢ 𝓝[>] 0) := tendsto_const_nhds.prodMk tendsto_id |
| 109 | obtain ⟨a,ha⟩ := vertical (x:=p) (f:=A) (g:=fun x => docks Z K v T g k.succ x.1.1.1 x.1.1.2 (morn x.1 k x.2)) |
| 110 | (‖c‖+1) (by |
| 111 | filter_upwards [affordable p hp k, hc.norm.eventually (ge_mem_nhds (by simp : ‖c‖<‖c‖+1))] with x hx hq |
| 112 | refine ⟨?_,hq⟩ |
| 113 | have he : HasDerivAt (morn x.1 k) I x.2 := by |
| 114 | unfold morn; simpa using ((ofRealCLM.hasDerivAt (x:=x.2)).mul_const I).const_add (town x.1 k) |
| 115 | have hl := real_path (hh k.succ x.1.1.1 _ _ hx.1) he -- inference ambiguity |
| 116 | refine hl.congr_deriv ?_; simp [←mul_assoc]) (by |
| 117 | filter_upwards [ht.eventually (affordable p hp k)] with s hs |
| 118 | exact h k.succ (fun p => morn p k s) (by unfold morn town; fun_prop) hs.1) |
| 119 | obtain ⟨b,hb⟩ := vertical (x:=p) (f:=B) (g:=fun x => -docks Z K v T g k.castSucc x.1.1.1 x.1.1.2 (eve x.1 k x.2)) |
| 120 | (‖c‖+1) (by |
| 121 | filter_upwards [affordable p hp k,hc'.norm.eventually (ge_mem_nhds (by simp : ‖c‖<‖c‖+1))] with x hx hq |
| 122 | refine ⟨?_,by rw [norm_neg]; exact hq⟩ |
| 123 | have he : HasDerivAt (eve x.1 k) (-I) x.2 := by |
| 124 | unfold eve; simpa using (hasDerivAt_const x.2 (town x.1 k )).fun_sub ((ofRealCLM.hasDerivAt (x:=x.2)).mul_const I) |
| 125 | refine (real_path (hh k.castSucc x.1.1.1 _ _ hx.2) he).congr_deriv ?_; simp [←mul_assoc]) (by |
| 126 | filter_upwards [ht.eventually (affordable p hp k)] with s hs |
| 127 | exact h k.castSucc (fun p => eve p k s) (by unfold eve town; fun_prop) hs.2) |
| 128 | exact ⟨a,b,ha,hb⟩ |
| 129 | |
| 130 | def currentJump (Z : W.Aurora D) (K : Killing) (T : S.Stress) (v : Fin n → S.Union) (g : Probe Space3) (k : Fin n) |
| 131 | (w : Dock n × ℝ) := crest Z K T v g k w - trough Z K T v g k w |
| 132 | |
| 133 | lemma variation (K : Killing) (T : S.Stress) (v : Fin n → S.Union) (k : Fin n) |
| 134 | (p : Dock n) (hp : p.1.2∈strict n) (he : atlases Z (sundial p k) k) (w : Prospect F Z U P H T) |
| 135 | (g : Probe Space3) (hg : HasCompactSupport ⇑g) (hr : allows p g k) : |
| 136 | Tendsto (fun s => currentJump Z K T v g k (p,s)-currentJump Z K T v g k ((p.1,0),s)) (𝓝[>] 0) (𝓝 0) := by |
| 137 | let C (t : ℝ) : Dock n := (p.1,t) |
| 138 | let Y s t := docks Z K v T g k.succ p.1.1 p.1.2 (morn (C t) k s) |
| 139 | let X s t := docks Z K v T g k.castSucc p.1.1 p.1.2 (eve (C t) k s) |
| 140 | have hh j q r z := fun hy => harbors_speed K j v T g hg w.hT w.hu w.hs w.hi w.hd w.hF w.hZ q r z hy |
| 141 | refine horizontal (f:=fun s t => currentJump Z K T v g k (C t,s)) (g:=fun s t => -I*Y s t-(-I*X s t)) |
| 142 | (x:=0) (y:=p.2) ?_ |
| 143 | intro i hi |
| 144 | have hC : allows (C i) g k := by |
| 145 | intro j r h |
| 146 | have hv : |i|≤|p.2| := abs_le.mpr ⟨le_trans (le_min (neg_nonpos.mpr (abs_nonneg _)) (neg_abs_le _)) hi.1, |
| 147 | le_trans hi.2 (max_le (abs_nonneg _) (le_abs_self _))⟩ |
| 148 | exact hv.trans_lt (hr j r h) |
| 149 | obtain ⟨c,hc,hb⟩ := tidal_shift K T v k (C i) hp he w.hZ g hg hC |
| 150 | have hd : Continuous C := continuous_const.prodMk continuous_id |
| 151 | have hv : Tendsto (fun w : ℝ × ℝ => (C w.2,w.1)) (𝓝[>] 0 ×ˢ 𝓝 i) (𝓝 (C i) ×ˢ 𝓝[>] 0) := |
| 152 | ((hd.tendsto i).comp tendsto_snd).prodMk tendsto_fst |
| 153 | constructor |
| 154 | · filter_upwards [hv.eventually (affordable (C i) hp k)] with w hw |
| 155 | have hz : HasDerivAt (fun t => morn (C t) k w.1) 1 w.2 := by |
| 156 | simpa [morn,town,C] using ((ofRealCLM.hasDerivAt (x:=w.2)).const_add (p.1.2 k)).add_const ((w.1:ℂ)*I) |
| 157 | have he : HasDerivAt (fun t => eve (C t) k w.1) 1 w.2 := by |
| 158 | simpa [eve,town,C] using ((ofRealCLM.hasDerivAt (x:=w.2)).const_add (p.1.2 k)).sub_const ((w.1:ℂ)*I) |
| 159 | have ht := real_path (u:=fun t => morn (C t) k w.1) (hh k.succ p.1.1 p.1.2 _ hw.1) hz |
| 160 | have hu := real_path (u:=fun t => eve (C t) k w.1) (hh k.castSucc p.1.1 p.1.2 _ hw.2) he |
| 161 | rw [one_mul] at ht hu |
| 162 | exact ht.sub hu |
| 163 | rw [show (0:ℂ)= -I*c - -I*c by ring] |
| 164 | exact ((hc.comp hv).const_mul (-I)).sub ((hb.comp hv).const_mul (-I)) |
| 165 | end YM.EveryPhase.Stress |