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.Work.E07.Local |
| 2 | |
| 3 | /-! |
| 4 | # Estimates on the two departure rows (L,D) |
| 5 | |
| 6 | Sum tested Bool slots. D needs no stencil savings at all. For L, retain |
| 7 | possible wide-column costs for small fine terms (post-L), but only multiply |
| 8 | the fine excess by the pre-priced *row* rate `a/L²`. Do the analogous noise |
| 9 | charge and allow an input bill for coarse toll excess. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Work.E07 |
| 14 | open Lattice RG Wilson Pressure Pressure.Stores Precision Exterior Bloch Finset Bid |
| 15 | open scoped Topology InnerProductSpace BigOperators Classical |
| 16 | |
| 17 | variable {G : Gauge} {c f : Side} {S : StepData c f} {A : Stores S} {x W a d : ℝ} |
| 18 | variable {T : Tube G S} {U : Config G f} {Q V : Config G c} {k : S.Choices} |
| 19 | |
| 20 | def dCost (a d : ℝ) := d * (d + a*d + a*d + a*(a*d)) |
| 21 | |
| 22 | lemma workD_ge (ha : 0 ≤ a) (hd : 0 ≤ d) (hw : Allowance a T x V) |
| 23 | (hm : Maximum d T x V) (p : Cell c) : |
| 24 | -(dCost a d * (fiery G x S.patch.L)^2) ≤ T.workD (till x) V (temp x) p := by |
| 25 | let l : ℝ := S.patch.L.val |
| 26 | let t := fiery G x S.patch.L |
| 27 | let v := T.vision (till x) (temp x) V |
| 28 | let uf := unzip (T.Φ (till x) V) (T.Mv (till x) (temp x) V) |
| 29 | let un := unzip (T.Φ' (till x) V) (T.Mw (till x) (temp x) V) |
| 30 | let z := zip (T.N (till x) V) v |
| 31 | let uz := unzip (T.N (till x) V) z |
| 32 | have ht : 0 ≤ t := temp_nonneg _ |
| 33 | have hl : 0 < l := by unfold l; positivity |
| 34 | have hz (j) : ‖z j‖ ≤ a * (d*t) := zip_uniform _ _ j (hw.tight.rows j) (by positivity) hm.up |
| 35 | have h (j : Twin c) : ‖v j - (uf j + un j + uz j)‖ ≤ (d + a*d + a*d + a*(a*d)) * t := by |
| 36 | have hf : ‖uf j‖ ≤ (a*l^2) * (d/l^2*t) := |
| 37 | unzip_uniform _ _ _ (hw.wide.columns j) (by positivity) hm.phi |
| 38 | have hn : ‖un j‖ ≤ a * (d*t) := |
| 39 | unzip_uniform _ _ _ (hw.narrow.columns j) (by positivity) hm.hot |
| 40 | have hj : ‖uz j‖ ≤ a * (a * (d*t)) := |
| 41 | unzip_uniform _ _ _ (hw.tight.columns j) (by positivity) hz |
| 42 | have hh : (a*l^2) * (d/l^2*t) = a*d*t := by field_simp |
| 43 | rw [hh] at hf |
| 44 | apply (norm_sub_le _ _).trans |
| 45 | apply (add_le_add (show ‖v j‖ ≤ d*t from hm.up _) ((norm_add_le _ _).trans |
| 46 | (add_le_add ((norm_add_le _ _).trans (add_le_add hf hn)) hj))).trans_eq |
| 47 | ring |
| 48 | have H (i : Bool) : let j : Twin c := (p, i); |
| 49 | -(dCost a d * t^2) / 2 ≤ inner ℝ (v j) (v j - (uf j + un j + uz j)) / 2 := by |
| 50 | intro j |
| 51 | gcongr |
| 52 | have hs : ‖v j‖ ≤ d*t := hm.up _ |
| 53 | have hi : ‖v j‖ * ‖v j - (uf j + un j + uz j)‖ ≤ dCost a d * t^2 := |
| 54 | (mul_le_mul hs (h j) (norm_nonneg _) (by positivity)).trans_eq (by unfold dCost; ring) |
| 55 | exact (neg_le_neg hi).trans (abs_le.mp (abs_real_inner_le_norm _ _)).1 |
| 56 | have he := sum_le_sum (s := (univ : Finset Bool)) (fun i _ => H i) |
| 57 | change -(dCost a d * t^2) ≤ _ |
| 58 | refine le_trans ?_ he |
| 59 | rw [sum_const, card_univ, Fintype.card_bool, nsmul_eq_mul, Nat.cast_ofNat] |
| 60 | apply le_of_eq; ring |
| 61 | |
| 62 | /-- Summation transfer into L, for the named set of tested faces. -/ |
| 63 | lemma workL_total (U : Config G f) (Q : Config G c) (hm : Maximum d T x V) |
| 64 | (hd : 0 ≤ d) (s : Finset (Cell c)) {r b z : ℝ} |
| 65 | (hf : ∑ j ∈ s ×ˢ (univ : Finset Bool), ‖unzip (T.Φ (till x) V) (T.Xf (till x) U) j‖ ≤ r) |
| 66 | (hb : ∑ j ∈ s ×ˢ (univ : Finset Bool), ‖unzip (T.Φ' (till x) V) (Tube.Z S Q V) j‖ ≤ b) |
| 67 | (hz : ∑ j ∈ s ×ˢ (univ : Finset Bool), ‖T.Xn (till x) V j‖ ≤ z) : |
| 68 | -(d * fiery G x S.patch.L * (r + b + z)) ≤ |
| 69 | ∑ p ∈ s, T.workL (till x) U Q V (temp x) p := by |
| 70 | let F := unzip (T.Φ (till x) V) (T.Xf (till x) U) |
| 71 | let B := unzip (T.Φ' (till x) V) (Tube.Z S Q V) |
| 72 | let X := T.Xn (till x) V |
| 73 | let W := T.vision (till x) (temp x) V |
| 74 | let t := fiery G x S.patch.L |
| 75 | let ls := s ×ˢ (univ : Finset Bool) |
| 76 | have ht : 0 ≤ t := temp_nonneg _ |
| 77 | have hh (j : Twin c) : -(d*t * (‖F j‖ + ‖B j‖ + ‖X j‖)) ≤ inner ℝ (W j) (F j + B j - X j) := by |
| 78 | have he : ‖W j‖ ≤ d*t := hm.up j |
| 79 | refine le_trans (neg_le_neg ?_) (abs_le.mp (abs_real_inner_le_norm (W j) _)).1 |
| 80 | exact mul_le_mul he ((norm_sub_le _ _).trans (add_le_add_left (norm_add_le _ _) _)) |
| 81 | (norm_nonneg _) (by positivity) |
| 82 | calc |
| 83 | _ ≤ -(d*t * ∑ j ∈ ls, (‖F j‖ + ‖B j‖ + ‖X j‖)) := by |
| 84 | apply neg_le_neg; gcongr |
| 85 | simp_rw [sum_add_distrib]; exact add_le_add (add_le_add hf hb) hz |
| 86 | _ = ∑ j ∈ ls, -(d*t * (‖F j‖ + ‖B j‖ + ‖X j‖)) := by rw [sum_neg_distrib, ← Finset.mul_sum] |
| 87 | _ ≤ ∑ j ∈ ls, inner ℝ (W j) (F j + B j - X j) := sum_le_sum fun j _ => hh j |
| 88 | _ = _ := by unfold ls; rw [sum_product]; rfl |
| 89 | |
| 90 | lemma fine_total {E : Cell f → ℝ} {bill : ℝ} (U : Config G f) |
| 91 | (hA : Allowance a T x V) (ha : 0 ≤ a) (hd : 0 ≤ d) |
| 92 | (hL : LaneCounts T.up x (fiery G x S.patch.L) T.high d 1 S.ratio.parent) |
| 93 | (hE : ∀ p, 0 ≤ E p) (hbill : (∑ p, E p) / (S.patch.L.val : ℝ)^2 ≤ bill) |
| 94 | (s : Finset (Twin c)) (hh : ∀ i ∈ s, tagged i ∈ A.dome (2 * radiusB x)) |
| 95 | (hU : ∀ p : Cell f, S.ratio.parent p.1 ∈ A.dome (5 * radiusB x) → |
| 96 | toll U p ≤ fiery G x S.patch.L + E p) : |
| 97 | let u := (Real.sqrt T.high.direct + d) |
| 98 | ∑ p ∈ s, ‖unzip (T.Φ (till x) V) (T.Xf (till x) U) p‖ ≤ |
| 99 | (s.card : ℝ) * (a * (S.patch.L.val : ℝ)^2 * (u * fiery G x S.patch.L)) + |
| 100 | a * (2 * u) * bill := by |
| 101 | let X (i : Twin f) := plottedExcess T.up T.high x 1 E i.1 |
| 102 | intro u |
| 103 | let t := fiery G x S.patch.L |
| 104 | have hu : 0 ≤ u := by unfold u; positivity |
| 105 | refine (unzip_total _ s _ (g := X) (fun _ => plottedExcess_nonneg hL hE _) |
| 106 | hA.wide.rows hA.wide.columns (mul_nonneg hu (show 0 ≤ t from temp_nonneg _)) ?_).trans ?_ |
| 107 | · intro j hj i hi |
| 108 | have he : separation (tagged j) (S.ratio.parent (tagged i)) ≤ radiusB x / 50 := |
| 109 | (separation_comm ..).symm ▸ (hA.wide.stencil i j hi) |
| 110 | have hv : S.ratio.parent i.1.1 ∈ A.dome (3 * radiusB x) := |
| 111 | dome_extend (hh _ hj) he (by omega) |
| 112 | exact plotted_le hL U hE i hd (show 0 ≤ t from temp_nonneg _) fun z hz => |
| 113 | hU z (dome_extend hv hz (by omega)) |
| 114 | · apply add_le_add_right |
| 115 | calc |
| 116 | _ ≤ a / (S.patch.L.val : ℝ)^2 * (2 * u * ∑ i, E i) := |
| 117 | mul_le_mul_of_nonneg_left (plottedExcess_total hL hE) (by positivity) |
| 118 | _ = a * (2 * u) * ((∑ i, E i) / (S.patch.L.val : ℝ)^2) := by ring |
| 119 | _ ≤ _ := mul_le_mul_of_nonneg_left hbill (by positivity) |
| 120 | |
| 121 | lemma noise_total (Q : Config G c) {E : Bond c → ℝ} {bill u : ℝ} |
| 122 | (hA : Allowance a T x V) (ha : 0 ≤ a) (hu : 0 ≤ u) |
| 123 | (hE : ∀ p, 0 ≤ E p) (hbill : ∑ p, E p ≤ bill) |
| 124 | (s : Finset (Twin c)) (hh : ∀ i ∈ s, tagged i ∈ A.dome (2 * radiusB x)) |
| 125 | (hQ : ∀ p : Bond c, p.1 ∈ A.dome (5 * radiusB x) → wire Q V p ≤ u + E p) : |
| 126 | let g := Real.sqrt S.kernel.penalty |
| 127 | ∑ p ∈ s, ‖unzip (T.Φ' (till x) V) (Tube.Z S Q V) p‖ ≤ |
| 128 | (s.card : ℝ) * (a * (g * u)) + a * g * bill := by |
| 129 | intro g |
| 130 | have hg : 0 ≤ g := Real.sqrt_nonneg _ |
| 131 | refine (unzip_total _ s _ (g := fun i => g * E i) (fun i => mul_nonneg hg (hE i)) |
| 132 | hA.narrow.rows hA.narrow.columns (mul_nonneg hg hu) ?_).trans ?_ |
| 133 | · intro j hj i hi |
| 134 | have he : separation (tagged j) i.1 ≤ radiusB x / 50 := |
| 135 | (separation_comm ..).symm ▸ (hA.narrow.stencil i j hi) |
| 136 | have ht := hQ i (dome_extend (hh _ hj) he (by omega)) |
| 137 | unfold Tube.Z |
| 138 | rw [norm_smul, Real.norm_of_nonneg (Real.sqrt_nonneg _), ← mul_add] |
| 139 | exact mul_le_mul_of_nonneg_left ((G.curvature_norm _).trans ht) hg |
| 140 | rw [← Finset.mul_sum, mul_assoc a g] |
| 141 | gcongr |
| 142 | |
| 143 | lemma coarse_total {E : Cell c → ℝ} {u bill : ℝ} |
| 144 | (hL : LaneCounts T.down x (temp x) T.low d S.patch.L.val (id : Site c → Site c)) |
| 145 | (hd : 0 ≤ d) (hu : 0 ≤ u) (s : Finset (Twin c)) |
| 146 | (hE : ∀ p, 0 ≤ E p) (hbill : ∑ p, E p ≤ bill) |
| 147 | (hh : ∀ i ∈ s, tagged i ∈ A.dome (2 * radiusB x)) |
| 148 | (hV : ∀ p : Cell c, p.1 ∈ A.dome (3 * radiusB x) → toll V p ≤ u + E p) : |
| 149 | let g := Real.sqrt T.low.direct + d |
| 150 | ∑ p ∈ s, ‖T.Xn (till x) V p‖ ≤ (s.card : ℝ) * (g * u) + 2 * g * bill := by |
| 151 | intro g |
| 152 | refine (plotted_total hL V s hE hd hu (fun p hp z hz => |
| 153 | hV _ (dome_extend (hh _ hp) (show separation (tagged p) z.1 ≤ radiusB x / 50 from hz) (by omega)))).trans ?_ |
| 154 | unfold g; gcongr |
| 155 | |
| 156 | end YM.Work.E07 |