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.Lattice.Scale |
| 2 | import YM.OS.Train |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # The needed train estimates at integral step |
| 7 | |
| 8 | width d trimmed to integral steps. Pick s maximal under point resolution & family threshold. |
| 9 | Then **train bound** uniform for any d' multiple, with r/2 separation/slab buffer. |
| 10 | No unsafe L calculation. Enough to prove only selected ball of small K/r relative s. |
| 11 | S separate from calendar Q: requirements tie C.S upon application. |
| 12 | The train hypothesis is solely S-kernels; applies without W.Motion, from roots gates. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.OS |
| 17 | open Function Set Filter Analysis Word |
| 18 | open scoped Topology ContDiff NNReal ENNReal BigOperators InnerProductSpace |
| 19 | variable {G : Gauge} {L : Register G} {S : Table L} {a : Axis} (Q : Schedule) |
| 20 | |
| 21 | def At (F : ℕ) (m : ℕ) (s : ℝ) := F ≤ m ∧ Q.a m < s ∧ ∀ j, F ≤ j → j < m → s ≤ Q.a j |
| 22 | lemma turn (F) (r : ℝ) (hr : 0 < r) : ∃ m : ℕ, At Q F m r := by |
| 23 | classical |
| 24 | have hh : ∃ i, F≤ i ∧ Q.a i<r := by |
| 25 | exact ((eventually_ge_atTop F).and (Q.shrinks.eventually (gt_mem_nhds hr))).exists |
| 26 | let m := Nat.find hh |
| 27 | obtain ⟨p,t⟩ := Nat.find_spec hh |
| 28 | exact ⟨m,p,t,fun j hj h => le_of_not_gt (fun ht => h.not_ge (Nat.find_min' hh (And.intro hj ht)))⟩ |
| 29 | lemma thickness (F : ℕ) (h : Q.Gentle) : ∃ r : ℝ, 0 < r ∧ ∀ ε : ℝ, 0 < ε → ε ≤ 1 → ∀ m : ℕ, At Q F m ε → r * ε^2 ≤ Q.a m := by |
| 30 | obtain ⟨c,hc,h⟩ := Q.mesh_inequality h |
| 31 | refine ⟨min (Q.a F) c,lt_min (Q.a_pos _) hc,fun i hi he j hj => ?_⟩ |
| 32 | rcases eq_or_ne j F with rfl|hx |
| 33 | · exact (mul_le_of_le_one_right (le_min (Q.a_pos _).le hc.le) (pow_le_one₀ hi.le he)).trans (min_le_left ..) |
| 34 | let n := j-1 |
| 35 | have ht := lt_of_le_of_ne hj.1 hx.symm |
| 36 | have hu : j=n+1 := by dsimp only [n];omega |
| 37 | apply le_trans _ (show c * (Q.a n)^2 ≤ Q.a j from by rw [hu]; exact h n) |
| 38 | have hz : i ≤ Q.a n := by apply hj.2.2 n <;> omega |
| 39 | gcongr; exact min_le_right .. |
| 40 | |
| 41 | def Covered (e : ℝ≥0) (m : ℕ) := ∃ i : ℕ, (e:ℝ)=i*Q.a m |
| 42 | |
| 43 | /-- s=a(m) maximal under r/32 at depth F. dyadic n here any, r used on RHS so C enlarged; actual separations in slab r/2. -/ |
| 44 | def Tiled (S : Table L) (a : Axis) := ∀ D R, ∃ F : ℕ, ∃ (C : ℝ) (K : ℕ), 0<C ∧ ∀ r : ℝ, 0<r → r≤1 → |
| 45 | ∀ m : ℕ, At Q F m (r/32) → ∀ (e : ℝ≥0), Covered Q e m → ∀ w : L.Word, constrained D R w → w ≠ [] → |
| 46 | ∀ h : Slab a e w, buffer a (r/2) e w → QRead S (Spread.radius C K w r) h |
| 47 | |
| 48 | lemma narrow {e : ℝ≥0} (w : L.Word) {r : ℝ} (hr : 0<r) {m} (h : Slab a e w) (hd : buffer a r e w) |
| 49 | (hp : w≠[]) (hv : Q.a m < r/32) : ∃ d : ℝ≥0, Covered Q d m ∧ d≤e ∧ |
| 50 | Slab a d w ∧ buffer a (r/2) d w := by |
| 51 | let s := Q.a m |
| 52 | let n := ⌊(e:ℝ)/s⌋₊ |
| 53 | have hs := show 0<s from Q.a_pos _ |
| 54 | let d : ℝ≥0 := ⟨n*s,by positivity⟩ |
| 55 | have he : (d:ℝ) ≤ e := (le_div_iff₀ hs).1 (Nat.floor_le (by positivity)) |
| 56 | have H : (e:ℝ) < d+s := by |
| 57 | have ht := (div_lt_iff₀ hs).1 (Nat.lt_floor_add_one ((e:ℝ)/s)) |
| 58 | rw [add_mul,one_mul] at ht; exact ht |
| 59 | have hu i (hi : i∈w) := hd.2 i hi |
| 60 | have hh i (hi : i∈w) : i.1 a ≤ (d:ℝ)- r/2 := by |
| 61 | have ht := (hu i hi).2; change s<_ at hv; linarith |
| 62 | refine ⟨d,⟨n,rfl⟩,he,⟨?_,h.2.1,fun i hi => lt_of_le_of_lt (hh i hi) (sub_lt_self _ (by positivity))⟩, |
| 63 | ⟨fun i j hk => le_trans (by linarith) (hd.1 _ _ hk), fun i hi => ⟨(by linarith [(hd.2 i hi).1]), hh i hi⟩⟩⟩ |
| 64 | have hk := hh (w.head hp) (List.head_mem _) |
| 65 | have he := (hu (w.head hp) (List.head_mem _)).1 |
| 66 | change (0:ℝ)<(d:ℝ); linarith |
| 67 | |
| 68 | variable (V : Chamber S a) (h : S.Hierarchy) (H : Tiled Q S a) |
| 69 | include Q h H |
| 70 | lemma priced : ∀ D (R : ℝ), ∃ C : ℝ, ∃ K : ℕ, 0<C ∧ |
| 71 | ∀ w : L.Word, ∀ e, constrained D R w → ∀ hp : Slab a e w, ∀ r : ℝ, 0<r → r≤1 → buffer a r e w → |
| 72 | ∃ P : V.GNS.H.Op, ‖P‖ ≤ Spread.radius C K w r ∧ ∀ x, P (V.GNS.plant x)=V.GNS.plant (entering hp x) := by |
| 73 | intro D R; obtain ⟨F,C,K,hC,hf⟩ := H D R |
| 74 | refine ⟨C,K,hC,fun w e hw hp i hi hr ht => ?_⟩ |
| 75 | cases eq_or_ne w [] with |
| 76 | | inl he => |
| 77 | subst w |
| 78 | refine ⟨V.flow.E e, by simpa [Spread.radius] using V.flow.shrinks e,fun x => (V.atBirth e x).symm⟩ |
| 79 | | inr hz => |
| 80 | obtain ⟨m,hm⟩ := turn Q F _ (by positivity : 0 < i/32) |
| 81 | obtain ⟨d,hd,hq,hD,hB⟩ := narrow Q w hi hp ht hz hm.2.1 |
| 82 | have hh := hf i hi hr m hm d hd w hw hz hD hB |
| 83 | let B := Spread.radius C K w i |
| 84 | have hV : 0<B := by |
| 85 | have hu : 0 < w.length := Nat.pos_of_ne_zero (fun e => hz (List.length_eq_zero_iff.mp e)) |
| 86 | unfold B Spread.radius; positivity |
| 87 | obtain ⟨P,hP,H_⟩ := producer V hD h hh hV |
| 88 | let u := e-d |
| 89 | refine ⟨P.comp (V.flow.E u), (ContinuousLinearMap.opNorm_comp_le ..).trans |
| 90 | ((mul_le_of_le_one_right (norm_nonneg _) (V.flow.shrinks _)).trans hP),fun x => ?_⟩ |
| 91 | rw [ContinuousLinearMap.comp_apply, ← V.atBirth, H_]; congr 1 |
| 92 | apply Subtype.ext; change linked a _ w _ = linked a _ w _; unfold linked |
| 93 | simp only [travel,raised,paths] |
| 94 | rw [← add_smul,← NNReal.coe_add, tsub_add_cancel_of_le hq] |
| 95 | |
| 96 | omit V Q H h in |
| 97 | lemma affordable {w : L.Word} {e : ℝ≥0} (h : Slab a e w) : ∃ D R, constrained D R w ∧ ∃ r : ℝ, 0<r ∧ r≤1 ∧ buffer a r e w := by |
| 98 | classical |
| 99 | obtain ⟨D,hD⟩ : ∃ D : ℕ, ∀ i∈w, i.2.1 ≤ D := by |
| 100 | have ht := eventually_all_finset _ |>.mpr fun i (_:i∈w.toFinset) => eventually_ge_atTop i.2.1 |
| 101 | simpa using ht.exists |
| 102 | obtain ⟨R,hR⟩ : ∃ D : ℝ, ∀ i∈w, ‖i.2.2‖ ≤ D := by |
| 103 | have ht := eventually_all_finset _ |>.mpr fun i (_:i∈w.toFinset) => eventually_ge_atTop ‖i.2.2‖ |
| 104 | simpa using ht.exists |
| 105 | refine ⟨D,R,(fun i hi => ⟨hD i hi,hR i hi⟩),?_⟩ |
| 106 | have he p (hp : p∈w) : ∀ᶠ r in 𝓝[>] (0:ℝ), r ≤ p.1 a ∧ p.1 a ≤ (e:ℝ)-r := by |
| 107 | filter_upwards [(gt_mem_nhds (h.2.1.2 p hp)).filter_mono nhdsWithin_le_nhds, |
| 108 | (gt_mem_nhds (sub_pos.mpr (h.2.2 p hp))).filter_mono nhdsWithin_le_nhds] with r hr ht |
| 109 | exact ⟨hr.le,by linarith [show r<(e:ℝ)-p.1 a from ht]⟩ |
| 110 | have ht i j : ∀ᶠ r in 𝓝[>] (0:ℝ), i ≠ j → r ≤ cubedist (positions w i) (positions w j) := by |
| 111 | by_cases he : i=j |
| 112 | · exact Eventually.of_forall fun _ h => (h he).elim |
| 113 | have hu := h.2.1.1 |
| 114 | have hf : 0<cubedist (positions w i) (positions w j) := dist_pos.mpr |
| 115 | (fun p => he ((show Injective _ from hu) (WithLp.ofLp_injective _ p))) |
| 116 | exact ((gt_mem_nhds hf).filter_mono nhdsWithin_le_nhds).mono fun _ hh _ => le_of_lt hh |
| 117 | have hy := eventually_all_finset _ |>.mpr fun i (hp : i ∈ w.toFinset) => he i (by simpa using hp) |
| 118 | obtain ⟨r,hr,hp,hH⟩ := ((eventually_all.mpr fun i => eventually_all.mpr (ht i)).and (hy.and (show ∀ᶠ i in 𝓝[>] (0:ℝ), i∈ Ioc 0 1 from Ioc_mem_nhdsGT (by norm_num)))).exists |
| 119 | exact ⟨r,hH.1,hH.2,hr,by simpa using hp⟩ |
| 120 | |
| 121 | include V Q h H in |
| 122 | theorem irons : ∃ X : Spread V, X.AllCopy := by |
| 123 | classical |
| 124 | have hv (e : ℝ≥0) (w : L.Word) : ∃ P : V.GNS.H.Op, ∀ h : Slab a e w, ∀ x, P (V.GNS.plant x)=V.GNS.plant (entering h x) := by |
| 125 | by_cases h' : Slab a e w |
| 126 | swap; exact ⟨0,fun p => (h' p).elim⟩ |
| 127 | obtain ⟨D,R,Hd,i,hi,hQ,hF⟩ := affordable h' |
| 128 | obtain ⟨C,A,hC,hv⟩ := priced Q V h H D R |
| 129 | obtain ⟨P,hP,I⟩ := hv w e Hd h' i hi hQ hF |
| 130 | exact ⟨P,fun _ => I⟩ |
| 131 | choose P hP using hv |
| 132 | let X : Spread V := ⟨P,fun t => hP _ _ t⟩ |
| 133 | refine ⟨X,fun D R => ?_⟩ |
| 134 | obtain ⟨C,A,h₁,h₂⟩ := priced Q V h H D R |
| 135 | refine ⟨C,A,h₁,fun w e i hw r hr hb hp => ?_⟩ |
| 136 | obtain ⟨T,hT,H⟩ := h₂ w e i hw r hr hb hp |
| 137 | exact (V.GNS.by_bud (fun i => show X.place e w _=T (V.GNS.plant i) from (hP _ _ hw i).trans (H i).symm)) ▸ hT |
| 138 | end YM.OS |