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.Boundary |
| 2 | import YM.AnalyticNext.QUARTIC_MATCH.Cells.Interval |
| 3 | |
| 4 | /-! |
| 5 | # Cubical homotopy on an anchored axis |
| 6 | |
| 7 | Carry all other arguments passively. Later iteration spends widths in native units. |
| 8 | -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.AnalyticNext.QuarticMatch.BoxChain |
| 12 | open Function Lattice Exterior Filter Topology |
| 13 | open scoped Topology BigOperators |
| 14 | |
| 15 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] [CompleteSpace V] |
| 16 | |
| 17 | /-- `Sums` at one position; translations unchanged. -/ |
| 18 | def sums (F : Cell ℤ → V) := ∀ S : Finset Axis, Summable fun i : Cover => F (i,S) |
| 19 | |
| 20 | omit [NormedSpace ℝ V] [CompleteSpace V] in |
| 21 | lemma sums.add {F G : Cell ℤ → V} (h : sums F) (g : sums G) : sums (F+G) := |
| 22 | fun S => (h S).add (g S) |
| 23 | omit [NormedSpace ℝ V] [CompleteSpace V] in |
| 24 | lemma sums.sub {F G : Cell ℤ → V} (h : sums F) (g : sums G) : sums (F-G) := |
| 25 | fun S => (h S).sub (g S) |
| 26 | |
| 27 | omit [CompleteSpace V] in |
| 28 | lemma sums.sects {F : Cell ℤ → V} (h : sums F) (i : Axis) : sums (sect i F) := by |
| 29 | intro S; by_cases hi : i∈S |
| 30 | · simp [sect_at,hi] |
| 31 | have he := h (insert i S) |
| 32 | simp_rw [sect_at, if_neg hi]; exact (((Equiv.subRight (step i : Cover)).summable_iff.mpr he).sub he).const_smul _ |
| 33 | omit [CompleteSpace V] in |
| 34 | lemma sums.rims {F : Cell ℤ → V} (h : sums F) : sums (rim F) := by |
| 35 | intro S; simp_rw [rim_at]; exact summable_sum (fun i _ => (h.sects i) S) |
| 36 | omit [CompleteSpace V] in |
| 37 | lemma totals {F : Cell ℤ → V} (h : sums F) : (∑' i : Cover, rim F (i,∅)) = 0 := by |
| 38 | simp_rw [rim_at] |
| 39 | rw [Summable.tsum_finsetSum]; swap |
| 40 | · exact fun i _ => h.sects i _ |
| 41 | refine Finset.sum_eq_zero fun i _ => ?_ |
| 42 | simp_rw [sect_at, if_neg (Finset.notMem_empty _)] |
| 43 | let S := insert i (∅ : Finset Axis) |
| 44 | let v := fun i : Cover => F (i,S) |
| 45 | let E := Equiv.subRight (step i : Cover) |
| 46 | have he : Summable v := h _ |
| 47 | have hx : (∑' x,(v (E x)-v x))=0 := by rw [(show Summable (fun x => v (E x)) from E.summable_iff.mpr he).tsum_sub he, E.tsum_eq,sub_self] |
| 48 | change (∑' x, sign ∅ i • (v (E x)-v x))=_ |
| 49 | rw [tsum_const_smul'', hx,smul_zero] |
| 50 | |
| 51 | def along (i : Axis) (x : Cover) (S : Finset Axis) (F : Cell ℤ → V) (k : ℤ) := |
| 52 | F (update x i k,S) |
| 53 | omit [NormedSpace ℝ V] in |
| 54 | lemma sums.goes {F : Cell ℤ → V} (h : sums F) (S : Finset Axis) (x : Cover) (i : Axis) : Summable (along i x S F) := |
| 55 | (h S).comp_injective (i := fun k => update x i k) (fun b c g => by simpa using congr_fun g i) |
| 56 | |
| 57 | def fillRay (b : Cover) (i : Axis) (f : Cell ℤ → V) (x : Cell ℤ) := |
| 58 | if i∈x.2 then sign x.2 i • Ray.solution (along i x.1 (x.2.erase i) f) (b i) (x.1 i) else 0 |
| 59 | |
| 60 | def squeezed (b : Cover) (i : Axis) (f : Cell ℤ → V) (x : Cell ℤ) := |
| 61 | if i∈x.2 then 0 else if x.1 i=b i then (∑' k, along i x.1 x.2 f k) else 0 |
| 62 | |
| 63 | omit [CompleteSpace V] in |
| 64 | lemma along_jump (i : Axis) (x : Cover) (S : Finset Axis) (F : Cell ℤ → V) : |
| 65 | along i x S (sect i F) = if i∈S then 0 else sign S i • Ray.jumps (along i x (insert i S) F) := by |
| 66 | split <;> rename_i hi |
| 67 | · funext k; simp [along,sect_at,hi] |
| 68 | funext k |
| 69 | have he : update x i k - step i=update x i (k-1) := by |
| 70 | funext j; by_cases h : i=j |
| 71 | · subst i; simp |
| 72 | simp [Ne.symm h] |
| 73 | unfold along; rw [sect_at,if_neg hi,he]; rfl |
| 74 | |
| 75 | omit [CompleteSpace V] [NormedSpace ℝ V] [NormedAddCommGroup V] in |
| 76 | lemma along_back (i : Axis) (x : Cover) (S : Finset Axis) (F : Cell ℤ → V) : |
| 77 | along i (x-step i) S F=along i x S F := by |
| 78 | funext k; simp only [along]; congr 2; funext j; by_cases h : i=j |
| 79 | · subst i; simp |
| 80 | simp [Ne.symm h] |
| 81 | |
| 82 | /-- In dimension one of the cube. -/ |
| 83 | theorem same_axis (b : Cover) (i : Axis) {F : Cell ℤ → V} (h : sums F) : |
| 84 | sect i (fillRay b i F) + fillRay b i (sect i F) = F-squeezed b i F := by |
| 85 | funext ⟨x,S⟩; by_cases hi : i∈S |
| 86 | · have hh : ¬ i∈S.erase i := by simp |
| 87 | simp only [Pi.add_apply,sect_at,hi,↓reduceIte,fillRay,along_jump,if_neg hh,sign_remove, |
| 88 | Finset.insert_erase hi,squeezed,Pi.sub_apply,Ray.solution_scale,Ray.right (h.goes _ _ _), |
| 89 | smul_smul,sign_sq,one_smul,sub_zero,zero_add] |
| 90 | simp [along] |
| 91 | have he := Ray.left (h.goes S x i) (x i) (b i) |
| 92 | simp_rw [Pi.add_apply, Pi.sub_apply,sect_at,fillRay,squeezed] |
| 93 | simp only [hi,↓reduceIte,Finset.mem_insert, true_or,add_zero,Finset.erase_insert hi, |
| 94 | sign_insert _ _ hi,← smul_sub,smul_smul,sign_sq,one_smul, Pi.sub_apply,step_apply, ↓reduceIte,along_back] |
| 95 | simpa [along] using he |
| 96 | |
| 97 | lemma fillRay_add (b : Cover) (i : Axis) {F G : Cell ℤ → V} (h : sums F) (g : sums G) : |
| 98 | fillRay b i (F+G)=fillRay b i F+fillRay b i G := by |
| 99 | funext ⟨x,S⟩; by_cases hi : i∈S |
| 100 | · simp only [fillRay,hi,↓reduceIte, Pi.add_apply] |
| 101 | rw [show along i x (S.erase i) (F+G)=along i x (S.erase i) F + along i x (S.erase i) G from rfl, |
| 102 | Ray.solution_add (h.goes _ x i) (g.goes _ x i), smul_add] |
| 103 | simp [fillRay,hi] |
| 104 | |
| 105 | omit [CompleteSpace V] in |
| 106 | lemma fillRay_scale (b : Cover) (i : Axis) (F : Cell ℤ → V) (r : ℝ) : |
| 107 | fillRay b i (r • F)=r • fillRay b i F := by |
| 108 | funext ⟨x,S⟩; by_cases hi : i∈S |
| 109 | · simp only [fillRay,hi,↓reduceIte, Pi.smul_apply]; rw [show along i x (S.erase i) (r • F)=r • along i x _ F from rfl, |
| 110 | Ray.solution_scale,smul_comm r] |
| 111 | simp [fillRay,hi] |
| 112 | omit [CompleteSpace V] in |
| 113 | @[simp] lemma fillRay_zero (b : Cover) (i : Axis) : fillRay (V:=V) b i 0=0 := by |
| 114 | funext ⟨x,S⟩; simp_rw [fillRay,show ∀ x S,along i x S (0:Cell ℤ→V)=0 from fun _ _ => rfl,Ray.solution_zero,smul_zero,ite_self]; rfl |
| 115 | |
| 116 | omit [CompleteSpace V] in |
| 117 | private lemma along_transverse (i j : Axis) (x : Cover) (S : Finset Axis) (h : i≠j) (hj : j∉S) |
| 118 | (F : Cell ℤ → V) : |
| 119 | along i x S (sect j F)=sign S j • (along i (x-step j) (insert j S) F - along i x (insert j S) F) := by |
| 120 | funext k; unfold along; rw [sect_at,if_neg hj] |
| 121 | rw [show update x i k-step j=update (x-step j) i k by |
| 122 | funext r; by_cases hi : r=i <;> simp [hi,h]]; rfl |
| 123 | |
| 124 | /-- Anti-commutation with transverse incidences. -/ |
| 125 | theorem other_axis (b : Cover) (i j : Axis) {F : Cell ℤ → V} (h : sums F) (hs : j≠i) : |
| 126 | sect j (fillRay b i F) + fillRay b i (sect j F)=0 := by |
| 127 | funext ⟨x,S⟩; by_cases hi : i∈S |
| 128 | · by_cases hj : j∈S |
| 129 | · have hm : j∈S.erase i := by simp [hj,hs] |
| 130 | rw [Pi.add_apply,sect_at, if_pos hj]; simp only [fillRay, hi, ↓reduceIte,zero_add] |
| 131 | have hh : along i x (S.erase i) (sect j F) = 0 := by funext k; simp [along,sect_at,hm] |
| 132 | rw [hh,Ray.solution_zero,smul_zero]; rfl |
| 133 | let T := S.erase i; have hg : j∉T := by simp [T,hj] |
| 134 | have he : i∉T := by simp [T] |
| 135 | have hc : insert i T = S := Finset.insert_erase hi |
| 136 | have hp : (insert j S).erase i = insert j T := by ext; simp [T]; grind |
| 137 | have hy := sign_neg T i j hs.symm he hg |
| 138 | rw [hc] at hy |
| 139 | have hz : sign (insert j S) i=sign (insert j T) i := by rw [← sign_remove (insert j S),hp] |
| 140 | rw [show sign T i=sign S i from sign_remove S i] at hy |
| 141 | have hw : sign S i * sign T j = -(sign S j*sign (insert j T) i) := by |
| 142 | calc |
| 143 | _ = (sign S i * sign S j)*(sign S j * sign T j) := by |
| 144 | rw [show (sign S i*sign S j)*(sign S j*sign T j) = (sign S j*sign S j)*(sign S i*sign T j) from by ring, sign_sq,one_mul] |
| 145 | _ = _ := by rw [hy]; have he := sign_sq T j; grind |
| 146 | simp only [Pi.add_apply,sect_at,hj, ↓reduceIte,fillRay, hi,Finset.mem_insert, |
| 147 | or_true, Pi.sub_apply, step_apply,hs.symm, ↓reduceIte, sub_zero, hp,hz] |
| 148 | rw [along_transverse _ _ _ T hs.symm hg, Ray.solution_scale,Ray.solution_sub (h.goes _ _ i) (h.goes _ _ i),← smul_sub, |
| 149 | smul_smul,smul_smul, hw,neg_smul,add_neg_cancel]; rfl |
| 150 | simp only [Pi.add_apply,sect_at,fillRay]; split_ifs <;> simp_all |
| 151 | |
| 152 | theorem slides (b : Cover) (i : Axis) {F : Cell ℤ → V} (h : sums F) : |
| 153 | rim (fillRay b i F) + fillRay b i (rim F)= F-squeezed b i F := by |
| 154 | have hh (s : Finset Axis) : fillRay b i (∑ j∈s,sect j F) = ∑ j∈s,fillRay b i (sect j F) := by |
| 155 | induction s using Finset.induction_on with |
| 156 | | empty => simp |
| 157 | | @insert j s hd ih => |
| 158 | rw [Finset.sum_insert hd,Finset.sum_insert hd, fillRay_add b i (h.sects j) ?_, ih] |
| 159 | intro x |
| 160 | simp_rw [Finset.sum_apply] |
| 161 | exact summable_sum fun j _ => (h.sects j) x |
| 162 | rw [rim,LinearMap.sum_apply,LinearMap.sum_apply, hh,← Finset.sum_add_distrib] |
| 163 | rw [Finset.sum_eq_single i (fun j _ hj => other_axis b i j h hj) (fun hj => (hj (Finset.mem_univ _)).elim),same_axis b i h] |
| 164 | end YM.AnalyticNext.QuarticMatch.BoxChain |