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.Ink |
| 2 | |
| 3 | /-! # Exact gas at startup (before H01/H03) -/ |
| 4 | noncomputable section |
| 5 | set_option autoImplicit false |
| 6 | namespace YM.WilsonStartup.Start |
| 7 | open Function Filter RG Wilson Lattice Design Work Ac Padded Ovens Ovens.Pipes |
| 8 | open scoped Topology Matrix.Norms.Frobenius Classical |
| 9 | variable {G : Gauge} {n : Side} {b : BudgetPoint} {c : Clip} {β : ℝ} |
| 10 | |
| 11 | abbrev extent (n : Side) (i : ℕ) : Support n := (name (Foot n) i).val.1 |
| 12 | abbrev inventory (n : Side) (i : ℕ) : Support n := (name (Foot n) i).val.2 |
| 13 | abbrev actual (n : Side) (b : BudgetPoint) (i : ℕ) := fixed (Foot n) i ∧ lives b (name (Foot n) i) |
| 14 | |
| 15 | def code (b : BudgetPoint) (p : Support n) : ℕ := if h : p.Nonempty then |
| 16 | index (α:=Foot n) ⟨(region b p,p),h,subset_region b p⟩ else Classical.arbitrary ℕ |
| 17 | |
| 18 | def registry (b : BudgetPoint) (D : Support n) := (parts b D).image (code b) |
| 19 | |
| 20 | theorem code_props (b : BudgetPoint) (p : Support n) (h : Spark (pad b) p) : |
| 21 | actual n b (code b p) ∧ extent n (code b p) = region b p ∧ inventory n (code b p) = p := by |
| 22 | rw [code,dif_pos h.1]; simp [actual,extent,inventory,lives,h] |
| 23 | |
| 24 | theorem unique_actual {i j : ℕ} (h : actual n b i) (he : actual n b j) (hf : inventory n i = inventory n j) : i=j := by |
| 25 | have hi : name (Foot n) i = name (Foot n) j := Subtype.ext (Prod.ext (h.2.2.trans ((congr_arg (region b) hf).trans he.2.2.symm)) hf) |
| 26 | exact (index_name h.1).symm.trans ((congr_arg index hi).trans (index_name he.1)) |
| 27 | |
| 28 | theorem admitted_actual {i : ℕ} {U : Config G n} (h : (raw G n c b β).K i U ≠ 0) : actual n b i := by |
| 29 | change (if fixed (Foot n) i then paid c b (name (Foot n) i) β else (0 : Config G n → ℝ)) U ≠ 0 at h |
| 30 | split at h <;> rename_i he |
| 31 | · exact ⟨he,(by_contra fun h' => h (if_neg fun hh => h' hh.1))⟩ |
| 32 | exact (h rfl).elim |
| 33 | |
| 34 | theorem active_reconstruct {s : Finset ℕ} {D : Support n} |
| 35 | (ht : (s : Set ℕ).PairwiseDisjoint (extent n)) (hc : s.biUnion (inventory n) = D) (he : ∀ i∈s, actual n b i) : s = registry b D := by |
| 36 | have hi {i} (hh : i∈s) := (he i hh).2.2 |
| 37 | let L := s.image (inventory n) |
| 38 | have hw (i) (h : i∈L) : Spark (pad b) i := by |
| 39 | obtain ⟨j,hj,rfl⟩ := Finset.mem_image.mp h; exact (he j hj).2.1 |
| 40 | have hu := separates (pad b) L hw (by |
| 41 | rintro x hx y hy h |
| 42 | obtain ⟨i,ha,rfl⟩ := Finset.mem_image.mp hx |
| 43 | obtain ⟨j,hb,rfl⟩ := Finset.mem_image.mp hy |
| 44 | change Disjoint (region b _) (region b _) |
| 45 | rw [← hi ha, ← hi hb]; exact ht ha hb (ne_of_apply_ne _ h)) |
| 46 | have hL : L.biUnion id=D := by unfold L; rw [Finset.image_biUnion]; exact hc |
| 47 | rw [hL] at hu |
| 48 | rw [registry,parts,hu]; ext i; constructor |
| 49 | · intro hh |
| 50 | have hl := Finset.mem_image_of_mem (inventory n) hh |
| 51 | exact Finset.mem_image.mpr ⟨_,hl, unique_actual (code_props b _ (hw _ hl)).1 (he _ hh) (code_props b _ (hw _ hl)).2.2⟩ |
| 52 | intro hh |
| 53 | obtain ⟨p,hp,rfl⟩ := Finset.mem_image.mp hh |
| 54 | obtain ⟨i,he',hi⟩ := Finset.mem_image.mp hp |
| 55 | have hf := code_props b p (hw p hp) |
| 56 | rwa [unique_actual hf.1 (he i he') (hf.2.2.trans hi.symm)] |
| 57 | |
| 58 | theorem registered (b : BudgetPoint) (D : Support n) : |
| 59 | ((registry b D : Finset ℕ) : Set ℕ).PairwiseDisjoint (extent n) ∧ (registry b D).biUnion (inventory n) = D := by |
| 60 | have he {i} (h : i ∈ parts b D) := code_props b i (Ac.lives (pad b) D h).2 |
| 61 | constructor |
| 62 | · rintro x hx y hy h |
| 63 | obtain ⟨i,ha,rfl⟩ := Finset.mem_image.mp hx |
| 64 | obtain ⟨j,hb,rfl⟩ := Finset.mem_image.mp hy |
| 65 | show Disjoint (extent n _) _ |
| 66 | rw [(he ha).2.1,(he hb).2.1]; exact Ac.separate (pad b) D ha hb (ne_of_apply_ne _ h) |
| 67 | unfold registry; rw [Finset.image_biUnion]; convert Ac.reconstruct (pad b) D using 1 |
| 68 | exact Finset.biUnion_congr rfl fun i hi => (he hi).2.2 |
| 69 | |
| 70 | theorem issues (U : Config G n) (D : Support n) (hd : D ∈ parts b (flags b.threshold U)) : |
| 71 | (raw G n c b β).K (code b D) U = Real.exp (-β*charge c b D U) := by |
| 72 | obtain ⟨⟨h₁,h₂⟩,h₃,h₄⟩ := code_props b D (Ac.lives _ _ hd).2 |
| 73 | rw [raw,pours,payload]; simp only [if_pos h₁, paid, admission,h₂, true_and] |
| 74 | change (if extent .. ∩ _ = inventory .. then Real.exp (-β*charge c b (inventory n _) U) else 0) = _ |
| 75 | rw [h₃,h₄,coverage b _ hd,if_pos rfl] |
| 76 | |
| 77 | theorem code_inj {s : Finset (Support n)} (he : ∀ i∈s, Spark (pad b) i) : Set.InjOn (code b (n:=n)) (s : Set _) := by |
| 78 | intro i hi j hj h |
| 79 | exact (code_props b _ (he i hi)).2.2.symm.trans ((congr_arg (inventory n) h).trans (code_props b _ (he j hj)).2.2) |
| 80 | |
| 81 | theorem gas_raw (h : Decent c b) (U : Config G n) : (raw G n c b β).gas b U = |
| 82 | Real.exp (-β * (share * ∑ i : Key n, Key.owed c b i U)) := by |
| 83 | let D := flags b.threshold U |
| 84 | unfold Activities.gas |
| 85 | rw [tsum_eq_single (registry b D)]; swap |
| 86 | · intro s hs |
| 87 | unfold Activities.gasOccurrence; split <;> rename_i hh |
| 88 | · refine of_not_not fun h' => hs (active_reconstruct hh.1 hh.2 ?_) |
| 89 | intro i hi; exact admitted_actual ((Finset.prod_ne_zero_iff.mp h') i hi) |
| 90 | rfl |
| 91 | unfold Activities.gasOccurrence |
| 92 | have ht : (raw G n c b β).admissible b U (registry b D) := registered b D |
| 93 | rw [if_pos ht,registry,Finset.prod_image (code_inj (s:=parts b D) (fun i hi => (Ac.lives _ D hi).2))] |
| 94 | rw [← charge_sum c b h U,Finset.mul_sum, Real.exp_sum]; exact Finset.prod_congr rfl (fun i hi => issues U i hi) |
| 95 | |
| 96 | theorem evaluates (h : Decent c b) (U : Config G n) : |
| 97 | (Bid.Cake (payload c b G n) (dictionary G n) (top G c) c b β).eval U = bare β U := by |
| 98 | unfold Rep.eval Rep.exponent Bid.Cake; dsimp only |
| 99 | change Real.exp _ * (raw G n c b β).gas b U = _ |
| 100 | rw [gas_raw h, ← Real.exp_add,bare,zero_mul,zero_sub] |
| 101 | apply congr_arg Real.exp |
| 102 | change - _ - (raw G n c b β).additive b U + _ = _ |
| 103 | rw [written_sum, weight]; linarith only [channel_split c b U h.direct β] |
| 104 | end YM.WilsonStartup.Start |