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.Laurent.Rune |
| 2 | import YM.Next.FOUNDATIONS.Primary |
| 3 | import YM.Push.STATIONARY_UNIFORM.BranchJets |
| 4 | import YM.Push.STATIONARY_UNIFORM.FrameMin |
| 5 | import YM.Push.STATIONARY_UNIFORM.Vertical |
| 6 | |
| 7 | /-! |
| 8 | # Uniform extension of the native frame branch |
| 9 | |
| 10 | Input ball in norm on `E` (`Push.In` uses sup), vertical ball in *counting*. |
| 11 | The proof is not by transferring a continuity radius after picking a volume. |
| 12 | Works also on arbitrary real finite-dimensional input charts at these costs (e.g. |
| 13 | relative copies on other edges); no choosing a representation of the patches. |
| 14 | Use candidate shared outcomes. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.Push.Uniform |
| 20 | open Lattice Wilson RG Precision Pressure Gauge |
| 21 | open Next.Fluctuations Filter Function Set Metric |
| 22 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators InnerProductSpace Classical |
| 23 | |
| 24 | variable {G : Gauge} {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 25 | variable {f : Side} |
| 26 | |
| 27 | /-- Variation price and jets of the literal fine links, Frobenius on G.mat. -/ |
| 28 | def Inputs (U : E → Config G f) (n : ℕ) (C : ℝ) := U 0=1 ∧ 0≤C ∧ |
| 29 | ∀ e x, ‖x‖ ≤ 1 → Allows n (fun z => G.mat (U z e)) x C |
| 30 | |
| 31 | namespace Inputs |
| 32 | variable {U : E → Config G f} {r : Site f} (P : Patch) {C : ℝ} {n : ℕ} |
| 33 | |
| 34 | def variation (G : Gauge) (C : ℝ) := C/G.colorScale |
| 35 | |
| 36 | lemma chord (h : Inputs U n C) (hn : 1 ≤ n) {x : E} (hx : ‖x‖ ≤ 1) (i : Bond f) : |
| 37 | G.chord (U x i) ≤ variation G C * ‖x‖ := by |
| 38 | let A (x) := G.mat (U x i) |
| 39 | have he : ‖A x-A 0‖ ≤ C*‖x-0‖ := by |
| 40 | apply (convex_closedBall (0:E) 1).norm_image_sub_le_of_norm_fderiv_le (𝕜:=ℝ) |
| 41 | (fun x hx => ((h.2.2 i x (by simpa using hx)).analytic.differentiableAt (by simp))) |
| 42 | _ (mem_closedBall_self zero_le_one) (by simpa using hx) |
| 43 | intro x hx |
| 44 | rw [← norm_iteratedFDeriv_one A]; exact (h.2.2 i x (by simpa using hx)).norm_le _ hn |
| 45 | rw [sub_zero, show A 0=1 by simp [A,h.1], show ‖A x-1‖=_ from (chord_dist (U x i)).symm] at he |
| 46 | apply le_of_mul_le_mul_left _ G.colorScale_pos; rw [← mul_assoc, variation, mul_comm G.colorScale (C/G.colorScale),div_mul_cancel₀ _ G.colorScale_pos.ne']; exact he |
| 47 | |
| 48 | def pathChange (G : Gauge) (P : Patch) (C : ℝ) := 1 + 8*P.radius*variation G C |
| 49 | |
| 50 | lemma path_pos (G : Gauge) (hc : 0≤C) : 0 < pathChange G P C := by unfold pathChange variation; have := G.colorScale_pos; positivity |
| 51 | |
| 52 | lemma closes (h : Inputs U n C) (hn : 1 ≤ n) {x : E} (hx : ‖x‖ ≤ 1) : |
| 53 | ClosePaths P (expandAt r (U x)) (pathChange G P C*‖x‖) := by |
| 54 | have ht := G.colorScale_pos |
| 55 | have he : 0 ≤ variation G C := div_nonneg h.2.1 ht.le |
| 56 | intro i j l |
| 57 | rw [travel_at]; apply le_trans (travel_chord _ _ _ _ (h.chord hn hx)) |
| 58 | rw [← mul_assoc]; unfold pathChange |
| 59 | apply mul_le_mul_of_nonneg_right _ (norm_nonneg _); apply le_trans _ (le_add_of_nonneg_left zero_le_one); gcongr |
| 60 | exact_mod_cast routeLe P i j l |
| 61 | end Inputs |
| 62 | |
| 63 | variable {U : E → Config G f} (P : Patch) {r : Site f} {n : ℕ} {K C D δ : ℝ} {Q : KernelChoices} |
| 64 | |
| 65 | /-- Hilbert log radius (also used on x variable here as vertical-comparison bound). -/ |
| 66 | def hilbertRadius := fun G n K C => min 1 (rootGap P / (2 * (1+scoreCost P G n K C))) |
| 67 | |
| 68 | /-- Explicit powers/costs, can pay even when growing L (gauge and KernelChoices data before L). |
| 69 | Min to simplify hierarchies, all legs at worst inverse-polynomial L at fixed n, J. -/ |
| 70 | def frameRadius (G : Gauge) (n : ℕ) (K C D δ : ℝ) (Q : KernelChoices) := |
| 71 | let R := hilbertRadius P G n K C |
| 72 | let J := Inputs.pathChange G P C |
| 73 | let A := alignCost P*J |
| 74 | min R (min (Q.frame_cut/(3*J)) (min (δ/A) (R/(points P*D*A)))) |
| 75 | |
| 76 | -- using full n here to match analytic implicit calls. Pay smaller m C optional. |
| 77 | lemma hilbert_supply (hU : Inputs U n C) (hK : ExpReceipt G n K) (_hn : 3 ≤ n) (r : Site f) : |
| 78 | let R := hilbertRadius P G n K C; let m := scoreCost P G n K C |
| 79 | 0 < R ∧ R ≤ 1 ∧ m * R ≤ rootGap P/2 ∧ |
| 80 | ∀ x ∈ ball 0 R, Allows n (framed P r U) x m := by |
| 81 | let m := scoreCost P G n K C |
| 82 | have H (p : E × P.FrameCoordinates G) (hp : ‖p‖ ≤ 1) := framed_allows P (r:=r) hK p hp |
| 83 | (fun i => hU.2.2 i p.1 ((norm_fst_le _).trans hp)) |
| 84 | let R := hilbertRadius P G n K C; have hr : R ≤ 1 := min_le_left .. |
| 85 | have hm : 0≤m := (H 0 (by simp)).nonneg; have hc := rootGap_pos P |
| 86 | have he : R ≤ rootGap P / (2*(1+m)) := min_le_right .. |
| 87 | refine ⟨lt_min one_pos (div_pos hc (show 0<2*(1+m) by positivity)),hr, ?_, fun x hx => H x ((show ‖x‖<R by simpa using hx).le.trans hr)⟩ |
| 88 | change m*R ≤ _ |
| 89 | apply le_trans (mul_le_mul_of_nonneg_left he hm) |
| 90 | have hM : 0 < 2*(1+m) := by positivity |
| 91 | rw [← mul_div_assoc]; apply (div_le_iff₀ hM).mpr; linarith |
| 92 | |
| 93 | lemma frame_radius_pos (hU : Inputs U n C) (hK : ExpReceipt G n K) (hn : 3 ≤ n) |
| 94 | (r : Site f) (hL : LogReceipt G D δ) (Q : KernelChoices) : |
| 95 | 0 < frameRadius P G n K C D δ Q := by |
| 96 | unfold frameRadius |
| 97 | have hp := (hilbert_supply P hU hK hn r).1 |
| 98 | have hv := Inputs.path_pos P G hU.2.1 |
| 99 | have he := align_pos P |
| 100 | exact lt_min hp (lt_min (div_pos Q.frame_cut_pos (by positivity)) |
| 101 | (lt_min (div_pos hL.2.1 (by positivity)) (div_pos hp (mul_pos (mul_pos (points_pos P) hL.1) (by positivity))))) |
| 102 | |
| 103 | lemma selects (hU : Inputs U n C) (hK : ExpReceipt G n K) (hn : 3 ≤ n) (hL : LogReceipt G D δ) {x : E} |
| 104 | (hx : x ∈ ball 0 (frameRadius P G n K C D δ Q)) : |
| 105 | let R := hilbertRadius P G n K C; let a := Inputs.pathChange G P C |
| 106 | P.usesMin Q (expandAt r (U x)) ∧ ∀ u, P.minimizing (expandAt r (U x)) u → |
| 107 | let q := ofFrame P u |
| 108 | (P.frameFromCoordinates G q = u ∧ ‖q‖ ≤ points P*D*(alignCost P*a)*‖x‖) ∧ |
| 109 | q∈ball 0 R ∧ HasFDerivAt (fun q => framed P r U (x,q)) (0:P.FrameCoordinates G →L[ℝ] ℝ) q := by |
| 110 | let R := hilbertRadius P G n K C |
| 111 | let a := Inputs.pathChange G P C |
| 112 | let Y := alignCost P*a |
| 113 | have hy' : ‖x‖ < min R (min (Q.frame_cut/(3*a)) (min (δ/Y) (R/(points P*D*Y)))) := by |
| 114 | change ‖x‖ < frameRadius P G n K C D δ Q |
| 115 | simpa only [mem_ball,dist_zero_right] using hx |
| 116 | simp only [lt_min_iff] at hy' |
| 117 | have hp := Inputs.path_pos P G hU.2.1; have hm := align_pos P |
| 118 | have ha : 0 < a := hp |
| 119 | have hY : 0 < Y := mul_pos hm ha |
| 120 | obtain ⟨_,he,_,h⟩ := hilbert_supply P hU hK hn r |
| 121 | have hT := Inputs.closes P (r:=r) hU (le_trans (by norm_num) hn) (hy'.1.le.trans he) |
| 122 | refine ⟨minimizing_used P hT Q ?_,?_⟩ |
| 123 | · have hd := (lt_div_iff₀ (show 0<3*a by positivity)).1 hy'.2.1 |
| 124 | change 3*(a*‖x‖)<_ |
| 125 | linarith |
| 126 | intro u hu |
| 127 | obtain ⟨h₁,h₂⟩ := minimizing_writes P hL hu hT <| by |
| 128 | have he := (lt_div_iff₀ hY).1 hy'.2.2.1 |
| 129 | change alignCost P*(a*‖x‖) ≤ δ |
| 130 | unfold Y at he; linarith |
| 131 | let q := ofFrame P u |
| 132 | have hv : ‖q‖ ≤ points P*D*Y*‖x‖ := h₂.trans (le_of_eq (by unfold Y a; ring)) |
| 133 | have hr : ‖q‖ < R := hv.trans_lt (by rw [mul_comm]; exact (lt_div_iff₀ (mul_pos (mul_pos (points_pos P) hL.1) hY)).1 hy'.2.2.2) |
| 134 | refine ⟨⟨h₁,hv⟩,by simpa using hr, ?_⟩ |
| 135 | let m (v : P.FrameCoordinates G) := framed P r U (x,v) |
| 136 | have hz : IsLocalMin m q := Filter.Eventually.of_forall fun i => by |
| 137 | change P.score _ _ ≤ P.score _ _; rw [show P.frameFromCoordinates G q = u from h₁] |
| 138 | exact hu.2 _ (P.frameFromCoordinates_center _ _) |
| 139 | have hh : ContDiffAt ℝ ω (framed P r U) (x,q) := (h _ (by simpa [Prod.norm_def] using And.intro hy'.1 hr)).analytic |
| 140 | have hf : ContDiffAt ℝ ω m q := hh.comp (f:=fun i => (x,i)) q (contDiffAt_const.prodMk contDiffAt_id) |
| 141 | rw [← hz.fderiv_eq_zero]; exact (hf.differentiableAt (by simp)).hasFDerivAt |
| 142 | |
| 143 | def branchLog (r : Site f) (U : E → Config G f) (x : E) := ofFrame P (P.selected (expandAt r (U x))) |
| 144 | |
| 145 | lemma frame_strong (hU : Inputs U n C) (hK : ExpReceipt G n K) (hn : 3 ≤ n) (r : Site f) : |
| 146 | let R := hilbertRadius P G n K C |
| 147 | Strong (framed P r U) 0 (rootGap P) ∧ ∀ x∈ball 0 R, Strong (framed P r U) x (rootGap P/2) := by |
| 148 | obtain ⟨hp,hx,hv,h⟩ := hilbert_supply P hU hK hn r |
| 149 | have ha : AnalyticAt ℝ (framed P r U) 0 := ((h _ (mem_ball_self hp)).analytic).analyticAt |
| 150 | have hb : Strong (framed P r U) 0 (rootGap P) := by |
| 151 | intro v |
| 152 | have he : vertical (framed P r U) 0 v v = pairBill P v v := by |
| 153 | change fderiv ℝ (YM.Analytic.slope (framed P r U)) 0 (0,v) v = _ |
| 154 | rw [YM.Analytic.slope_prime _ _ ha]; exact (frame_vertical (r:=r) P 0 rfl hU.1).2.2 v v |
| 155 | rw [he]; exact pairBill_gap P v |
| 156 | exact ⟨hb, fun x hx i => le_trans (mul_le_mul_of_nonneg_right (by linarith only [hv]) (sq_nonneg _)) |
| 157 | (hb.near hp (fun x hx => (h x hx).order hn) hx i)⟩ |
| 158 | |
| 159 | lemma onlyFrame (hU : Inputs U n C) (hK : ExpReceipt G n K) (hn : 3 ≤ n) |
| 160 | {x : E} (hx : x∈ball 0 (hilbertRadius P G n K C)) {v w : P.FrameCoordinates G} |
| 161 | (hv : v∈ball 0 (hilbertRadius P G n K C)) (hw : w∈ball 0 (hilbertRadius P G n K C)) |
| 162 | (hj : HasFDerivAt (fun q => framed P r U (x,q)) (0:P.FrameCoordinates G →L[ℝ] ℝ) v) |
| 163 | (hi : HasFDerivAt (fun q => framed P r U (x,q)) (0:P.FrameCoordinates G →L[ℝ] ℝ) w) : v=w := by |
| 164 | obtain ⟨hp,_,hh,h⟩ := hilbert_supply P hU hK hn r |
| 165 | let R := hilbertRadius P G n K C |
| 166 | have hf (i) (hi : i∈ball 0 R) := YM.Analytic.sliceDrv (framed P r U) (x,i) ((h _ (by |
| 167 | simp only [mem_ball,dist_zero_right,Prod.norm_def,max_lt_iff] at hx hi ⊢; exact ⟨hx,hi⟩)).analytic.differentiableAt (by simp)) |
| 168 | exact (frame_strong P hU hK hn r).1.unique hp (fun x hx => (h x hx).order hn) (hh.trans_lt (half_lt_self (rootGap_pos P))) hx hv hw (((hf v hv).unique hj).trans (hi.unique (hf w hw))) |
| 169 | |
| 170 | variable [FiniteDimensional ℝ E] |
| 171 | |
| 172 | lemma branch_jets (hU : Inputs U (n+1) C) (hK : ExpReceipt G (n+1) K) (hn : 2 ≤ n) (hL : LogReceipt G D δ) {x : E} |
| 173 | (hx : x∈ball 0 (frameRadius P G (n+1) K C D δ Q)) : |
| 174 | Allows n (branchLog P r U) x (implicitCost 1 (scoreCost P G (n+1) K C) ((rootGap P/2)⁻¹) n) := by |
| 175 | have ha : 3 ≤ n+1 := by omega |
| 176 | let R := hilbertRadius P G (n+1) K C |
| 177 | let I := frameRadius P G (n+1) K C D δ Q |
| 178 | let F := framed P r U |
| 179 | let b := branchLog P r U |
| 180 | have hr : I ≤ R := min_le_left .. |
| 181 | obtain ⟨hP,hR,hv,h⟩ := hilbert_supply P hU hK ha r |
| 182 | have hf (x) (hx : x∈ball 0 I) : b x∈ball 0 R ∧ HasFDerivAt (fun v => F (x,v)) (0 : P.FrameCoordinates G →L[ℝ] ℝ) (b x) := |
| 183 | ((selects (r:=r) P hU hK ha hL hx).2 (P.selected _) (P.min_exists _).choose_spec).2 |
| 184 | have hs (x : E) (i : P.FrameCoordinates G) (hx : x∈ball 0 I) (hi : i∈ball 0 R) : (x,i)∈ball (0:E×P.FrameCoordinates G) R := by |
| 185 | have he : ‖x‖<R := (show ‖x‖<I by simpa using hx).trans_le hr |
| 186 | simpa [Prod.norm_def,he] using hi |
| 187 | let v := (x,b x) |
| 188 | have hh := hf x hx |
| 189 | have he := hs _ _ hx hh.1 |
| 190 | have hol := (h _ he).analytic |
| 191 | have hpos := (frame_strong P hU hK ha r).2 v he |
| 192 | have hed := div_pos (rootGap_pos P) (show (0:ℝ)<2 by norm_num) |
| 193 | have hu : ContDiffAt ℝ ω b x := by |
| 194 | have hhA : AnalyticAt ℝ F v := hol.analyticAt |
| 195 | obtain ⟨g,hg,hH,H⟩ := YM.Analytic.param F v hhA hh.2 fun u Hu => by |
| 196 | rw [← YM.Analytic.slope_prime _ _ hhA]; exact (mul_pos hed (pow_pos (norm_pos_iff.mpr Hu) _)).trans_le (hpos u) |
| 197 | apply hH.contDiffAt.congr_of_eventuallyEq |
| 198 | have ht : g ⁻¹' ball 0 R ∈ 𝓝 x := hH.continuousAt.preimage_mem_nhds (isOpen_ball.mem_nhds (hg.symm ▸ hh.1)) |
| 199 | filter_upwards [isOpen_ball.mem_nhds hx,ht,H] with i hi hj hk |
| 200 | exact onlyFrame P hU hK ha (ball_subset_ball hr hi) (hf i hi).1 hj (hf i hi).2 hk |
| 201 | let m := scoreCost P G (n+1) K C |
| 202 | have he' : ‖x‖ ≤ 1 := ((show ‖x‖ < I by simpa using hx).le.trans hr).trans hR |
| 203 | refine implicit_jets (g:=YM.Analytic.slope F) n he' ((show ‖b x‖<R by simpa using hh.1).le.trans hR) ?_ hu (allows_slope (f:=F) (h _ he)) (inv_pos.mpr hed).le ?_ |
| 204 | · filter_upwards [isOpen_ball.mem_nhds hx] with i hi |
| 205 | exact (YM.Analytic.sliceDrv F (i,b i) ((h _ (hs _ _ hi (hf i hi).1)).analytic.differentiableAt (by simp))).unique (hf i hi).2 |
| 206 | intro u |
| 207 | have h := hpos.invert u |
| 208 | change ‖u‖ ≤ (rootGap P/2)⁻¹ * ‖vertical F v u‖ |
| 209 | rw [mul_comm, ← div_eq_mul_inv, le_div_iff₀ hed,mul_comm]; exact h |
| 210 | |
| 211 | section Native |
| 212 | omit [FiniteDimensional ℝ E] |
| 213 | variable {c : Side} (S : StepData c f) (y : Site c) |
| 214 | |
| 215 | |
| 216 | |
| 217 | /-- Input to the native estimates, c,f,L arbitrary. Use with uniform cost. -/ |
| 218 | lemma represented (h : ExpReceipt G n K) : ∀ m : Side, Inputs (E:=In G m) represent n (composeCost n K 1) := by |
| 219 | intro m |
| 220 | have hu (e : Bond m) (x : In G m) (hx : ‖x‖ ≤ 1) : Allows n (fun z => G.mat (represent z e)) x (composeCost n K 1) := by |
| 221 | let L : In G m →L[ℝ] G.Color := ContinuousLinearMap.proj (e.1,Exterior.coord e.2) |
| 222 | have hh : ‖L x‖ ≤ 1 := (norm_le_pi_norm x _).trans hx |
| 223 | simp_rw [Work.F03.represent_link] |
| 224 | exact (h _ hh).comp (f:=L) (allows_linear (L.opNorm_le_bound zero_le_one (fun y => by rw [one_mul]; exact norm_le_pi_norm y _)) hh) |
| 225 | exact ⟨link_one,(hu (Classical.arbitrary _) 0 (by simp)).nonneg,hu⟩ |
| 226 | end Native |
| 227 | end YM.Push.Uniform |