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.AnalyticBridge.RELATIVE_LOGDET_TRACE.Fresco |
| 2 | import YM.AnalyticBridge.RELATIVE_LOGDET_TRACE.Year |
| 3 | |
| 4 | /-! |
| 5 | # Group on original bond words |
| 6 | |
| 7 | Exact projected sums and costs. For G gauges in Schur grouping don't |
| 8 | assume that particular colors select; pass through the unconditional |
| 9 | series before determinant identities. Doesn't assert gauge symmetry of an |
| 10 | arbitrary mark's tested values; only of underlying determinant letters. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.AnalyticBridge.RelativeLogdet.Paint |
| 15 | open Filter Function Set Matrix MeasureTheory FreeResolvent Next.SectorChange |
| 16 | open RG |
| 17 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius |
| 18 | variable {ι κ γ : Type} [Fintype ι] [Fintype κ] [DecidableEq ι] [DecidableEq κ] |
| 19 | variable {A B : Square (ι × κ)} {H : ι → Square κ} |
| 20 | variable {W : ι→ Set ι} {D : Cost γ} {p : ι × κ→γ} {v C q : ℝ} {m : ℕ} |
| 21 | |
| 22 | def string (P S : Square (ι × κ)) (i j : ι) (x : Fin m→ι) : Square κ := Matrix.of fun u v=> |
| 23 | ∑ a : Fin m→κ, road P S (i,u) (j,v) fun n=>(x n,a n) |
| 24 | |
| 25 | omit [Fintype ι] [DecidableEq ι] [DecidableEq κ] in |
| 26 | lemma length_succ (P S : Square (ι × κ)) (i j : ι) (x : Fin (m+1)→ι) : string P S i j x=block P i (x 0) * string S S (x 0) j (Fin.tail x) := by |
| 27 | ext u v |
| 28 | rw [string,of_apply, sum_cons, Matrix.mul_apply]; apply Finset.sum_congr rfl; intro z _ |
| 29 | rw [string,of_apply,Finset.mul_sum] |
| 30 | apply Finset.sum_congr rfl; intro a _; rw [road,Fin.cons_zero] |
| 31 | congr 2 |
| 32 | |
| 33 | omit [Fintype ι] [DecidableEq ι] in |
| 34 | lemma unison {P S : Square (ι×κ)} (hq : Moves H) (h : Elation H A B) (hs : Elation H P S) (i j : ι) (x : Fin m→ι) : |
| 35 | string B S i j x=H i*string A P i j x*(H j).transpose := by |
| 36 | induction m generalizing A B i with |
| 37 | | zero=> |
| 38 | have hv (A P : Square (ι×κ)) : string A P i j x=block A i j := Matrix.ext fun i j=> by simp [string,block,road] |
| 39 | rw [hv,hv]; exact h .. |
| 40 | | succ n ih=> rw [length_succ,length_succ,h,ih hs]; exact Elation.rectangle hq .. |
| 41 | |
| 42 | variable {n : ℕ} |
| 43 | abbrev paints (κ : Type) (z : Letter ι n) := κ × (Fin (z.1+n)→κ) |
| 44 | |
| 45 | def hue (z : Letter ι n) (c : paints κ z) : Letter (ι×κ) n := |
| 46 | ⟨z.1,(z.2.1,c.1),fun i=>(z.2.2 i,c.2 i)⟩ |
| 47 | |
| 48 | def braid (f : Letter (ι × κ) n → ℝ) (z : Letter ι n) := ∑ i : paints κ z, f (hue z i) |
| 49 | |
| 50 | lemma braid_err (z : Letter ι 0) (A : Square (ι×κ)) (W : ι→Set ι) : |
| 51 | let S := -excess (all W) A |
| 52 | braid (errata (all W) A) z= - Matrix.trace (string S S z.2.1 z.2.1 z.2.2)/ ((z.1:ℝ)+1) := by |
| 53 | intro S; unfold braid Matrix.trace string; rw [Fintype.sum_prod_type] |
| 54 | simp only [errata,hue, Matrix.diag_apply, of_apply] |
| 55 | simp_rw [← Finset.sum_div, Finset.sum_neg_distrib]; rfl |
| 56 | |
| 57 | lemma braid_scroll (z : Letter ι 1) (A : Square (ι × κ)) (W : ι→Set ι) (t : ℝ) : |
| 58 | let f w := scroll (all W) A (hue z w).2.1 (hue z w).2.2 t |
| 59 | (∑ w : paints κ z, f w)= - Matrix.trace (string (pie (all W) A t) (-defect (all W) A t) z.2.1 z.2.1 z.2.2) := by |
| 60 | intro f; unfold Matrix.trace string; rw [Fintype.sum_prod_type] |
| 61 | simp_rw [f,scroll, Finset.sum_neg_distrib]; rfl |
| 62 | |
| 63 | lemma braid_page (z : Letter ι 1) (h : Priced D p (all W) A v C q) : |
| 64 | braid (page (all W) A) z=∫ u in Ioi 0, - Matrix.trace (string (pie (all W) A u) (-defect (all W) A u) z.2.1 z.2.1 z.2.2) := by |
| 65 | unfold braid page |
| 66 | rw [← integral_finsetSum _ (fun i _=> (h.scroll_paid (hue z i)).1)] |
| 67 | exact setIntegral_congr_fun measurableSet_Ioi fun u _=> braid_scroll z A W u |
| 68 | |
| 69 | def batch (f : ι × κ → ℝ) (i : ι) := ∑ j,f (i,j) |
| 70 | lemma braid_reg (i : ι) (h : Priced D p (all W) A v C q) : |
| 71 | batch (letterBase (all W) A) i=∫ u in Ioi 0, ((Fintype.card κ:ℝ)*attenuation u-Matrix.trace (block (pie (all W) A u) i i)) := by |
| 72 | unfold batch letterBase; rw [← integral_finsetSum _ (fun j _=> (h.regular_price (i,j)).1)] |
| 73 | simp_rw [Finset.sum_sub_distrib, Finset.sum_const,Finset.card_univ,nsmul_eq_mul]; rfl |
| 74 | |
| 75 | lemma grouped_same (h : Priced D p (all W) A v C q) (h' : Priced D p (all W) B v C q) (hv : Moves H) (hw : ∀ i,i∈W i) |
| 76 | (he : Elation H A B) : |
| 77 | batch (letterBase (all W) A)=batch (letterBase (all W) B) ∧ |
| 78 | braid (page (all W) A)=braid (page (all W) B) ∧ braid (errata (all W) A)=braid (errata (all W) B) := by |
| 79 | refine ⟨funext fun i=>?_,funext fun z=>?_,funext fun z=>?_⟩ |
| 80 | · rw [braid_reg _ h,braid_reg _ h']; refine setIntegral_congr_fun measurableSet_Ioi fun u hu=> ?_ |
| 81 | rw [caught W hw hv he h.gram u hu.out.le,Elation.relaxed hv] |
| 82 | · rw [braid_page z h,braid_page z h']; refine setIntegral_congr_fun measurableSet_Ioi fun u hu=>?_ |
| 83 | rw [unison hv (caught W hw hv he h.gram u hu.out.le) (circles W hw hv he h.gram u hu.out.le).opposite,Elation.relaxed hv] |
| 84 | have hs := (cursed W hw hv he h.gram).opposite |
| 85 | rw [braid_err z,braid_err z, unison hv hs hs, Elation.relaxed hv] |
| 86 | |
| 87 | section sales |
| 88 | variable {c : Lattice.Side} |
| 89 | open Lattice |
| 90 | |
| 91 | def dye (ι κ : Type) (n : ℕ) : (Σ i : Letter ι n, paints κ i) ≃ Letter (ι × κ) n where |
| 92 | toFun x:= hue x.1 x.2 |
| 93 | invFun x:= ⟨⟨x.1,x.2.1.1,fun i=>(x.2.2 i).1⟩, x.2.1.2,fun i=>(x.2.2 i).2⟩ |
| 94 | left_inv _:= rfl |
| 95 | right_inv _:= rfl |
| 96 | omit [Fintype ι] [Fintype κ] [DecidableEq ι] [DecidableEq κ] in |
| 97 | lemma displacements (p : ι→Site c) (l B m : ℕ) (r : Fin m→κ) (s : Fin m→ι) (i j : ι × κ) : |
| 98 | pocket (fun i : ι×κ=>p i.1) l B i j (fun x=>(s x,r x))=pocket p l B i.1 j.1 s := by |
| 99 | induction m generalizing i with |
| 100 | | zero=>rfl |
| 101 | | succ m ih=> rw [pocket,pocket]; have ht:= ih (Fin.tail r) (Fin.tail s) (s 0,r 0); rw [← ht]; rfl |
| 102 | |
| 103 | omit [Fintype ι] [DecidableEq ι] [DecidableEq κ] in |
| 104 | lemma reconciling {f : Letter (ι × κ) n → ℝ} (hf : Summable f) : |
| 105 | HasSum (braid f) (∑' i,f i) := by |
| 106 | exact (((dye ι κ n).hasSum_iff).mpr hf.hasSum).sigma (fun x=> hasSum_fintype _) |
| 107 | omit [Fintype ι] [DecidableEq ι] [DecidableEq κ] in |
| 108 | lemma genuine (f : Letter (ι × κ) n→ℝ) (p : ι→Site c) (B l : ℕ) (a s : ℝ) |
| 109 | (h : Ac.Hit (inventory (fun i : ι×κ=>p i.1) l B) B f a s) : Ac.Hit (inventory p l B) B (braid f) a s := by |
| 110 | intro x |
| 111 | let t := fun i : Letter (ι×κ) n=> if x∈inventory (fun i : ι×κ=>p i.1) l B i then f i*Real.exp (a*coverNumber B (inventory (fun i : ι×κ=>p i.1) l B i)) else 0 |
| 112 | have hf : SumBudget t s := h x |
| 113 | have hp : SumBudget (braid t) s := ⟨fun i=> Finset.sum_nonneg fun j _=> hf.1 _,(reconciling hf.2.1).summable, |
| 114 | (reconciling hf.2.1).tsum_eq.trans_le hf.2.2⟩ |
| 115 | convert hp using 2 with i |
| 116 | unfold braid t |
| 117 | have hh w : inventory (fun i : ι×κ=>p i.1) l B (hue i w)=inventory p l B i := displacements _ _ _ _ _ _ _ _ |
| 118 | simp_rw [hh]; split <;> simp only [*,Finset.sum_mul,Finset.sum_const_zero] |
| 119 | |
| 120 | omit [Fintype ι] [DecidableEq ι] [DecidableEq κ] in |
| 121 | lemma marginals {f g : Letter (ι×κ) n → ℝ} (h : ∀ i,|f i| ≤ g i) (i : Letter ι n) : |braid f i| ≤ braid g i := |
| 122 | (Finset.abs_sum_le_sum_abs ..).trans (Finset.sum_le_sum fun _ _=>h _) |
| 123 | |
| 124 | |
| 125 | end sales |
| 126 | end YM.AnalyticBridge.RelativeLogdet.Paint |
| 127 | |
| 128 | namespace YM.AnalyticBridge.RelativeLogdet.Physical |
| 129 | open Paint Function Set Matrix MeasureTheory FreeResolvent Next.SectorChange |
| 130 | open RG Wilson Pressure Tree Precision Lattice |
| 131 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius |
| 132 | variable {G : Gauge} {c f : Side} {S : StepData c f} {T : Tube G S} |
| 133 | {A : Stores S} (F : Forest S.ratio) (k : S.Choices) {V : Config G c} {x v C η b : ℝ} |
| 134 | (hT : Certified S T x v C η b) |
| 135 | include hT |
| 136 | |
| 137 | /-- The three letter data types, when used at the gauge-invariant value |
| 138 | level. Use `Paint.genuine` and `Paint.marginals` to retain the SAME hit |
| 139 | budget as for all micro letters. Must use all colors (not asserting each |
| 140 | summand braiding them is invariant). -/ |
| 141 | theorem gilded (z : Site c→ G.El) (hS : S.patch.Branches S.kernel G) (hp : A.flags=RG.flags (temp x) V) |
| 142 | {o : Clip} {s u M : ℝ} (ht : T.up.Bounds o s u M) : |
| 143 | let P:=AFull T A F x V k; let Q:=AFull T A F x (gauge z V) k; let W:=windows S x (G:=G) |
| 144 | batch (letterBase W P)=batch (letterBase W Q) ∧ |
| 145 | braid (page W P)=braid (page W Q) ∧ braid (errata W P)=braid (errata W Q) := by |
| 146 | intro P Q W |
| 147 | have he : A.flags= RG.flags (temp x) (gauge z V) := by simpa using hp |
| 148 | let bW : Bond f→Set (Bond f) := fun i=>{j | meeting S x i j} |
| 149 | have hh : Moves (clockface S z) := fun i=>banner_spins (G:=G) (z (S.ratio.parent i.1)) |
| 150 | have hx : ∀ i,i∈bW i := fun i => by -- no Colors needed |
| 151 | intro p hp q hq |
| 152 | have hi := meetings i hp; have hj := meetings i hq |
| 153 | apply (separation_triangle p (S.ratio.parent i.1) q).trans |
| 154 | rw [separation_comm p]; apply le_trans (Nat.add_le_add hi hj); have H:=hT.basis; omega |
| 155 | exact grouped_same (W:=bW) (hT.text A F k V hp |>.2.2.2) (hT.text A F k _ he |>.2.2.2) hh hx (gauge_elation z V k T hS x A F ht) |
| 156 | end YM.AnalyticBridge.RelativeLogdet.Physical |