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.Resolve |
| 2 | |
| 3 | /-! |
| 4 | # Absolute periodization, exterior naturality |
| 5 | |
| 6 | Read tensor PER ROOT. There's one translation factor when summing root upstairs, |
| 7 | not here. `echo` can use any lifts, retaining all winding translates. In |
| 8 | particular ∂-identities from geometry persist on the nose. |
| 9 | -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.AnalyticNext.QuarticMatch.BoxChain |
| 13 | open Lattice Exterior Function Finset Topology Laurent Filter |
| 14 | open scoped Topology BigOperators |
| 15 | |
| 16 | variable {I : Type} {V : Type*} {R : Type*} [NormedAddCommGroup V] |
| 17 | |
| 18 | /-- Shifts per slot. -/ |
| 19 | def sway [AddCommGroup R] (w : I → Four R) (X : I → Cell R) := fun i => move (w i) (X i) |
| 20 | |
| 21 | |
| 22 | def tor (c : Side) (x : Cell ℤ) : Cell (Per c) := (wrap c x.1,x.2) |
| 23 | def rise (c : Side) (x : Cell (Per c)) : Cell ℤ := (lift x.1,x.2) |
| 24 | |
| 25 | @[simp] lemma to_ground (c : Side) (x : Cell (Per c)) : tor c (rise c x)=x := by simp [tor,rise] |
| 26 | @[simp] lemma tor_move (c : Side) (x : Cell ℤ) (b : Cover) : tor c (move b x)=move (wrap c b) (tor c x) := |
| 27 | Prod.ext (map_add _ _ _) rfl |
| 28 | |
| 29 | variable (c : Side) (i : I) |
| 30 | |
| 31 | def sheets : AddSubgroup (I → Cover) where |
| 32 | carrier := {F | (∀ j, wrap c (F j)=0) ∧ F i=0} |
| 33 | zero_mem' := by simp |
| 34 | add_mem' := fun {a b} ⟨ha,ht⟩ ⟨hb,hm⟩ => by simp [ha,ht,hb,hm] |
| 35 | neg_mem' := fun {a} ⟨ha,ht⟩ => by simp [ha,ht] |
| 36 | lemma sheet_here (w : sheets c i) : w.val i=0 := w.property.2 |
| 37 | lemma sheet_wrap (w : sheets c i) (j : I) : wrap c (w.val j)=0 := w.property.1 _ |
| 38 | |
| 39 | def echo (A : ArrayC I ℤ V) (X : I→ Cell ℤ) := ∑' w : ↥(sheets c i), A (sway w.val X) |
| 40 | lemma echo_step {A : ArrayC I ℤ V} (h : Cohere A) (X Y : I→Cell ℤ) (hx : tor c ∘ X = tor c ∘ Y) : |
| 41 | echo c i A X=echo c i A Y := by |
| 42 | let T j := (X j).1-(Y j).1 |
| 43 | let t := T i |
| 44 | have ht j : wrap c (T j)=0 := by rw [map_sub, sub_eq_zero]; exact congr_arg Prod.fst (congr_fun hx j) |
| 45 | let q : sheets c i := ⟨fun j => T j - t, fun j => by rw [map_sub,ht,show t=T i from rfl, ht,sub_zero], sub_self _⟩ |
| 46 | unfold echo |
| 47 | rw [← Equiv.tsum_eq (Equiv.addRight q) (fun w : sheets c i => A (sway w.val Y))] |
| 48 | refine tsum_congr fun w => ?_ |
| 49 | change _ = A (sway (w+q).val Y) |
| 50 | rw [← h t (sway (w+q : sheets c i).val Y)] |
| 51 | congr 1 |
| 52 | funext j |
| 53 | apply Prod.ext |
| 54 | · change (X j).1+w.val j=(Y j).1+(w.val j+ (T j-t))+t |
| 55 | unfold T; abel |
| 56 | change ((tor c ∘ X) j).2 = ((tor c ∘ Y) j).2 |
| 57 | exact congr_arg Prod.snd (congr_fun hx j) |
| 58 | |
| 59 | def scene (A : ArrayC I ℤ V) (X : I → Cell (Per c)) := echo c i A (rise c ∘ X) |
| 60 | lemma scene_tor {A : ArrayC I ℤ V} (h : Cohere A) (X : I→Cell ℤ) : |
| 61 | scene c i A (tor c ∘ X)=echo c i A X := by |
| 62 | unfold scene; exact echo_step c i h _ _ (by ext1 j; simp) |
| 63 | |
| 64 | variable {σ C : ℝ} {A : ArrayC I ℤ V} |
| 65 | |
| 66 | section finite |
| 67 | variable [Fintype I] |
| 68 | |
| 69 | def loads (x : I → Cover) : ℕ := ∑ i, size (x i) |
| 70 | lemma weight_loads (x : I → Cover) : loads x = size (fun i : I × Axis => x i.1 i.2) := |
| 71 | (Fintype.sum_prod_type (fun i : I × Axis => (x i.1 i.2).natAbs)).symm |
| 72 | |
| 73 | lemma pays_all (h : 0 < σ) : RG.SumBudget (fun x : I → Cover => Real.exp (-σ*loads x)) |
| 74 | ((2*((1+σ)/σ))^(Fintype.card (I × Axis))) := by |
| 75 | let E : (I → Cover) ≃ ((I × Axis) → ℤ) := (Equiv.curry I Axis ℤ).symm |
| 76 | have he x : Real.exp (-σ*loads x)=Real.exp (-σ*size (E x)) := by rw [weight_loads]; rfl |
| 77 | simp_rw [he] |
| 78 | obtain ⟨hx,hg,hv⟩ := Laurent.Width.compactPay (α:=I × Axis) σ h |
| 79 | exact ⟨fun i => hx _, E.summable_iff.mpr hg, (E.tsum_eq _).le.trans hv⟩ |
| 80 | |
| 81 | def shiftRate (I : Type) [Fintype I] (σ : ℝ) := σ/(Fintype.card I : ℝ) |
| 82 | lemma positive_rate (h : 0 < σ) (i : I) : 0 < shiftRate I σ := by |
| 83 | have : Nonempty I := ⟨i⟩; exact div_pos h (by positivity) |
| 84 | |
| 85 | lemma pricing_anchor (h : Pricing A σ C) (i : I) (X : I → Cell ℤ) : |
| 86 | ‖A X‖ ≤ C * Real.exp (-shiftRate I σ * loads fun j => (X j).1-(X i).1) := by |
| 87 | classical |
| 88 | haveI : Nonempty I := ⟨i⟩ |
| 89 | let F j := size ((X j).1-(X i).1) |
| 90 | obtain ⟨j,hj,hb⟩ := Finset.exists_max_image Finset.univ F univ_nonempty |
| 91 | apply (h.each X j i).trans |
| 92 | apply mul_le_mul_of_nonneg_left (Real.exp_monotone ?_) h.cap |
| 93 | have hm : ∑ i : I, F i ≤ Fintype.card I*F j := by |
| 94 | convert! Finset.sum_le_sum (s:=Finset.univ) (fun i h => hb i h) using 1 |
| 95 | simp |
| 96 | change -σ*(F j:ℝ) ≤ -(σ/(Fintype.card I:ℝ)) * ↑(∑ x,F x) |
| 97 | have hg : ((∑ x,F x):ℝ) ≤ Fintype.card I*(F j:ℝ) := by exact_mod_cast hm |
| 98 | have hf := div_mul_cancel₀ σ (show (Fintype.card I:ℝ)≠0 by positivity) |
| 99 | rw [show -σ*↑(F j)= -(σ/Fintype.card I)*(Fintype.card I*(F j:ℝ)) by rw [← mul_assoc,neg_mul (σ/↑(Fintype.card I)),hf]] |
| 100 | rw [Nat.cast_sum]; exact mul_le_mul_of_nonpos_left hg (neg_nonpos.mpr (positive_rate h.rate i).le) |
| 101 | |
| 102 | lemma total_echo (h : Pricing A σ C) (X : I→Cell ℤ) : Summable fun w : sheets c i => ‖A (sway w.val X)‖ := by |
| 103 | let E (w : sheets c i) : I → Cover := fun j => (sway w.val X j).1-(sway w.val X i).1 |
| 104 | have hx (w : sheets c i) j : E w j=(X j).1+w.val j-(X i).1 := by simp [E,move,sway,sheet_here] |
| 105 | have he : Injective E := fun x y H => Subtype.ext <| funext fun j => by simpa only [hx,sub_left_inj,add_right_inj] using congr_fun H j |
| 106 | refine Summable.of_nonneg_of_le (fun _ => norm_nonneg _) (fun x => pricing_anchor h i _) ?_ |
| 107 | exact ((pays_all (I:=I) (positive_rate h.rate i)).2.1.mul_left C).comp_injective he |
| 108 | end finite |
| 109 | |
| 110 | section legs |
| 111 | variable [NormedSpace ℝ V] [Fintype I] [DecidableEq I] [CompleteSpace V] |
| 112 | |
| 113 | /-- Commute even with a change on the pivotal root. -/ |
| 114 | theorem descend_lower (j : I) (h : Pricing A σ C) : |
| 115 | lower j (scene c i A)=scene c i (lower j A) := by |
| 116 | funext Y |
| 117 | let X := rise c ∘ Y |
| 118 | let x := (X j).1; let S := (X j).2 |
| 119 | have he : tor c ∘ X=Y := funext fun i => to_ground _ _ |
| 120 | have hs (b : Cell ℤ) : peek j Y (scene c i A) (tor c b)=echo c i A (update X j b) := by |
| 121 | unfold peek; rw [← scene_tor c i h.same] |
| 122 | congr 1; funext k; by_cases H : k=j <;> simp [H,X] |
| 123 | have hx (b : Cover) (r : Finset Axis) (w : sheets c i) : |
| 124 | peek j (sway w.val X) A (b+w.val j,r)=A (sway w.val (update X j (b,r))) := by |
| 125 | unfold peek; congr 1; funext k; by_cases H : k=j <;> simp [H, sway, move] |
| 126 | have ht (z : Axis) (w : sheets c i) : sect z (peek j (sway w.val X) A) (sway w.val X j) = |
| 127 | if z∈ S then 0 else sign S z • (A (sway w.val (update X j (x-step z,insert z S)))- |
| 128 | A (sway w.val (update X j (x,insert z S)))) := by |
| 129 | rw [sect_at]; change (if z∈S then _ else _)=_ |
| 130 | split; · rfl |
| 131 | change _ • (peek j _ _ (x+w.val j-step z, _) - peek j _ _ (x+w.val j, _)) = _ |
| 132 | rw [show x+w.val j-step z=x-step z+w.val j by abel,hx,hx]; rfl |
| 133 | rw [lower_at]; unfold scene; change (∑ _ : Axis, _) = echo c i (lower j A) X |
| 134 | unfold echo |
| 135 | simp_rw [lower_at, ht] |
| 136 | have hE (U : I→Cell ℤ) := (total_echo c i h U).of_norm |
| 137 | rw [Summable.tsum_finsetSum]; swap |
| 138 | · intro b d; split |
| 139 | · exact summable_zero |
| 140 | exact ((hE _).sub (hE _)).const_smul _ |
| 141 | apply Finset.sum_congr rfl; intro b _ |
| 142 | have hy : Y j=(wrap c x,S) := (congr_fun he j).symm |
| 143 | change sect b (peek j Y (scene c i A)) (Y j)=_ |
| 144 | rw [sect_at,hy]; dsimp only; split |
| 145 | · simp |
| 146 | rw [show (wrap c x-step b, insert b S)=tor c (x-step b,insert b S) by simp [tor], |
| 147 | hs,show (wrap c x, insert b S)=tor c (x,insert b S) from rfl, hs, tsum_const_smul'', (hE _).tsum_sub (hE _)]; rfl |
| 148 | |
| 149 | end legs |
| 150 | |
| 151 | variable [NormedSpace ℝ V] [CompleteSpace V] |
| 152 | |
| 153 | theorem descend_list {n : ℕ} {A : ArrayC (Fin n) ℤ V} (i : Fin n) (h : Pricing A σ C) (s : List (Fin n)) : |
| 154 | scene c i (solve s A)=solve s (scene c i A) := by |
| 155 | induction s generalizing A C with |
| 156 | | nil => rfl |
| 157 | | cons a s ih => |
| 158 | change scene c i (solve s (lower a A)) = solve s (lower a (scene c i A)) |
| 159 | rw [descend_lower _ _ _ h]; exact ih (h.smaller a) |
| 160 | |
| 161 | end YM.AnalyticNext.QuarticMatch.BoxChain |