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.Shoot.Criteria |
| 2 | import YM.Work.G07.Calculus |
| 3 | |
| 4 | |
| 5 | |
| 6 | /-! Local chart math to actually ADD weighted Taylor coefficients in a scalar bank. |
| 7 | |
| 8 | At the good-set boundary, the definition of iterated left derivatives |
| 9 | may use off-mask values! Never assert additivity from differentiability only |
| 10 | on an interior. Derive exactly what we need from the `ContDiffAt` germ. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace YM.Multi.Puff |
| 17 | open RG Lattice Wilson Function Filter |
| 18 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff |
| 19 | variable {n : Side} {G : Gauge} {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 20 | |
| 21 | abbrev World (G : Gauge) (n : Side) := Edge (Site n) → G.Mat |
| 22 | def showU (U : Config G n) : World G n := G.mat ∘ U |
| 23 | lemma visible : Continuous (showU (G:=G) (n:=n)) := |
| 24 | continuous_pi fun i => G.continuous_mat.comp (continuous_apply i) |
| 25 | |
| 26 | lemma inc_zero (U : Config G n) : increment U 0 = U := Work.G07.at_zero_increment U |
| 27 | lemma inc_tr (U : Config G n) : Continuous (increment U) := by unfold increment; fun_prop |
| 28 | |
| 29 | lemma swing (U : Config G n) (A : Directions G n) : Tendsto (fun t : ℝ => increment U (t • A)) (𝓝 0) (𝓝 U) := by |
| 30 | have he : Continuous (fun t : ℝ => increment U (t • A)) := (inc_tr U).comp (continuous_id.smul continuous_const) |
| 31 | simpa only [zero_smul,inc_zero] using he.tendsto 0 |
| 32 | |
| 33 | def trench (U : Config G n) (χ : World G n) : Directions G n := |
| 34 | fun i => G.plog (χ i * G.mat (U i)⁻¹) |
| 35 | @[simp] lemma trench_at (U : Config G n) : trench U (showU U)=0 := by |
| 36 | funext i; simp [trench, showU, - Gauge.mat_mul] |
| 37 | lemma trench_slides (U : Config G n) : ContDiffAt ℝ ω (trench U) (showU U) := by |
| 38 | refine contDiffAt_pi.mpr fun i => ?_ |
| 39 | let f (v : World G n) := v i * G.mat (U i)⁻¹ |
| 40 | have he : ContDiffAt ℝ ω G.plog (f (showU U)) := by simp only [f, showU,comp_apply,← G.mat_mul,mul_inv_cancel,G.mat_one]; exact G.plog_diff |
| 41 | exact he.comp _ ((contDiffAt_apply ..).mul contDiffAt_const : ContDiffAt ℝ ω f (showU U)) |
| 42 | |
| 43 | lemma trench_main (U : Config G n) : ∀ᶠ V in 𝓝 U, increment U (trench U (showU V)) = V := by |
| 44 | have he (i : Edge (Site n)) : Tendsto (fun V : Config G n => V i*(U i)⁻¹) (𝓝 U) (𝓝 1) := by |
| 45 | have hf : Continuous (fun V : Config G n => V i * (U i)⁻¹) := (continuous_apply i).mul continuous_const |
| 46 | simpa only [mul_inv_cancel] using hf.tendsto U |
| 47 | have hh := eventually_all.mpr (fun i => (he i).eventually G.plog_right) |
| 48 | filter_upwards [hh] with V hV; funext i |
| 49 | simpa [trench,increment,showU,← G.mat_mul] using congrArg (· * U i) (hV i) |
| 50 | |
| 51 | lemma exposed (U : Config G n) : ContDiff ℝ ω (showU ∘ increment U) := by |
| 52 | refine contDiff_pi.mpr fun i => ?_ |
| 53 | simp only [showU, Function.comp_apply,increment,G.mat_mul] |
| 54 | have ht : ContDiff ℝ ω (fun v : Directions G n => G.mat (G.lieExp (v i))) := G.exp_jet.comp (f:=fun v : Directions G n => v i) (contDiff_apply ..) |
| 55 | exact ht.mul contDiff_const |
| 56 | |
| 57 | -- Chart germ may use ordinary ambient coordinates |
| 58 | def Crest (k : ℕ) (F : Config G n → X) (U : Config G n) := ∃ g : World G n → X, |
| 59 | ContDiffAt ℝ (k : ℕ∞) g (showU U) ∧ F =ᶠ[𝓝 U] g ∘ showU |
| 60 | |
| 61 | lemma into (k : ℕ) {U : Config G n} (F : Config G n→X) (he : ContDiffAt ℝ (k:ℕ∞) (F ∘ increment U) 0) : Crest k F U := by |
| 62 | refine ⟨(F ∘ increment U) ∘ trench U,?_,?_⟩ |
| 63 | · refine ContDiffAt.comp _ ?_ ((trench_slides U).of_le le_top); rwa [trench_at U] |
| 64 | filter_upwards [trench_main U] with V hv |
| 65 | simp [Function.comp_apply,hv] |
| 66 | |
| 67 | lemma Crest.near {k : ℕ} {F : Config G n → X} {U} (h : Crest k F U) : |
| 68 | ∀ᶠ V in 𝓝 U, Crest k F V := by |
| 69 | obtain ⟨g,hg,H⟩:=h |
| 70 | have he := (visible.tendsto U).eventually (hg.eventually (by simp)) |
| 71 | have hK : ∀ᶠ V in 𝓝 U, F =ᶠ[𝓝 V] g ∘ showU := eventually_eventually_nhds.mpr H |
| 72 | filter_upwards [he,hK] with V hV hv |
| 73 | exact ⟨_,hV,hv⟩ |
| 74 | |
| 75 | lemma Crest.germ {k : ℕ} {F : Config G n → X} {U} (h : Crest k F U) : |
| 76 | ContDiffAt ℝ (k:ℕ∞) (F ∘ increment U) 0 := by |
| 77 | obtain ⟨g,hg,H⟩:=h |
| 78 | have he := H.comp_tendsto (show Tendsto (increment U) (𝓝 0) (𝓝 U) from by |
| 79 | simpa [inc_zero] using (inc_tr U).tendsto 0) |
| 80 | refine ContDiffAt.congr_of_eventuallyEq (f:=g ∘ showU ∘ increment U) ?_ he |
| 81 | refine ContDiffAt.comp _ ?_ ((exposed U).contDiffAt.of_le le_top) |
| 82 | rwa [Function.comp_apply,inc_zero] |
| 83 | |
| 84 | -- multiplicative matrix increments off-shell |
| 85 | |
| 86 | def dance (A : Directions G n) (y : World G n) (t : ℝ) : World G n := |
| 87 | fun i => G.mat (G.lieExp (t • A i)) * y i |
| 88 | @[simp] lemma dance_zero (A : Directions G n) (y : World G n) : dance A y 0=y := by |
| 89 | funext i; simp [dance] |
| 90 | lemma dance_tr (A : Directions G n) : ContDiff ℝ ω (Function.uncurry (dance A)) := by |
| 91 | refine contDiff_pi.mpr fun i => ?_ |
| 92 | have he : ContDiff ℝ ω (fun v : World G n × ℝ => G.mat (G.lieExp (v.2 • A i))) := |
| 93 | G.exp_jet.comp (f:=fun v : World G n × ℝ => v.2 • A i) (contDiff_snd.smul contDiff_const) |
| 94 | exact he.mul ((contDiff_apply ℝ G.Mat i).comp contDiff_fst) |
| 95 | lemma dance_U (U : Config G n) (A : Directions G n) (t : ℝ) : |
| 96 | showU (increment U (t • A)) = dance A (showU U) t := by |
| 97 | funext i; simp only [increment,showU,Function.comp_apply,dance,Pi.smul_apply,G.mat_mul] |
| 98 | |
| 99 | lemma Crest.falls {k : ℕ} {F : Config G n → X} {U} (h : Crest (k+1) F U) (A : Directions G n) : |
| 100 | Crest k (leftDerivs F [A]) U := by |
| 101 | obtain ⟨g,hg,H⟩ := h |
| 102 | let f (y : World G n) := fun t : ℝ => g (dance A y t) |
| 103 | refine ⟨fun V => deriv (f V) 0,?_,?_⟩ |
| 104 | · have ht : ContDiffAt ℝ (↑((k+1:ℕ) : ℕ∞) : WithTop ℕ∞) (uncurry f) (showU U, 0) := |
| 105 | ContDiffAt.comp (f:=uncurry (dance A)) (g:=g) _ (by simp; exact hg) ((dance_tr A).contDiffAt.of_le le_top) |
| 106 | have he : ContDiffAt ℝ (k:ℕ∞) (fun V => fderiv ℝ (f V) 0) (showU U) := |
| 107 | ht.fderiv (g:=fun _ => 0) contDiffAt_const (by simp) |
| 108 | exact he.clm_apply contDiffAt_const |
| 109 | have he : ∀ᶠ V in 𝓝 U, F =ᶠ[𝓝 V] g ∘ showU := eventually_eventually_nhds.mpr H |
| 110 | filter_upwards [he] with V hV |
| 111 | refine Filter.EventuallyEq.deriv_eq ?_ |
| 112 | filter_upwards [(hV.comp_tendsto (swing V A))] with t ht |
| 113 | simpa only [Function.comp_apply,dance_U,f,leftDerivs] using ht |
| 114 | |
| 115 | lemma Crest.subcrest {k : ℕ} {F : Config G n → X} {U} (A : List (Directions G n)) (H : Crest (k + A.length) F U) : |
| 116 | Crest k (leftDerivs F A) U := by |
| 117 | induction A using List.reverseRecOn generalizing F with |
| 118 | | nil => exact H |
| 119 | | append_singleton l a ih => |
| 120 | rw [Work.G07.left_append] |
| 121 | exact ih ((show Crest ((k+l.length)+1) F U from by simpa [Nat.add_assoc] using H).falls a) |
| 122 | |
| 123 | lemma Crest.line {k : ℕ} {F : Config G n → X} {U} (h : Crest k F U) (A : List (Directions G n)) (ht : A.length < k) |
| 124 | (i : Directions G n) : DifferentiableAt ℝ (fun t : ℝ => leftDerivs F A (increment U (t • i))) 0 := by |
| 125 | let d := k-A.length |
| 126 | have hd : 0 < d := Nat.sub_pos_of_lt ht |
| 127 | have he := Crest.germ (k:=d) (F:=leftDerivs F A) (U:=U) (Crest.subcrest A (show Crest (d+A.length) _ _ by |
| 128 | rw [Nat.sub_add_cancel ht.le]; exact h)) |
| 129 | have hp : DifferentiableAt ℝ (leftDerivs F A ∘ increment U) ((0:ℝ) • i) := by rw [zero_smul]; exact he.differentiableAt (by simp [hd.ne']) |
| 130 | exact hp.comp (f:=fun t => t • i) 0 (by fun_prop) |
| 131 | |
| 132 | lemma Crest.sum_at {k : ℕ} {F F' : Config G n → X} (A : List (Directions G n)) (hl : A.length ≤ k) (U : Config G n) |
| 133 | (h : Crest k F U) (h' : Crest k F' U) : |
| 134 | leftDerivs (F+F') A U = leftDerivs F A U + leftDerivs F' A U := by |
| 135 | induction A generalizing U with |
| 136 | | nil => rfl |
| 137 | | cons i l ih => |
| 138 | have hk : l.length < k := hl |
| 139 | let f (t : ℝ) := increment U (t • i) |
| 140 | have he : (leftDerivs (F+F') l) ∘ f =ᶠ[𝓝 0] (fun t => leftDerivs F l (f t)+leftDerivs F' l (f t)) := by |
| 141 | filter_upwards [(swing U i).eventually h.near,(swing U i).eventually h'.near] with V hV hV' |
| 142 | exact ih hk.le _ hV hV' |
| 143 | exact he.deriv_eq.trans (deriv_add (h.line l hk i) (h'.line l hk i)) |
| 144 | |
| 145 | lemma combine {P : BudgetPoint} {V : Support n} {F H : Config G n → ℂ} (h : P.Regular V F) (he : P.Regular V H) : |
| 146 | P.Regular V (F+H) := by |
| 147 | refine ⟨fun U X hx => by simp only [Pi.add_apply,h.sites U X hx,he.sites U X hx],h.borel.add he.borel, |
| 148 | fun k U => by simp only [Pi.add_apply,h.symmetry k U,he.symmetry k U],fun U hh => (h.smooth U hh).add (he.smooth U hh),?_⟩ |
| 149 | intro U hh i l hl |
| 150 | exact ((into P.order (F+H) ((h.smooth U hh).add (he.smooth U hh))).line l hl i).hasDerivAt |
| 151 | |
| 152 | lemma balances {P : BudgetPoint} {V : Support n} {F H : Config G n → ℂ} (h : P.Regular V F) (he : P.Regular V H) |
| 153 | (o : Site n) {x y : ℝ} (hx : P.supBounds o V F x) (hy : P.supBounds o V H y) : P.supBounds o V (F+H) (x+y) := by |
| 154 | refine ⟨add_nonneg hx.1 hy.1,fun U hU l hl ha => ?_⟩ |
| 155 | rw [Crest.sum_at l hl U (into _ _ (h.smooth U hU)) (into _ _ (he.smooth U hU))] |
| 156 | exact (norm_add_le ..).trans (add_le_add (hx.2 _ hU l hl ha) (hy.2 _ hU l hl ha)) |
| 157 | end YM.Multi.Puff |