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.Cells.Proximity |
| 2 | import YM.Extraction.Around |
| 3 | import YM.Extraction.Equicontinuity |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # Local bounds on compact sets INCLUDING projection ties |
| 8 | |
| 9 | Consume explicit centered estimates, both regulator tails. Then finish |
| 10 | producing the extraction surface. k-scale far offsets reached on same |
| 11 | smaller-grid centers. Budget `Fit` needed per stencil and PROVED. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Extraction |
| 16 | open Function Set Filter Lattice Cells MeasureTheory Wilson |
| 17 | open scoped Topology Matrix.Norms.Frobenius ComplexOrder BigOperators |
| 18 | variable {G : Gauge} {C : Family G} {f : Order} {N p k m n : ℕ} |
| 19 | namespace Around |
| 20 | |
| 21 | lemma figure (H : C.Makes) (T : Tiling (C.side N p)) (v : C.book.Token) (K : ℕ) |
| 22 | (x : Site (C.side N p)) (ht : x∈T.margin 0 K) (h : ∀ z∈(C.localSection v.1).stencil, ∀ a, (z a).natAbs < K) : |
| 23 | Interior (T.chamber 0) (C.seen v x) := by |
| 24 | have he : Continuous (C.seen v x) := C.continuousO _ _ v.1 v.2 _ |
| 25 | refine ⟨C.invariant H _ _ _ _ _,he.measurable, fun u y H => ?_,he.bounded_above_of_compact_support (HasCompactSupport.of_compactSpace _)⟩ |
| 26 | refine C.localO N _ _ _ _ _ _ (agrees_mono H ?_) |
| 27 | intro z hz; obtain ⟨y,hY,rfl⟩ := Finset.mem_image.mp hz |
| 28 | exact T.fits_stencil ht (h _ hY) |
| 29 | |
| 30 | lemma inherits (hg : m≤k) (hk : k≤N) : Cells.span C.S hk p ∣ Cells.span C.S (hg.trans hk) p := by |
| 31 | have hv d e (h : d ≤ e) := C.S.embeds_scale (C.S.toDepth h p) |
| 32 | have hh : C.S.a N * (Cells.span C.S hk p * (↑(Cells.span C.S hg p):ℝ)) = |
| 33 | C.S.a N * Cells.span C.S (hg.trans hk) p := by rw [hv,← mul_assoc,hv,hv] |
| 34 | have hx := mul_left_cancel₀ (C.S.a_pos N).ne' hh |
| 35 | exact ⟨Cells.span C.S hg p,by exact_mod_cast hx.symm⟩ |
| 36 | |
| 37 | def Fit (v : C.book.Token) (k N : ℕ) (p) := ∃ h : k≤N, ∀ z∈(C.localSection v.1).stencil, |
| 38 | ∀ i, (z i).natAbs < Cells.span C.S h p |
| 39 | |
| 40 | lemma fit (v : C.book.Token) (k : ℕ) : ∀ᶠ i : ℕ in atTop, ∀ p : ℕ, Fit v k (f.mesh i) p := by |
| 41 | have he z (_ : z∈(C.localSection v.1).stencil) (b) : ∀ᶠ i : ℕ in atTop, ((z b).natAbs:ℝ)*C.S.a (f.mesh i) < C.S.a k := by |
| 42 | have hv := (((C.S.shrinks.comp f.mesh.cofinal).const_mul ((z b).natAbs:ℝ))) |
| 43 | rw [mul_zero] at hv |
| 44 | exact hv.eventually (gt_mem_nhds (C.S.a_pos _)) |
| 45 | have ht := eventually_all_finset _ |>.mpr (fun z (hz:z∈(C.localSection v.1).stencil) => eventually_all.mpr (he z hz)) |
| 46 | filter_upwards [f.mesh.cofinal.eventually (eventually_ge_atTop k),ht] with i h H p |
| 47 | refine ⟨h,fun z hz a => ?_⟩ |
| 48 | apply (Nat.cast_lt (α := ℝ)).mp |
| 49 | apply lt_of_mul_lt_mul_left _ (C.S.a_pos (f.mesh i)).le |
| 50 | rw [show _ * (↑(Cells.span C.S h p):ℝ)=_ from C.S.embeds_scale (C.S.toDepth h p), mul_comm] |
| 51 | exact H z hz a |
| 52 | |
| 53 | open Spin in |
| 54 | def imageBudget (v : Fin n→C.book.Token) (A : ℝ) (k N p : ℕ) := k≤N ∧ |
| 55 | ∀ i j, centeredBudget C (token C.book (v i) j) A k N p ∧ Fit (token C.book (v i) j) k N p |
| 56 | |
| 57 | lemma image_ (v : Fin n → C.book.Token) (h : CenteredBook C f) : |
| 58 | (∀ p, ∀ᶠ k in atTop, ∃ A : ℝ, 0≤A ∧ ∀ᶠ j in atTop, imageBudget v A k (f.mesh j) p) ∧ |
| 59 | (∀ᶠ k in atTop, ∃ A : ℝ, 0≤A ∧ f.late (imageBudget v A k)) := by |
| 60 | let T (i : Fin n × Spin.Frame) := Spin.token C.book (v i.1) i.2 |
| 61 | have he k : ∀ᶠ j : ℕ in atTop, ∀ i, ∀ p, Fit (T i) k (f.mesh j) p := eventually_all.mpr fun i => fit _ _ |
| 62 | have hm (p : ℕ) := lib C f Finset.univ h p T |
| 63 | have hg k := f.mesh.cofinal.eventually (eventually_ge_atTop k) |
| 64 | constructor |
| 65 | · intro p; filter_upwards [(hm p).1] with k hk |
| 66 | obtain ⟨A,hA,H⟩ := hk; refine ⟨A,hA,?_⟩ |
| 67 | filter_upwards [H,hg k,he k] with j hh hv hu; exact ⟨hv, fun i b => ⟨hh (i,b) (Finset.mem_univ _),hu (i,b) p⟩⟩ |
| 68 | filter_upwards [(hm 0).2] with k hk |
| 69 | obtain ⟨A,hA,H⟩ := hk; refine ⟨A,hA,?_⟩ |
| 70 | refine H.mono fun i hi => ((hi.and (he k)).and (hg k)).mono ?_ |
| 71 | rintro j ⟨⟨hv,hh⟩,hy⟩; exact ⟨hy, fun x b => ⟨hv (x,b) (Finset.mem_univ _), hh (x,b) _⟩⟩ |
| 72 | |
| 73 | open Gaps Spin in |
| 74 | lemma fits_budget (H : C.Makes) (v : Fin n → C.book.Token) (W : Set (Points n)) (r : ℝ) |
| 75 | (hK : ∀ x∈W, someFine C.S p r x) (A : ℝ) (hx : C.S.a m < r) (hg : m≤k) |
| 76 | (hw : (n:ℝ)*(2*(3*C.S.a k)) < C.S.a m) (ht : imageBudget v A k N p) (u : Fin n→Cover) |
| 77 | (hU : tag (C.S.a N) u ∈ W) : ‖lifted C N p v u‖ ≤ A^n := by |
| 78 | obtain ⟨hN,hC⟩ := ht |
| 79 | let t := Cells.span C.S hN p |
| 80 | let x := wrap (C.side N p) ∘ u |
| 81 | let T := center C.S p (hg.trans hN) 0 |
| 82 | have hs : C.S.a N * t=C.S.a k := C.S.embeds_scale (C.S.toDepth hN p) |
| 83 | have he : C.S.a N * ↑T.side.val=C.S.a m := C.S.embeds_scale T.units |
| 84 | have hp : (n:ℕ)*(2*(3*t)) < T.side.val := by |
| 85 | apply (Nat.cast_lt (α := ℝ)).mp; apply lt_of_mul_lt_mul_left _ (C.S.a_pos N).le |
| 86 | rw [he]; rw [← hs] at hw; push_cast; linarith |
| 87 | obtain ⟨o,ho⟩ := T.fits_together x (3*t) (by exact Nat.mul_pos (by decide) ((C.S.toDepth hN p).count.property)) hp |
| 88 | let X := T.newly o |
| 89 | have hv : Cells.span C.S hN p ∣ X.side.val := inherits hg hN |
| 90 | let D (i : Fin n) := X.which (x i) |
| 91 | have HD (i) : x i ∈ X.margin (D i) (3*t) := ho i |
| 92 | have hm : Injective D := by |
| 93 | intro i j h; by_contra H |
| 94 | have hh := gridSeparation C.S x rfl (hK _ hU) _ _ H |
| 95 | have hl := X.extent (v := D i) (x := x j) (y := x i) (h.symm ▸ (HD j).1) (HD i).1 |
| 96 | have hi : r ≤ C.S.a m := hh.trans (le_trans (mul_le_mul_of_nonneg_left (by exact_mod_cast hl) (C.S.a_pos N).le) he.le) |
| 97 | exact hx.not_ge hi |
| 98 | choose a ha using fun i => X.pointed (D i) (x i) |
| 99 | let V (i) := let s := way X (D i); token C.book (v i) (s.1⁻¹,s.2) |
| 100 | have hQ (i) : a i∈X.margin 0 (3*t) := (X.reflected_margin (a i) ..).2 (ha i |>.symm ▸ HD i) |
| 101 | have hT i := hC i ((way X (D i)).1⁻¹,(way X (D i)).2) |
| 102 | have HH i : C.ref (V i).1≤N := (hT i).1.choose_spec.1 |
| 103 | let f (i) := C.seen (V i) (a i) |
| 104 | have Hs i : ∀ z∈(C.localSection (V i).1).stencil, ∀ b, (z b).natAbs<t := (hT i).2.choose_spec |
| 105 | have ha' i : Interior (X.chamber 0) (f i) := figure H _ (V i) (3*t) (a i) (hQ i) (fun z hz b => by have := Hs i z hz b; omega) |
| 106 | have HD i : X.rootTest (C.beta N p) (f i) ≤ A := by |
| 107 | apply interior_from X (V i) H hN hv A _ _ _ (hQ i) |
| 108 | · intro b; simp_rw [V,orientation]; exact (hC _ _).1 |
| 109 | intro o ho; exact figure H _ (V i) (2*t) o ho (fun z hz b => by have := Hs i z hz b; omega) |
| 110 | have hw i : X.copy (D i) (f i) = C.seen (v i) (x i) := by |
| 111 | rw [show X.copy (D i) _=_ from Spin.uses H X (D i) _ (V i) (HH i),ha]; simp [V] |
| 112 | have hu := X.planted (seamless H ..) D hm f ha' |
| 113 | have hz := hu.trans (Finset.prod_le_prod (fun i _ => X.root_nonneg _ _) fun i _ => HD i) |
| 114 | simp_rw [hw,Finset.prod_const, Finset.card_univ,Fintype.card_fin] at hz; exact hz |
| 115 | |
| 116 | private lemma room_scale (S : Schedule) (n : ℕ) (m) : ∀ᶠ k in atTop, (n:ℝ)*(2*(3*S.a k))<S.a m := |
| 117 | (show Tendsto (fun k => (n:ℝ)*(2*(3*S.a k))) atTop (𝓝 0) from by |
| 118 | simpa only [mul_zero] using (((S.shrinks.const_mul (3:ℝ)).const_mul (2:ℝ)).const_mul (n:ℝ))).eventually (gt_mem_nhds (S.a_pos m)) |
| 119 | |
| 120 | lemma size_done (H : C.Makes) (he : CenteredBook C f) : Bound C f := by |
| 121 | constructor |
| 122 | · intro n v p W hW hp |
| 123 | obtain ⟨r,hr,ht⟩ := Gaps.some _ p hW hp |
| 124 | obtain ⟨m,hm⟩ := (C.S.shrinks.eventually (gt_mem_nhds hr)).exists |
| 125 | obtain ⟨k,⟨A,hA,H'⟩,he,hw⟩ := (((image_ v he).1 p).and ((eventually_ge_atTop m).and (room_scale C.S n m))).exists |
| 126 | exact ⟨_,pow_nonneg hA n,H'.mono fun i hi u hu => fits_budget H v W r ht A hm he hw hi u hu⟩ |
| 127 | intro n v K hK ht |
| 128 | obtain ⟨r,hr,hp⟩ := Gaps.someGrows C.S hK ht |
| 129 | obtain ⟨m,hm⟩ := (C.S.shrinks.eventually (gt_mem_nhds hr)).exists |
| 130 | obtain ⟨k,⟨A,hA,H'⟩,he,hw⟩ := ((image_ v he).2.and ((eventually_ge_atTop m).and (room_scale C.S n m))).exists |
| 131 | unfold Order.late at * |
| 132 | exact ⟨_,pow_nonneg hA n, (H'.and (f.per.cofinal.eventually hp)).mono fun i h => h.1.mono fun j hJ u hu => fits_budget H v K r h.2 A hm he hw hJ u hu⟩ |
| 133 | end Around |
| 134 | |
| 135 | /-- First actual common extraction from the projected chessboard receipts. -/ |
| 136 | theorem crops (H : C.Makes) (h : CenterPort C f) : ∃ g : Order, ∃ S P, RawLimits C (f.refine g) S P := |
| 137 | first_surface _ _ (Difference.completed H (h.book _ _)) (Around.size_done H (h.book _ _)) |
| 138 | end YM.Extraction |