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.CellFourier.Mesh |
| 2 | |
| 3 | /-! |
| 4 | # Discrete ray primitive and one coordinate homotopy |
| 5 | |
| 6 | Primitive on the cover. Don't solve by dividing at torus zero frequency or |
| 7 | asserting finite-period lifting; these cancellations use genuine infinite summation. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.AnalyticNext.QuarticMatch.BoxChain |
| 13 | open Function Lattice Filter Topology |
| 14 | open scoped Topology BigOperators |
| 15 | |
| 16 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] [CompleteSpace V] |
| 17 | |
| 18 | namespace Ray |
| 19 | |
| 20 | def head (F : ℤ → V) (k : ℤ) := ∑' i, if i≤k then F i else 0 |
| 21 | def rest (F : ℤ → V) (k : ℤ) := ∑' i, if k < i then F i else 0 |
| 22 | |
| 23 | def solution (F : ℤ → V) (b k : ℤ) := if b≤k then rest F k else -head F k |
| 24 | omit [NormedSpace ℝ V] in |
| 25 | lemma head_sums {F : ℤ → V} (h : Summable F) (k : ℤ) : Summable fun i : ℤ => if i≤k then F i else 0 := by |
| 26 | apply (h.indicator (Set.Iic k)).congr |
| 27 | intro i; simp [Set.indicator] |
| 28 | omit [NormedSpace ℝ V] in |
| 29 | lemma rest_sums {F : ℤ → V} (h : Summable F) (k : ℤ) : Summable fun i : ℤ => if k < i then F i else 0 := by |
| 30 | apply (h.indicator (Set.Ioi k)).congr |
| 31 | intro i; simp [Set.indicator] |
| 32 | omit [NormedSpace ℝ V] in |
| 33 | lemma totals {F : ℤ → V} (h : Summable F) (k : ℤ) : head F k + rest F k = ∑' i,F i := by |
| 34 | unfold head rest; rw [← (head_sums h k).tsum_add (rest_sums h k)] |
| 35 | apply tsum_congr; intro i; split_ifs <;> first | omega | simp |
| 36 | |
| 37 | omit [NormedSpace ℝ V] in |
| 38 | lemma next {F : ℤ → V} (h : Summable F) (k : ℤ) : F k + head F (k-1) = head F k := by |
| 39 | unfold head |
| 40 | let Q (i : ℤ) := if i=k then F k else 0 |
| 41 | have hQ : HasSum Q (F k) := hasSum_ite_eq k (F k) |
| 42 | nth_rw 1 [← hQ.tsum_eq] |
| 43 | rw [← hQ.summable.tsum_add (head_sums h (k-1))]; refine tsum_congr fun i => ?_ |
| 44 | unfold Q; split_ifs <;> first | omega | simp_all |
| 45 | |
| 46 | omit [NormedSpace ℝ V] in |
| 47 | lemma left {F : ℤ → V} (h : Summable F) (k b : ℤ) : |
| 48 | solution F b (k-1) - solution F b k = F k - if k=b then (∑' i,F i) else 0 := by |
| 49 | by_cases hk : k=b |
| 50 | · subst k; rw [solution, solution,if_neg (by omega),if_pos le_rfl,if_pos rfl, ← totals h b,← next h b]; abel |
| 51 | rcases lt_or_gt_of_ne hk with hb|hb |
| 52 | · rw [solution,solution,if_neg (by omega),if_neg (by omega), if_neg hk,← next h k]; abel |
| 53 | have he m : rest F m = (∑' i,F i) - head F m := by rw [← totals h m]; abel |
| 54 | rw [solution,solution,if_pos (by omega),if_pos hb.le,if_neg hk,he,he,← next h k]; abel |
| 55 | |
| 56 | def jumps (f : ℤ → V) (k : ℤ) := f (k-1)-f k |
| 57 | omit [NormedSpace ℝ V] [CompleteSpace V] in |
| 58 | lemma prev {F : ℤ → V} (h : Summable F) : Summable (fun i => F (i-1)) := |
| 59 | (Equiv.subRight (1:ℤ)).summable_iff.mpr h |
| 60 | omit [NormedSpace ℝ V] [CompleteSpace V] in |
| 61 | lemma sumJump {F : ℤ → V} (h : Summable F) : ∑' i,jumps F i=0 := by |
| 62 | unfold jumps |
| 63 | rw [(prev h).tsum_sub h,(show (∑' i : ℤ,F (i-1))=∑' i,F i from Equiv.tsum_eq (Equiv.subRight _) F), sub_self] |
| 64 | |
| 65 | omit [NormedSpace ℝ V] in |
| 66 | lemma right {F : ℤ → V} (h : Summable F) (k b : ℤ) : solution (jumps F) b k = F k := by |
| 67 | have he : head (fun i => F (i-1)) k=head F (k-1) := by |
| 68 | unfold head; rw [← Equiv.tsum_eq (Equiv.subRight (1:ℤ)) (fun i => if i ≤ k-1 then F i else 0)] |
| 69 | apply tsum_congr; intro i; change _=if i-1 ≤ k-1 then _ else _; split_ifs <;> first | rfl | omega |
| 70 | have hm : head (jumps F) k=head F (k-1)-head F k := by |
| 71 | rw [← he]; unfold head; rw [← (head_sums (prev h) k).tsum_sub (head_sums h k)] |
| 72 | apply tsum_congr; intro i; split_ifs <;> simp [jumps] |
| 73 | rw [← next h k, show head F (k-1) - (F k+head F (k-1))= -F k by abel] at hm |
| 74 | unfold solution; split |
| 75 | · have ha := totals (F:=jumps F) ((prev h).sub h) k |
| 76 | rw [hm,sumJump h] at ha; exact add_left_cancel (ha.trans (neg_add_cancel _).symm) |
| 77 | rw [hm,neg_neg] |
| 78 | |
| 79 | omit [NormedSpace ℝ V] in |
| 80 | lemma solution_add {F G : ℤ → V} (h : Summable F) (g : Summable G) (b k) : |
| 81 | solution (F+G) b k=solution F b k+solution G b k := by |
| 82 | unfold solution; split_ifs |
| 83 | · unfold rest; rw [← (rest_sums h k).tsum_add (rest_sums g k)] |
| 84 | apply tsum_congr; intro i; split_ifs <;> simp |
| 85 | rw [← neg_add]; unfold head; rw [← (head_sums h k).tsum_add (head_sums g k)]; congr 1 |
| 86 | apply tsum_congr; intro i; split_ifs <;> simp |
| 87 | |
| 88 | omit [CompleteSpace V] in |
| 89 | lemma solution_scale (F : ℤ → V) (s : ℝ) (b k) : solution (s • F) b k=s • solution F b k := by |
| 90 | unfold solution; split_ifs |
| 91 | · unfold rest; rw [← tsum_const_smul'']; apply tsum_congr; intro i; split_ifs <;> simp |
| 92 | unfold head; rw [smul_neg,← tsum_const_smul'']; congr 1 |
| 93 | apply tsum_congr; intro i; split_ifs <;> simp |
| 94 | lemma solution_sub {F G : ℤ → V} (h : Summable F) (g : Summable G) (b k) : |
| 95 | solution (F-G) b k = solution F b k-solution G b k := by |
| 96 | rw [sub_eq_add_neg, ← neg_one_smul ℝ G, solution_add h (show Summable ((-1:ℝ) • G) from g.const_smul (-1:ℝ)), solution_scale,neg_one_smul, sub_eq_add_neg] |
| 97 | omit [CompleteSpace V] [NormedSpace ℝ V] in |
| 98 | @[simp] lemma solution_zero (b k : ℤ) : solution (0: ℤ→V) b k=0 := by simp [solution,head,rest] |
| 99 | |
| 100 | omit [CompleteSpace V] [NormedSpace ℝ V] in |
| 101 | lemma translate (b k u : ℤ) (F : ℤ → V) : solution (fun i => F (i-u)) (b+u) (k+u)=solution F b k := by |
| 102 | unfold solution |
| 103 | let e := Equiv.subRight u |
| 104 | simp only [add_le_add_iff_right]; split |
| 105 | · unfold rest; rw [← Equiv.tsum_eq e (fun i => if k < i then F i else 0)] |
| 106 | apply tsum_congr; intro i; change _=if k < i-u then _ else _; split_ifs <;> first | rfl | omega |
| 107 | unfold head; rw [← Equiv.tsum_eq e (fun i => if i≤k then F i else 0)] |
| 108 | congr 1; apply tsum_congr; intro i; change _=if i-u≤k then _ else _; split_ifs <;> first | rfl | omega |
| 109 | end Ray |
| 110 | end YM.AnalyticNext.QuarticMatch.BoxChain |