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.Push.STATIONARY_UNIFORM.FrameBall |
| 2 | |
| 3 | /-! |
| 4 | # Predictors with shared tags on the stationary ball |
| 5 | |
| 6 | The bonds read the actual site frame in TWO places. No introduction of |
| 7 | independent connector data, no differentiating a hard flag. All tags ignored |
| 8 | on the same ball, all kernel tests proved strictly, use real G coordinates. |
| 9 | Still polynomial costs (not the sharp E estimate for *weighted-centered* jets). |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Push.Uniform |
| 15 | open Lattice Wilson RG Precision Pressure Gauge |
| 16 | open Next.Fluctuations Filter Function Set Metric |
| 17 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators InnerProductSpace Classical |
| 18 | |
| 19 | variable {G : Gauge} {c f : Side} {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 20 | variable {U : E → Config G f} {n : ℕ} {K C D δ W r : ℝ} |
| 21 | |
| 22 | /- uniform chart estimate, no need to assume from LocalRatio -/ |
| 23 | def FocusReceipt (G : Gauge) (n : ℕ) (K R : ℝ) := 0<R ∧ ∀ X : G.Mat, ‖X-1‖ < R → |
| 24 | Allows n (fun x => G.mat (G.focus x)) X K ∧ ∀ u, G.Nearest u X → u=G.focus X |
| 25 | |
| 26 | lemma focus_receipt (G : Gauge) (n : ℕ) : ∃ K R : ℝ, 0<K ∧ FocusReceipt G n K R := by |
| 27 | have he : ∀ᶠ X : G.Mat in 𝓝 1, ContDiffAt ℝ ω (fun x => G.mat (G.focus x)) X := G.focus_diff.eventually (by simp) |
| 28 | -- pin exact Frobenius metric |
| 29 | -- often need helpers for unbundled topology (cf. Path.lean) |
| 30 | obtain ⟨R,hR,h⟩ := Metric.nhds_basis_closedBall.eventually_iff.mp (he.and G.nearest_is_focus) |
| 31 | obtain ⟨K,hK,hk⟩ := exists_allows (isCompact_closedBall (1:G.Mat) R) (fun x hx => (h hx).1) n |
| 32 | refine ⟨K+1,R,by positivity, hR,fun X hx => ?_⟩ |
| 33 | have hx' : X∈closedBall (1:G.Mat) R := by rw [mem_closedBall,dist_eq_norm]; exact hx.le |
| 34 | exact ⟨(hk _ hx').mono (le_add_of_nonneg_right zero_le_one),(h hx').2⟩ |
| 35 | |
| 36 | section Main |
| 37 | variable (S : StepData c f) |
| 38 | |
| 39 | def hatsCost (P : Patch) (G : Gauge) (n : ℕ) (K C : ℝ) := composeCost n K (implicitCost 1 (scoreCost P G (n+1) K C) (rootGap P/2)⁻¹ n) |
| 40 | |
| 41 | def connectorCost (P : Patch) (G : Gauge) (n : ℕ) (K C : ℝ) : ℝ := |
| 42 | let F := hatsCost P G n K C |
| 43 | 2^n * (2^n*F*travelCost G n P.L.val C)*F |
| 44 | |
| 45 | def connectorMove (P : Patch) (G : Gauge) (C : ℝ) : ℝ := |
| 46 | let J := alignCost P * Inputs.pathChange G P C |
| 47 | 2*J + P.L.val * Inputs.variation G C |
| 48 | |
| 49 | def predictionRadius (P : Patch) (G : Gauge) (Q : KernelChoices) (n : ℕ) (K C D δ r : ℝ) := |
| 50 | let F := connectorMove P G C |
| 51 | min (frameRadius P G (n+1) K C D δ Q) (min (Real.sqrt Q.predictor_cut / F) (r/(G.colorScale*F))) |
| 52 | |
| 53 | lemma connectorMove_pos (P : Patch) (G : Gauge) {C : ℝ} (h : 0 ≤ C) : 0 < connectorMove P G C := by |
| 54 | have hh := Inputs.path_pos P G h |
| 55 | have he := align_pos P |
| 56 | have ha : 0 ≤ Inputs.variation G C := div_nonneg h G.colorScale_pos.le |
| 57 | unfold connectorMove; positivity |
| 58 | |
| 59 | lemma prediction_radius_pos (hU : Inputs U (n+1) C) (hn : 2 ≤ n) (hK : ExpReceipt G (n+1) K) |
| 60 | (hL : LogReceipt G D δ) (hF : FocusReceipt G n W r) : |
| 61 | 0 < predictionRadius S.patch G S.kernel n K C D δ r := by |
| 62 | have he := frame_radius_pos S.patch hU hK (by omega) (0:Site f) hL S.kernel |
| 63 | have hs := connectorMove_pos S.patch G hU.2.1 |
| 64 | exact lt_min he (lt_min (div_pos (Real.sqrt_pos.mpr S.kernel.predictor_cut_pos) hs) (div_pos hF.1 (mul_pos G.colorScale_pos hs))) |
| 65 | |
| 66 | def averageX (P : Patch) (Y : P.Points → G.El) := ∑ i, P.weight i • G.mat (Y i) |
| 67 | |
| 68 | lemma averageX_within (P : Patch) (Y : P.Points → G.El) {M : ℝ} (h : ∀ i, G.chord (Y i) ≤ M) : |
| 69 | ‖averageX P Y-1‖ ≤ G.colorScale*M := by |
| 70 | have he : averageX P Y - 1 = ∑ i, P.weight i • (G.mat (Y i)-1) := by simp only [averageX,smul_sub,Finset.sum_sub_distrib, ← Finset.sum_smul,P.weight_sum,one_smul] |
| 71 | rw [he] |
| 72 | apply le_trans (norm_sum_le ..) |
| 73 | calc |
| 74 | _ ≤ ∑ i, P.weight i*(G.colorScale*M) := Finset.sum_le_sum fun i _ => by |
| 75 | rw [norm_smul,Real.norm_of_nonneg (P.weight_nonneg i), ← chord_dist] |
| 76 | exact mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left (h i) G.colorScale_pos.le) (P.weight_nonneg _) |
| 77 | _ = _ := by rw [← Finset.sum_mul,P.weight_sum,one_mul] |
| 78 | |
| 79 | lemma frame_comparison (hU : Inputs U (n+1) C) (hn : 2 ≤ n) (hK : ExpReceipt G (n+1) K) |
| 80 | (hL : LogReceipt G D δ) (x : E) (hx : x∈ball 0 (frameRadius S.patch G (n+1) K C D δ S.kernel)) |
| 81 | (t : S.SitesChoice) (y : Site c) : |
| 82 | let h := S.frames (U x) t y; let P := S.patch; let r := S.ratio.embed y |
| 83 | h = P.frameFromCoordinates G (branchLog P r U x) ∧ |
| 84 | ∀ i, G.chord (h i) ≤ (alignCost P * Inputs.pathChange G P C)*‖x‖ := by |
| 85 | have he := selects S.patch hU hK (by omega) hL hx (r:=S.ratio.embed y) |
| 86 | let q := S.patch.selected (expandAt (S.ratio.embed y) (U x)); have hq := (S.patch.min_exists (expandAt (S.ratio.embed y) (U x))).choose_spec |
| 87 | have ht : S.frames (U x) t y=q := if_pos he.1 |
| 88 | dsimp only; rw [ht]; refine ⟨((he.2 q hq).1.1).symm,fun i => ?_⟩ |
| 89 | have hh : ‖x‖ ≤ 1 := le_trans (show ‖x‖ ≤ _ from (show ‖x‖ < frameRadius S.patch G (n+1) K C D δ S.kernel by simpa using hx).le) |
| 90 | (le_trans (min_le_left ..) (min_le_left ..)) |
| 91 | rw [mul_assoc]; exact cluster_root S.patch hq (Inputs.closes S.patch hU (by omega) hh) i |
| 92 | |
| 93 | lemma connector_within (hU : Inputs U (n+1) C) (hn : 2 ≤ n) (hK : ExpReceipt G (n+1) K) |
| 94 | (hL : LogReceipt G D δ) (x : E) (hx : x∈ball 0 (frameRadius S.patch G (n+1) K C D δ S.kernel)) |
| 95 | (t : S.SitesChoice) (b : Bond c) (i : S.patch.Points) : |
| 96 | G.chord (S.connector (U x) t b i) ≤ connectorMove S.patch G C * ‖x‖ := by |
| 97 | have h (y : Site c) := (frame_comparison S hU hn hK hL x hx t y).2 i |
| 98 | have hh : ‖x‖ ≤ 1 := le_trans (show ‖x‖ ≤ frameRadius S.patch G (n+1) K C D δ S.kernel by exact (show ‖x‖ < frameRadius S.patch G (n+1) K C D δ S.kernel by simpa using hx).le) |
| 99 | (le_trans (min_le_left ..) (min_le_left ..)) |
| 100 | unfold StepData.connector; rw [travel_at]; apply (G.chord_triangle _ _).trans; rw [G.chord_inv] |
| 101 | apply (add_le_add ((G.chord_triangle _ _).trans (add_le_add (h _) (travel_chord (U x) _ _ _ (Inputs.chord hU (by omega) hh)))) (h _)).trans_eq |
| 102 | rw [List.length_replicate]; unfold connectorMove; ring |
| 103 | |
| 104 | lemma uses_bond (hU : Inputs U (n+1) C) (hn : 2 ≤ n) (hK : ExpReceipt G (n+1) K) |
| 105 | (hL : LogReceipt G D δ) (x : E) (hx : x∈ball 0 (predictionRadius S.patch G S.kernel n K C D δ r)) |
| 106 | (t : S.Choices) (b : Bond c) : |
| 107 | let Y := S.connector (U x) t.1 b |
| 108 | S.patch.usesBest S.kernel Y ∧ ‖averageX _ Y-1‖ < r := by |
| 109 | let Y := S.connector (U x) t.1 b |
| 110 | let L := S.kernel.predictor_cut |
| 111 | let J := connectorMove S.patch G C |
| 112 | have he : x∈ball (0:E) (frameRadius S.patch G (n+1) K C D δ S.kernel) := ball_subset_ball (min_le_left ..) hx |
| 113 | have ht (i) : G.chord (Y i) ≤ J*‖x‖ := connector_within S hU hn hK hL x he t.1 b i |
| 114 | have hp := averageX_within S.patch Y ht |
| 115 | have hy := connectorMove_pos S.patch G hU.2.1 |
| 116 | have hz : ‖x‖ < min (Real.sqrt L / J) (r/(G.colorScale*J)) := lt_of_lt_of_le |
| 117 | (show ‖x‖ < predictionRadius S.patch G S.kernel n K C D δ r by simpa using hx) (min_le_right ..) |
| 118 | rw [lt_min_iff] at hz |
| 119 | have hv : 0<L:=S.kernel.predictor_cut_pos |
| 120 | constructor |
| 121 | · apply lt_of_le_of_lt ((S.patch.bond_min _).choose_spec 1) |
| 122 | let a := J*‖x‖; change S.patch.bondCost Y 1 < L |
| 123 | have ha : 0≤a := mul_nonneg hy.le (norm_nonneg _) |
| 124 | calc |
| 125 | _ ≤ ∑ i, S.patch.weight i * (a^2/2) := Finset.sum_le_sum fun i _ => mul_le_mul_of_nonneg_left |
| 126 | (price_of_chord (Y i * 1⁻¹) (by simpa using ht i)) (S.patch.weight_nonneg _) |
| 127 | _ = a^2/2 := by rw [← Finset.sum_mul,S.patch.weight_sum,one_mul] |
| 128 | _ < _ := by |
| 129 | have ht : a < Real.sqrt L := by unfold a; rw [mul_comm]; exact (lt_div_iff₀ hy).1 hz.1 |
| 130 | have h := pow_le_pow_left₀ ha ht.le 2; rw [Real.sq_sqrt hv.le] at h; linarith |
| 131 | apply hp.trans_lt |
| 132 | have h := (lt_div_iff₀ (mul_pos G.colorScale_pos hy)).1 hz.2 |
| 133 | change ‖x‖ * (G.colorScale*J)<r at h; linarith |
| 134 | |
| 135 | lemma picked_bond (hU : Inputs U (n+1) C) (hn : 2 ≤ n) (hK : ExpReceipt G (n+1) K) |
| 136 | (hL : LogReceipt G D δ) (hF : FocusReceipt G n W r) (x : E) (hx : x∈ball 0 (predictionRadius S.patch G S.kernel n K C D δ r)) |
| 137 | (t : S.Choices) (b : Bond c) : S.prediction (U x) t b = G.focus (averageX S.patch (S.connector (U x) t.1 b)) := by |
| 138 | obtain ⟨he,hp⟩ := uses_bond S hU hn hK hL x hx t b |
| 139 | unfold StepData.prediction Patch.predict; rw [if_pos he] |
| 140 | exact (hF.2 _ hp).2 _ ((Branch.min_iff _ S.patch.weight_sum _ _).2 (S.patch.bond_min _).choose_spec) |
| 141 | |
| 142 | lemma picked_tags (hU : Inputs U (n+1) C) (hn : 2 ≤ n) (hK : ExpReceipt G (n+1) K) |
| 143 | (hL : LogReceipt G D δ) (x : E) (hx : x∈ball 0 (predictionRadius S.patch G S.kernel n K C D δ r)) (t t' : S.Choices) : |
| 144 | S.prediction (U x) t = S.prediction (U x) t' := by |
| 145 | have ht y (p : S.Choices) := (frame_comparison S hU hn hK hL x (ball_subset_ball (min_le_left ..) hx) p.1 y).1 |
| 146 | have he b p : S.prediction (U x) p b=S.patch.best (S.connector (U x) p.1 b) := if_pos (uses_bond S hU hn hK hL x hx p b).1 |
| 147 | funext b; rw [he,he] |
| 148 | apply congr_arg S.patch.best; funext i; simp only [StepData.connector,ht] |
| 149 | |
| 150 | variable [FiniteDimensional ℝ E] |
| 151 | |
| 152 | lemma frame_pay (hU : Inputs U (n+1) C) (hn : 2 ≤ n) (hK : ExpReceipt G (n+1) K) |
| 153 | (hL : LogReceipt G D δ) (x : E) (hx : x∈ball 0 (frameRadius S.patch G (n+1) K C D δ S.kernel)) |
| 154 | (t : S.SitesChoice) (y : Site c) (i : S.patch.Points) : Allows n (fun x => G.mat (S.frames (U x) t y i)) x (hatsCost S.patch G n K C) := by |
| 155 | let P := S.patch |
| 156 | let q := branchLog P (S.ratio.embed y) U |
| 157 | have hq : ‖q x‖ ≤ 1 := by |
| 158 | have ht := ((selects P hU hK (by omega) hL (r:=S.ratio.embed y) hx).2 _ |
| 159 | (P.min_exists _).choose_spec).2.1 |
| 160 | apply le_trans (show ‖q x‖ < hilbertRadius P G (n+1) K C by simpa [q,branchLog,Patch.selected] using ht).le (min_le_left ..) |
| 161 | have hp := Allows.linear _ (branch_jets P hU hK hn hL hx (r:=S.ratio.embed y)) (read_short _ G i) |
| 162 | rw [one_mul] at hp |
| 163 | let w (x) := readLog P i (q x) |
| 164 | have hw : ‖w x‖ ≤ 1 := ((readLog P i).le_opNorm _).trans (mul_le_one₀ (read_short _ G i) (norm_nonneg _) hq) |
| 165 | apply Allows.germ (((hK _ hw).order (Nat.le_succ n)).comp (f:=w) hp) |
| 166 | filter_upwards [isOpen_ball.mem_nhds hx] with z hz; rw [(frame_comparison S hU hn hK hL _ hz t y).1,frame_read] |
| 167 | |
| 168 | lemma connector_pay (hU : Inputs U (n+1) C) (hn : 2 ≤ n) (hK : ExpReceipt G (n+1) K) |
| 169 | (hL : LogReceipt G D δ) (x : E) (hx : x∈ball 0 (frameRadius S.patch G (n+1) K C D δ S.kernel)) |
| 170 | (t : S.SitesChoice) (b : Bond c) (i : S.patch.Points) : |
| 171 | Allows n (fun x => G.mat (S.connector (U x) t b i)) x (connectorCost S.patch G n K C) := by |
| 172 | have hh : ‖x‖ ≤ 1 := le_trans (show ‖x‖ ≤ _ from (show ‖x‖ < frameRadius S.patch G (n+1) K C D δ S.kernel by simpa using hx).le) |
| 173 | (le_trans (min_le_left ..) (min_le_left ..)) |
| 174 | have h (y : Site c) := frame_pay S hU hn hK hL x hx t y i |
| 175 | simp_rw [StepData.connector,travel_at] |
| 176 | exact ((h _).times (f:=fun x => _) (g:=fun x => _) (travel_jets (U:=U) (fun j => (hU.2.2 j x hh).order (Nat.le_succ n)) _ (List.length_replicate.le))).times |
| 177 | (f:=fun x => _) (g:=fun x => _) ((h _).inverse (f:=fun x => _)) |
| 178 | |
| 179 | lemma prediction_pay (hU : Inputs U (n+1) C) (hn : 2 ≤ n) (hK : ExpReceipt G (n+1) K) |
| 180 | (hL : LogReceipt G D δ) (hF : FocusReceipt G n W r) (x : E) (hx : x∈ball 0 (predictionRadius S.patch G S.kernel n K C D δ r)) |
| 181 | (t : S.Choices) (b : Bond c) : Allows n (fun x => G.mat (S.prediction (U x) t b)) x (composeCost n W (connectorCost S.patch G n K C)) := by |
| 182 | have he (i) := (connector_pay S hU hn hK hL x (ball_subset_ball (min_le_left ..) hx) t.1 b i).smul (S.patch.weight i) |
| 183 | let m (x) := averageX S.patch (S.connector (U x) t.1 b) |
| 184 | have hm : Allows n m x (connectorCost S.patch G n K C) := by |
| 185 | have hs := allows_sum (s:=Finset.univ) (fun i _ => he i) |
| 186 | simp_rw [abs_of_nonneg (S.patch.weight_nonneg _),← Finset.sum_mul,S.patch.weight_sum,one_mul] at hs |
| 187 | exact hs |
| 188 | apply Allows.germ (((hF.2 _ (uses_bond S hU hn hK hL x hx t b).2).1).comp (f:=m) hm) |
| 189 | filter_upwards [isOpen_ball.mem_nhds hx] with z hz; rw [picked_bond S hU hn hK hL hF z hz] |
| 190 | end Main |
| 191 | end YM.Push.Uniform |