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.Bid.Phase |
| 2 | import YM.Next.PHASE.Trains |
| 3 | |
| 4 | /-! |
| 5 | # Uniform constants and Seats (red node RSeats) |
| 6 | |
| 7 | This proves `Bid.Seats`. No assumption of `CenteredBook` (its separate each-period |
| 8 | part is not a premise here). Uses the CellHyp on the same extraction; proof does |
| 9 | not need the corrected detectors until assembly of the phase. No dependence of |
| 10 | the operator-bound constants on the length, separation, slab width, exterior |
| 11 | probe or number of copies. Train cost `B` in `QRead` may of course depend on the |
| 12 | exterior probe and the main field data, but not the number of replicas. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Next.Phase |
| 17 | open Function Filter Set Cells Extraction Extraction.Spin OS |
| 18 | open scoped Topology NNReal BigOperators Matrix.Norms.Frobenius |
| 19 | |
| 20 | variable {G : Gauge} {C : Family G} {f : Order} {S : Table C.book} |
| 21 | |
| 22 | /-- Bound the whole signed/reflected raw family, not assuming orthonormal |
| 23 | action for the raw coefficient norm. -/ |
| 24 | private lemma mirror_ball (L : Register G) (D : ℕ) (R : ℝ) : ∃ Q : ℝ, 0 < Q ∧ |
| 25 | ∀ v : L.Token, v.1 ≤ D → ‖v.2‖ ≤ R → ∀ b : Frame, ‖(token L v b).2‖ ≤ Q := by |
| 26 | let B (d : ℕ) (s : Signed) := LinearMap.toContinuousLinearMap (L.mirrorGroup d s) |
| 27 | have h (i : Fin (D+1) × Signed) : ∀ᶠ q : ℝ in atTop, ‖B i.1 i.2‖*R ≤ q := eventually_ge_atTop _ |
| 28 | obtain ⟨Q,hQ,H⟩ := ((eventually_gt_atTop (0:ℝ)).and (eventually_all.mpr h)).exists |
| 29 | refine ⟨Q,hQ, fun ⟨d,v⟩ hd hv b => ?_⟩ |
| 30 | have hb : ‖L.mirrorGroup d b.1 v‖ ≤ Q := ((B d b.1).le_opNorm v).trans |
| 31 | ((mul_le_mul_of_nonneg_left hv (norm_nonneg _)).trans (H (⟨d,Nat.lt_succ_of_le hd⟩,b.1))) |
| 32 | rcases b with ⟨s,_|_⟩ |
| 33 | · exact hb |
| 34 | change ‖star (L.mirrorGroup d s v)‖ ≤ _ |
| 35 | rw [norm_star]; exact hb |
| 36 | |
| 37 | private lemma one_side (Q : Schedule) (k : ℕ) : 1 ≤ (Q.a k)⁻¹ := |
| 38 | (one_le_inv₀ (Q.a_pos k)).mpr (Q.a_zero ▸ Q.strictAnti.antitone (Nat.zero_le k)) |
| 39 | |
| 40 | private lemma one_grade (h : CellHyp C f) (d : ℕ) (R : ℝ) (hr : 0 < R) : |
| 41 | ∃ (M : ℕ) (B : ℝ), 0 ≤ B ∧ ∀ k ≥ M, ∀ t : C.book.Ref d, ‖t‖ ≤ R → |
| 42 | f.late (centeredBudget C ⟨d,t⟩ (B*(C.S.a k)⁻¹^(d+1)) k) := by |
| 43 | obtain ⟨M,hM,A,hA,hk⟩ := h.centered d 1 R zero_lt_one hr |
| 44 | refine ⟨M,A+1,by positivity,fun k he t ht => ?_⟩ |
| 45 | refine (hk k he 1 zero_lt_one).mono fun j hj => hj.mono ?_ |
| 46 | rintro i ⟨hi, hh⟩ |
| 47 | refine ⟨hi,hM.trans (he.trans hi),fun o => ?_⟩ |
| 48 | obtain ⟨ha,hb⟩ := hh t ht o |
| 49 | refine ⟨ha,hb.trans ?_⟩ |
| 50 | rw [show -(d:ℝ)-1=-((↑(d+1:ℕ)):ℝ) by push_cast; ring, |
| 51 | Real.rpow_neg_eq_inv_rpow, Real.rpow_natCast,add_mul,one_mul] |
| 52 | gcongr; exact one_le_pow₀ (one_side C.S k) |
| 53 | |
| 54 | /-- Constants pay *all* frames and remain fixed for arbitrary main word lengths. -/ |
| 55 | lemma rates (H : CellHyp C f) (D : ℕ) (R : ℝ) : |
| 56 | ∃ (F P : ℕ) (B : ℝ), 0 < B ∧ ∀ k ≥ F, ∀ v : C.book.Token, v.1 ≤ D → ‖v.2‖ ≤ R → |
| 57 | f.late (Single C v (B*(C.S.a k)⁻¹^P) k) := by |
| 58 | classical |
| 59 | obtain ⟨Q,hQ,hv⟩ := mirror_ball C.book D R |
| 60 | choose m b hb h using fun i : Fin (D+1) => one_grade H i Q hQ |
| 61 | obtain ⟨F,hF⟩ := (eventually_all.mpr fun i : Fin (D+1) => eventually_ge_atTop (m i)).exists |
| 62 | obtain ⟨B,hB,O⟩ := ((eventually_gt_atTop (0:ℝ)).and (eventually_all.mpr fun i => eventually_ge_atTop (b i))).exists |
| 63 | let P := D+1 |
| 64 | have he (k : ℕ) (hh : F ≤ k) (w : C.book.Token) (hd : w.1 ≤ D) (hw : ‖w.2‖ ≤ Q) : |
| 65 | f.late (centeredBudget C w (B*(C.S.a k)⁻¹^P) k) := by |
| 66 | let i : Fin (D+1) := ⟨w.1,Nat.lt_succ_of_le hd⟩ |
| 67 | exact (h i k ((hF i).trans hh) w.2 hw).mono fun p hp => hp.mono fun j hj => fixup C hj |
| 68 | (mul_le_mul (O i) (pow_le_pow_right₀ (one_side C.S k) (Nat.succ_le_succ hd)) |
| 69 | (pow_nonneg (inv_nonneg.mpr (C.S.a_pos k).le) _) hB.le) |
| 70 | refine ⟨F,P,B,hB,fun k hk v hd hw => ?_⟩ |
| 71 | have ht x := he k hk (token C.book v x) (by simpa) (hv v hd hw x) |
| 72 | unfold Order.late at ht ⊢ |
| 73 | filter_upwards [eventually_all.mpr ht] with p hp |
| 74 | filter_upwards [eventually_all.mpr hp, |
| 75 | eventually_all.mpr (fun x => Around.fit (f:=f) (token C.book v x) k), |
| 76 | f.mesh.cofinal.eventually (eventually_ge_atTop k)] with j hj ht he |
| 77 | exact ⟨he, fun _ x => ⟨hj x,ht x _⟩⟩ |
| 78 | |
| 79 | /-- Quantitative scale choice for the main field. One power bound for arbitrarily |
| 80 | small `r` and *all* positive `n`, still after meeting any fixed family threshold `F`. -/ |
| 81 | private lemma room_for (Q : Schedule) (F : ℕ) (H : Q.Gentle) : ∃ c : ℝ, 0 < c ∧ |
| 82 | ∀ r : ℝ, 0 < r → r ≤ 1 → ∀ m : ℕ, At Q F m (r/32) → ∀ n : ℕ, 0 < n → |
| 83 | ∃ k : ℕ, m ≤ k ∧ (↑(2*n:ℕ):ℝ)*(2*(5*Q.a k)) < Q.a m ∧ c*(r/n)^4 ≤ Q.a k := by |
| 84 | obtain ⟨t,ht,h⟩ := thickness Q F H |
| 85 | let b := t/32^2 |
| 86 | let s := min (b/21) 1 |
| 87 | have hb : 0<b := by unfold b; positivity |
| 88 | have hs : 0<s := lt_min (by positivity) zero_lt_one |
| 89 | refine ⟨t*s^2,by positivity,fun r hr hr' m hm n hn => ?_⟩ |
| 90 | have hp : b*r^2 ≤ Q.a m := calc |
| 91 | _ = t*(r/32)^2 := by unfold b; ring |
| 92 | _ ≤ _ := h _ (by positivity) (by linarith) _ hm |
| 93 | let δ : ℝ := s*(r/n)^2 |
| 94 | have hδ : 0<δ := by unfold δ; positivity |
| 95 | have hx : (1:ℝ) ≤ n := by exact_mod_cast hn |
| 96 | have hy : (0:ℝ) < n := by linarith |
| 97 | have h₀ : δ ≤ 1 := mul_le_one₀ (min_le_right ..) (sq_nonneg _) (pow_le_one₀ (by positivity) |
| 98 | ((div_le_one hy).mpr (hr'.trans hx))) |
| 99 | obtain ⟨k,hk⟩ := OS.turn Q F δ hδ |
| 100 | have ht₀ : (20*n:ℝ)*Q.a k < Q.a m := calc |
| 101 | _ < (20*n:ℝ)*δ := mul_lt_mul_of_pos_left hk.2.1 (by positivity) |
| 102 | _ ≤ b*r^2 := by |
| 103 | have hh : (20*n:ℝ)*δ=20*s*r^2/n := by unfold δ; field_simp |
| 104 | rw [hh]; apply le_trans (div_le_self (by positivity) hx) |
| 105 | gcongr; linarith [show s ≤ b/21 from min_le_left ..] |
| 106 | _ ≤ _ := hp |
| 107 | have hm' : Q.a k < Q.a m := lt_of_le_of_lt (le_mul_of_one_le_left (Q.a_pos k).le (by linarith)) ht₀ |
| 108 | refine ⟨k,(Q.strictAnti.lt_iff_gt.mp hm').le,by push_cast; linarith,?_⟩ |
| 109 | calc |
| 110 | _ = t * δ^2 := by unfold δ; ring |
| 111 | _ ≤ _ := h _ hδ h₀ k hk |
| 112 | |
| 113 | private lemma ext_room (Q : Schedule) (k n : ℕ) : ∀ᶠ b in atTop, (n:ℝ)*(2*(3*Q.a b))<Q.a k := by |
| 114 | apply (show Tendsto (fun b => (n:ℝ)*(2*(3*Q.a b))) atTop (𝓝 0) from by |
| 115 | simpa only [mul_zero] using (((Q.shrinks.const_mul (3:ℝ)).const_mul (2:ℝ)).const_mul (n:ℝ))).eventually |
| 116 | (gt_mem_nhds (Q.a_pos k)) |
| 117 | |
| 118 | /-- Uniform train estimate at all covered slab widths on these scales. -/ |
| 119 | theorem replicas (H : C.Makes) (hs : S.Hierarchy) (h : f.PointLimits C S) (hp : CellHyp C f) : Tiled C.S S timeAxis := by |
| 120 | intro D R |
| 121 | obtain ⟨F,P,J,hJ,hf⟩ := rates hp D R |
| 122 | obtain ⟨c,hc,hc'⟩ := room_for C.S F C.path.levels.fits.mesh |
| 123 | let B := J*(c⁻¹)^P |
| 124 | have hB : 0 < B := by unfold B; positivity |
| 125 | refine ⟨F,B,4*P,hB,fun r hr hr' m hm d hd w hw he hh hg => ?_⟩ |
| 126 | have ho := Nat.pos_of_ne_zero (show w.length≠0 from fun H => he (List.length_eq_zero_iff.mp H)) |
| 127 | obtain ⟨k,hk,hK,hA⟩ := hc' r hr hr' m hm _ ho |
| 128 | let A := J*(C.S.a k)⁻¹^P |
| 129 | have ha : A^w.length ≤ Spread.radius B (4*P) w r := by |
| 130 | have hv : (C.S.a k)⁻¹ ≤ c⁻¹*(w.length/r)^4 := calc |
| 131 | _ ≤ (c*(r/w.length)^4)⁻¹ := inv_le_inv₀ (C.S.a_pos k) (by positivity) |>.mpr hA |
| 132 | _ = _ := by rw [mul_inv,← inv_pow, inv_div] |
| 133 | calc _ ≤ (J*(c⁻¹*(w.length/r)^4)^P)^w.length := by |
| 134 | apply pow_le_pow_left₀ (by unfold A; have hh := C.S.a_pos k; positivity) |
| 135 | exact mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (by have hh := C.S.a_pos k; positivity) hv _) hJ.le |
| 136 | _ = _ := by unfold Spread.radius B; simp only [pow_mul,mul_pow]; ring |
| 137 | intro v |
| 138 | obtain ⟨e,ht⟩ := Ground.future_reach v |
| 139 | obtain ⟨E,W,hW,t,ht',ht₁,ht₂⟩ := affordable ht |
| 140 | obtain ⟨l,hl,hsep⟩ := ((eventually_ge_atTop k).and (C.S.shrinks.eventually (gt_mem_nhds ht'))).exists |
| 141 | obtain ⟨g,K,Q,hQ,hq⟩ := rates hp E W |
| 142 | obtain ⟨b,hb,hb',hb₀⟩ := ((eventually_ge_atTop l).and ((eventually_ge_atTop g).and |
| 143 | (ext_room C.S l (2*v.val.length)))).exists |
| 144 | let X := Q*(C.S.a b)⁻¹^K |
| 145 | have hX : 0≤X := by unfold X; have hh := C.S.a_pos b; positivity |
| 146 | refine ⟨X^(2*v.val.length),fun q => ?_⟩ |
| 147 | apply (travel_price H f S hs h hk hl hb hh hg hd v ht₂ q (hm.2.1.trans (by linarith)) |
| 148 | hsep hK hb₀ A X hX (fun i hi => hf k (hm.1.trans hk) i.2 (hw i hi).1 (hw i hi).2) |
| 149 | (fun i hi => hq b hb' i.2 (hW i hi).1 (hW i hi).2)).trans |
| 150 | rw [pow_mul A w.length]; exact mul_le_mul_of_nonneg_left (pow_le_pow_left₀ |
| 151 | (pow_nonneg (by unfold A; have hh := C.S.a_pos k; positivity) _) ha _) (pow_nonneg hX _) |
| 152 | |
| 153 | /-- RSeats: `QRead` on a covered positive sub-width *chosen before* the exterior. -/ |
| 154 | theorem seats : Bid.Seats := by |
| 155 | intro G C S f s D R |
| 156 | obtain ⟨F,B,K,hB,H⟩ := replicas s.cutoff s.kernel s.generic s.copies D R |
| 157 | refine ⟨B,K,hB,fun d w hw hh hd r hr hr' h => ?_⟩ |
| 158 | obtain ⟨m,hm⟩ := OS.turn C.S F (r/32) (by positivity) |
| 159 | obtain ⟨t,ht,hD,hH,hv⟩ := narrow C.S w hr hd h hw hm.2.1 |
| 160 | exact ⟨m,t,hD,ht,hH,H r hr hr' m hm t ht w hh hw hH hv⟩ |
| 161 | end YM.Next.Phase |