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.Analytic.Frame |
| 2 | import YM.Bid.Drops |
| 3 | import YM.Push.STATIONARY_UNIFORM.Travel |
| 4 | import YM.Work.F03.Flat |
| 5 | |
| 6 | |
| 7 | /-! |
| 8 | # The actual frame score and estimates with stage (pre-L) constants |
| 9 | |
| 10 | Pre-L polynomial envelopes; *real* arguments. We do not adjoin independent |
| 11 | cover variables to take the jets. `framed` can take input chart directly in |
| 12 | fine/coarse variables and all patch scores can overlap and share arguments. |
| 13 | |
| 14 | The gap to use in counting here is `2 / points²`, NOT `2 / points`. |
| 15 | |
| 16 | Includes precise obstruction. |
| 17 | |
| 18 | No change to normalization or representations |
| 19 | in consequence of this. |
| 20 | -/ |
| 21 | set_option autoImplicit false |
| 22 | noncomputable section |
| 23 | namespace YM.Push.Uniform |
| 24 | open Lattice Wilson RG Precision Exterior Pressure Gauge |
| 25 | open Filter Function Set Metric |
| 26 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators InnerProductSpace Classical |
| 27 | |
| 28 | variable {G : Gauge} |
| 29 | |
| 30 | section Coords |
| 31 | |
| 32 | variable (P : Patch) |
| 33 | |
| 34 | /-- Read root-fixed logs. -/ |
| 35 | def readLog (i : P.Points) : P.FrameCoordinates G →L[ℝ] G.Color := |
| 36 | if h : i = P.center then 0 else |
| 37 | (PiLp.continuousLinearEquiv 2 ℝ _).symm.toContinuousLinearMap.comp |
| 38 | (ContinuousLinearMap.pi fun j => PiLp.proj (𝕜:=ℝ) 2 (fun _ => ℝ) (⟨i,h⟩, j)) |
| 39 | |
| 40 | @[simp] lemma read_center (v : P.FrameCoordinates G) : readLog P P.center v = 0 := by simp [readLog] |
| 41 | lemma read_away {i : P.Points} (hi : i ≠ P.center) (v : P.FrameCoordinates G) (j : G.ColorIndex) : |
| 42 | readLog P i v j = v (⟨i,hi⟩,j) := by unfold readLog; rw [dif_neg hi]; rfl |
| 43 | |
| 44 | lemma frame_read (v : P.FrameCoordinates G) (i : P.Points) : |
| 45 | P.frameFromCoordinates G v i = G.lieExp (readLog P i v) := by |
| 46 | by_cases h : i = P.center |
| 47 | · subst i; simp |
| 48 | unfold Patch.frameFromCoordinates readLog; rw [dif_neg h,dif_neg h]; rfl |
| 49 | |
| 50 | lemma frame_counting (v : P.FrameCoordinates G) : |
| 51 | ‖v‖^2 = ∑ i, ‖readLog P i v‖^2 := by |
| 52 | have he (i : {p : P.Points // p ≠ P.center}) (j) : v (i,j) = readLog P i.val v j := |
| 53 | (read_away P i.2 v j).symm |
| 54 | rw [EuclideanSpace.real_norm_sq_eq v,Fintype.sum_prod_type] |
| 55 | change ∑ i : {p : P.Points // p ≠ P.center}, ∑ j, v (i,j)^2 = _ |
| 56 | simp_rw [he, show ∀ x : G.Color, ∑ j, x j^2 = ‖x‖^2 from fun _ => (EuclideanSpace.real_norm_sq_eq _).symm] |
| 57 | let f i := ‖readLog P i v‖^2 |
| 58 | rw [← Finset.sum_subtype (F:=inferInstance) (Finset.univ.erase P.center) |
| 59 | (p:=fun i => i ≠ P.center) (by simp) f] |
| 60 | have h := Finset.sum_erase_add Finset.univ f (Finset.mem_univ P.center) |
| 61 | rw [show f P.center = 0 by simp [f], add_zero] at h; exact h |
| 62 | |
| 63 | lemma read_short (G : Gauge) (i : P.Points) : ‖readLog P i (G:=G)‖ ≤ 1 := by |
| 64 | refine ContinuousLinearMap.opNorm_le_bound _ zero_le_one fun x => ?_ |
| 65 | rw [one_mul] |
| 66 | apply (sq_le_sq₀ (norm_nonneg _) (norm_nonneg _)).mp; rw [frame_counting P x] |
| 67 | exact Finset.single_le_sum (f:=fun i => ‖readLog P i x‖^2) (fun i _ => sq_nonneg _) (Finset.mem_univ i) |
| 68 | |
| 69 | -- enumeration facts |
| 70 | |
| 71 | def points := (Fintype.card P.Points : ℝ) |
| 72 | lemma points_pos : 0 < points P := by unfold points; positivity |
| 73 | lemma points_ge : 1 ≤ points P := by unfold points; exact_mod_cast (Fintype.card_pos (α:=P.Points)) |
| 74 | lemma points_cost : points P = (((P.radius+P.radius+1:ℕ):ℝ))^4 := by |
| 75 | unfold points Patch.Points; rw [Fintype.card_coe] |
| 76 | unfold Patch.sites; rw [Pressure.box_length, Nat.cast_pow] |
| 77 | congr 1 |
| 78 | unfold layers |
| 79 | norm_cast |
| 80 | rw [Int.card_Icc]; omega |
| 81 | |
| 82 | lemma routeLe (x y : P.Points) (l : Lattice.Order) : (route x.val y.val l).length ≤ 8 * P.radius := by |
| 83 | have he (i : Axis) : (straight i (y.val i-x.val i)).length ≤ 2*P.radius := by |
| 84 | have h1 := (box_test.mp x.property).1 i; have h2 := (box_test.mp y.property).1 i |
| 85 | have h3 := (box_test.mp x.property).2 i; have h4 := (box_test.mp y.property).2 i |
| 86 | rw [straight,List.length_replicate]; omega |
| 87 | have hL (w : List Axis) : (axisRoute x.val y.val w).length ≤ w.length*(2*P.radius) := by |
| 88 | induction w with |
| 89 | | nil => simp [axisRoute] |
| 90 | | cons i j ih => |
| 91 | rw [show axisRoute x.val y.val (i::j) = straight i _ ++ axisRoute x.val y.val j from rfl, |
| 92 | List.length_append,List.length_cons, Nat.add_mul]; have h := he i; omega |
| 93 | have h : (route x.val y.val l).length ≤ 4*(2*P.radius) := by simpa [route,allAxes] using hL (allAxes l) |
| 94 | omega |
| 95 | end Coords |
| 96 | |
| 97 | section Score |
| 98 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 99 | variable {f : Side} {U : E → Config G f} {r : Site f} (P : Patch) |
| 100 | |
| 101 | def framed (r : Site f) (U : E → Config G f) (q : E × P.FrameCoordinates G) := |
| 102 | P.score (expandAt r (U q.1)) (P.frameFromCoordinates G q.2) |
| 103 | |
| 104 | /-- Fix this cost on the gauge (pre-L). -/ |
| 105 | def ExpReceipt (G : Gauge) (n : ℕ) (K : ℝ) : Prop := |
| 106 | ∀ x : G.Color, ‖x‖ ≤ 1 → Allows n (fun x : G.Color => G.mat (G.lieExp x)) x K |
| 107 | lemma exp_receipt (G : Gauge) (n : ℕ) : ∃ K : ℝ, 0<K ∧ ExpReceipt G n K := by |
| 108 | obtain ⟨K,hK,he⟩ := exists_allows (isCompact_closedBall (0:G.Color) 1) (fun x _ => G.exp_jet.contDiffAt (x:=x)) n |
| 109 | exact ⟨1+K,by positivity,fun x hx => (he x (by simpa using hx)).mono (le_add_of_nonneg_left zero_le_one)⟩ |
| 110 | |
| 111 | /-- Condition `C` bounds all per-link jets of the input U in its x |
| 112 | chart. -/ |
| 113 | def scoreCost (G : Gauge) (n : ℕ) (K C : ℝ) := |
| 114 | let e := composeCost n K 1 |
| 115 | priceCost G (2^n * (2^n * e * travelCost G n (8*P.radius) (composeCost n C 1)) * e) |
| 116 | |
| 117 | lemma framed_allows {K C : ℝ} {n : ℕ} (hK : ExpReceipt G n K) (p : E × P.FrameCoordinates G) |
| 118 | (hh : ‖p‖ ≤ 1) (h : ∀ i, Allows n (fun y => G.mat (U y i)) p.1 C) : |
| 119 | Allows n (framed P r U) p (scoreCost P G n K C) := by |
| 120 | let T := P.FrameCoordinates G |
| 121 | let F := ContinuousLinearMap.fst ℝ E T |
| 122 | let S := ContinuousLinearMap.snd ℝ E T |
| 123 | have hf : ‖F‖ ≤ 1 := F.opNorm_le_bound zero_le_one fun v => by rw [one_mul]; exact norm_fst_le v |
| 124 | have hs : ‖S‖ ≤ 1 := S.opNorm_le_bound zero_le_one fun v => by rw [one_mul]; exact norm_snd_le v |
| 125 | have hv (i : P.Points) : Allows n (fun z : E × T => G.mat (P.frameFromCoordinates G z.2 i)) p (composeCost n K 1) := by |
| 126 | let R := readLog (G:=G) P i ∘L S |
| 127 | have hr : ‖R‖ ≤ 1 := (ContinuousLinearMap.opNorm_comp_le _ _).trans |
| 128 | (mul_le_one₀ (read_short P G i) (norm_nonneg _) hs) |
| 129 | have he : ‖R p‖ ≤ 1 := (R.le_opNorm p).trans (mul_le_one₀ hr (norm_nonneg _) hh) |
| 130 | simp_rw [frame_read] |
| 131 | exact (hK (R p) he).comp (f:=R) (allows_linear hr he) |
| 132 | have hu (i) : Allows n (fun z : E × T => G.mat (U z.1 i)) p (composeCost n C 1) := |
| 133 | (h i).comp (f:=F) (allows_linear hf ((norm_fst_le p).trans hh)) |
| 134 | unfold framed Patch.score Patch.via; simp_rw [travel_at] |
| 135 | apply allows_average (ι:=P.Points); intro i; apply allows_average (ι:=P.Points); intro j |
| 136 | apply allows_average (ι:=Lattice.Order); intro l |
| 137 | have hm := travel_jets (U:=fun z : E × T => U z.1) hu (wrap f i.val+r) (routeLe P i j l) |
| 138 | exact Allows.price (f:=fun z => _) <| ((hv i).times (f:=fun z : E×T => _) (g:=fun z : E×T => _) hm).times |
| 139 | (f:=fun z => _) (g:=fun z => _) ((hv j).inverse (f:=fun z => _)) |
| 140 | |
| 141 | open Work.F03 |
| 142 | |
| 143 | def pairBill (v w : P.FrameCoordinates G) := |
| 144 | (points P)⁻¹*((points P)⁻¹*∑ i : P.Points, ∑ j : P.Points, |
| 145 | inner ℝ (readLog P i v-readLog P j v) (readLog P i w-readLog P j w)) |
| 146 | |
| 147 | omit [NormedSpace ℝ E] in |
| 148 | lemma frame_vertical (q : E × P.FrameCoordinates G) (hq : q=0) (hU : U 0=1) : |
| 149 | let F := fun v : P.FrameCoordinates G => framed P r U (q.1,v) |
| 150 | F 0=0 ∧ HasFDerivAt (𝕜:=ℝ) F 0 0 ∧ ∀ v w, iteratedFDeriv ℝ 2 F 0 ![v,w] = pairBill P v w := by |
| 151 | subst q |
| 152 | have he : expandAt r (U 0)=1 := by rw [hU]; rfl |
| 153 | let e i (v : P.FrameCoordinates G) := G.lieExp (readLog P i v) |
| 154 | let m (v : P.FrameCoordinates G) := framed P r U (0,v) |
| 155 | let A i j (v : P.FrameCoordinates G) := G.price (e i v * (e j v)⁻¹) |
| 156 | have hO : 0 < (Fintype.card Lattice.Order:ℝ) := by positivity |
| 157 | have ht (v) : m v = (points P)⁻¹ * ((points P)⁻¹ * ∑ i : P.Points, ∑ j : P.Points, A i j v) := by |
| 158 | unfold m framed Patch.score Patch.average |
| 159 | simp_rw [he,Patch.via, Pressure.one, mul_one, frame_read,Finset.sum_const,Finset.card_univ, |
| 160 | nsmul_eq_mul,inv_mul_cancel_left₀ hO.ne',← Finset.mul_sum]; rfl |
| 161 | have hf : ContDiffAt ℝ 2 m 0 := by |
| 162 | simp_rw [funext ht] |
| 163 | refine contDiffAt_const.mul (contDiffAt_const.mul (ContDiffAt.sum fun i _ => ContDiffAt.sum fun j _ => ?_)) |
| 164 | apply (price_smooth (X:=P.FrameCoordinates G) (A:=fun v => e i v*(e j v)⁻¹) ?_).of_le le_top |
| 165 | simp only [G.mat_mul,G.mat_inv] |
| 166 | have hs (i : P.Points) : ContDiff ℝ ω (fun v : P.FrameCoordinates G => G.mat (e i v)) := |
| 167 | G.exp_jet.comp (readLog P i).contDiff |
| 168 | exact (hs i).contDiffAt.mul (((show G.Mat ≃L[ℝ] G.Mat from starL ℝ).contDiff.comp (hs j)).contDiffAt) |
| 169 | have hy (v : P.FrameCoordinates G) (i j : P.Points) := |
| 170 | Work.F03.price_limit (V:=fun t : ℝ => e i (t • v)*(e j (t • v))⁻¹) (by simp [e]) (c:=readLog P i v-readLog P j v) |
| 171 | have hlim (v : P.FrameCoordinates G) : Tendsto (fun t : ℝ => m (t • v) / t^2) (𝓝[≠] 0) (𝓝 (pairBill P v v / 2)) := by |
| 172 | simp_rw [ht,pairBill,mul_div_assoc,Finset.sum_div] |
| 173 | refine ((tendsto_finsetSum _ fun i _ => tendsto_finsetSum _ fun j _ => ?_).const_mul _).const_mul _ |
| 174 | simp_rw [real_inner_self_eq_norm_sq]; apply hy v i j |
| 175 | simp only [G.mat_mul,G.mat_inv] |
| 176 | have hD (i : P.Points) : HasDerivAt (fun t : ℝ => G.mat (e i (t • v))) (G.colorMat (readLog P i v)) 0 := by |
| 177 | simp only [e,G.mat_lieExp,map_smul]; simpa using! hasDerivAt_exp_smul_const (G.colorMat (readLog P i v)) (0:ℝ) |
| 178 | convert! (hD i).mul (hD j).star using 1 |
| 179 | simp [e, sub_eq_add_neg, colorMat_skew] |
| 180 | have hadd (x y z : P.FrameCoordinates G) : pairBill P (x+y) z=pairBill P x z+pairBill P y z := by |
| 181 | unfold pairBill; simp_rw [map_add,add_sub_add_comm,inner_add_left, Finset.sum_add_distrib,mul_add] |
| 182 | have hs (v w : P.FrameCoordinates G) : pairBill P v w=pairBill P w v := by |
| 183 | unfold pairBill |
| 184 | refine congr_arg _ (congr_arg _ ?_) |
| 185 | apply Finset.sum_congr rfl; intro i _; apply Finset.sum_congr rfl; intro j _; exact real_inner_comm _ _ |
| 186 | obtain ⟨hh,h0,H⟩ := hessian_of_limit hf hlim hadd hs |
| 187 | have h := (hf.differentiableAt (by simp)).hasFDerivAt; rw [h0] at h |
| 188 | exact ⟨hh,h,H⟩ |
| 189 | |
| 190 | def rootGap := 2*(points P)⁻¹^2 |
| 191 | lemma rootGap_pos : 0 < rootGap P := by unfold rootGap; have := points_pos P; positivity |
| 192 | |
| 193 | lemma pairBill_gap (v : P.FrameCoordinates G) : rootGap P * ‖v‖^2 ≤ pairBill P v v := by |
| 194 | let H (i j : P.Points) := ‖readLog P i v - readLog P j v‖^2 |
| 195 | have hc : ∑ j : P.Points, H P.center j=‖v‖^2 := by simp_rw [H, read_center, zero_sub,norm_neg]; exact (frame_counting ..).symm |
| 196 | have he : ∑ i ∈ Finset.univ.erase P.center, H i P.center=‖v‖^2 := by |
| 197 | have hz := Finset.sum_erase_add _ (fun i => H i P.center) (Finset.mem_univ P.center) |
| 198 | rw [show H P.center P.center=0 by simp [H], add_zero] at hz |
| 199 | rw [hz]; simp_rw [H,read_center, sub_zero]; exact (frame_counting ..).symm |
| 200 | have h : ‖v‖^2+‖v‖^2 ≤ ∑ i, ∑ j, H i j := by |
| 201 | conv_lhs => rw [← he]; rhs; rw [he,← hc] |
| 202 | rw [← Finset.sum_erase_add _ (fun i => ∑ j, H i j) (Finset.mem_univ P.center)] |
| 203 | exact add_le_add_left (Finset.sum_le_sum (fun i _ => Finset.single_le_sum |
| 204 | (f:=H i) (fun j _ => sq_nonneg _) (Finset.mem_univ P.center))) _ |
| 205 | unfold rootGap pairBill; simp_rw [real_inner_self_eq_norm_sq] |
| 206 | have hp := points_pos P |
| 207 | apply le_trans _ (mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left h (by positivity)) (by positivity)); exact le_of_eq (by ring) |
| 208 | |
| 209 | end Score |
| 210 | end YM.Push.Uniform |