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.Branch.Synchronize |
| 2 | import YM.RG.Patch |
| 3 | |
| 4 | /-! |
| 5 | # First-power predictor geometry |
| 6 | |
| 7 | No smallwise assumption! Contract centroid at *any* output, use averaged |
| 8 | chord reserve. Does not differentiate across tags. |
| 9 | -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.Pressure |
| 13 | open Function Filter Set NormedSpace Submodule YM.Branch |
| 14 | open scoped Topology InnerProductSpace Matrix.Norms.Frobenius ContDiff BigOperators NNReal |
| 15 | attribute [local instance] Gauge.frobInner |
| 16 | |
| 17 | variable {G : Gauge} {n L : Type*} [Fintype n] [Nonempty n] [Fintype L] [Nonempty L] |
| 18 | |
| 19 | omit [Fintype n] [Nonempty n] [Fintype L] [Nonempty L] in |
| 20 | lemma chord_gap (x y : G.El) : G.colorScale*G.chord (x*y⁻¹)=‖G.mat x-G.mat y‖ := by |
| 21 | have hx := sub_mul (G.mat x) (G.mat y) (G.mat y⁻¹) |
| 22 | rw [← G.mat_mul, ← G.mat_mul,mul_inv_cancel,G.mat_one] at hx |
| 23 | unfold Gauge.chord |
| 24 | rw [← hx,Gauge.frob_mul_eq _ _ (G.mat_mul_star _)] |
| 25 | change G.colorScale * (_ / G.colorScale) = _ |
| 26 | field_simp [G.colorScale_pos.ne'] |
| 27 | |
| 28 | omit [Fintype n] [Nonempty n] [Fintype L] [Nonempty L] in |
| 29 | lemma chord_cyc (x y : G.El) : G.chord (x*y)=G.chord (y*x) := by rw [show x*y=x*(y*x)*x⁻¹ by group, G.chord_conj] |
| 30 | |
| 31 | -- double sum, no supremum |
| 32 | variable (A : Pairs n L G) |
| 33 | |
| 34 | def income (x : n) := avg fun y => avg fun l => G.chord (A.W x y l) |
| 35 | def mean := avg fun x => income A x |
| 36 | |
| 37 | omit [Nonempty n] in |
| 38 | lemma price_square (h : n → G.El) (hv : A.Solves h) : |
| 39 | avg (fun x => avg fun y => ‖G.mat (h x)-G.mat (h y)‖^2) ≤ 8*G.colorScale^2*mean A := by |
| 40 | have he : avg (fun x => avg fun y => G.chord (h x * (h y)⁻¹)^2) ≤ 8*mean A := by |
| 41 | have hh (b : n → G.El) : avg (fun x => avg fun y => avg fun i => G.chord (b x*A.W x y i*(b y)⁻¹)^2) = 2*A.cost b := by |
| 42 | simp_rw [G.chord_price,avg_mul]; rfl |
| 43 | have hk (A' : G.El) : G.chord A'^2 ≤ 2*G.chord A' := by |
| 44 | rw [pow_two]; exact mul_le_mul_of_nonneg_right (G.chord_le_two _) (G.chord_nonneg _) |
| 45 | have hp : A.cost 1 ≤ mean A := by |
| 46 | apply le_of_mul_le_mul_left (a:=2) ?_ two_pos |
| 47 | rw [← hh]; simp only [Pi.one_apply,one_mul,inv_one,mul_one,mean,income,← avg_mul] |
| 48 | exact avg_mono fun i => avg_mono fun j => avg_mono fun k => hk _ |
| 49 | calc |
| 50 | _ ≤ avg (fun x => avg fun y => avg fun i => 4*G.chord (A.W x y i)+2*G.chord (h x*A.W x y i*(h y)⁻¹)^2) := avg_mono fun x => avg_mono fun y => by |
| 51 | apply (avg_const (n:=L) _).symm.le.trans |
| 52 | refine avg_mono fun i => ?_ |
| 53 | let c := h x * A.W x y i * (h y)⁻¹ |
| 54 | let p := h y*(A.W x y i)⁻¹*(h y)⁻¹ |
| 55 | have h0 := G.chord_triangle c p |
| 56 | rw [show c*p=h x*(h y)⁻¹ by unfold c p; group, show G.chord p=G.chord (A.W x y i) by simp [p]] at h0 |
| 57 | change G.chord _^2 ≤ 4*G.chord (A.W x y i)+2*G.chord c^2 |
| 58 | have hH := pow_le_pow_left₀ (G.chord_nonneg _) h0 2 |
| 59 | nlinarith only [sq_nonneg (G.chord c-G.chord (A.W x y i)),hH,hk (A.W x y i)] |
| 60 | _ ≤ _ := by |
| 61 | simp_rw [avg_add,avg_mul,hh,show (avg fun x => avg fun y => avg fun i => G.chord (A.W x y i))=mean A from rfl] |
| 62 | linarith only [hp,hv 1] |
| 63 | simp_rw [← chord_gap,mul_pow,avg_mul] |
| 64 | exact (mul_le_mul_of_nonneg_left he (sq_nonneg _)).trans_eq (by ring) |
| 65 | |
| 66 | omit [Nonempty n] in |
| 67 | lemma income_bounds (h : n → G.El) (x : n) : ‖A.feedback h x-Pairs.centroid h‖ ≤ G.colorScale * income A x := by |
| 68 | unfold income Pairs.feedback Pairs.centroid |
| 69 | rw [← avg_sub, ← avg_mul] |
| 70 | apply (norm_avg _).trans; refine avg_mono fun i => ?_ |
| 71 | dsimp only |
| 72 | rw [show (avg fun l => G.mat _)-G.mat (h i) = avg fun l => G.mat (h i*(A.W x i l)⁻¹)-G.mat (h i) by rw [avg_sub,avg_const],← avg_mul] |
| 73 | apply (norm_avg _).trans |
| 74 | simp_rw [← chord_gap,G.chord_conj,G.chord_inv] |
| 75 | rfl |
| 76 | |
| 77 | lemma cluster (G : Gauge) : ∃ C : ℝ, 0 < C ∧ ∀ (n L : Type) [Fintype n] [Nonempty n] [Fintype L] [Nonempty L] (A : Pairs n L G), |
| 78 | ∀ h, A.Solves h → ∃ y : G.El, avg (fun i => G.chord (h i*y⁻¹)) ≤ C*mean A := by |
| 79 | obtain ⟨δ,h,H⟩ := G.nearest_approximate 1 one_pos |
| 80 | let σ := (δ/2)^2 / (8*G.colorScale^2) |
| 81 | have hx := G.colorScale_pos |
| 82 | have hd : 0 < σ := by unfold σ; positivity |
| 83 | let a := δ/2/G.colorScale |
| 84 | have ha : 0<a := by unfold a; positivity |
| 85 | let C := max (2/σ) (max 2 (2/a)) |
| 86 | have hp : 0<C := by unfold C; exact lt_of_lt_of_le (by positivity) (le_max_left ..) |
| 87 | refine ⟨C,hp,fun n L _ _ _ _ A t ht => ?_⟩ |
| 88 | by_cases hv : mean A < σ |
| 89 | · obtain ⟨b,hb⟩ := G.nearest_exists (Pairs.centroid t) |
| 90 | let u := fun x => b⁻¹*t x |
| 91 | have hh : G.Nearest 1 (Pairs.centroid u) := by |
| 92 | unfold u; rw [Pairs.turns] |
| 93 | simpa only [inv_mul_cancel] using (G.nearest_left b⁻¹ b (Pairs.centroid t)).mpr hb |
| 94 | have hk : A.Solves u := fun i => le_trans (A.moves t _ |>.le) (ht i) |
| 95 | have hw : ‖Pairs.centroid u-1‖ < δ/2 := by |
| 96 | obtain ⟨k,hk'⟩ := le_avg (fun i => avg fun l => ‖G.mat (u i)-G.mat (u l)‖^2) |
| 97 | apply lt_of_le_of_lt (hh (u k)) |
| 98 | rw [norm_sub_rev]; unfold Pairs.centroid |
| 99 | rw [show G.mat (u k)-_=(avg fun l => G.mat (u k)-G.mat (u l)) by rw [avg_sub,avg_const]] |
| 100 | apply (sq_lt_sq₀ (by positivity) (by positivity)).1 |
| 101 | exact ((avg_sq _).trans (hk'.trans (price_square A _ hk))).trans_lt ((mul_lt_mul_of_pos_left hv (by positivity)).trans_eq (by unfold σ; field_simp)) |
| 102 | refine ⟨b,le_trans ?_ (le_of_eq (show avg (fun x => C*income A x) = C*mean A from avg_mul ..))⟩ |
| 103 | apply avg_mono |
| 104 | intro x; dsimp only |
| 105 | rw [chord_cyc] |
| 106 | change G.chord (u x) ≤ C*_ |
| 107 | by_cases hY : income A x<a |
| 108 | · have he := income_bounds A u x |
| 109 | have h0 : 0 ≤ income A x := by |
| 110 | apply nonneg_of_mul_nonneg_right ((norm_nonneg _).trans he) hx |
| 111 | have hz : ‖A.feedback u x-1‖<δ := by |
| 112 | have h₁ : G.colorScale*a=δ/2 := by unfold a; field_simp |
| 113 | apply lt_of_le_of_lt (norm_sub_le_norm_sub_add_norm_sub _ (Pairs.centroid u) 1) |
| 114 | linarith [mul_lt_mul_of_pos_left hY hx] |
| 115 | have hi := H _ _ hz (lt_trans hw (by linarith)) (u x) 1 (A.self_consistent hk x) hh |
| 116 | have h' := G.lie.norm_starProjection_apply_le (A.feedback u x - Pairs.centroid u) |
| 117 | calc |
| 118 | _ ≤ 2*income A x := by |
| 119 | apply le_of_mul_le_mul_left (a:=G.colorScale) ?_ hx |
| 120 | have ht' := chord_gap (u x) (1:G.El) |
| 121 | rw [inv_one,mul_one] at ht'; rw [ht']; simp only [NNReal.coe_one,one_mul] at hi |
| 122 | have hu := norm_le_insert' (G.mat (u x) - G.mat 1) (G.lie.starProjection (A.feedback u x-Pairs.centroid u)) |
| 123 | linarith only [hu, hi, h', he] |
| 124 | _ ≤ _ := mul_le_mul_of_nonneg_right (le_max_of_le_right (le_max_left ..)) h0 |
| 125 | exact (G.chord_le_two _).trans (le_trans (div_le_iff₀ ha |>.mp (le_max_of_le_right (le_max_right ..))) |
| 126 | (mul_le_mul_of_nonneg_left (le_of_not_gt hY) hp.le)) |
| 127 | exact ⟨1, (avg_mono (g:=fun _ : n => (2:ℝ)) fun i => G.chord_le_two _).trans (by |
| 128 | rw [avg_const] |
| 129 | apply le_trans _ (mul_le_mul_of_nonneg_left (le_of_not_gt hv) hp.le) |
| 130 | exact (div_le_iff₀ hd).mp (le_max_left ..))⟩ |
| 131 | end YM.Pressure |