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.WilsonBulk.Web.Rules |
| 2 | import YM.Pert.Bulk.Projected |
| 3 | |
| 4 | /-! |
| 5 | # Symmetry under leg permutations and common translations |
| 6 | |
| 7 | No signed/reflection/gauge/color identities yet. Covers operations on a |
| 8 | noninvariant root *and* the adapted common-translation relation, to relate to |
| 9 | tagged and finite arrays more easily. Exponential weights always charge *all* |
| 10 | relative displacements. Deterministic Laurent paths can be added only with |
| 11 | reserve. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.WilsonBulk.Sheet |
| 16 | open scoped Topology BigOperators ENNReal Classical |
| 17 | open Function Equiv Lattice Pert.Bulk Bloch |
| 18 | variable {X Y α β γ : Type} {σ θ p q : ℝ} {k n m : ℕ} {D : Rule X} |
| 19 | |
| 20 | variable {u v : Page X n} {w : Legs X n} |
| 21 | |
| 22 | def Regular (u : Page X n) := ∀ e : Equiv.Perm (Fin n), escort e u=u |
| 23 | namespace Regular |
| 24 | lemma eq (h : Regular u) (e : Equiv.Perm (Fin n)) (w : Legs X n) : u (w ∘ e)=u w := congr_fun (h e) w |
| 25 | lemma zero : Regular (0:Page X n) := fun _=>rfl |
| 26 | lemma scaled (h : Regular u) (r : ℝ) : Regular (r • u) := fun e=> by rw [escort_scale,h e] |
| 27 | lemma plus (h : Regular u) (g : Regular v) : Regular (u+v) := fun e=> by rw [escort_plus, h e,g e] |
| 28 | lemma minus (h : Regular u) (g : Regular v) : Regular (u-v) := fun e=> by rw [escort_minus, h e,g e] |
| 29 | lemma summed {T : Type} {s : Finset T} {u : T → Page X n} (h : ∀ v∈s,Regular (u v)) : Regular (∑ v∈s,u v) := fun p=> by |
| 30 | rw [escort_sum]; exact Finset.sum_congr rfl fun i hi=>h i hi p |
| 31 | lemma pay_one {u : Page X n} (h : Regular u) (i : Fin n) (j : Fin n) (x : X) : rent D σ u i x = rent D σ u j x := by |
| 32 | let e := Equiv.swap i j |
| 33 | unfold rent; rw [← (casesEquiv e.symm (.refl X)).tsum_eq (fun a=> if a i=x then _ else (0:ℝ≥0∞))] |
| 34 | apply tsum_congr; intro a |
| 35 | simp only [casesEquiv_apply, Equiv.symm_symm, Equiv.coe_refl, id_comp,Function.comp_apply,h.eq,run_escort] |
| 36 | rw [Equiv.swap_apply_left, id_eq] |
| 37 | lemma furnished {u : Text α (n+1)} (h : Regular u) (hh : Folded σ (fun x v => u (hitch x v)) p) (hp : 0≤p) : Within (lawn α) σ p u := by |
| 38 | refine ⟨hp,fun i x=>?_⟩ |
| 39 | rw [h.pay_one i 0 x, rent_head]; exact hh x |
| 40 | end Regular |
| 41 | |
| 42 | abbrev Grouping (n : ℕ) := Equiv.Perm (Fin n) |
| 43 | def polish (u : Page X n) := ((Fintype.card (Grouping n):ℝ))⁻¹ • ∑ e : Grouping n,escort e u |
| 44 | lemma polish_ready (u : Page X n) : Regular (polish u) := by |
| 45 | intro e |
| 46 | let v : Grouping n ≃ Grouping n := Equiv.mulLeft e |
| 47 | unfold polish; rw [escort_scale,escort_sum]; congr 1 |
| 48 | simp_rw [escort_escort] |
| 49 | exact Equiv.sum_comp v (fun x=> escort x u) |
| 50 | lemma polish_eq (h : Regular u) : polish u = u := by |
| 51 | unfold Regular at h; unfold polish; simp_rw [h]; ext v; simp [nsmul_eq_mul, show (Fintype.card (Grouping n):ℝ) ≠ 0 by positivity] |
| 52 | lemma Within.clean (h : Within D σ p u) : Within D σ p (polish u) := by |
| 53 | have he (x : Grouping n) (_ : x∈(Finset.univ : Finset (Grouping n))) := h.reindex x |
| 54 | have hv := (Within.sum (Finset.univ) he).scale ((Fintype.card (Grouping n):ℝ)⁻¹) |
| 55 | rw [Finset.sum_const,Finset.card_univ,nsmul_eq_mul,abs_of_nonneg (inv_nonneg.mpr (by positivity)),← mul_assoc,inv_mul_cancel₀ (by positivity),one_mul] at hv |
| 56 | exact hv |
| 57 | |
| 58 | @[simp] lemma polish_zero : polish (0:Page X n)=0 := polish_eq Regular.zero |
| 59 | lemma polish_scale (r : ℝ) (u : Page X n) : polish (r • u) = r • polish u := by simp only [polish,escort_scale,← Finset.smul_sum]; rw [smul_comm] |
| 60 | lemma polish_plus (u v : Page X n) : polish (u+v) = polish u + polish v := by simp only [polish,escort_plus, Finset.sum_add_distrib, smul_add] |
| 61 | lemma polish_minus (u v : Page X n) : polish (u-v) = polish u - polish v := by simp only [polish,escort_minus,Finset.sum_sub_distrib, smul_sub] |
| 62 | |
| 63 | def arabesque (e : X ≃ X) (u : Page X n) := ∀ v : Legs X n, u (e ∘ v)=u v |
| 64 | variable {a : X ≃ X} {b : Cover} {c : Side} |
| 65 | namespace arabesque |
| 66 | lemma zero : arabesque a (0:Page X n) := fun _ => rfl |
| 67 | lemma plus (h : arabesque a u) (g : arabesque a v) : arabesque a (u+v) := fun w=> by rw [Pi.add_apply,h,g,Pi.add_apply] |
| 68 | lemma minus (h : arabesque a u) (g : arabesque a v) : arabesque a (u-v) := fun w=> by rw [Pi.sub_apply,h,g,Pi.sub_apply] |
| 69 | lemma scale (h : arabesque a u) (r : ℝ) : arabesque a (r • u) := fun w=> by rw [Pi.smul_apply, h,Pi.smul_apply] |
| 70 | lemma prod (h : arabesque a u) (g : arabesque a v) : arabesque a (u*v) := fun w=> by rw [Pi.mul_apply,h,g,Pi.mul_apply] |
| 71 | lemma gather {ι : Type} {s : Finset ι} {u : ι → Page X n} (h : ∀ i∈s, arabesque a (u i)) : arabesque a (∑ i∈s,u i) := by |
| 72 | intro v; rw [Finset.sum_apply,Finset.sum_apply]; exact Finset.sum_congr rfl fun i hv=> h i hv v |
| 73 | lemma reindex (h : arabesque a u) (e : Fin n≃Fin m) : arabesque a (escort e u) := fun v=> h (v ∘ e) |
| 74 | lemma polished (h : arabesque a u) : arabesque a (polish u) := (gather fun e _=> h.reindex e).scale _ |
| 75 | lemma plucked {u : Page X (n+1)} (h : arabesque a u) : arabesque a (pluck u) := by |
| 76 | intro v; unfold pluck; rw [← a.tsum_eq (fun x=> u (hitch x (a ∘ v)))]; apply tsum_congr; intro x |
| 77 | rw [← hitch_comp]; exact h _ |
| 78 | lemma sewn {u : Page X (n+1)} {v : Page X (k+1)} (h : arabesque a u) (he : arabesque a v) : arabesque a (seam u v) := fun z=> by |
| 79 | unfold seam |
| 80 | simp only [crop_comp, snip_comp, keep_comp, Function.comp_apply, ← hitch_comp] |
| 81 | rw [h,he] |
| 82 | end arabesque |
| 83 | |
| 84 | def roll (b : Cover) (α : Type) : Market α≃ Market α := Equiv.prodCongr (Equiv.addRight b) (Equiv.refl _) |
| 85 | def rolls (v : Site c) (α : Type) : Co c α ≃ Co c α := Equiv.prodCongr (Equiv.addRight v) (Equiv.refl _) |
| 86 | lemma roll_zero (α : Type) : roll 0 α = Equiv.refl _ := by ext1 x; rcases x with ⟨x,z⟩; change (x+0,z)=(x,z); rw [add_zero] |
| 87 | lemma roll_add (b c : Cover) (α : Type) : roll (b+c) α=(roll b α).trans (roll c α) := by |
| 88 | ext1 x; rcases x with ⟨x,z⟩; change (x+(b+c),z)=(x+b+c,z); rw [add_assoc] |
| 89 | lemma roll_undo (b : Cover) (α : Type) : (roll b α).symm=roll (-b) α := by ext1 x; rcases x with ⟨x,z⟩; simp [roll] |
| 90 | lemma roll_apply (b : Cover) (α : Type) (x : Market α) : roll b α x=(x.1+b,x.2) := rfl |
| 91 | lemma rolls_apply (b : Site c) (α : Type) (x : Co c α) : rolls b α x=(x.1+b,x.2) := rfl |
| 92 | lemma lawn_roll (b : Cover) (α : Type) (v x : Market α) : (lawn α).cost (roll b α v) (roll b α x)=(lawn α).cost v x := sep_shift .. |
| 93 | def Pervasive (u : Text α n) := ∀ b : Cover, arabesque (roll b α) u |
| 94 | variable {U V : Text α n} |
| 95 | namespace Pervasive |
| 96 | lemma zero : Pervasive (0 : Text α n) := fun _=> arabesque.zero |
| 97 | lemma plus (h : Pervasive U) (g : Pervasive V) : Pervasive (U+V) := fun b=> (h b).plus (g b) |
| 98 | lemma minus (h : Pervasive U) (g : Pervasive V) : Pervasive (U-V) := fun b=> (h b).minus (g b) |
| 99 | lemma scale (h : Pervasive U) (r : ℝ) : Pervasive (r • U) := fun b=> (h b).scale r |
| 100 | lemma prod (h : Pervasive U) (g : Pervasive V) : Pervasive (U*V) := fun b=> (h b).prod (g b) |
| 101 | lemma gather {ι : Type} {s : Finset ι} {u : ι → Text α n} (h : ∀ i∈s,Pervasive (u i)) : Pervasive (∑ i∈s,u i) := fun b=> arabesque.gather fun i hi=> h i hi b |
| 102 | lemma reindex (h : Pervasive U) (e : Fin n≃ Fin m) : Pervasive (escort e U) := fun b=> (h b).reindex e |
| 103 | lemma polished (h : Pervasive U) : Pervasive (polish U) := (gather fun e _=> h.reindex e).scale _ |
| 104 | lemma plucked {u : Text α (n+1)} (h : Pervasive u) : Pervasive (pluck u) := fun b=> (h b).plucked |
| 105 | lemma sewn {u : Text α (n+1)} {v : Text α (k+1)} (h : Pervasive u) (g : Pervasive v) : Pervasive (seam u v) := fun b=> (h b).sewn (g b) |
| 106 | lemma plain_pair (T : Row α α) : Pervasive (Sheet.pair (plain T)) := fun _ _ => plain_reads .. |
| 107 | lemma run_roll (b : Cover) (x : Market α) (u : Legs (Market α) n) : run (lawn α) (roll b α x) (roll b α ∘ u)= run (lawn α) x u := by |
| 108 | unfold run; exact Finset.sum_congr rfl fun i _=> lawn_roll b α x (u i) |
| 109 | lemma rent_roll (h : Pervasive U) (b : Cover) (x : Market α) (i : Fin n) : rent (lawn α) σ U i (roll b α x)=rent (lawn α) σ U i x := by |
| 110 | unfold rent; rw [← (casesEquiv (Equiv.refl _) (roll b α)).tsum_eq _] |
| 111 | apply tsum_congr ; intro v; simp [casesEquiv_apply,run_roll,h b v] |
| 112 | end Pervasive |
| 113 | |
| 114 | lemma line_cost {C : Page X 2} : Within D σ p C ↔ 0≤p ∧ (∀ x, ∑'y,bill (C (two x y)) (σ*D.cost x y) ≤ ENNReal.ofReal p) ∧ ∀ x,∑'y,bill (C (two y x)) (σ*D.cost y x) ≤ ENNReal.ofReal p := by |
| 115 | have hl (x : X) : rent D σ C 0 x = ∑' y, bill (C (two x y)) (σ*D.cost x y) := by |
| 116 | rw [rent_head,← (identify _).symm.tsum_eq _]; apply tsum_congr ; intro y; simp [two,run,identify] |
| 117 | have hr (x : X) : rent D σ C 1 x = ∑' y, bill (C (two y x)) (σ*D.cost y x) := by |
| 118 | change rent D σ C (0 : Fin 1).succ x=_ |
| 119 | rw [rent_tail]; apply tsum_congr; intro y |
| 120 | rw [← (identify _).symm.tsum_eq (fun v=> if v 0=x then _ else _)] |
| 121 | simp_rw [show ∀ u:X,(identify X).symm u=(fun _=>u) from fun _=> rfl] |
| 122 | rw [tsum_eq_single x]; swap; · intro b hb; rw [if_neg hb] |
| 123 | simp only [↓reduceIte]; rw [← (show two y x = hitch y (fun _=>x) from rfl), run_pair,D.self,add_zero,D.swap x y] |
| 124 | simp_rw [← hl,← hr]; constructor |
| 125 | · exact fun h=> ⟨h.1,h.2 0,h.2 1⟩ |
| 126 | intro ⟨h,hh,hi⟩; refine ⟨h,fun i=> ?_⟩ |
| 127 | fin_cases i <;> assumption |
| 128 | |
| 129 | lemma lawn_pair {V : Row α α} [Fintype α] (hV : V.strip σ p) (hp : 0 ≤ p) : |
| 130 | Within (lawn α) σ ((Fintype.card α:ℝ)*p) (pair (plain V)) := by |
| 131 | -- adapt RowCost and ColCost by batching tail and head positions; no symmetry needed |
| 132 | apply line_cost.mpr |
| 133 | rw [ENNReal.ofReal_mul (by positivity : 0≤(Fintype.card α:ℝ)),ENNReal.ofReal_natCast] |
| 134 | obtain ⟨h,h'⟩:= plain0 hV le_rfl |
| 135 | refine ⟨by positivity,fun x=> convert_market _ _ (fun v=>?_),fun x=> convert_market _ _ (fun v=>?_)⟩ |
| 136 | · specialize h x v; simp_rw [delta_one] at h; exact h |
| 137 | specialize h' v x; simp_rw [delta_one] at h'; exact h' |
| 138 | end YM.WilsonBulk.Sheet |