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.Gauge.Nearest |
| 2 | |
| 3 | /-! Weighted Euclidean centroid comparison & uniqueness on the branch. -/ |
| 4 | |
| 5 | set_option autoImplicit false |
| 6 | noncomputable section |
| 7 | namespace YM.Branch |
| 8 | |
| 9 | open Function Filter Set NormedSpace Submodule |
| 10 | open scoped Topology InnerProductSpace Matrix.Norms.Frobenius ContDiff BigOperators NNReal |
| 11 | |
| 12 | attribute [local instance] Gauge.frobInner |
| 13 | |
| 14 | section average |
| 15 | variable {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 16 | |
| 17 | /-- average over vertices / orders. -/ |
| 18 | def avg {n : Type*} [Fintype n] (f : n → X) := (Fintype.card n : ℝ)⁻¹ • ∑ i, f i |
| 19 | |
| 20 | variable {n : Type*} [Fintype n] |
| 21 | |
| 22 | @[simp] lemma avg_const [Nonempty n] (x : X) : avg (fun _ : n => x) = x := by |
| 23 | have h : 0 < (Fintype.card n : ℝ) := by exact_mod_cast Fintype.card_pos |
| 24 | simp only [avg, Finset.sum_const, Finset.card_univ] |
| 25 | rw [← Nat.cast_smul_eq_nsmul ℝ, smul_smul, inv_mul_cancel₀ h.ne', one_smul] |
| 26 | |
| 27 | lemma norm_avg (f : n → X) : ‖avg f‖ ≤ avg fun i => ‖f i‖ := by |
| 28 | unfold avg; rw [norm_smul]; simp only [norm_inv, Real.norm_natCast, smul_eq_mul] |
| 29 | exact mul_le_mul_of_nonneg_left (norm_sum_le _ _) (by positivity) |
| 30 | |
| 31 | lemma avg_mono {f g : n → ℝ} (h : f ≤ g) : avg f ≤ avg g := |
| 32 | mul_le_mul_of_nonneg_left (Finset.sum_le_sum fun i _ ↦ h i) (by positivity) |
| 33 | |
| 34 | lemma avg_add (f g : n → X) : avg (fun i => f i + g i) = avg f + avg g := by simp [avg, Finset.sum_add_distrib, smul_add] |
| 35 | lemma avg_sub (f g : n → X) : avg (fun i => f i - g i) = avg f - avg g := by simp [avg, Finset.sum_sub_distrib, smul_sub] |
| 36 | lemma avg_mul (x : ℝ) (f : n → ℝ) : avg (fun i => x*f i) = x * avg f := by simp [avg,← Finset.mul_sum, mul_left_comm] |
| 37 | |
| 38 | lemma le_avg [Nonempty n] (f : n → ℝ) : ∃ x, f x ≤ avg f := by |
| 39 | obtain ⟨x,-,hx⟩ := Finset.exists_min_image Finset.univ f Finset.univ_nonempty |
| 40 | exact ⟨x,(avg_const (n := n) (f x)).symm.le.trans (avg_mono fun i ↦ hx i (Finset.mem_univ i))⟩ |
| 41 | |
| 42 | /-- Jensen for norm sq -/ |
| 43 | lemma weighted (f : n → X) (w : n → ℝ) (h : ∀ i, 0 ≤ w i) (hh : ∑ i, w i = 1) : |
| 44 | ‖∑ i, w i • f i‖^2 ≤ ∑ i, w i * ‖f i‖^2 := by |
| 45 | have he : ‖∑ i, w i • f i‖ ≤ ∑ i, w i*‖f i‖ := by |
| 46 | simpa only [norm_smul,Real.norm_of_nonneg (h _)] using! norm_sum_le (s := Finset.univ) (f := fun i => w i • f i) |
| 47 | let m := ∑ i, w i*‖f i‖ |
| 48 | have hs (i) : 2*m*(w i*‖f i‖) - w i*m^2 ≤ w i*‖f i‖^2 := by nlinarith [mul_nonneg (h i) (sq_nonneg (m-‖f i‖))] |
| 49 | apply le_trans _ (Finset.sum_le_sum fun i (_ : i ∈ Finset.univ) ↦ hs i) |
| 50 | rw [Finset.sum_sub_distrib,← Finset.mul_sum,← Finset.sum_mul,hh,one_mul] |
| 51 | change _ ≤ 2*m*m-m^2 |
| 52 | change _ ≤ m at he |
| 53 | have hy := norm_nonneg (∑ i, w i • f i) |
| 54 | nlinarith |
| 55 | |
| 56 | lemma avg_sq [Nonempty n] (f : n → X) : ‖avg f‖^2 ≤ avg fun i => ‖f i‖^2 := by |
| 57 | simpa only [avg, Finset.smul_sum, smul_eq_mul, Finset.mul_sum] using! |
| 58 | weighted f (fun _ => (Fintype.card n : ℝ)⁻¹) (fun _ => by positivity) (by simp) |
| 59 | end average |
| 60 | |
| 61 | variable {G : Gauge} {n : Type*} [Fintype n] |
| 62 | |
| 63 | lemma price_diff (u v : G.El) : (G.repDim : ℝ)*(2*G.price (u*v⁻¹)) = ‖G.mat u-G.mat v‖^2 := by |
| 64 | rw [← Gauge.chord_price] |
| 65 | have he : 0 < G.colorScale := G.colorScale_pos |
| 66 | have hh : (G.mat u-G.mat v)*G.mat v⁻¹ = G.mat (u*v⁻¹) - 1 := by rw [sub_mul, ← G.mat_mul, ← G.mat_mul, mul_inv_cancel]; simp |
| 67 | rw [Gauge.chord, ← hh, Gauge.frob_mul_eq _ _ (G.mat_mul_star _)] |
| 68 | change _ * (_ / G.colorScale)^2 = _ |
| 69 | rw [div_pow,← G.colorScale_sq] |
| 70 | field_simp |
| 71 | |
| 72 | lemma min_iff (w : n → ℝ) (hw : ∑ i, w i = 1) (f : n → G.El) (u : G.El) : |
| 73 | G.Nearest u (∑ i, w i • G.mat (f i)) ↔ ∀ v : G.El, |
| 74 | (∑ i, w i * G.price (f i * u⁻¹)) ≤ (∑ i, w i * G.price (f i * v⁻¹)) := by |
| 75 | let m := ∑ i, w i • G.mat (f i) |
| 76 | have hk (V : G.El) : |
| 77 | (G.repDim:ℝ)*2*(∑ i,w i*G.price (f i * V⁻¹)) = (∑ i, w i*‖G.mat (f i)‖^2)-‖m‖^2+‖m-G.mat V‖^2 := by |
| 78 | calc |
| 79 | _ = ∑ i, w i * ((G.repDim:ℝ)*(2*G.price (f i*V⁻¹))) := by |
| 80 | rw [Finset.mul_sum]; apply Finset.sum_congr rfl; intros; ring |
| 81 | _ = ∑ i, w i * ‖G.mat (f i)-G.mat V‖^2 := by simp only [price_diff] |
| 82 | _ = _ := by |
| 83 | simp only [norm_sub_sq_real, mul_add, mul_sub, Finset.sum_add_distrib, Finset.sum_sub_distrib] |
| 84 | rw [← Finset.sum_mul,hw] |
| 85 | unfold m |
| 86 | rw [sum_inner]; simp only [real_inner_smul_left, Finset.mul_sum, one_mul] |
| 87 | simp_rw [mul_left_comm (w _) 2] |
| 88 | abel |
| 89 | apply forall_congr' |
| 90 | intro v |
| 91 | have hd : 0 < (G.repDim:ℝ)*2 := mul_pos (by exact_mod_cast G.dimPos) two_pos |
| 92 | change ‖m-_‖ ≤ ‖m-_‖ ↔ _ |
| 93 | symm; rw [← mul_le_mul_iff_right₀ hd,hk,hk, add_le_add_iff_left, sq_le_sq₀ (norm_nonneg _) (norm_nonneg _)] |
| 94 | |
| 95 | lemma weighted_unique (G : Gauge) : ∃ δ : ℝ, 0 < δ ∧ ∀ (n : Type) [Fintype n], |
| 96 | ∀ (w : n → ℝ), (∀ i, 0 ≤ w i) → (∑ i, w i) = 1 → ∀ f : n → G.El, |
| 97 | (∃ u : G.El, (∑ i, w i * G.price (f i * u⁻¹))<δ) → ∃! u, G.Nearest u (∑ i, w i • G.mat (f i)) := by |
| 98 | obtain ⟨r,hr,H⟩ := G.nearest_tube |
| 99 | have hg : 0 < (G.repDim:ℝ)*2 := mul_pos (by exact_mod_cast G.dimPos) two_pos |
| 100 | refine ⟨r^2/((G.repDim:ℝ)*2),by positivity,fun n _ w hw hb f ⟨u,hu⟩ => H _ u ?_⟩ |
| 101 | apply (sq_lt_sq₀ (norm_nonneg _) hr.le).1 |
| 102 | calc |
| 103 | _ = ‖∑ i, w i • (G.mat (f i)-G.mat u)‖^2 := by |
| 104 | simp_rw [smul_sub]; rw [Finset.sum_sub_distrib, ← Finset.sum_smul,hb]; simp only [one_smul] |
| 105 | _ ≤ _ := weighted (fun i => G.mat (f i)-G.mat u) w hw hb |
| 106 | _ < _ := by |
| 107 | simp only [← price_diff, ← mul_assoc (G.repDim:ℝ), mul_comm ((G.repDim:ℝ)*2)] |
| 108 | simpa only [Finset.sum_mul, mul_assoc (w _)] using (lt_div_iff₀ hg).mp hu |
| 109 | end YM.Branch |