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.Next.UV_STRESS.Atom |
| 2 | |
| 3 | /-! |
| 4 | # From single-atom replication on Maker to estimates including mixed arrays |
| 5 | -/ |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | namespace YM.Next.UVStress |
| 10 | open Set Function Filter MeasureTheory Analysis Extraction Around Wilson Cells Lattice |
| 11 | open scoped Topology BigOperators |
| 12 | variable {G : Gauge} {C : Family G} {h k N p n : ℕ} {f : Extraction.Order} |
| 13 | |
| 14 | section Step |
| 15 | variable {L : Side} (T : Tiling L) {β : ℝ} (H : Seam G L β) |
| 16 | |
| 17 | lemma minus {K : Set (Site L)} {Y X : Config G L → ℂ} (h : Interior K Y) (p : Interior K X) : Interior K (Y-X) := by |
| 18 | rw [sub_eq_add_neg]; exact h.plus (show Interior K (-X) from (show Interior K (fun x => -X x) from by simpa using p.scale (-1))) |
| 19 | |
| 20 | include H in |
| 21 | theorem replace_all (a : Fin n → T.Cell) (Q Y : Fin n → Config G L → ℂ) (M δ : ℝ) |
| 22 | (hx : Injective a) (hp : ∀ i, Interior (T.chamber 0) (Q i)) (hQ : ∀ i, Interior (T.chamber 0) (Y i)) |
| 23 | (h : ∀ i, T.rootTest β (Q i) ≤ M ∧ T.rootTest β (Y i) ≤ M ∧ T.rootTest β (Y i-Q i) ≤ δ) : |
| 24 | ‖moment β (fun w => ∏ i : Fin n,T.copy (a i) (Y i) w) - moment β (fun w => ∏ i : Fin n,T.copy (a i) (Q i) w)‖ ≤ |
| 25 | (n:ℝ)*(δ*M^(n-1)) := by |
| 26 | classical |
| 27 | let U (s : Finset (Fin n)) (i : Fin n) := if i∈s then Y i else Q i |
| 28 | let F (s : Finset (Fin n)) w := ∏ i : Fin n,T.copy (a i) (U s i) w |
| 29 | have he (s i) : Interior (T.chamber 0) (U s i) := by unfold U; split; exacts [hQ i,hp i] |
| 30 | have hf s : Integrable (F s) (law G _ β) := by |
| 31 | have ht (i : Fin n) : Interior Set.univ (T.copy (a i) (U s i)) := (T.copies _ (he s i)).enlarges (subset_univ _) |
| 32 | exact Interior.integrable (Interior.combines _ Finset.univ (fun i _ => ht i)) _ |
| 33 | have hg (s : Finset (Fin n)) : ‖moment β (F s) - moment β (F ∅)‖ ≤ (s.card:ℝ)*(δ*M^(n-1)) := by |
| 34 | induction s using Finset.induction_on with |
| 35 | | empty => simp |
| 36 | | @insert j s hj IH => |
| 37 | let L := fun i : Fin n => if i=j then Y j-Q j else U s i |
| 38 | have hL (w : Config G _) : F (insert j s) w-F s w=∏ i, T.copy (a i) (L i) w := by |
| 39 | have hv : (∏ i ∈ Finset.univ.erase j, T.copy (a i) (U (insert j s) i) w)= |
| 40 | ∏ i ∈ Finset.univ.erase j, T.copy (a i) (U s i) w := by |
| 41 | apply Finset.prod_congr rfl; intro i hi; simp [U,Finset.mem_erase.mp hi|>.1] |
| 42 | unfold F; simp_rw [← Finset.mul_prod_erase _ _ (Finset.mem_univ j),hv,← sub_mul] |
| 43 | simp only [L, U, if_pos, Finset.mem_insert_self,hj, ↓reduceIte] |
| 44 | have hh : T.copy (a j) (Y j - Q j) w=T.copy (a j) (Y j) w-T.copy (a j) (Q j) w := by |
| 45 | simp only [Tiling.copy,Pi.sub_apply]; split <;> simp [star_sub] |
| 46 | rw [hh]; congr 1 |
| 47 | apply Finset.prod_congr rfl; intro i hi; rw [if_neg ((Finset.mem_erase.mp hi).1)] |
| 48 | have hh : ‖moment β (F (insert j s))-moment β (F s)‖ ≤ δ*M^(n-1) := by |
| 49 | unfold moment |
| 50 | rw [← integral_sub (hf _) (hf _)]; simp_rw [hL] |
| 51 | have he i : Interior (T.chamber 0) (L i) := by unfold L; split; exacts [minus (hQ _) (hp _),he s i] |
| 52 | apply le_trans (T.planted H _ hx L he) |
| 53 | rw [← Finset.mul_prod_erase _ _ (Finset.mem_univ j)] |
| 54 | have hy : T.rootTest β (L j) ≤ δ := by simpa only [L,if_true] using (h j).2.2 |
| 55 | refine mul_le_mul hy ?_ (Finset.prod_nonneg (fun i _ => T.root_nonneg β _)) ((T.root_nonneg β _).trans hy) |
| 56 | calc |
| 57 | _ ≤ ∏ _ ∈ (Finset.univ.erase j),M := Finset.prod_le_prod (fun i _ => T.root_nonneg _ _) (fun i hi => by |
| 58 | dsimp only [L]; rw [if_neg ((Finset.mem_erase.mp hi).1)]; dsimp only [U]; split; exacts [(h i).2.1,(h i).1]) |
| 59 | _ = _ := by simp |
| 60 | calc |
| 61 | _ ≤ _ := norm_sub_le_norm_sub_add_norm_sub (moment β (F (insert j s))) (moment β (F s)) (moment β (F ∅)) |
| 62 | _ ≤ _ := le_trans (add_le_add hh IH) (by rw [Finset.card_insert_of_notMem hj]; push_cast; linarith) |
| 63 | simpa [F,U] using hg Finset.univ |
| 64 | end Step |
| 65 | section sum |
| 66 | variable {sideR : Side} (A : Tiling sideR) (β : ℝ) |
| 67 | lemma root_smul (t : ℂ) (f : Config G sideR→ℂ) : A.rootTest β (t • f) = ‖t‖*A.rootTest β f := by |
| 68 | classical |
| 69 | have hp := A.cells_positive |
| 70 | rw [← pow_left_inj₀ (A.root_nonneg β _) (mul_nonneg (norm_nonneg _) (A.root_nonneg ..)) hp.ne'] |
| 71 | let g (i) : ℂ := if A.hand i then star t else t |
| 72 | have he (i x) : A.copy i (t • f) x=g i * A.copy i f x := by unfold g; by_cases h : A.hand i <;> simp [Tiling.copy,h] |
| 73 | rw [A.powering,mul_pow,A.powering]; unfold Tiling.rootPower |
| 74 | have hh : Tiling.fullAt A (fun _ => t • f)=fun x => (∏ i,g i)*Tiling.fullAt A (fun _ => f) x := by |
| 75 | funext x; unfold Tiling.fullAt; simp_rw [he,Finset.prod_mul_distrib] |
| 76 | rw [hh] |
| 77 | have hz (i : A.Cell) : ‖g i‖=‖t‖ := by unfold g; split_ifs with h <;> simp |
| 78 | simp [moment, integral_const_mul,norm_prod,hz] |
| 79 | |
| 80 | lemma root_sum {ι : Type*} (I : Finset ι) (f : ι → Config G sideR → ℂ) (b : ι→ℂ) |
| 81 | (hp : ∀ i∈I, Interior (A.chamber 0) (f i)) (H : Seam G sideR β) : |
| 82 | Interior (A.chamber 0) (∑ i∈I, b i • f i) ∧ A.rootTest β (∑ i∈I, b i • f i) ≤ |
| 83 | ∑ i∈I, ‖b i‖*A.rootTest β (f i) := by |
| 84 | classical |
| 85 | induction I using Finset.induction_on with |
| 86 | | empty => |
| 87 | simp only [Finset.sum_empty]; refine ⟨Interior.constant _ _,?_⟩ |
| 88 | rw [show (0:Config G sideR→ℂ)=(0:ℂ) • fzero from (zero_smul _ _).symm,root_smul, norm_zero,zero_mul] |
| 89 | | @insert i I he ih => |
| 90 | obtain ⟨hF,h⟩ := ih (fun i hi => hp i (Finset.mem_insert_of_mem hi)) |
| 91 | have hx : Interior (A.chamber 0) (b i • f i) := (hp i (Finset.mem_insert_self ..)).scale _ |
| 92 | simp only [Finset.sum_insert he]; refine ⟨hx.plus hF,?_⟩ |
| 93 | exact (H.semi A _ _ hx hF).trans (add_le_add (le_of_eq (root_smul ..)) h) |
| 94 | where fzero : Config G sideR→ℂ := 0 |
| 95 | end sum |
| 96 | |
| 97 | abbrev Stones (C : Family G) (d : ℕ) := (C.book.coord d).Index |
| 98 | |
| 99 | def piece (C : Family G) (d : ℕ) (i : Stones C d) : C.book.Ref d := Pi.single i 1 |
| 100 | |
| 101 | lemma pieces_at (d : ℕ) (v : C.book.Ref d) : ∑ j : Stones C d,v j • piece C d j = v := by |
| 102 | ext1 i |
| 103 | simp [piece,Finset.sum_apply,Pi.single_apply] |
| 104 | |
| 105 | lemma seen_sum {ι : Type*} [Fintype ι] (d : ℕ) (x : Site (C.side N p)) (w : ι→ C.book.Ref d) (b : ι→ℂ) : |
| 106 | C.seen ⟨d,∑ i,b i • w i⟩ x=∑ i,b i • C.seen ⟨d,w i⟩ x := by |
| 107 | let L := IsLinearMap.mk' (fun v => C.O N p (d:=d) v x) (C.linearO N p d x) |
| 108 | change L _=∑ i,b i • L (w i) |
| 109 | simp |
| 110 | namespace Maker |
| 111 | variable {d : ℕ} (P : Maker C f h d) |
| 112 | |
| 113 | def sunset (v : Fin n → Entitled C d) (k N p) (x : Fin n → Cover) (w : Config G (C.side N p)) := |
| 114 | ∏ i,P.fine k N p (v i) (wrap _ (x i)) w |
| 115 | |
| 116 | /-- Control true on all grid layouts. Only the last estimate requires the |
| 117 | actual cells distinct on this torus. Does not take absolute INSIDE the law. -/ |
| 118 | theorem precise (v : Fin n→ Entitled C d) (H : C.Makes) (hp : CellHyp C f) : |
| 119 | ∃ A : ℝ,0≤A ∧ ∀ k,∃ B : ℝ,0≤B ∧ ∀ᶠ i : ℕ×ℕ in f.fuse, ∀ x : Fin n → Cover, |
| 120 | let s := P.sunset v k i.1 i.2 x |
| 121 | Interior Set.univ (paint s) ∧ (∀ w, |s w| ≤ B) ∧ |
| 122 | (Injective ((wrap (C.side h i.2)) ∘ x) → |
| 123 | ‖moment (C.beta i.1 i.2) (paint s) - C.numeric i.1 i.2 (fun j => (v j).val) (fun j => location C.S h i.1 i.2 (x j))‖ ≤ costHint k * A) := by |
| 124 | choose A hA B hB hv using fun j => P.nearby H hp (v j) |
| 125 | let M := 1+∑ j,A j |
| 126 | have hM : 0 ≤ M := add_nonneg zero_le_one (Finset.sum_nonneg fun i _ => hA _) |
| 127 | have hh j : A j ≤ ∑ j,A j := Finset.single_le_sum (f:=A) (fun i _ => hA _) (Finset.mem_univ j) |
| 128 | refine ⟨(n:ℝ)* M^(n-1),mul_nonneg (Nat.cast_nonneg _) (pow_nonneg hM _),fun k => |
| 129 | ⟨∏ j, B j k, Finset.prod_nonneg (fun i _ => hB i k),?_⟩⟩ |
| 130 | filter_upwards [eventually_all.mpr (fun j => hv j k),large_mesh f h] with i hi h' z |
| 131 | obtain ⟨N,p⟩ := i |
| 132 | let T := center C.S p h' 0; let U := P.sunset v k N p z |
| 133 | let a : Fin n → T.Cell := wrap (C.side h p) ∘ z |
| 134 | choose X Y hX hY he hg hu hy hz using fun j => (hi j).choose_spec (a j) |
| 135 | have hq (w) : U w=∏ j,P.fine k N p (v j) (a j) w := rfl |
| 136 | have hF : paint U = fun w => ∏ j,T.copy (a j) (Y j) w := by |
| 137 | funext w |
| 138 | rw [paint,hq, Complex.ofReal_prod] |
| 139 | exact Finset.prod_congr rfl fun j _ => congr_fun (hg j) _ |
| 140 | have hw j : C.seen (v j).val (location C.S h N p (z j))=T.copy (a j) (X j) := by |
| 141 | rw [location,dif_pos h'] |
| 142 | change C.seen (v j).val ((C.S.toDepth h' p).embed (a j))= _ |
| 143 | rw [show (C.S.toDepth h' p).embed (a j)=T.copyMap (a j) 0 from ((copy_home C.S h' 0 (a j)).trans (zero_add _)).symm]; exact he j |
| 144 | refine ⟨show Interior _ (paint U) from ?_,fun w => ?_,fun hi => ?_⟩ |
| 145 | · rw [hF]; exact Interior.combines (fun i => T.copy (a i) (Y i)) _ (fun i _ => (T.copies _ (hY i)).enlarges (subset_univ _)) |
| 146 | · change |U w| ≤ _; rw [hq,Finset.abs_prod]; exact Finset.prod_le_prod (fun i _ => abs_nonneg _) (fun i _ => hz i _) |
| 147 | change ‖moment (C.beta N p) (paint U) - _‖ ≤ _ |
| 148 | rw [hF,C.num]; simp_rw [hw]; apply le_trans (replace_all T (hp.all N p) a X Y M (costHint k) hi hX hY ?_) |
| 149 | · exact le_of_eq (by ring) |
| 150 | intro j |
| 151 | refine ⟨(hu j).trans ((hh j).trans (le_add_of_nonneg_left zero_le_one)), ?_, hy j⟩ |
| 152 | have ht : costHint k ≤ 1 := inv_le_one_of_one_le₀ (show 1≤sizeHint k by unfold sizeHint; simp) |
| 153 | have he := (hp.all N p).semi T _ _ (minus (hY j) (hX j)) (hX j) |
| 154 | exact (sub_add_cancel (Y j) (X j) ▸ he.trans (add_le_add ((hy j).trans ht) ((hu j).trans (hh j)))) |
| 155 | end Maker |
| 156 | end YM.Next.UVStress |