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.ODE.ExistUnique |
| 2 | import YM.Analysis.Homogeneous |
| 3 | import YM.PCalc.Band |
| 4 | import YM.Source.Local |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | /-! |
| 10 | # Produce H link flow in the image (even disconnected) |
| 11 | |
| 12 | Construct in exponential coordinate neighborhood. Extend via uniqueness |
| 13 | on overlapping intervals; no compactness for continuation needed: left |
| 14 | invariance lets local interval work for ANY initial along path. Work for |
| 15 | C^1 coefficients (applies to any finite jet and h). Parameter analyticity |
| 16 | near fixed parameters is separate from existence. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | noncomputable section |
| 21 | namespace YM.Source.Hol |
| 22 | open Lattice RG Wilson Precision Set Function Filter MeasureTheory Labels |
| 23 | open scoped Matrix.Norms.Frobenius Topology ContDiff BigOperators NNReal |
| 24 | |
| 25 | variable {G : Gauge} |
| 26 | |
| 27 | def Leads (I : Set ℝ) (u : ℝ → G.El) (A : ℝ → G.Color) := ∀ b∈I, |
| 28 | HasDerivAt (fun x => G.mat (u x)) (G.mat (u b)*G.colorMat (A b)) b |
| 29 | |
| 30 | lemma agree {I : Set ℝ} (h : IsOpen I) (hc : Convex ℝ I) {b : ℝ} (hb : b∈I) {u v : ℝ → G.El} {A : ℝ → G.Color} (hu : Leads I u A) |
| 31 | (hv : Leads I v A) (hx : u b = v b) : EqOn u v I := by |
| 32 | let w (t : ℝ) := G.mat (u t * (v t)⁻¹) |
| 33 | have he : ∀ i∈I, HasDerivAt w 0 i := by |
| 34 | intro i hi; unfold w; simp only [G.mat_mul, G.mat_inv] |
| 35 | simpa [Pi.mul_def,G.colorMat_skew,mul_assoc] using! (hu i hi).mul (hv i hi).star |
| 36 | have hh : ∀ i∈I,w i=w b := by |
| 37 | intro i hi |
| 38 | exact h.is_const_of_deriv_eq_zero hc.isPreconnected (fun i hi => (he i hi).differentiableAt.differentiableWithinAt) (fun i hi => (he i hi).deriv) hi hb |
| 39 | intro i hi |
| 40 | apply mul_inv_eq_one.mp; apply G.mat_injective |
| 41 | simpa [w,hx] using hh i hi |
| 42 | |
| 43 | section |
| 44 | variable (G) |
| 45 | |
| 46 | def dilate (a : G.Color × G.Color) := G.plog (G.mat (G.lieExp a.1) * G.mat (G.lieExp a.2)) |
| 47 | |
| 48 | def chartField (b : G.Color) := fderiv ℝ (fun v => dilate G (b,v)) 0 |
| 49 | |
| 50 | lemma dilate_form : ContDiffAt ℝ ω (dilate G) 0 := by |
| 51 | have hf : ContDiffAt ℝ ω (fun x : G.Color × G.Color => G.mat (G.lieExp x.1)*G.mat (G.lieExp x.2)) 0 := |
| 52 | ((G.exp_jet.comp contDiff_fst).mul (G.exp_jet.comp contDiff_snd)).contDiffAt |
| 53 | apply ContDiffAt.comp (f:=fun x => _) _ _ hf |
| 54 | simp only [Prod.fst_zero, Prod.snd_zero,G.mat_lieExp_zero,G.mat_one,mul_one] |
| 55 | exact G.plog_diff |
| 56 | |
| 57 | lemma chartField_smooth : ContDiffAt ℝ ω (chartField G) 0 := |
| 58 | ContDiffAt.fderiv (f:=fun p x => dilate G (p,x)) (g:=fun _=>0) (dilate_form G) contDiffAt_const (by simp) |
| 59 | |
| 60 | lemma stages : ∀ᶠ a in 𝓝 (0:G.Color),∀ b : G.Color, |
| 61 | (fderiv ℝ (G.mat ∘ G.lieExp) a) (chartField G a b)=G.mat (G.lieExp a)*G.colorMat b := by |
| 62 | let f (x y) := G.lieExp x*G.lieExp y |
| 63 | have hg : ∀ᶠ a : G.Color × G.Color in nhds 0, G.lieExp (dilate G a)=f a.1 a.2 := by |
| 64 | have he : Continuous fun a : G.Color × G.Color => f a.1 a.2:=by unfold f; fun_prop |
| 65 | have hf := he.continuousAt.tendsto (x:=0); change Tendsto _ _ (nhds (f 0 0)) at hf |
| 66 | rw [show f 0 0=1 by simp [f]] at hf |
| 67 | exact hf.eventually G.plog_right |
| 68 | have hx := mem_nhds_prod_iff.mp (hg.and ((dilate_form G).eventually (by simp))) |
| 69 | obtain ⟨s,hs,t,ht,h⟩ := hx |
| 70 | filter_upwards [hs,G.plog_left] with i hi hv b |
| 71 | have hb : (0:G.Color) ∈ t := mem_of_mem_nhds ht |
| 72 | have he (k) (hk : k∈t) := h (show (i,k)∈s ×ˢ t from ⟨hi,hk⟩) |
| 73 | have hO : (fun v => G.mat (f i v)) =ᶠ[𝓝 0] (fun v => (G.mat ∘ G.lieExp) (dilate G (i,v))) := by |
| 74 | filter_upwards [ht] with r hr; rw [comp_apply, (he r hr).1] |
| 75 | have hD : DifferentiableAt ℝ (fun v => dilate G (i,v)) 0 := ((he 0 hb).2.differentiableAt (by simp)).comp _ ((differentiableAt_const i).prodMk differentiableAt_id) |
| 76 | have ht : dilate G (i,0) = i := by unfold dilate; rw [G.mat_lieExp_zero,G.mat_one,mul_one]; exact hv |
| 77 | have hF := (G.exp_jet.differentiable (by simp) (dilate G (i,0))).hasFDerivAt.comp (f:=fun v => dilate G (i,v)) 0 hD.hasFDerivAt |
| 78 | have hb' : HasFDerivAt (fun v => G.mat (f i v)) _ (0:G.Color) := hF.congr_of_eventuallyEq hO |
| 79 | unfold f at hb'; simp only [G.mat_mul] at hb' |
| 80 | have hZ := hb'.unique ((hasFDerivAt_const (𝕜:=ℝ) (c:=G.mat (G.lieExp i)) _).mul' G.expDiff_zero) |
| 81 | have hp := DFunLike.congr_fun hZ b |
| 82 | rw [ht] at hp; exact hp.trans (by change G.mat (G.lieExp i) * G.colorMat b + (0:G.Mat)*G.mat (G.lieExp 0) = _; rw [zero_mul,add_zero]) |
| 83 | end |
| 84 | |
| 85 | section |
| 86 | variable {A : ℝ → G.Color} (h : ContDiff ℝ 1 A) (b : ℝ) |
| 87 | include h b |
| 88 | lemma interval : ∃ (s : Set ℝ), IsOpen s ∧ OrdConnected s ∧ b∈s ∧ ∃ u : ℝ→G.El, Leads s u A := by |
| 89 | let f (z : ℝ × G.Color) := ((1:ℝ),chartField G z.2 (A z.1)) |
| 90 | have he : ContDiffAt ℝ 1 f (b,0) := by |
| 91 | refine contDiffAt_const.prodMk ?_ |
| 92 | exact (((chartField_smooth G).of_le (m:=1) le_top).comp (f:=Prod.snd) (b,(0:G.Color)) contDiffAt_snd).clm_apply (h.contDiffAt.comp _ contDiffAt_fst) |
| 93 | obtain ⟨α,hX,ε,hε,H⟩ := he.exists_forall_mem_closedBall_exists_eq_forall_mem_Ioo_hasDerivAt₀ (t₀:=b) |
| 94 | let I := Ioo (b-ε) (b+ε) |
| 95 | have hb : b∈I := ⟨by linarith,by linarith⟩ |
| 96 | have eq : EqOn (fun i => (α i).1) id I := by |
| 97 | let v i := (α i).1-i |
| 98 | have hg : ∀ i∈ I, HasDerivAt v 0 i := by |
| 99 | intro i hi |
| 100 | have he : HasDerivAt (fun x => (α x).1) 1 i := (H i hi).fst |
| 101 | simpa only [sub_self] using! (he.sub (hasDerivAt_id' i)) |
| 102 | intro i hi; have hr := isOpen_Ioo.is_const_of_deriv_eq_zero (f:=v) isPreconnected_Ioo (fun i hi => (hg i hi).differentiableAt.differentiableWithinAt) (fun i hi => (hg i hi).deriv) hi hb |
| 103 | unfold v at hr; rw [hX] at hr; exact sub_eq_zero.mp (by simpa using hr) |
| 104 | let u := fun x => (α x).2 |
| 105 | have hu : Tendsto u (𝓝 b) (𝓝 0) := by |
| 106 | have ha := (continuous_snd.continuousAt.comp (H b hb).continuousAt).tendsto; simpa only [comp_apply,hX] using! ha |
| 107 | obtain ⟨R,hR,Q⟩ := Metric.mem_nhds_iff.mp (inter_mem (isOpen_Ioo.mem_nhds hb) (hu.eventually (stages G))) |
| 108 | refine ⟨Metric.ball b R, Metric.isOpen_ball, (convex_ball b R).ordConnected, Metric.mem_ball_self hR,G.lieExp ∘ u, fun i hi => ?_⟩ |
| 109 | have hv := Q hi |
| 110 | have hq : HasDerivAt u (chartField G (u i) (A i)) i := by |
| 111 | have hw := (H i hv.1).snd; simp only [f] at hw |
| 112 | rw [show (α i).1=i from eq hv.1] at hw; exact hw |
| 113 | have ht := (G.exp_jet.differentiable (by simp) (u i)).hasFDerivAt.comp_hasDerivAt i hq |
| 114 | exact ht.congr_deriv (hv.2 (A i)) |
| 115 | end |
| 116 | |
| 117 | variable {A : ℝ → G.Color} |
| 118 | lemma Leads.translated {I u} (h : Leads I u A) (x : G.El) : Leads I (fun a => x*u a) A := by |
| 119 | intro t ht |
| 120 | simp only [G.mat_mul] |
| 121 | simpa only [mul_assoc] using! (h t ht).const_mul (G.mat x) |
| 122 | lemma Leads.inherit {I u v} (he : IsOpen I) (h : Leads I u A) (hT : EqOn u v I) : Leads I v A := by |
| 123 | intro t ht; rw [← hT ht] |
| 124 | apply (h _ ht).congr_of_eventuallyEq; filter_upwards [he.mem_nhds ht] with i hi; rw [hT hi] |
| 125 | |
| 126 | lemma pipes (h : ContDiff ℝ 1 A) : ∃ u, SolvesLink u A := by |
| 127 | classical |
| 128 | let H (x : ℝ) := ∃ U : Set ℝ, IsOpen U ∧ Convex ℝ U ∧ 0 ∈ U ∧ x∈U ∧ ∃ u, u 0=1 ∧ Leads U u A |
| 129 | have h0 : H 0 := by |
| 130 | obtain ⟨s,hs,h',hp,u,hx⟩ := interval h 0 |
| 131 | exact ⟨s,hs,h'.convex,hp,hp,_,inv_mul_cancel (u 0),hx.translated _⟩ |
| 132 | have hi : IsOpen {x | H x} := isOpen_iff_mem_nhds.mpr fun a ⟨U,hU,hc,he,x,b⟩ => |
| 133 | mem_of_superset (hU.mem_nhds x) (fun i hi => ⟨U,hU,hc,he,hi,b⟩) |
| 134 | have hx : IsClosed {x | H x} := by |
| 135 | rw [← isOpen_compl_iff, isOpen_iff_mem_nhds] |
| 136 | intro x hx |
| 137 | obtain ⟨U,hu,hU,he,p,hp⟩ := interval h x |
| 138 | filter_upwards [hu.mem_nhds he] with y hy |
| 139 | rintro ⟨T,ho,hT,hn,hv,f,h1,h2⟩ |
| 140 | let u := fun a => (f y*(p y)⁻¹)*p a |
| 141 | have he' : Leads U u A := hp.translated _ |
| 142 | have hh := agree (ho.inter hu) (hT.inter hU.convex) (show y∈ T∩U from ⟨hv,hy⟩) (fun i hi => h2 i hi.1) (fun i hi => he' i hi.2) (by simp [u]) |
| 143 | let g := T.piecewise f u |
| 144 | have hQ : EqOn u g U := fun a ha => by |
| 145 | unfold g; by_cases hx : a∈T; rw [piecewise_eq_of_mem _ _ _ hx]; exact (hh ⟨hx,ha⟩).symm |
| 146 | rw [piecewise_eq_of_notMem _ _ _ hx] |
| 147 | apply hx |
| 148 | refine ⟨T∪U,ho.union hu,(hT.isPreconnected.union y hv hy hU.convex.isPreconnected).ordConnected.convex, subset_union_left hn,subset_union_right he,g,by simp [g,hn,h1],?_⟩ |
| 149 | rintro i (ha|ha) |
| 150 | · exact (Leads.inherit ho h2 (EqOn.symm (piecewise_eqOn ..))) _ ha |
| 151 | exact he'.inherit hu hQ _ ha |
| 152 | have he : ∀ x, H x := by intro x; change x∈{x | H x}; rw [ show {x | H x}=univ from (IsClopen.eq_univ (show IsClopen _ from ⟨hx,hi⟩) ⟨_,h0⟩)]; trivial |
| 153 | choose U hU hc ho hb f hy hS using he |
| 154 | let v := fun a => f a a |
| 155 | have H (a : ℝ) : Leads (U a) v A := Leads.inherit (hU a) (hS a) (by |
| 156 | intro i hi |
| 157 | apply agree (I:=U a∩U i) -- implicit names |
| 158 | ((hU a).inter (hU i)) ((hc a).inter (hc i)) (show 0∈U a∩U i from ⟨ho a,ho i⟩) (fun j hj => hS a j hj.1) |
| 159 | (fun j hj => hS i j hj.2) (by rw [hy,hy]) (show i∈_ from ⟨hi,hb i⟩)) |
| 160 | exact ⟨v, hy 0, fun i => H i i (hb i)⟩ |
| 161 | |
| 162 | lemma exists_ode (G : Gauge) : Nonempty (Hol G) := by |
| 163 | have he (d : ℕ) (J : Jet G) (t : ℝ) (v : Edge Cover) : ContDiff ℝ 1 (partConnection d J t v) := by |
| 164 | unfold partConnection; apply ContDiff.const_smul; unfold potential |
| 165 | refine ContDiff.sum fun i _ => ?_ |
| 166 | exact ((Tensor.diag_smooth _ _)).comp (by fun_prop) |
| 167 | choose f hf using fun d J t v => pipes (he d J t v) |
| 168 | exact ⟨⟨f,hf⟩⟩ |
| 169 | end YM.Source.Hol |