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.Extra.WILSON_STARTUP.Gas |
| 2 | |
| 3 | /-! |
| 4 | # Packet hit tests including the larger exponent for Buys/little |
| 5 | |
| 6 | Input numerical reserve at THIS scale. Counts via full 2B balls and Ac.forest; |
| 7 | no volume dependence. Reusable with different cover exponent at markers. |
| 8 | -/ |
| 9 | noncomputable section |
| 10 | set_option autoImplicit false |
| 11 | namespace YM.WilsonStartup.Start |
| 12 | open Function Filter RG Wilson Lattice Design Work Ac Padded Ovens Ovens.Pipes |
| 13 | open scoped Topology Matrix.Norms.Frobenius Classical |
| 14 | variable {G : Gauge} {n : Side} {b : BudgetPoint} {c : Clip} {β σ κ a γ l : ℝ} |
| 15 | |
| 16 | def offer (b : BudgetPoint) (σ : ℝ) (i : Foot n) := if lives b i then Real.exp (-σ*(i.val.2.card:ℝ)) else 0 |
| 17 | def cash (n : Side) (b : BudgetPoint) (σ : ℝ) (i : ℕ) := if fixed (Foot n) i then offer b σ (name (Foot n) i) else 0 |
| 18 | |
| 19 | theorem cash_pos (i : ℕ) : 0 ≤ cash n b σ i := by |
| 20 | unfold cash offer; split_ifs <;> first | exact le_rfl | positivity |
| 21 | |
| 22 | theorem forced_money (h : Decent c b) (ho : 0 ≤ κ) (hz : 0 ≤ l) (ht : κ+σ ≤ l*gain b) (hβ : l ≤ β) |
| 23 | (i : ℕ) (U : Config G n) : |(payload c b G n β).forced i U| ≤ Real.exp (-κ)*cash n b σ i := by |
| 24 | have hb := cash_pos (b:=b) (σ:=σ) (n:=n) i |
| 25 | dsimp only [payload]; split |
| 26 | next hi => |
| 27 | unfold paid; split |
| 28 | next had => |
| 29 | rw [cash,if_pos hi,offer,if_pos had.1,← Real.exp_add,abs_of_pos (Real.exp_pos _),Real.exp_le_exp] |
| 30 | let D := inventory n i |
| 31 | change -β * charge c b D U ≤ -κ + -σ*(D.card:ℝ) |
| 32 | have he : D ⊆ flags b.threshold U := by |
| 33 | change (name (Foot n) i).val.2 ⊆ _; rw [← had.2]; exact Finset.inter_subset_right |
| 34 | have hp := charge_price c b h U D he |
| 35 | have hD : (1:ℝ) ≤ D.card := by exact_mod_cast Finset.card_pos.mpr (name (Foot n) i).property.1 |
| 36 | have hh := mul_le_mul_of_nonneg_left ht (by positivity : (0:ℝ) ≤ D.card) |
| 37 | have hl := mul_le_mul hβ hp (mul_nonneg (by positivity) (gain_pos _).le) (hz.trans hβ) |
| 38 | nlinarith |
| 39 | simp only [abs_zero]; positivity |
| 40 | change |(0:ℝ)| ≤ _; simp only [abs_zero]; positivity |
| 41 | |
| 42 | structure PacketCost (b : BudgetPoint) (σ a γ : ℝ) : Prop where |
| 43 | exponent : 0 ≤ a |
| 44 | room : ((b.B+b.B+1 : ℕ):ℝ)^4*γ ≤ 1 |
| 45 | bids : ((2*b.B+2*b.B+1 : ℕ):ℝ)^4*Real.exp ((a+1)*5^4-σ) ≤ γ |
| 46 | |
| 47 | theorem PacketCost.gamma (h : PacketCost b σ a γ) : 0 ≤ γ := le_trans (by positivity) h.bids |
| 48 | |
| 49 | theorem PacketCost.coins (h : PacketCost b σ a γ) : Ac.Hit (pad b (n:=n)) b.B (fun _ => Real.exp (-σ)) (a+1) γ := by |
| 50 | intro x |
| 51 | let D := pad b x |
| 52 | let f (y : Site n) := if x ∈ pad b y then Real.exp (-σ) * Real.exp ((a+1)*coverNumber b.B (pad b y)) else 0 |
| 53 | have hf (i) : 0 ≤ f i := by unfold f; split <;> first | rfl | positivity |
| 54 | refine ⟨hf, (hasSum_fintype f).summable,((hasSum_fintype f).tsum_eq).trans_le ?_⟩ |
| 55 | have hb : D.card ≤ (2*b.B+2*b.B+1)^4 := by simpa [D,pad] using Corona.halo_size ({x}:Support n) (2*b.B) |
| 56 | apply le_trans ?_ h.bids |
| 57 | calc |
| 58 | ∑ y, f y = ∑ y ∈ D, Real.exp ((a+1)* coverNumber b.B (pad b y) - σ) := by |
| 59 | unfold f |
| 60 | simp_rw [mem_pad,separation_comm _ x, ← Real.exp_add, neg_add_eq_sub] |
| 61 | rw [← Finset.sum_filter]; congr 1 |
| 62 | ext y; simp [D,mem_pad] |
| 63 | _ ≤ ∑ _∈D,Real.exp ((a+1)*5^4-σ) := by |
| 64 | apply Finset.sum_le_sum |
| 65 | have ha := h.exponent |
| 66 | intro y _; gcongr; exact_mod_cast pad_cost y |
| 67 | _ ≤ _ := by simp only [Finset.sum_const,nsmul_eq_mul]; gcongr; exact_mod_cast hb |
| 68 | |
| 69 | theorem PacketCost.hit (h : PacketCost b σ a γ) : Ac.Hit (extent n) b.B (cash n b σ) a (Real.exp γ-1) := by |
| 70 | intro x |
| 71 | let F (p : Foot n) := if x ∈ p.val.1 then offer b σ p * Real.exp (a*coverNumber b.B p.val.1) else 0 |
| 72 | refine Padded.budget (α:=Foot n) (g:=F) ?_ (fun p => ?_) ?_ |
| 73 | · intro i; unfold cash F; split_ifs <;> first | rfl | exact zero_mul _ |
| 74 | · unfold F offer; split_ifs <;> first | exact le_rfl | positivity |
| 75 | let D := Finset.univ.filter (lives b (n:=n)) |
| 76 | let H := roots (pad b) b.B (fun _ => Real.exp (-σ)) a x |
| 77 | have ht := Ac.forest (pad b) b.B h.exponent (fun _ => (Real.exp_pos _).le) h.coins h.room h.gamma x |
| 78 | have he (i : Foot n) (hi : i ∈ D) : F i = H i.val.2 := by |
| 79 | obtain ⟨-,hp : lives b i⟩ := Finset.mem_filter.mp hi |
| 80 | unfold F offer H roots; rw [if_pos hp,hp.2]; simp only [hp.1,true_and, Finset.prod_const,← Real.exp_nat_mul,region] |
| 81 | rw [mul_comm (-σ),mul_comm] |
| 82 | calc |
| 83 | _ = ∑ i ∈ D, F i := (Finset.sum_subset (Finset.subset_univ _) (fun p _ hp => by |
| 84 | unfold F offer |
| 85 | have hl : ¬ lives b p := fun he => hp (Finset.mem_filter.mpr ⟨Finset.mem_univ _,he⟩) |
| 86 | simp [hl])).symm |
| 87 | _ = ∑ i ∈ D.image (fun p => p.val.2), H i := by |
| 88 | rw [Finset.sum_image]; exact Finset.sum_congr rfl he |
| 89 | intro i hi j hj hh; have h1 := (Finset.mem_filter.mp hi).2.2; have h2 := (Finset.mem_filter.mp hj).2.2 |
| 90 | exact Subtype.ext (Prod.ext (h1.trans ((congr_arg (region b) hh).trans h2.symm)) hh) |
| 91 | _ ≤ _ := (ht.2.1.sum_le_tsum _ fun i _ => ht.1 i).trans ht.2.2 |
| 92 | |
| 93 | structure Loan (b : BudgetPoint) (l σ κ γ : ℝ) : Prop where |
| 94 | slope : 0 ≤ l |
| 95 | forced : 0 ≤ κ |
| 96 | allows : κ+σ ≤ l*gain b |
| 97 | packets : PacketCost b σ (b.supportExponent+1) γ |
| 98 | margin : ((b.B+b.B+1:ℕ):ℝ)^4*(Real.exp γ-1) ≤ 1 |
| 99 | |
| 100 | theorem Loan.certificate (h : Loan b l σ κ γ) (hc : Decent c b) (X : Set ℝ) (hx : ∀ β∈X, l ≤ β) : |
| 101 | ∃ v : Ovens.Label → ℝ,(∀ i, 0 ≤ v i) ∧ (∀ β ∈ X, ∀ i U, |
| 102 | |reach (payload c b G n β) i U| ≤ i.elim (fun _ => Real.exp (-κ)) (fun _ => 1)*v i) ∧ |
| 103 | Ac.Hit (dictionary G n).patch b.B v (b.supportExponent+1) (Real.exp γ-1) := by |
| 104 | let v := fun i : Ovens.Label => i.elim (cash n b σ) (fun _ => 0) |
| 105 | have hv (i) : 0 ≤ v i := by cases i; exact cash_pos _; exact le_rfl |
| 106 | refine ⟨v,hv,fun β hβ i U => ?_, fun x => ?_⟩ |
| 107 | · cases i |
| 108 | · exact forced_money hc h.forced h.slope h.allows (hx _ hβ) _ U |
| 109 | simp [payload,reach,v] |
| 110 | · let f := fun i : Ovens.Label => if x∈ (dictionary G n).patch i then v i * Real.exp |
| 111 | ((b.supportExponent+1) * coverNumber b.B ((dictionary G n).patch i)) else 0 |
| 112 | have h1 : SumBudget (f ∘ Sum.inl) (Real.exp γ-1) := h.packets.hit x |
| 113 | have h2 : HasSum (f ∘ Sum.inr) 0 := by |
| 114 | rw [show (f ∘ Sum.inr : ℕ → ℝ) = fun _ => 0 by funext i; simp [f,v]] |
| 115 | exact hasSum_zero |
| 116 | have hs := h1.2.1.hasSum.sum h2 |
| 117 | rw [add_zero] at hs |
| 118 | exact ⟨fun i => by dsimp only; split <;> first | exact le_rfl | exact mul_nonneg (hv i) (Real.exp_pos _).le, hs.summable,hs.tsum_eq.trans_le h1.2.2⟩ |
| 119 | |
| 120 | theorem Loan.buys (h : Loan b l σ κ γ) (hc : Decent c b) (hb : l ≤ β) : |
| 121 | (dictionary G n).Buys (payload c b G n β) b κ (Real.exp γ-1) := by |
| 122 | obtain ⟨v,hv,hV,hX⟩ := h.certificate (n:=n) (G:=G) hc {β} (by simpa using hb) |
| 123 | exact ⟨⟨sub_nonneg.mpr (Real.one_le_exp h.packets.gamma),h.forced,h.margin⟩,v,hv,hV β rfl,hX⟩ |
| 124 | |
| 125 | theorem Loan.little (h : Loan b l σ κ γ) (hc : Decent c b) (X : Set ℝ) (hx : ∀ β∈X, l ≤ β) : |
| 126 | (dictionary G n).little b (payload c b G n) X := by |
| 127 | obtain ⟨v,hv,hV,hX⟩ := h.certificate (n:=n) (G:=G) hc X hx |
| 128 | exact ⟨κ,_,v,h.margin, sub_nonneg.mpr (Real.one_le_exp h.packets.gamma),h.forced,hv,hV,hX⟩ |
| 129 | |
| 130 | theorem Loan.kernel (h : Loan b l σ κ γ) (hc : Decent c b) (hb : l ≤ β) : |
| 131 | (raw G n c b β).KBound b (Real.exp γ-1) := by |
| 132 | refine ⟨cash n b σ,fun i => ⟨cash_pos _,fun U => ?_⟩,fun x => ?_⟩ |
| 133 | · exact (forced_money hc h.forced h.slope h.allows hb i U).trans <| |
| 134 | mul_le_of_le_one_left (cash_pos _) (Real.exp_le_one_iff.mpr (by linarith only [h.forced])) |
| 135 | let f := fun i => if x ∈ extent n i then b.mass (extent n i) (cash n b σ i) else 0 |
| 136 | have hf i : 0 ≤ f i := by unfold f BudgetPoint.mass; split <;> first | exact le_rfl | exact mul_nonneg (Real.exp_pos _).le (cash_pos _) |
| 137 | have H := h.packets.hit (n:=n) x |
| 138 | have he i : f i ≤ (if x ∈ extent n i then cash n b σ i * Real.exp ((b.supportExponent+1)*coverNumber b.B (extent n i)) else 0) := by |
| 139 | unfold f; split |
| 140 | · rw [BudgetPoint.mass,mul_comm]; have := cash_pos (n:=n) (b:=b) (σ:=σ) i; gcongr; linarith |
| 141 | rfl |
| 142 | have H' := H.2.1.of_nonneg_of_le hf he |
| 143 | exact ⟨hf,H',(H'.tsum_le_tsum he H.2.1).trans H.2.2⟩ |
| 144 | end YM.WilsonStartup.Start |