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.Exterior.Blade |
| 2 | |
| 3 | /-! |
| 4 | # Real-space resolution of momentum-constrained tensors |
| 5 | |
| 6 | Coordinates for lifting BEFORE periodization. Use unanchored cells and translation |
| 7 | invariance, with decay in RELATIVE coordinates. Last-argument anchoring (hence signs of |
| 8 | its dual contraction) recovered just by passing to the relative coordinates. Can read |
| 9 | these operators without Fourier conventions: moving an argument by d means using its |
| 10 | actual signed *cell boundary*. Axis sorted as in `Exterior`; contractions on different |
| 11 | arguments commute (no total-complex sign). |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.AnalyticNext.QuarticMatch.BoxChain |
| 16 | open Exterior Lattice Matrix Function |
| 17 | open scoped BigOperators |
| 18 | |
| 19 | abbrev Cell (R : Type*) := Four R × Finset Axis |
| 20 | abbrev ArrayC (I R V : Type*) := (I → Cell R) → V |
| 21 | |
| 22 | variable {R V I : Type*} [AddCommGroup R] [One R] [AddCommGroup V] [Module ℝ V] |
| 23 | |
| 24 | def sign (S : Finset Axis) (i : Axis) := Exterior.parity S i ℝ |
| 25 | lemma sign_remove (b : Finset Axis) (i : Axis) : sign (b.erase i) i = sign b i := by |
| 26 | unfold sign parity; rw [pre_lo b le_rfl] |
| 27 | lemma sign_insert (b : Finset Axis) (i : Axis) (hi : i∉b) : sign (insert i b) i=sign b i := by |
| 28 | rw [← sign_remove, Finset.erase_insert hi] |
| 29 | |
| 30 | lemma sign_sq (b : Finset Axis) (i : Axis) : sign b i * sign b i = 1 := by |
| 31 | unfold sign parity; rw [← mul_pow]; simp |
| 32 | lemma sign_switch (b : Finset Axis) (i j : Axis) (h : i<j) (hi : i∉b) (hj : j∉b) : |
| 33 | sign b i * sign (insert i b) j = -(sign b j * sign (insert j b) i) := by |
| 34 | have hu := pre_hi (insert i b) h (Finset.mem_insert_self i b) |
| 35 | have ht := pre_lo (insert j b) h.le |
| 36 | rw [Finset.erase_insert hi] at hu; rw [Finset.erase_insert hj] at ht |
| 37 | simp only [sign, parity, ← hu, ← ht]; ring |
| 38 | lemma sign_neg (b : Finset Axis) (i j : Axis) (h : i≠j) (hi : i∉b) (hj : j∉b) : |
| 39 | sign b i * sign (insert i b) j = -(sign b j * sign (insert j b) i) := by |
| 40 | rcases lt_or_gt_of_ne h with h|h |
| 41 | · exact sign_switch b i j h hi hj |
| 42 | rw [sign_switch b j i h hj hi, neg_neg] |
| 43 | |
| 44 | def sect (i : Axis) : (Cell R → V) →ₗ[ℝ] Cell R → V where |
| 45 | toFun F x := if i∈x.2 then 0 else sign x.2 i • (F (x.1-step i, insert i x.2) - F (x.1,insert i x.2)) |
| 46 | map_add' f g := by |
| 47 | ext1 x; split <;> rename_i h <;> simp only [Pi.add_apply,h,↓reduceIte,add_zero] |
| 48 | rw [← smul_add]; congr 1; abel |
| 49 | map_smul' s f := by |
| 50 | ext1 x; split <;> rename_i h <;> |
| 51 | simp only [h, Pi.smul_apply, ↓reduceIte,smul_zero,RingHom.id_apply] |
| 52 | rw [← smul_sub,smul_comm] |
| 53 | |
| 54 | lemma sect_at (i : Axis) (F : Cell R → V) (x : Cell R) : sect i F x = if i∈x.2 then 0 else sign x.2 i • |
| 55 | (F (x.1-step i, insert i x.2)- F (x.1,insert i x.2)) := rfl |
| 56 | lemma sect_twice (i : Axis) (F : Cell R → V) : sect i (sect i F)=0 := by funext x; simp_rw [sect_at]; simp |
| 57 | lemma sect_swap (i j : Axis) (F : Cell R → V) : sect i (sect j F)= -sect j (sect i F) := by |
| 58 | by_cases h : i=j |
| 59 | · rw [h,sect_twice,neg_zero] |
| 60 | funext ⟨x,b⟩ |
| 61 | simp_rw [Pi.neg_apply,sect_at] |
| 62 | by_cases hi : i∈b |
| 63 | · simp [hi] |
| 64 | by_cases hj : j∈b |
| 65 | · simp [hj] |
| 66 | simp only [hi,hj, ↓reduceIte, Finset.mem_insert,h,Ne.symm h,or_self, ← smul_sub, smul_smul] |
| 67 | rw [sign_neg b i j h hi hj, neg_smul] |
| 68 | congr 2 |
| 69 | rw [Finset.insert_comm i j b, sub_right_comm x] |
| 70 | abel |
| 71 | |
| 72 | /-- Cell boundary coefficient, on all ranks. -/ |
| 73 | def rim : (Cell R → V) →ₗ[ℝ] Cell R → V := ∑ i, sect i |
| 74 | lemma rim_at (F : Cell R → V) (x) : rim F x = ∑ i, sect i F x := by |
| 75 | simp only [rim,LinearMap.sum_apply,Finset.sum_apply] |
| 76 | lemma rim_twice (F : Cell R → V) : rim (rim F)=0 := by |
| 77 | unfold rim |
| 78 | simp_rw [LinearMap.sum_apply,map_sum] |
| 79 | have he (S : Finset Axis) : ∑ i∈S, ∑ j∈S, sect i (sect j F)=0 := by |
| 80 | induction S using Finset.induction_on with |
| 81 | | empty => simp |
| 82 | | @insert i S h ih => |
| 83 | rw [Finset.sum_insert h, Finset.sum_insert h, sect_twice,zero_add] |
| 84 | simp_rw [Finset.sum_insert h, Finset.sum_add_distrib,ih,add_zero] |
| 85 | rw [show (∑ j∈S,sect j (sect i F))=-(∑ j∈S,sect i (sect j F)) from ?_,add_neg_cancel] |
| 86 | rw [← Finset.sum_neg_distrib]; exact Finset.sum_congr rfl fun j _ => sect_swap .. |
| 87 | exact he _ |
| 88 | |
| 89 | section legs |
| 90 | variable [DecidableEq I] |
| 91 | |
| 92 | def peek (l : I) (X : I → Cell R) (F : ArrayC I R V) (x : Cell R) := F (update X l x) |
| 93 | |
| 94 | def lower (l : I) : ArrayC I R V →ₗ[ℝ] ArrayC I R V where |
| 95 | toFun F X := rim (peek l X F) (X l) |
| 96 | map_add' F D := funext fun X => congr_fun (rim.map_add (peek l X F) (peek l X D)) _ |
| 97 | map_smul' r F := funext fun X => congr_fun (rim.map_smul r (peek l X F)) _ |
| 98 | |
| 99 | lemma lower_at (l : I) (F : ArrayC I R V) (X) : lower l F X = ∑ i, sect i (peek l X F) (X l) := rim_at .. |
| 100 | lemma peek_lower (l : I) (F : ArrayC I R V) (X) : peek l X (lower l F) = rim (peek l X F) := by |
| 101 | funext x |
| 102 | change rim (peek l (update X l x) F) ((update X l x) l) = _ |
| 103 | rw [show peek l (update X l x) F = peek l X F by funext y; simp [peek],update_self] |
| 104 | lemma peek_else (i l : I) (h : i≠l) (F : ArrayC I R V) (X) : peek l X (lower i F) = |
| 105 | rim (R:=R) (V:=(Cell R→V)) (fun x => peek l (update X i x) F) (X i) := by |
| 106 | funext y; change lower i F (update X l y) = _ |
| 107 | rw [lower_at,rim_at, Finset.sum_apply, update_of_ne h] |
| 108 | refine Finset.sum_congr rfl fun j _ => ?_ |
| 109 | rw [sect_at,sect_at]; unfold peek |
| 110 | simp_rw [update_comm h] |
| 111 | split <;> rfl |
| 112 | |
| 113 | lemma lower_twice (l : I) (F : ArrayC I R V) : lower l (lower l F)=0 := by |
| 114 | funext X |
| 115 | change rim (peek l X (lower l F)) (X l)=_ |
| 116 | rw [peek_lower,rim_twice]; rfl |
| 117 | |
| 118 | lemma sect_rim (f : Cell R → Cell R → V) (x y : Cell R) (i : Axis) : |
| 119 | sect i (fun z => rim (f z) y) x = rim (sect i f x) y := by |
| 120 | simp only [sect_at]; split_ifs |
| 121 | · rw [map_zero]; rfl |
| 122 | rw [map_smul, map_sub]; rfl |
| 123 | lemma rim_rim (f : Cell R → Cell R → V) (x y : Cell R) : |
| 124 | rim (fun z => rim (f z) y) x=rim (rim f x) y := by |
| 125 | rw [rim_at, rim_at f,map_sum, Finset.sum_apply] |
| 126 | exact Finset.sum_congr rfl fun j _ => sect_rim f x y j |
| 127 | |
| 128 | lemma lower_switch (i l : I) (F : ArrayC I R V) : lower l (lower i F)=lower i (lower l F) := by |
| 129 | funext X; by_cases h : i=l |
| 130 | · rw [h] |
| 131 | change rim (peek l X (lower i F)) (X l) = _ |
| 132 | rw [peek_else i l h,← rim_rim] |
| 133 | change _ = rim (peek i X (lower l F)) (X i) |
| 134 | apply congr_arg (fun B : Cell R → V => rim B (X i)); funext y |
| 135 | change _ = rim (peek l (update X i y) F) (update X i y l) |
| 136 | rw [update_of_ne (Ne.symm h)] |
| 137 | |
| 138 | -- Use ungraded Rank/homogeneous-on-arguments |
| 139 | |
| 140 | def Rank (F : ArrayC I R V) (l : I) (r : ℕ) := ∀ X, (X l).2.card≠r → F X=0 |
| 141 | omit [AddCommGroup R] [One R] [Module ℝ V] [DecidableEq I] in |
| 142 | lemma Rank.neg {F : ArrayC I R V} {l r} (h : Rank F l r) : Rank (-F) l r := by |
| 143 | intro X H; simp [h X H] |
| 144 | omit [AddCommGroup R] [One R] [Module ℝ V] [DecidableEq I] in |
| 145 | lemma Rank.add {F B : ArrayC I R V} {l r} (h : Rank F l r) (g : Rank B l r) : Rank (F+B) l r := by |
| 146 | intro X H; simp [h X H,g X H] |
| 147 | omit [AddCommGroup R] [One R] [Module ℝ V] [DecidableEq I] in |
| 148 | lemma Rank.sub {F B : ArrayC I R V} {l r} (h : Rank F l r) (g : Rank B l r) : Rank (F-B) l r := by |
| 149 | rw [sub_eq_add_neg]; exact h.add g.neg |
| 150 | lemma Rank.descent {F : ArrayC I R V} {l : I} {r} (h : Rank F l (r+1)) : Rank (lower l F) l r := by |
| 151 | intro X hh |
| 152 | rw [lower_at]; refine Finset.sum_eq_zero fun i _ => ?_ |
| 153 | rw [sect_at]; split <;> rename_i hi |
| 154 | · rfl |
| 155 | have hp (x : Four R) : peek l X F (x,insert i (X l).2)=0 := h _ (by simp [hi,hh]) |
| 156 | rw [hp,hp,sub_self,smul_zero] |
| 157 | lemma Rank.keeps {F : ArrayC I R V} {l i r} (h : Rank F l r) (hp : l≠i) : Rank (lower i F) l r := by |
| 158 | intro X hh |
| 159 | have hx : peek i X F=0 := funext fun y => h _ (by simp [hp,hh]) |
| 160 | change rim _ _ = _; rw [hx,map_zero]; rfl |
| 161 | end legs |
| 162 | end YM.AnalyticNext.QuarticMatch.BoxChain |