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.AnalyticNext.QUARTIC_MATCH.Cells.LiftOne |
| 2 | |
| 3 | /-! |
| 4 | # Drop a leg at its obstruction, preserving all other legs |
| 5 | |
| 6 | In momentum the total is evaluation at that momentum zero. No periodic |
| 7 | orbits assumed. When restoring, don't preserve closure in the chosen root. |
| 8 | -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.AnalyticNext.QuarticMatch.BoxChain |
| 12 | open Lattice Exterior Function Filter Topology Laurent |
| 13 | open scoped Topology BigOperators |
| 14 | |
| 15 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 16 | {n : ℕ} {σ C : ℝ} |
| 17 | |
| 18 | def cut (F : ArrayC (Fin (n+1)) ℤ V) (X : Fin n → Cell ℤ) := |
| 19 | ∑' u : Cover, F (Fin.cons (u,∅) X) |
| 20 | |
| 21 | def blank (j : Fin n) (F : ArrayC (Fin n) ℤ V) (X : Fin (n+1) → Cell ℤ) := |
| 22 | if X 0=((X j.succ).1,∅) then F (Fin.tail X) else 0 |
| 23 | |
| 24 | namespace Drop |
| 25 | |
| 26 | |
| 27 | lemma update_cons (X : Fin n →Cell ℤ) (j : Fin n) (b x : Cell ℤ) : |
| 28 | update (Fin.cons b X : Fin (n+1)→Cell ℤ) j.succ x = (Fin.cons b (update X j x) : Fin (n+1)→Cell ℤ) := by |
| 29 | funext k; refine Fin.cases ?_ (fun r => ?_) k |
| 30 | · simp [Ne.symm (Fin.succ_ne_zero _)] |
| 31 | by_cases h : r=j <;> simp [h] |
| 32 | lemma update_head (X : Fin (n+1)→Cell ℤ) (x : Cell ℤ) : |
| 33 | update X 0 x = Fin.cons x (Fin.tail X) := by |
| 34 | funext k; refine Fin.cases ?_ (fun r => ?_) k |
| 35 | · simp |
| 36 | simp [Fin.tail] |
| 37 | |
| 38 | variable {A : ArrayC (Fin (n+1)) ℤ V} {B : ArrayC (Fin n) ℤ V} |
| 39 | |
| 40 | omit [NormedSpace ℝ V] in |
| 41 | lemma EmptySum_iff : EmptySum A 0 ↔ cut A=0 := by |
| 42 | constructor |
| 43 | · intro h; funext X |
| 44 | simpa only [cut,peek,update_head,Fin.tail_cons, Pi.zero_apply] using h (Fin.cons (0,∅) X) |
| 45 | intro h X; simp_rw [peek, update_head]; exact congr_fun h (Fin.tail X) |
| 46 | |
| 47 | omit [NormedSpace ℝ V] in |
| 48 | lemma priced_blank (j : Fin n) (h : Pricing B σ C) : Pricing (blank j B) σ C := by |
| 49 | refine ⟨?_,h.rate,h.cap,?_⟩ |
| 50 | · intro b X; simp only [blank,move,Function.comp_apply,Prod.mk.injEq] |
| 51 | have he : (X 0).1=(X j.succ).1 ∧ (X 0).2=∅ ↔ X 0=((X j.succ).1,∅) := by rw [Prod.ext_iff] |
| 52 | simp only [add_left_inj, he]; split |
| 53 | · exact h.same b _ |
| 54 | rfl |
| 55 | intro X i k |
| 56 | unfold blank; split |
| 57 | · rename_i H |
| 58 | have he i : ∃ a, (X i).1=((Fin.tail X) a).1 := by |
| 59 | refine Fin.cases ⟨j,show (X 0).1=(X j.succ).1 by rw [H]⟩ (fun q => ⟨q,rfl⟩) i |
| 60 | obtain ⟨a,ha⟩ := he i; obtain ⟨b,hb⟩ := he k |
| 61 | rw [ha,hb]; exact h.each _ _ _ |
| 62 | rw [norm_zero]; exact mul_nonneg h.cap (cost_size ..) |
| 63 | |
| 64 | omit [NormedSpace ℝ V] in |
| 65 | lemma rank_cut (j : Fin n) {k} (h : Rank A j.succ k) : Rank (cut A) j k := by |
| 66 | intro X hx; unfold cut |
| 67 | have he (u : Cover) : A (Fin.cons (u,∅) X)=0 := h _ (by simp [hx]) |
| 68 | simp [he] |
| 69 | omit [NormedSpace ℝ V] in |
| 70 | lemma rank_blank (j : Fin n) {l k} (h : Rank B l k) : Rank (blank j B) l.succ k := by |
| 71 | intro X H; unfold blank; split |
| 72 | · exact h _ H |
| 73 | rfl |
| 74 | omit [NormedSpace ℝ V] in |
| 75 | lemma rank_at (j : Fin n) : Rank (blank j B) 0 0 := by |
| 76 | intro X H; unfold blank; split |
| 77 | · rename_i he; exfalso; apply H; rw [he]; rfl |
| 78 | rfl |
| 79 | omit [NormedSpace ℝ V] in |
| 80 | lemma cut_blank (j : Fin n) : cut (blank j B) = B := by funext X; simp [cut,blank] |
| 81 | |
| 82 | lemma closed_blank (j l : Fin n) (hj : j≠l) (h : ClosedSlot B l) : ClosedSlot (blank j B) l.succ := by |
| 83 | funext X |
| 84 | change rim (peek l.succ X (blank j B)) (X l.succ) = _ |
| 85 | by_cases he : X 0 = ((X j.succ).1,∅) |
| 86 | · rw [show peek l.succ X (blank j B) = peek l (Fin.tail X) B by |
| 87 | funext y; simp [peek,blank,hj,he,Ne.symm (Fin.succ_ne_zero _)]] |
| 88 | rw [h.peek]; rfl |
| 89 | rw [show peek l.succ X (blank j B) = 0 by funext y; simp [peek,blank,hj,he,Ne.symm (Fin.succ_ne_zero _)], map_zero]; rfl |
| 90 | |
| 91 | omit [NormedSpace ℝ V] in |
| 92 | lemma scaled (h : Pricing A σ C) (j : Fin n) (X : Fin n→Cell ℤ) : |
| 93 | Summable fun u : Cover => ‖A (Fin.cons (u,∅) X)‖ := by |
| 94 | have he := h.sum_leg (l:=0) (Fin.succ_ne_zero j) (Fin.cons (0,∅) X) ∅ |
| 95 | simpa only [peek,update_head,Fin.tail_cons] using he |
| 96 | |
| 97 | def loss (σ : ℝ) := bill (σ/2) |
| 98 | lemma loss_pos (h : 0<σ) : 0 < loss σ := billed (by linarith) |
| 99 | |
| 100 | omit [NormedSpace ℝ V] in |
| 101 | lemma cut_both (h : Pricing A σ C) : Pricing (cut A) (σ/2) (loss σ*C) := by |
| 102 | have hk := h.rate |
| 103 | refine ⟨?_,by positivity,mul_nonneg (loss_pos hk).le h.cap,?_⟩ |
| 104 | · intro b X |
| 105 | have hh (u : Cover) : A (Fin.cons (u,∅) (move b ∘ X))=A (Fin.cons (u-b,∅) X) := by |
| 106 | rw [← h.same b (Fin.cons (u-b,∅) X), show move b ∘ Fin.cons (u-b,∅) X=Fin.cons (u,∅) (move b ∘ X) by |
| 107 | funext i; refine Fin.cases ?_ (fun i => ?_) i <;> simp [move]] |
| 108 | unfold cut; simp_rw [hh]; exact Equiv.tsum_eq (Equiv.subRight b) fun u => A (Fin.cons (u,∅) X) |
| 109 | intro X i j |
| 110 | let L := cost (σ/2) (X i).1 (X j).1 |
| 111 | have hg x : ‖A (Fin.cons (x,∅) X)‖ ≤ C*L*cost (σ/2) x (X j).1 := by |
| 112 | have hu := h.each (Fin.cons (x,∅) X) i.succ j.succ |
| 113 | have hv := h.each (Fin.cons (x,∅) X) 0 j.succ |
| 114 | simp only [Fin.cons_succ, Fin.cons_zero, cost] at hu hv |
| 115 | unfold L cost; rw [mul_assoc,← Real.exp_add] |
| 116 | by_cases H : size (x-(X j).1) ≤ size ((X i).1-(X j).1) |
| 117 | · apply hu.trans; apply mul_le_mul_of_nonneg_left (Real.exp_monotone ?_) h.cap |
| 118 | nlinarith [Nat.cast_le (α:=ℝ).mpr H] |
| 119 | apply hv.trans; apply mul_le_mul_of_nonneg_left (Real.exp_monotone ?_) h.cap |
| 120 | nlinarith [Nat.cast_le (α:=ℝ).mpr (le_of_not_ge (show ¬ size ((X i).1-(X j).1)≥_ from H))] |
| 121 | let M x := cost (σ/2) x (X j).1 |
| 122 | have hp := accounted (X j).1 (show 0<σ/2 by positivity) |
| 123 | unfold cut; change _ ≤ loss σ*C*L |
| 124 | have hs := scaled h j X |
| 125 | refine ((norm_tsum_le_tsum_norm hs).trans (hs.tsum_le_tsum hg (hp.2.1.mul_left (C*L)))).trans ?_ |
| 126 | rw [tsum_mul_left, show loss σ*C*L=C*L*loss σ by ring] |
| 127 | exact mul_le_mul_of_nonneg_left hp.2.2 (mul_nonneg h.cap (cost_size ..)) |
| 128 | |
| 129 | variable [CompleteSpace V] |
| 130 | |
| 131 | |
| 132 | lemma cut_lower (j : Fin n) (h : Pricing A σ C) : cut (lower j.succ A)=lower j (cut A) := by |
| 133 | funext X |
| 134 | have hw (u : Cover) (x : Cell ℤ) : peek j.succ (Fin.cons (u,∅) X) A x=A (Fin.cons (u,∅) (update X j x)) := by |
| 135 | rw [peek,update_cons] |
| 136 | have hs (x) : Summable fun u : Cover => peek j.succ (Fin.cons (u,∅) X) A x := by |
| 137 | simp_rw [hw]; exact (scaled h j _).of_norm |
| 138 | have hz (i) : Summable fun u : Cover => sect i (peek j.succ (Fin.cons (u,∅) X) A) (X j) := by |
| 139 | simp_rw [sect_at]; split |
| 140 | · simp |
| 141 | exact ((hs _).sub (hs _)).const_smul _ |
| 142 | unfold cut; simp_rw [lower_at, Fin.cons_succ] |
| 143 | rw [Summable.tsum_finsetSum]; swap; exact fun i _ => hz i |
| 144 | refine Finset.sum_congr rfl fun i _ => ?_ |
| 145 | simp_rw [sect_at,hw]; split |
| 146 | · simp |
| 147 | rw [tsum_const_smul'', ( (scaled h j _).of_norm).tsum_sub ((scaled h j _).of_norm)]; rfl |
| 148 | |
| 149 | lemma closed_cut (j : Fin n) (h : Pricing A σ C) (hq : ClosedSlot A j.succ) : ClosedSlot (cut A) j := by |
| 150 | rw [ClosedSlot,← cut_lower j h,hq]; unfold cut; funext x; simp |
| 151 | lemma emptied (j : Fin n) (h : Pricing A σ C) : cut (lower 0 A)=0 := by |
| 152 | apply EmptySum_iff.mp; intro X |
| 153 | have hs : sums (peek 0 X A) := fun S => (h.sum_leg (Fin.succ_ne_zero j) _ S).of_norm |
| 154 | simp_rw [peek_lower]; exact totals hs |
| 155 | omit [NormedSpace ℝ V] in |
| 156 | lemma cut_sub (j : Fin n) (h : Pricing A σ C) {D η v} (g : Pricing D η v) : cut (A-D)=cut A-cut D := by |
| 157 | funext X; exact (scaled h j X).of_norm.tsum_sub (scaled g j X).of_norm |
| 158 | end Drop |
| 159 | end YM.AnalyticNext.QuarticMatch.BoxChain |