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.Ac.Tree |
| 2 | import YM.Next.MULTISOURCE.Cargo |
| 3 | |
| 4 | /-! |
| 5 | # Merger bound for cutoff multi-products (volume/copy count independent). |
| 6 | One `κ` paid on the resulting forced source. |
| 7 | -/ |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.Multi |
| 12 | open RG Wilson Lattice Finset Function Marker |
| 13 | open scoped Topology Matrix.Norms.Frobenius BigOperators Classical |
| 14 | variable {n : Side} {V : Type} [DecidableEq V] [Fintype V] {G : Gauge} |
| 15 | |
| 16 | -- support exponent at this point plus two, only required on vacuum at startup |
| 17 | -- no assertion inferred from `Valid` |
| 18 | def Mint (P : Rep G n) (r κ : ℝ) := ∃ f : Pack n → ℝ, |
| 19 | (∀ i, 0 ≤ f i ∧ ∀ U, ‖incumbent P U i‖ ≤ f i) ∧ |
| 20 | ∀ x : Site n, (∑ i∈ univ.filter (fun i : Pack n => x∈i.zone), burn P.p r i.zone * f i) ≤ κ |
| 21 | |
| 22 | namespace Couples |
| 23 | |
| 24 | def liftFee (m : ℕ) := 2*((m:ℝ)+1)*Real.exp m |
| 25 | |
| 26 | lemma lift_pos (m : ℕ) : 0 < liftFee m := by unfold liftFee; positivity |
| 27 | |
| 28 | private lemma replete {ι : Type*} [DecidableEq (Finset ι)] (s : Finset ι) (f : ι→ℝ) (h : ∀ i,0≤ f i) (k m : ℕ) |
| 29 | (hk : 1 ≤ k) {κ : ℝ} (hh : 0 ≤ κ) (hv : κ ≤ 1) (he : (∑ i∈s,f i) ≤ k*m*κ) : |
| 30 | (∑ a∈ s.powerset.erase ∅,∏ i∈a,f i) ≤ κ*(liftFee m)^k := by |
| 31 | let z := (k:ℝ)*m*κ |
| 32 | have hx : (∏ i∈s,(1+f i)) ≤ Real.exp z := by |
| 33 | calc |
| 34 | _ ≤ ∏ i∈s,Real.exp (f i) := prod_le_prod (fun i _ => add_nonneg zero_le_one (h _)) (fun i _ => by |
| 35 | rw [add_comm]; exact Real.add_one_le_exp _) |
| 36 | _ ≤ _ := by rw [← Real.exp_sum]; exact Real.exp_monotone he |
| 37 | have hy : Real.exp z - 1 ≤ z*Real.exp z := by |
| 38 | have hx := Real.add_one_le_exp (-z) |
| 39 | rw [Real.exp_neg, ← one_div, le_div_iff₀ (Real.exp_pos _)] at hx |
| 40 | linarith |
| 41 | calc |
| 42 | _ ≤ Real.exp z-1 := by |
| 43 | apply le_sub_iff_add_le.mpr |
| 44 | rw [show (1:ℝ) = ∏ i∈∅,f i from rfl, sum_erase_add _ _ (by simp), ← prod_one_add]; exact hx |
| 45 | _ ≤ κ*(((k:ℝ)*m)* (Real.exp m)^k) := by |
| 46 | rw [← Real.exp_nat_mul] |
| 47 | apply hy.trans |
| 48 | have hp := Real.exp_monotone (mul_le_of_le_one_right (show (0:ℝ) ≤ (k:ℝ)*m by positivity) hv) |
| 49 | exact (mul_le_mul_of_nonneg_left hp (show 0≤z from mul_nonneg (by positivity) hh)).trans_eq (by unfold z; ring) |
| 50 | _ ≤ _ := by |
| 51 | unfold liftFee; simp only [mul_pow] |
| 52 | gcongr |
| 53 | · exact_mod_cast Nat.lt_two_pow_self (n:=k) |>.le |
| 54 | exact (le_add_of_nonneg_right zero_le_one).trans (le_self_pow₀ (by simp) (by omega)) |
| 55 | |
| 56 | omit [DecidableEq V] in |
| 57 | private lemma tariff (Y : V → Support n) (F : BudgetPoint) (K : Pack n → ℝ) (p : V→ℝ) {r : ℝ} (hr : 0≤r) |
| 58 | {j : Recipe n V} (h : j∈ boxes Y) (hk : ∀ i,0≤K i) (hp : ∀ i,0≤p i) : |
| 59 | burn F r (fused Y j).zone * (∏ i∈j, Sum.elim K p i) ≤ |
| 60 | (∏ i∈j.toLeft, burn F r i.zone*K i)*∏ i∈j.toRight,burn F r (Y i)*p i := by |
| 61 | have he : burn F r (ground Y j) ≤ ∏ i∈j, burn F r (span Y i) := by |
| 62 | unfold burn |
| 63 | rw [← Real.exp_sum] |
| 64 | apply Real.exp_monotone; rw [← Finset.mul_sum] |
| 65 | refine mul_le_mul_of_nonneg_left ?_ (add_nonneg F.exponent_pos.le hr) |
| 66 | exact_mod_cast Ac.cover (span Y) F.B (((owns ..).mp h).2.2) |
| 67 | rw [merged_zone Y h] |
| 68 | apply le_trans (mul_le_mul_of_nonneg_right he (Finset.prod_nonneg (fun i _ => by cases i; apply hk; apply hp))) |
| 69 | rw [← Finset.prod_mul_distrib, split_product j _]; exact le_rfl |
| 70 | |
| 71 | private lemma covers_fee {I J : Type*} [DecidableEq J] (D : Finset I) (T : I → Finset J) |
| 72 | (f : J → ℝ) (hf : ∀ i,0≤f i) : (∑ i∈D.biUnion T,f i) ≤ ∑ i∈ D,∑ j∈T i,f j := by |
| 73 | let g i j := if j∈T i then f j else 0 |
| 74 | calc |
| 75 | _ ≤ ∑ j∈ D.biUnion T, ∑ i∈ D,g i j := by |
| 76 | apply sum_le_sum; intro i hi |
| 77 | obtain ⟨j,hj,h⟩ := mem_biUnion.mp hi |
| 78 | refine le_trans (le_of_eq (show f i=g j i from (if_pos h).symm)) (single_le_sum (f:=fun j => g j i) ?_ hj) |
| 79 | intro j hj; unfold g; split; exact hf _; exact le_rfl |
| 80 | _ = _ := by |
| 81 | rw [sum_comm] |
| 82 | refine sum_congr rfl fun i hi => ?_ |
| 83 | unfold g; rw [← sum_filter, show ((D.biUnion T).filter fun j => j∈T i)=T i from ?_] |
| 84 | ext j; rw [mem_filter]; exact ⟨And.right,fun h => ⟨mem_biUnion.mpr ⟨_,hi,h⟩,h⟩⟩ |
| 85 | |
| 86 | private lemma allows (Y : V → Support n) (T : Finset V) {m : ℕ} {κ : ℝ} |
| 87 | (h : ∀ i,(Y i).card ≤ m) (hT : T.Nonempty) (hv : 0 ≤ κ) (hk : κ ≤ 1) (f : Pack n → ℝ) |
| 88 | (he : ∀ i,0 ≤ f i) (ht : ∀ x : Site n,(∑ i∈univ.filter (fun i : Pack n => x∈ i.zone),f i) ≤ κ) : |
| 89 | (∑ j∈ boxes Y with j.toRight=T, ∏ i∈j.toLeft,f i) ≤ κ*(liftFee m)^T.card := by |
| 90 | let B := (boxes Y).filter fun j => j.toRight=T |
| 91 | let X := T.biUnion Y |
| 92 | let A := X.biUnion fun x => univ.filter (fun i : Pack n => x∈i.zone) |
| 93 | have hu : (∑ i∈A,f i) ≤ T.card*m*κ := by |
| 94 | calc |
| 95 | _ ≤ ∑ x∈X,∑ i∈univ.filter (fun i : Pack n => x∈i.zone),f i := by |
| 96 | exact covers_fee X _ f he |
| 97 | _ ≤ ∑ x∈X, κ := sum_le_sum fun _ _ => ht _ |
| 98 | _ ≤ _ := by |
| 99 | rw [sum_const,nsmul_eq_mul]; gcongr |
| 100 | have hh : X.card ≤ T.card*m := card_biUnion_le.trans (by simpa using sum_le_sum (s:=T) (fun j _ => h j)) |
| 101 | exact_mod_cast hh |
| 102 | have hh : B.image Finset.toLeft ⊆ A.powerset.erase ∅ := by |
| 103 | intro i hi; obtain ⟨j,hJ,rfl⟩ := Finset.mem_image.mp hi |
| 104 | obtain ⟨hb,hj⟩ := mem_filter.mp hJ; refine mem_erase.mpr ⟨((owns ..).mp hb).1.ne_empty, mem_powerset.mpr ?_⟩ |
| 105 | intro i hi; obtain ⟨v,hv,H⟩ := all_hit Y hb (by rwa [hj]) i hi |
| 106 | obtain ⟨x,hx,ht⟩ := Finset.not_disjoint_iff.mp H |
| 107 | exact mem_biUnion.mpr ⟨x,Finset.mem_biUnion.mpr ⟨v,hj ▸ hv,hx⟩,mem_filter.mpr ⟨mem_univ _,ht⟩⟩ |
| 108 | apply le_trans _ (replete A f he T.card m (card_pos.mpr hT) hv hk hu) |
| 109 | refine le_trans (le_of_eq (sum_image (f:=fun s : Finset (Pack n) => ∏ i∈s,f i) ?_).symm) |
| 110 | (sum_le_sum_of_subset_of_nonneg hh fun i _ _ => prod_nonneg fun j _ => he j) |
| 111 | intro i hi j hj H; exact (parts_word i).symm.trans (Eq.trans (by rw [H, (mem_filter.mp hi).2, |
| 112 | (mem_filter.mp hj).2]) (parts_word j)) |
| 113 | |
| 114 | lemma merge_bound (P : Rep G n) (Y : V → Support n) (T : Finset V) (hT : T.Nonempty) |
| 115 | {r κ : ℝ} (hr : 0≤r) (hp : 0 ≤ κ) (hk : κ ≤ 1) (hm : Mint P r κ) (m : ℕ) (hX : ∀ i,(Y i).card ≤ m) |
| 116 | (F : V → Config G n → ℂ) (p : V → ℝ) (h : ∀ i,0≤p i) (H : ∀ i U, ‖F i U‖ ≤ p i) : |
| 117 | ∃ a : Pack n → ℝ, (∑ i,burn P.p r i.zone * a i) ≤ κ*∏ i∈T,(liftFee m * (burn P.p r (Y i)*p i)) ∧ |
| 118 | ∀ i,0≤a i ∧ ∀ U,‖payload Y P F T i U‖ ≤ a i := by |
| 119 | obtain ⟨K,hK,hG⟩ := hm |
| 120 | let D := (boxes Y).filter fun i => i.toRight=T |
| 121 | let L := Sum.elim K p |
| 122 | let w (j : Recipe n V) := ∏ i∈j,L i |
| 123 | have hv i : 0 ≤ w i := prod_nonneg fun j _ => (by cases j; apply (hK _).1; exact h _) |
| 124 | let a (i : Pack n) := ∑ j∈ D with fused Y j=i, w j |
| 125 | refine ⟨a,?_,fun i => ⟨sum_nonneg fun j _ => hv j,fun U => ?_⟩⟩ |
| 126 | · let q i := burn P.p r (Pack.zone i)* K i |
| 127 | let v i := burn P.p r (Y i)*p i |
| 128 | have he : 0 ≤ ∏ i∈T,v i := prod_nonneg fun i _ => mul_nonneg (burn_pos ..).le (h i) |
| 129 | calc |
| 130 | _ = ∑ j∈D,burn P.p r (fused Y j).zone*w j := by |
| 131 | rw [← sum_fiberwise D (fused Y)]; apply sum_congr rfl; intro i _ |
| 132 | unfold a; rw [Finset.mul_sum] |
| 133 | exact sum_congr rfl fun j hj => by rw [(mem_filter.mp hj).2] |
| 134 | _ ≤ ∑ j∈D,(∏ i∈j.toLeft,q i)*(∏ i∈T,v i) := by |
| 135 | apply sum_le_sum; intro i hi |
| 136 | rw [← (mem_filter.mp hi).2]; exact tariff Y _ K p hr (mem_filter.mp hi).1 (fun i => (hK i).1) h |
| 137 | _ ≤ _ := by |
| 138 | rw [← Finset.sum_mul] |
| 139 | refine (mul_le_mul_of_nonneg_right (allows Y T hX hT hp hk q (fun i => mul_nonneg (burn_pos ..).le (hK i).1) hG) he).trans_eq ?_ |
| 140 | conv_rhs => rw [prod_mul_distrib,prod_const] |
| 141 | exact mul_assoc .. |
| 142 | · unfold payload; apply le_trans (norm_sum_le ..) |
| 143 | unfold a |
| 144 | rw [show ((trays Y i).filter fun x => x.toRight=T)=D.filter (fun x => fused Y x=i) by |
| 145 | ext x; simp only [trays,mem_filter,D,and_right_comm]] |
| 146 | apply Finset.sum_le_sum |
| 147 | intro j hi; unfold earning; split |
| 148 | · rw [norm_prod]; apply Finset.prod_le_prod (fun _ _ => norm_nonneg _); intro x _ |
| 149 | cases x; exact (hK _).2 U; exact H _ U |
| 150 | rw [norm_zero]; exact hv j |
| 151 | end Couples |
| 152 | end YM.Multi |