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.AnalyticBridge.RELATIVE_LOGDET_TRACE.Papyrus |
| 2 | import YM.Push.FREE_RESOLVENT.BlockRate |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Precision inputs for differential marks |
| 7 | |
| 8 | ONLY the fixed-sector derivative calculus uses the hypothesis on precision |
| 9 | jets (not a postulate about inverse or selected determinant); the actual finite |
| 10 | differences come from unconditional-on-jets input. Combine at the same torus, |
| 11 | using the same full keys, seed/table/actual V/G. All costs here in terms of |
| 12 | projected output. The orientation/field dependence licenses |
| 13 | on A (for derivatives with mask kept FIXED), when needed, must give |
| 14 | smoothness at the germ used on the chosen extension, not derivatives w.r.t. |
| 15 | the actual pushed flags at y. |
| 16 | -/ |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.AnalyticBridge.RelativeLogdet.Differential |
| 20 | open Function Filter Set Matrix MeasureTheory FreeResolvent TestD |
| 21 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius |
| 22 | variable {X E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 23 | variable {ι : Type} [Fintype ι] [DecidableEq ι] {A : E→Square ι} {x : E} {τ : Type*} |
| 24 | variable {D : Cost X} {v : τ→E} {G : Mark τ X} {p : ι→X} {W : ι→Set ι} {k : ℕ} {b C q R δ d U M V r s ε : ℝ} |
| 25 | |
| 26 | /-- The one (decreased) rate we require for unprojected per occurrence |
| 27 | mark transfers. Can buy e.g. with radial or list geometry via Mark. -/ |
| 28 | def cash (d : ℝ) (k : ℕ) := d/((2*k+1:ℕ):ℝ) |
| 29 | lemma cash_pos (k : ℕ) (hd : 0<d) : 0<cash d k := div_pos hd (by positivity) |
| 30 | lemma cash_bounds (k : ℕ) (hd : 0<d) : cash d k≤d ∧ (k+1:ℕ)*cash d k+k*cash d k ≤ d := by |
| 31 | have ht := cash_pos k hd |
| 32 | have he : cash d k * ((2*k+1:ℕ):ℝ)=d := div_mul_cancel₀ _ (by positivity) |
| 33 | push_cast at *; have hn : 0≤(k:ℝ)*cash d k := by positivity |
| 34 | constructor <;> linarith |
| 35 | |
| 36 | omit [DecidableEq ι] [NormedSpace ℝ E] in |
| 37 | lemma holds (h : ContinuousAt A x) (he : Gap (A x) s) (d : ℝ) (hd : d<s) (D : Cost X) (p : ι→X) : ∀ᶠ y in 𝓝 x, Gap (A y) d := by |
| 38 | let y := s-d |
| 39 | have hh : 0< y := sub_pos.mpr hd |
| 40 | let P a:= A a-A x |
| 41 | have hp : ∀ᶠ a in 𝓝 x, D.Schur p p 0 y (P a) := by |
| 42 | have hr (i) : ContinuousAt (fun a=>∑ j, |P a i j|) x := ((continuous_finsetSum _ fun j _ => ((continuous_id (X:=Square ι)).matrix_elem i j).abs).continuousAt).comp (h.sub continuousAt_const) |
| 43 | have hc (j) : ContinuousAt (fun a=>∑ i, |P a i j|) x := ((continuous_finsetSum _ fun i _ => ((continuous_id (X:=Square ι)).matrix_elem i j).abs).continuousAt).comp (h.sub continuousAt_const) |
| 44 | have hg (i : ι) := (hr i) (ge_mem_nhds (b:=∑ j,|P x i j|) (a:=y) (by simp only [P,sub_self,Matrix.zero_apply,abs_zero,Finset.sum_const_zero]; exact hh)) |
| 45 | have hv (j : ι) := (hc j) (ge_mem_nhds (b:=∑ i,|P x i j|) (a:=y) (by simp only [P,sub_self,Matrix.zero_apply,abs_zero,Finset.sum_const_zero]; exact hh)) |
| 46 | filter_upwards [show ∀ᶠ a in 𝓝 x, ∀ i, (∑ j, |P a i j|) ≤ y from eventually_all.mpr hg, show ∀ᶠ a in 𝓝 x, ∀ j, (∑ i, |P a i j|) ≤ y from eventually_all.mpr hv] with a ha hb |
| 47 | constructor <;> constructor <;> intro i |
| 48 | · simpa only [Cost.weight_zero,one_mul] using ha i |
| 49 | simpa only [Cost.weight_zero,one_mul,Matrix.transpose_apply] using hb i |
| 50 | exact hp.mono fun a ha => (he.perturb ha).mono (by unfold y; linarith) |
| 51 | |
| 52 | omit [DecidableEq ι] in |
| 53 | lemma presses (J : Knew G D p v x k s M r ε A) (hr : 0<r) (hP : ∀ᶠ y in 𝓝 x, (A y).IsHermitian) : |
| 54 | ∀ᶠ y in 𝓝 x,(A y).PosDef := by |
| 55 | filter_upwards [holds J.smooth.continuousAt J.gap (r/2) (half_lt_self hr) D p,hP] with y hy hh |
| 56 | refine Matrix.posDef_iff_dotProduct_mulVec.mpr ⟨hh, fun f hf => ?_⟩ |
| 57 | simp only [star_trivial]; apply lt_of_lt_of_le _ (hy.lower f) |
| 58 | refine mul_pos (half_pos hr) ?_ |
| 59 | have h : ∃ i, f i≠0 := by contrapose! hf; exact funext hf |
| 60 | obtain ⟨i,hi⟩ := h |
| 61 | exact lt_of_lt_of_le (sq_pos_of_ne_zero hi) (le_normSum f i) |
| 62 | |
| 63 | omit [DecidableEq ι] in |
| 64 | lemma recovered (H : Bundle v G D p p A x k s M) : D.Schur p p s M (A x) := by |
| 65 | have he := H.bound [] (by simp) |
| 66 | rw [zeroth] at he; exact he.reclaim |
| 67 | |
| 68 | lemma tag_poss {α β : ℝ} (hu : 1 ≤ U) (ha : 0 ≤ α) (hb : 0 ≤ β) (k : ℕ) : 0 ≤ tagPrice U k α β := by |
| 69 | unfold tagPrice; have := lt_of_lt_of_le zero_lt_one hu; positivity |
| 70 | |
| 71 | /-- Convenient common bundle for the letter producers. q will pay only |
| 72 | kernel excess per letter (need additional powers of 2,V,U for hit). -/ |
| 73 | structure Speech (D : Cost X) (p : ι→X) (W : ι→Set ι) (G : Mark τ X) (v : τ→E) (A : E→Square ι) (x : E) |
| 74 | (k : ℕ) (δ U C q ε : ℝ) : Prop where |
| 75 | /-- no on-window hypothesis made for U as a function of y. -/ |
| 76 | dawn : ∀ i, i∈W i |
| 77 | er : 0<δ |
| 78 | letter : 1≤C |
| 79 | profit : 0≤q |
| 80 | coin : 0≤ε |
| 81 | slip : ε ≤ 1 |
| 82 | paper : 1≤U |
| 83 | motion : G.Move D δ U |
| 84 | pd : ∀ᶠ y in 𝓝 x, Matrix.PosDef (A y) |
| 85 | work : Bundle v G D p p A x k ((k+1:ℕ)*δ) C |
| 86 | invert (u : ℝ) (hu : 0≤u) : Bundle v G D p p (action A u) x k ((k+1:ℕ)*δ) (C*attenuation u) |
| 87 | glimpse (u : ℝ) (hu : 0≤u) (l : List τ) (hl : l.length ≤ k) : |
| 88 | Mark.Bill G D p p l ((k+1:ℕ)*δ) (charges l.length ε C (drain u)) (jet v (fun y=>pie W (A y) u) l x) |
| 89 | revise (u : ℝ) (hu : 0≤u) : Bundle v G D p p (fun y=>defect W (A y) u) x k ((k+1:ℕ)*δ) (q*attenuation u) |
| 90 | arrange : Bundle v G D p p (fun y=>excess W (A y)) x k ((k+1:ℕ)*δ) q |
| 91 | |
| 92 | namespace Speech |
| 93 | variable (J : Knew G D p v x k s M r ε A) |
| 94 | |
| 95 | /-- Sum potential for all E or S overhead, uniform on radius. -/ |
| 96 | def drawer (M r U V : ℝ) (k : ℕ) := |
| 97 | let C:=meter k k M U (rise V r); let J := tagPrice U k M (V*C) |
| 98 | J+tagPrice U k M (tagPrice U k C J) |
| 99 | include J |
| 100 | lemma display (hs : ∀ᶠ y in 𝓝 x,(A y).IsHermitian) (hw : Price s M r d U V ε k) |
| 101 | (hM : G.Move D (cash d k) U) (hb : D.Volume p d V) |
| 102 | (hx : ∀ i,i∈W i) (hr : (study W hx).Near D p R) |
| 103 | (hC : 1≤C) (hy : M ≤ C) (hV : V*meter k k M U (rise V r) ≤ C) (hd : meter k k M U (rise V r) ≤ C) |
| 104 | (hq : Real.exp (-(k+1:ℕ)*d*R)*drawer M r U V k ≤ q) : Speech D p W G v A x k (cash d k) U C q ε := by |
| 105 | set δ := cash d k with ht |
| 106 | let L := meter k k M U (rise V r) |
| 107 | let e := Real.exp (-(k+1:ℕ)*d*R) |
| 108 | have he : 0 < e := Real.exp_pos _ |
| 109 | have hl := hw.pos |
| 110 | have hc : 0<δ := cash_pos k hl |
| 111 | have hm : Mark.Move G D d U := ⟨fun i x y => (hM.widen i x y).trans |
| 112 | (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left (D.weight_mono (cash_bounds k hl).1 x y) (zero_le_one.trans hw.one)) (G.pos ..).le)⟩ |
| 113 | let t : ℝ := (k+1:ℕ)*δ |
| 114 | have hf : t+k*δ ≤ d := (cash_bounds k hl).2 |
| 115 | have hk : t ≤ d := le_trans (le_add_of_nonneg_right (by positivity)) hf |
| 116 | have hb' : t ≤ (k+1:ℕ)*d := le_trans hk (by push_cast; nlinarith only [hl, mul_nonneg hl.le (show 0≤(k:ℝ) by positivity)]) |
| 117 | have h4 : d ≤ 4*(k+1:ℕ)*d := by push_cast; nlinarith only [hl, mul_nonneg hl.le (show 0 ≤ (k:ℝ) by positivity)] |
| 118 | let w := tagPrice U k M (V*L) |
| 119 | let w' := tagPrice U k M (tagPrice U k L w) |
| 120 | have hz : 0≤L := hw.meter_abs |
| 121 | have h1 : 0 ≤ w := tag_poss hw.one hw.m (mul_nonneg hw.vol hz) k |
| 122 | have h2 : 0 ≤ w' := tag_poss hw.one hw.m (tag_poss hw.one hz h1 k) k |
| 123 | have hp : e*w ≤ q := (mul_le_mul_of_nonneg_left (le_add_of_nonneg_right h2) he.le).trans hq |
| 124 | have hp' : e*w' ≤ q := (mul_le_mul_of_nonneg_left (le_add_of_nonneg_left h1) he.le).trans hq |
| 125 | have hh := presses J hw.r0 hs |
| 126 | have hA : Bundle v G D p p A x k d M := (J.bundle hw.m hw.high).mono (h4.trans (hw.roomEnough.trans hw.roomTop)) le_rfl |
| 127 | refine ⟨hx,hc,hC,(mul_nonneg he.le h1).trans hp,hw.low,hw.high,hw.one,hM,hh,hA.mono hk hy, |
| 128 | fun u hu => (J.volume_price hw hu hm hb).mono (hk.trans h4) (mul_le_mul_of_nonneg_right hd (attenuation_pos hu).le),?_,?_,?_⟩ |
| 129 | · intro u hu l h |
| 130 | have ht := glimpse_rates J hw (study W hx) hu hm hb l h |
| 131 | rw [funext (f:=fun y => pie W (A y) u) (fun y => pie_inspects W _ _ hx)] |
| 132 | apply ht.mono _ ((le_of_eq (show V*charges l.length ε L (drain u)=charges l.length ε (V*L) (drain u) from by unfold charges; split <;> ring)).trans |
| 133 | (charges_mono _ hw.low hV (drain_pos hu).le)) |
| 134 | exact le_trans hb' (by push_cast; nlinarith only [hl,mul_nonneg hl.le (show 0≤(k:ℝ) by positivity)]) |
| 135 | · intro u hu |
| 136 | rw [funext (f:=fun y => defect W (A y) u) (fun y => defect_survey W _ _ hx)] |
| 137 | have hL := attenuation_pos hu |
| 138 | exact (J.miss hw hu hm hb hr).mono hb' (le_trans (le_of_eq (show e*tagPrice U k M (V*(L*attenuation u))=e*w*attenuation u by unfold w tagPrice; ring)) |
| 139 | (mul_le_mul_of_nonneg_right hp hL.le)) |
| 140 | let D₀ := fun y => pie W (A y) 0-action A 0 y |
| 141 | have hT : Bundle v G D p p D₀ x k d (tagPrice U k L (e*w)) := by |
| 142 | have hh := J.discrepancy hw (u:=0) le_rfl hm hb hr |
| 143 | unfold D₀; rw [show (fun y => pie W (A y) 0-action A 0 y)=TestD.glimpse (study W hx) A 0-action A 0 from |
| 144 | funext fun y => congr_arg (·-action A 0 y) (pie_inspects W _ _ hx)] |
| 145 | dsimp only at hh; simpa only [drain,add_zero, inv_one,mul_one] using hh |
| 146 | let q₁ := tagPrice U k L (e*w) |
| 147 | have hh : Bundle v G D p p (fun x => (1/2:ℝ) • (D₀ x + (D₀ x).transpose)) x k d q₁ := |
| 148 | (((hT.one_add hT.transpose).scale (1/2:ℝ))).mono le_rfl (by rw [abs_of_nonneg (by norm_num)]; unfold q₁; ring_nf; rfl) |
| 149 | refine ((hA.multiply hh hM hc.le hw.one hw.m (tag_poss hw.one hz (mul_nonneg he.le h1) k) (show 0 ≤ t from by unfold t; positivity) hf).mono le_rfl |
| 150 | (le_trans (le_of_eq (show tagPrice U k M q₁=e*w' from by unfold q₁ w' tagPrice; ring)) hp')).glue ?_ |
| 151 | filter_upwards [presses J hw.r0 hs] with y hy |
| 152 | have hg : IsSymm ((A y)⁻¹) := Matrix.isHermitian_iff_isSymm.mp hy.inv.isHermitian |
| 153 | change A y*((1/2:ℝ) • (D₀ y + (D₀ y).transpose))=A y*Next.SectorChange.Schur.clouded W (A y)-1 |
| 154 | unfold D₀ action resolve; rw [zero_smul,add_zero,← sym_change _ _ hg, ← sym_cloud,Matrix.mul_sub, Matrix.mul_nonsing_inv _ (IsUnit.mk0 _ hy.det_pos.ne')] |
| 155 | |
| 156 | omit J |
| 157 | variable (B : Speech D p W G v A x k δ U C q ε) |
| 158 | include B |
| 159 | lemma started (u : ℝ) (hu : 0≤u) : Bundle v G D p p (fun y=>pie W (A y) u) x k ((k+1:ℕ)*δ) (C*attenuation u) := by |
| 160 | refine ⟨sculpted B.work.smooth B.pd.self_of_nhds B.dawn u hu,fun l hl=>?_⟩ |
| 161 | exact (B.glimpse u hu l hl).mono le_rfl (charges_lax _ B.slip (attenuation_pos hu).le (attenuation_le hu) (zero_le_one.trans B.letter)) |
| 162 | lemma priced : Priced D p W (A x) ((k+1:ℕ)*δ) C q := by |
| 163 | refine ⟨B.dawn, B.pd.self_of_nhds,B.letter,mul_nonneg (by positivity) B.er.le,B.profit,recovered B.work, |
| 164 | fun u hu => recovered (A:=action A u) (B.invert u hu),fun u hu => recovered (A:=fun y=> pie W (A y) u) (B.started u hu),fun u hu => recovered (A:=fun y=>defect W (A y) u) (B.revise u hu), recovered (A:=fun y=>excess W (A y)) B.arrange⟩ |
| 165 | end Speech |
| 166 | end YM.AnalyticBridge.RelativeLogdet.Differential |