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.Table |
| 2 | import YM.Corona.Halo |
| 3 | import YM.RG.Activities |
| 4 | /-! FHtree distinct-address production including full cover exponent. -/ |
| 5 | set_option autoImplicit false |
| 6 | noncomputable section |
| 7 | namespace YM.Ac |
| 8 | open Relation Lattice Corona Finset RG |
| 9 | open scoped Classical |
| 10 | variable {ι : Type*} [DecidableEq ι] {n : Side} (X : ι → Support n) (M : ℕ) |
| 11 | |
| 12 | def Hit (f : ι → ℝ) (a γ : ℝ) := ∀ x : Site n, |
| 13 | SumBudget (fun i => if x∈X i then f i * Real.exp (a*coverNumber M (X i)) else 0) γ |
| 14 | |
| 15 | omit [DecidableEq ι] in |
| 16 | lemma demand {f : ι → ℝ} {a γ} (hh : Hit X M f a γ) |
| 17 | (Y : Support n) (D : Finset ι) : ∑ i∈buds X D Y,f i*Real.exp (a*coverNumber M (X i)) ≤ Y.card*γ := by |
| 18 | let w := fun i => f i*Real.exp (a*coverNumber M (X i)) |
| 19 | let p := fun x i => if x∈ X i then w i else 0 |
| 20 | calc |
| 21 | _ ≤ ∑ i∈buds X D Y, ∑ x∈Y,p x i := by |
| 22 | apply sum_le_sum; intro i hi; obtain ⟨x,h1,h2⟩ := ((alive X D Y).mp hi).2 |
| 23 | apply le_trans _ (single_le_sum (f:=fun k => p k i) (fun x _ => (hh x).1 i) h1) |
| 24 | simp [p,w,h2] |
| 25 | _ ≤ Y.card*γ := by |
| 26 | rw [sum_comm]; apply le_trans _ (le_of_eq (show ∑ _ ∈ Y, γ = _ by simp)); apply sum_le_sum; intro x _ |
| 27 | exact ((hh x).2.1.sum_le_tsum (buds X D Y) (fun i _ => (hh x).1 i)).trans (hh x).2.2 |
| 28 | |
| 29 | private lemma step {f : ι → ℝ} {a γ} (hf : ∀ i, 0 ≤ f i) (hh : Hit X M f (a+1) γ) |
| 30 | (D : Finset ι) (Y : Support n) (H : ∀ P, P ⊂ D → ∀ y, |
| 31 | film X P y (fun i => f i * Real.exp (a*coverNumber M (X i))) ≤ Real.exp (coverNumber M y)) : |
| 32 | film X D Y (fun i => f i * Real.exp (a*coverNumber M (X i))) ≤ Real.exp (Y.card*γ) := by |
| 33 | let p := fun i => f i * Real.exp (a*coverNumber M (X i)) |
| 34 | let g := fun i => f i * Real.exp ((a+1)*coverNumber M (X i)) |
| 35 | have hy (i) : 0≤p i := mul_nonneg (hf _) (Real.exp_pos _).le |
| 36 | apply (lookup X D Y p hy).trans |
| 37 | calc |
| 38 | _ ≤ ∏ i∈buds X D Y, Real.exp (g i) := by |
| 39 | apply prod_le_prod |
| 40 | · intro i _; unfold film; exact add_nonneg zero_le_one (mul_nonneg (hy i) (sum_nonneg fun s _ => prod_nonneg fun j _ => hy j)) |
| 41 | intro i hi |
| 42 | apply le_trans _ (Real.add_one_le_exp _) |
| 43 | rw [add_comm]; gcongr |
| 44 | exact (mul_le_mul_of_nonneg_left (H _ (erase_ssubset ((alive X D Y).mp hi).1) (X i)) (hy i)).trans (le_of_eq (by |
| 45 | simp only [p,g, add_mul, one_mul, Real.exp_add,mul_assoc])) |
| 46 | _ ≤ _ := by rw [← Real.exp_sum, Real.exp_le_exp]; exact demand X M hh Y D |
| 47 | |
| 48 | private lemma all_pack {f : ι → ℝ} {a γ} (hf : ∀ i, 0 ≤ f i) (hh : Hit X M f (a+1) γ) (hp : (M+M+1:ℕ)^4*(γ:ℝ) ≤ 1) |
| 49 | (hG : 0≤γ) (D : Finset ι) (Y : Support n) : |
| 50 | film X D Y (fun i => f i * Real.exp (a*coverNumber M (X i))) ≤ Real.exp (coverNumber M Y) := by |
| 51 | induction D using Finset.strongInduction generalizing Y with |
| 52 | | H s hs => |
| 53 | apply (step X M hf hh s Y hs).trans |
| 54 | rw [Real.exp_le_exp] |
| 55 | have hy : (Y.card:ℝ) ≤ coverNumber M Y*((M+M+1:ℕ):ℝ)^4 := by exact_mod_cast pays Y M |
| 56 | have H1 := mul_le_mul_of_nonneg_left hp (show (0:ℝ) ≤ coverNumber M Y by positivity) |
| 57 | exact (mul_le_mul_of_nonneg_right hy hG).trans (by nlinarith only [H1]) |
| 58 | |
| 59 | lemma cover {s : Finset ι} (hs : Spark X s) : coverNumber M (s.biUnion X) ≤ ∑ i∈s,coverNumber M (X i) := by |
| 60 | classical |
| 61 | have h : ∀ k : ℕ, k+1≤ s.card → ∃ u⊆s,u.card=k+1 ∧ coverNumber M (u.biUnion X) ≤ ∑ i∈u,coverNumber M (X i) := by |
| 62 | intro k; induction k with |
| 63 | | zero => |
| 64 | intro _; obtain ⟨i,hi⟩ := hs.1; exact ⟨{i},by simp [hi],by simp,by simp⟩ |
| 65 | | succ k IH => |
| 66 | intro hh |
| 67 | obtain ⟨u,h1,h2,h3⟩ := IH (by omega) |
| 68 | obtain ⟨i,hi⟩ := Finset.card_pos.mp (show 0<u.card by omega); obtain ⟨j,hj,hx⟩ := exists_mem_notMem_of_card_lt_card (show u.card<s.card by omega) |
| 69 | have H : ∀ j, chain X s i j → j∉u → ∃ t∈s,t∉u ∧ meets X t (u.biUnion X) := by |
| 70 | intro b hb; induction hb with |
| 71 | | refl => exact fun H => absurd hi H |
| 72 | | @tail a b _ ht I => |
| 73 | intro h; by_cases hn : a∈u |
| 74 | · obtain ⟨q,hq,hp⟩ := ht.2.2; exact ⟨b,ht.2.1,h,q,mem_biUnion.mpr ⟨a,hn,hq⟩,hp⟩ |
| 75 | exact I hn |
| 76 | obtain ⟨t,ht,hz,x,hp,hq⟩ := H j (hs.2 i (h1 hi) j hj) hx |
| 77 | refine ⟨insert t u,insert_subset ht h1,by simp only [card_insert_of_notMem hz,h2],?_⟩ |
| 78 | rw [sum_insert hz,biUnion_insert] |
| 79 | exact (meets_sum hq hp M).trans (Nat.add_le_add_left h3 _) |
| 80 | obtain ⟨a,ha⟩ := Nat.exists_eq_add_one.mpr (Finset.card_pos.mpr hs.1) |
| 81 | obtain ⟨u,h1,h2,h3⟩ := h a ha.ge |
| 82 | rwa [Finset.eq_of_subset_of_card_le h1 (ha ▸ h2.ge)] at h3 |
| 83 | |
| 84 | def roots (f : ι → ℝ) (a : ℝ) (x : Site n) := fun s : Finset ι => if Spark X s ∧ x∈s.biUnion X then |
| 85 | Real.exp (a*coverNumber M (s.biUnion X)) * ∏ i∈s,f i else 0 |
| 86 | |
| 87 | /-- NONrepeating tree hit sums: actual Countably many labels, includes native cover price. |
| 88 | Marking lemma etc separate. -/ |
| 89 | lemma forest {f : ι → ℝ} {a γ} (ha : 0≤ a) (hf : ∀ i, 0 ≤ f i) (hh : Hit X M f (a+1) γ) |
| 90 | (hp : (M+M+1:ℕ)^4*(γ:ℝ) ≤ 1) (hG : 0≤γ) (x : Site n) : |
| 91 | SumBudget (roots X M f a x) (Real.exp γ-1) := by |
| 92 | have he (i : Finset ι) : 0≤roots X M f a x i := by |
| 93 | unfold roots; split |
| 94 | · exact mul_nonneg (Real.exp_pos _).le (prod_nonneg fun i _ => hf i) |
| 95 | exact le_rfl |
| 96 | let Y := ({x} : Support n) |
| 97 | have hy (s : Finset (Finset ι)) : (∑ i∈s,roots X M f a x i) ≤ Real.exp γ-1 := by |
| 98 | let A := s.biUnion id |
| 99 | let F := (pouch X A Y) |
| 100 | let v := fun i => f i * Real.exp (a*coverNumber M (X i)) |
| 101 | let g := fun p : Finset ι => ∏ i∈p,v i |
| 102 | let u := s.filter (fun p => Spark X p ∧ x∈p.biUnion X) |
| 103 | have hU := step X M hf hh A Y fun P _ y => all_pack X M hf hh hp hG P y |
| 104 | have hC : ∑ p∈F.erase ∅,g p ≤ Real.exp γ-1 := by |
| 105 | have hs : (∅:Finset ι) ∈ F := (op _ _ _).mpr ⟨empty_subset _,fun _ hi => absurd hi (notMem_empty _)⟩ |
| 106 | rw [le_sub_iff_add_le, show (1:ℝ) = g ∅ by simp [g], sum_erase_add F _ hs] |
| 107 | simpa only [F, g,v,film,Y, card_singleton, Nat.cast_one, one_mul] using hU |
| 108 | calc |
| 109 | _ = ∑ i ∈ u,roots X M f a x i := by |
| 110 | symm; apply sum_subset (filter_subset ..) |
| 111 | intro s hs hh'; have hj : ¬ (Spark X s ∧ x∈s.biUnion X) := fun H => hh' (mem_filter.mpr ⟨hs,H⟩) |
| 112 | exact if_neg hj |
| 113 | _ ≤ ∑ i ∈ u, g i := by |
| 114 | refine sum_le_sum fun i hi => ?_ |
| 115 | have h := (mem_filter.mp hi).2 |
| 116 | unfold roots; rw [if_pos h]; simp only [g,v,prod_mul_distrib,← Real.exp_sum,← mul_sum] |
| 117 | rw [mul_comm]; gcongr |
| 118 | · exact prod_nonneg fun i _ => hf i |
| 119 | exact_mod_cast cover X M h.1 |
| 120 | _ ≤ _ := by |
| 121 | apply le_trans _ hC; apply sum_le_sum_of_subset_of_nonneg |
| 122 | · intro j hj; obtain ⟨hj',hr,hp⟩ := mem_filter.mp hj; obtain ⟨b,h1,h2⟩ := mem_biUnion.mp hp |
| 123 | refine mem_erase.mpr ⟨hr.1.ne_empty,(op _ _ _).mpr ⟨fun k hk => mem_biUnion.mpr ⟨j,hj',hk⟩,?_⟩⟩ |
| 124 | exact fun i hi => ⟨b,h1,⟨x,mem_singleton_self _,h2⟩,hr.2 b h1 i hi⟩ |
| 125 | intro i _ _; exact prod_nonneg fun j _ => (mul_nonneg (hf j) (Real.exp_pos _).le) |
| 126 | have ht := summable_of_sum_le (f:=roots X M f a x) he hy |
| 127 | exact ⟨he,ht,ht.tsum_le_of_sum_le hy⟩ |
| 128 | end YM.Ac |