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 Mathlib.Analysis.Normed.Group.Tannery |
| 2 | import YM.Marker.Console |
| 3 | |
| 4 | /-! |
| 5 | # Switching sources |
| 6 | |
| 7 | Real sector-sum lemmas in this workplace used at nilpotent weights, via |
| 8 | switching. For finite index set I, g∈ Array gives values of a polynomial |
| 9 | xᵢ²=t*xᵢ at every tuple of 0/t's. Arrays determine and are determined by these |
| 10 | values at t>0. To use multilinear history terms (t=0) we always check weighted |
| 11 | budgets independent of t and continuity. Value solves scalar tests at every |
| 12 | point, not dividing by a density. In particular root prices will carry a sum |
| 13 | over coefficient costs already before summing over lattice fields. Inspired |
| 14 | by Lotus/Curtail differentiating real series for one mark. |
| 15 | -/ |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | namespace YM.Merge.Switch |
| 19 | open Function Set Finset Filter |
| 20 | open scoped Topology BigOperators Classical |
| 21 | variable {ι U A : Type} [Fintype ι] |
| 22 | |
| 23 | abbrev Score (ι : Type) := Finset ι → ℝ |
| 24 | abbrev Ways (ι : Type) := ℝ → Score ι |
| 25 | |
| 26 | def value (x : ℝ) (g : Score ι) (r : Finset ι) := ∑ i∈r.powerset,x^i.card*g i |
| 27 | |
| 28 | attribute [local instance] Classical.propDecidable |
| 29 | |
| 30 | local notation "α" => 𝓝[>] (0:ℝ) |
| 31 | lemma approached : ∀ᶠ x in α, 0<x ∧ x ≤ 1 := inter_mem self_mem_nhdsWithin (mem_nhdsWithin_of_mem_nhds (ge_mem_nhds zero_lt_one)) |
| 32 | |
| 33 | omit [Fintype ι] in |
| 34 | lemma entire {x:ℝ} (hx : 0<x) : Injective (value (ι:=ι) x) := by |
| 35 | intro g h he; funext p |
| 36 | induction p using Finset.strongInductionOn with |
| 37 | | _ p ih => |
| 38 | have h₁:=congr_fun he p; have h₂ : ∀ u∈ (p.powerset.erase p),g u=h u:= fun u hu=> ih u (Finset.ssubset_iff_subset_ne.mpr ⟨mem_powerset.mp (mem_of_mem_erase hu),ne_of_mem_erase hu⟩) |
| 39 | unfold value at h₁ |
| 40 | have hz : p∈p.powerset:=mem_powerset.mpr (Finset.Subset.refl p) |
| 41 | rw [← add_sum_erase _ _ hz,← add_sum_erase _ (fun i : Finset ι=>x^i.card*h i) hz] at h₁ |
| 42 | exact mul_left_cancel₀ (pow_pos hx _|>.ne') (add_right_cancel (show _ from h₁.trans (congr_arg (_+·) (sum_congr rfl fun i hi=>congr_arg (_*·) (h₂ i hi|>.symm))))) |
| 43 | |
| 44 | def decode (f : Ways ι) (x : ℝ) := Function.invFun (value (ι:=ι) x) (f x) |
| 45 | |
| 46 | def jet (f : Ways ι) (v: Finset ι) : ℝ:= limUnder α fun x=>decode f x v |
| 47 | |
| 48 | structure Models (f : Ways ι) (g : Ways ι) : Prop where |
| 49 | current (x:ℝ) (hx : x∈Set.Icc (0:ℝ) 1): value x (g x)= f x |
| 50 | converge (v): Tendsto (fun x=>g x v) α (𝓝 (g 0 v)) |
| 51 | |
| 52 | def high (b : Score ι):=∑ i,b i |
| 53 | |
| 54 | def Bounded (g : Ways ι)(b : Score ι):=∀ x∈Set.Icc (0:ℝ) 1,∀ i, ‖g x i‖ ≤ b i |
| 55 | |
| 56 | def Paid (f : U → Ways ι) (c : ℝ) := ∃ b : Score ι,(∀ i, 0≤b i) ∧ high b≤ c ∧ ∀ u,∃ g : Ways ι, Models (f u) g ∧ Bounded g b |
| 57 | |
| 58 | omit [Fintype ι] in |
| 59 | lemma Models.exact {f g : Ways ι}(H : Models f g): jet f=g 0:=funext fun i=> by |
| 60 | unfold jet |
| 61 | have he : (fun x=>g x i)=ᶠ[α] fun x=>decode f x i := approached.mono fun x hx=> by |
| 62 | unfold decode; dsimp only; rw [← H.current x ⟨hx.1.le,hx.2⟩,leftInverse_invFun (entire hx.1)] |
| 63 | exact ((H.converge i).congr' he).limUnder_eq |
| 64 | |
| 65 | variable {f g : U→ Ways ι} {a b : ℝ} |
| 66 | |
| 67 | lemma Paid.rocket (h : Paid f a):0≤a:=le_trans (sum_nonneg fun i _=>h.choose_spec.1 i) h.choose_spec.2.1 |
| 68 | lemma Paid.weaken (h : Paid f a)(he:a≤b) : Paid f b:= |
| 69 | ⟨_,h.choose_spec.1,h.choose_spec.2.1.trans he,h.choose_spec.2.2⟩ |
| 70 | |
| 71 | |
| 72 | |
| 73 | lemma box {x : ℝ}(hx:x∈ Icc (0:ℝ) 1) {b p : Score ι} (h:∀ i,‖p i‖ ≤ b i)(r:Finset ι) : ‖value x p r‖≤ high b:=by |
| 74 | apply (norm_sum_le ..).trans |
| 75 | refine le_trans (b:=∑ i∈r.powerset,b i) ?_ (sum_le_sum_of_subset_of_nonneg (subset_univ _) fun i _ _=>(norm_nonneg _).trans (h i)) |
| 76 | apply sum_le_sum; intro i _; rw [norm_mul,norm_pow,Real.norm_of_nonneg hx.1]; exact (mul_le_of_le_one_left (norm_nonneg _) (pow_le_one₀ hx.1 hx.2)).trans (h i) |
| 77 | lemma Paid.tasting (h : Paid f a)(u:U)(x : ℝ)(hx:x∈ Icc (0:ℝ) 1)(r : Finset ι) : ‖f u x r‖ ≤ a:=by |
| 78 | obtain ⟨b,hH,hB,h⟩:=h; obtain ⟨g,h,hg⟩:= h u |
| 79 | rw [← h.current x hx]; exact (box hx (hg x hx) r).trans hB |
| 80 | |
| 81 | lemma value_subset (x : ℝ)(p : Score ι) (r : Finset ι) : value x p r=∑ i,if i⊆r then x^i.card*p i else 0:=by rw [← Finset.sum_filter]; unfold value; congr; ext; simp |
| 82 | |
| 83 | omit [Fintype ι] in |
| 84 | lemma Models.add {f g f' g':Ways ι}(h:Models f f')(he:Models g g'): Models (f+g) (f'+g'):=by |
| 85 | constructor |
| 86 | · intro x hx; change value x (f' x+g' x)= f x+g x; rw [← h.current x hx,← he.current x hx]; ext i; simp only [value,Pi.add_apply,mul_add, Finset.sum_add_distrib] |
| 87 | intro v; exact (h.converge v).add (he.converge v) |
| 88 | lemma Paid.add (h:Paid f a)(he:Paid g b) : Paid (f+g) (a+b):=by |
| 89 | obtain ⟨A,hA,h,H⟩:=h; obtain ⟨B,hB,h',H'⟩:=he |
| 90 | refine ⟨A+B,fun i=> add_nonneg (hA i) (hB i),?_,fun u=>?_⟩ |
| 91 | · unfold high; simp only [Pi.add_apply,sum_add_distrib]; exact add_le_add h h' |
| 92 | obtain ⟨g,h,k⟩:= H u; obtain ⟨g',h',k'⟩:= H' u |
| 93 | exact ⟨g+g',h.add h',fun x hx i =>(norm_add_le _ _).trans (add_le_add (k x hx i) (k' x hx i))⟩ |
| 94 | |
| 95 | -- literal unit / monomial placements |
| 96 | |
| 97 | def click (i:Finset ι)(c : ℝ)(x : ℝ): Score ι:=fun v=> if i⊆v then x^i.card*c else 0 |
| 98 | def bench (i:Finset ι)(c : ℝ): Score ι:=fun v=> if v=i then c else 0 |
| 99 | omit [Fintype ι] in |
| 100 | lemma modelClick (i:Finset ι)(c : ℝ) : Models (click i c) (fun _=>bench i c) :=by |
| 101 | refine ⟨fun x _=> funext fun v=> ?_,fun _=>tendsto_const_nhds⟩ |
| 102 | unfold value click bench; split |
| 103 | next h=> |
| 104 | rw [sum_eq_single i]; · simp |
| 105 | · intro b _ h; simp [h] |
| 106 | exact fun H=>False.elim (H (mem_powerset.mpr h)) |
| 107 | next h=> apply Finset.sum_eq_zero; intro j hj; rw [if_neg (show j≠i from fun he=>h (he ▸ mem_powerset.mp hj)),mul_zero] |
| 108 | lemma paidClick (i:Finset ι){p:U→ℝ}{b:ℝ}(h:0≤b)(he:∀ u, ‖p u‖ ≤ b) : Paid (fun u=>click i (p u)) b:= by |
| 109 | refine ⟨bench i b,fun j=>?_,?_,fun u=>⟨_,modelClick i _,?_⟩⟩ |
| 110 | · unfold bench; split; exact h; rfl |
| 111 | · simp only [high,bench,Finset.sum_ite_eq',Finset.mem_univ, ↓reduceIte]; rfl |
| 112 | intro x hx j; unfold bench; dsimp only; split; exact he u; rw [norm_zero] |
| 113 | lemma constant (p : U→ℝ)(h:0≤a)(hp:∀ u,‖p u‖≤a) : Paid (ι:=ι) (fun u _ _=>p u) a := by |
| 114 | convert! paidClick (∅:Finset ι) h hp using 1; ext; simp [click] |
| 115 | lemma paidZero : Paid (0 : U→Ways ι) 0:= constant (p:=fun _=>0) le_rfl (fun _=>(norm_zero (E:=ℝ)).le) -- maybe |
| 116 | lemma Paid.sum (u : Finset A)(g:A→U→ Ways ι)(a:A→ℝ) (h:∀ i∈u,Paid (g i) (a i)): Paid (∑ i∈u,g i) (∑ i∈u,a i) := by |
| 117 | induction u using Finset.induction with |
| 118 | | empty => simp only [sum_empty]; exact paidZero |
| 119 | | insert i u hi ih=> rw [sum_insert hi,sum_insert hi]; exact Paid.add (h _ (mem_insert_self ..)) (ih fun i h' => h i (mem_insert_of_mem h')) |
| 120 | end YM.Merge.Switch |