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.AnalyticNext.CONNECTED_ACTIVITY_BOUNDS.DCompare |
| 2 | import YM.AnalyticNext.CONNECTED_ACTIVITY_BOUNDS.FrameCosts |
| 3 | |
| 4 | /-! |
| 5 | # Uniform selected price gap: retain an actual window margin everywhere |
| 6 | |
| 7 | Derivative shell comparator E02→F01 applied on the actual tree |
| 8 | and to flat data on that tree, *in a gauge localized to each active |
| 9 | bond*, not one global trivial gauge. Perturb comparison uses projected |
| 10 | row anchors with orientation included. Output flags actual; don't require |
| 11 | realizability of the proposed packets in a common U for this result. |
| 12 | Post-L constants and include color multiplicity. This isn't a claim of |
| 13 | any uniform curvature away from the active hull or a quantum spectral |
| 14 | bound. |
| 15 | -/ |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | namespace YM.AnalyticNext.ConnectedActivity.Aff |
| 19 | open Lattice RG Precision Wilson Pressure Pressure.Stores Exterior Turn |
| 20 | open Matrix Work.F03 Progress.StationaryScenes Push.AbsoluteSums Tree Next.Fluctuations |
| 21 | open Win Finset |
| 22 | open scoped Topology BigOperators Matrix.Norms.Frobenius Classical |
| 23 | variable {G : Gauge} {c f n : Side} {S : StepData c f} |
| 24 | |
| 25 | section short |
| 26 | |
| 27 | def straightF (S : StepData c f) (p : Cell f) : Pos S := (1,.inl (p,false)) |
| 28 | def straightI (S : StepData c f) (i : Bond c) : Pos S := (1,.inr i) |
| 29 | |
| 30 | def little (p : Pos S) : Prop := (∃ i,p=straightF S i) ∨ (∃ i,p=straightI S i) |
| 31 | |
| 32 | lemma undiminished (T : Tube G S) (t R : ℕ) (p : Pos S) (hp : little p) (V : Config G c) |
| 33 | (x : Directions G f) : derivative T t p V x = derivative T R p V x := by |
| 34 | rcases hp with ⟨i,rfl⟩|⟨i,rfl⟩ <;> rfl |
| 35 | |
| 36 | lemma section_flat (T : Tube G S) (R : ℕ) (x : Directions G f) (p : Cell f) : |
| 37 | derivative T R (straightF S p) 1 x=Real.sqrt T.high.direct • curl p x := by |
| 38 | unfold derivative; rw [untwine_flat _ rfl]; rfl |
| 39 | |
| 40 | lemma rate_flat (T : Tube G S) (R : ℕ) (x : Directions G f) (i : Bond c) : |
| 41 | derivative T R (straightI S i) 1 x= -(Real.sqrt S.kernel.penalty) • Bid.bills S (form x) (pole i) := by |
| 42 | unfold derivative; rw [untwine_flat _ rfl] |
| 43 | change Real.sqrt S.kernel.penalty • (0-Bid.bills S (form x) (pole i)) = _ |
| 44 | rw [neg_smul, zero_sub, smul_neg] |
| 45 | |
| 46 | def city (D : Patch) := macroR D + D.L.val |
| 47 | |
| 48 | def endowment (D : Patch) := city D + 4*stencilD D 0 + 1 |
| 49 | |
| 50 | lemma parcel (S : StepData c f) (e : Bond f) (y : Cover) (hy : y ∈ box (macroR S.patch)) : |
| 51 | separation (home S e) (S.ratio.parent (wrap f y + S.ratio.embed (home S e))) ≤ city S.patch := by |
| 52 | let i := S.ratio.embed (home S e) |
| 53 | let p := wrap f y + i |
| 54 | have hp := Corona.foreshorten S.ratio i p |
| 55 | have hf : S.ratio.parent i=home S e := S.ratio.embed_parent _ |
| 56 | rw [hf] at hp |
| 57 | have h1 := Work.E08.separation_box_add i hy |
| 58 | exact (le_mul_of_one_le_left (Nat.zero_le (separation ..)) S.ratio.count.property).trans |
| 59 | (hp.trans (Nat.add_le_add_right h1 _)) |
| 60 | |
| 61 | -- Any smaller price point, step order. |
| 62 | |
| 63 | structure Warning (P : Teller G) (J : Patch) (t : ℝ) : Prop where |
| 64 | adjust (c f : Side) (S : StepData c f) (T : Tube G S) : S.patch=J → P.Funds S T → |
| 65 | ∀ (p : Pos S) (v : Directions G f) (C δ : ℝ), 0≤C → 0≤δ → |
| 66 | let D := stencilD S.patch 0 |
| 67 | (∀ i : Bond f,separation (base S p) (home S i) ≤ D+1 → ‖v i‖ ≤ C) → |
| 68 | ∀ V : Config G c,(∀ i : Bond c,separation (base S p) i.1 ≤ 4*D+1 → G.chord (V i) ≤ δ) → |
| 69 | ‖derivative T 0 p V v-derivative T 0 p 1 v‖ ≤ t*δ*C |
| 70 | |
| 71 | lemma warning (P : Teller G) (J : Patch) (h : J.Branches P.bind G) : ∃ t : ℝ, 0<t ∧ Warning P J t := by |
| 72 | obtain ⟨Y,hY,he⟩ := perturb P J h |
| 73 | refine ⟨Y*((4*stencilD J 0:ℕ)+1:ℝ),by positivity,⟨fun c f S T hJ hT p v C δ hC hd hv V hk => ?_⟩⟩ |
| 74 | have hy := he c f S T hJ hT 0 p v C δ hC hd hv V hk |
| 75 | rw [hJ] at hy; exact hy |
| 76 | |
| 77 | section tests |
| 78 | |
| 79 | private lemma chart_gap (P : Teller G) (D : Patch) (x δ : ℝ) (T : Tube G S) (F : Forest S.ratio) |
| 80 | (A : Stores S) (v : ArrayR G f) (V : Config G c) (e : Bond f) {t : ℝ} (hu : Warning P D t) |
| 81 | (hD : S.patch=D) (hh : P.Funds S T) (hz : δ≥0) (z : Site c → G.El) |
| 82 | (hb : ∀ i : Vars G f, i.1∉activeB A F (radiusB x) → v i=0) |
| 83 | (hp : ∀ i : Bond c,separation (home S e) i.1 ≤ endowment D → G.chord (gauge z V i) ≤ δ) |
| 84 | (hw : e∈activeB A F (radiusB x)) (hR : city D ≤ 2*radiusB x) : |
| 85 | let u := lie v |
| 86 | let u' := rotateG u (z ∘ S.ratio.parent) |
| 87 | let g := purse (base S) (fun i => ‖descend (Dmat T F x A V *ᵥ v) i‖) (city D) (home S e) |
| 88 | let L := purse (home S) (fun i => ‖u i‖) (endowment D) (home S e) |
| 89 | let s := Real.sqrt weight |
| 90 | ∀ (p : Pos S), separation (home S e) (base S p) ≤ city D → little p → |
| 91 | ‖derivative T (till x) p 1 u'‖ ≤ s⁻¹*g + t*δ*L := by |
| 92 | intro u u' G' L s p he hl |
| 93 | let a := home S e; let r := stencilD D 0 |
| 94 | let W := gauge z V |
| 95 | have hg : ∀ i : Bond f,separation (base S p) (home S i) ≤ stencilD S.patch 0+1 → ‖u' i‖ ≤ L := by |
| 96 | intro i hi; unfold u' rotateG at *; rw [G.norm_adjoint] |
| 97 | refine purse_le (home S) (fun i => ‖u i‖) (endowment D) (home S e) i (le_trans (separation_triangle _ (base S p) _) ?_) |
| 98 | rw [hD] at hi; unfold endowment; omega |
| 99 | have hV : ∀ i : Bond c,separation (base S p) i.1 ≤ 4*stencilD S.patch 0+1 → G.chord (W i) ≤ δ := by |
| 100 | intro i hi; apply hp |
| 101 | apply le_trans (separation_triangle _ (base S p) _) |
| 102 | rw [hD] at hi; unfold endowment; omega |
| 103 | have ht := hu.adjust _ _ S T hD hh p u' L δ (purse_ge ..) hz hg W hV |
| 104 | let Y := derivative T 0 p W u' |
| 105 | let b := derivative T 0 p V u |
| 106 | have hs : 0 < s := Real.sqrt_pos.mpr weight_pos |
| 107 | have hgl : ‖Y‖=‖b‖ := by |
| 108 | have hy := derivative_gauge T 0 p V u z hh |
| 109 | change Y = G.adjoint _ b at hy; rw [hy,G.norm_adjoint] |
| 110 | rw [undiminished T _ 0 p hl] |
| 111 | calc |
| 112 | _ ≤ ‖Y‖ + ‖Y-derivative T 0 p 1 u'‖ := by |
| 113 | rw [add_comm ‖Y‖,norm_sub_rev Y]; apply norm_le_norm_sub_add |
| 114 | _ ≤ s⁻¹*G'+t*δ*L := by |
| 115 | refine add_le_add ?_ ht; rw [hgl] |
| 116 | apply le_of_mul_le_mul_left _ hs; rw [mul_inv_cancel_left₀ hs.ne'] |
| 117 | apply le_trans _ (purse_le (base S) (fun i => ‖descend (Dmat T F x A V *ᵥ v) i‖) _ _ p he) |
| 118 | change _ ≤ ‖descend ..‖; rw [summit p V T A F x v hh (choose_span p A _ F hw (he.trans hR)) hb, |
| 119 | undiminished T (till x) 0 p hl,norm_smul, Real.norm_of_nonneg (Real.sqrt_nonneg weight)] |
| 120 | end tests |
| 121 | |
| 122 | -- Bill for a given local perturbation zone. |
| 123 | def debit (P : Teller G) (D : Patch) (C : ℝ) := |
| 124 | C * (box (macroR D)).card * (Fintype.card PlaqAxes) * (Real.sqrt P.top.clip.direct)⁻¹ + (Real.sqrt P.bind.penalty)⁻¹ |
| 125 | |
| 126 | |
| 127 | |
| 128 | lemma expense (P : Teller G) (D : Patch) (x : ℝ) (T : Tube G S) (F : Forest S.ratio) |
| 129 | (A : Stores S) (v : ArrayR G f) (V : Config G c) (e : Bond f) {t : ℝ} (hu : Warning P D t) |
| 130 | (hD : S.patch=D) (hh : P.Funds S T) {C : ℝ} (hC : 0≤C) (s : S.Choices) |
| 131 | (hE : ∀ U : Config G f, SliceSet S F U → usable S U (home S e) s → |
| 132 | Bid.Cops U (S:=S) 1 (S.prediction U s) e C) (hf : A.flags=RG.flags (temp x) V) |
| 133 | (hb : ∀ i : Vars G f, i.1∉activeB A F (radiusB x) → v i=0) |
| 134 | (hw : e∈activeB A F (radiusB x)) (hR : endowment D+1 ≤ radiusB x) |
| 135 | (he : 2*(endowment D+1)<c.val) : |
| 136 | let δ := tariff (endowment D+1) x |
| 137 | let g := purse (base S) (fun i => ‖descend (Dmat T F x A V *ᵥ v) i‖) (city D) (home S e) |
| 138 | let L := purse (home S) (fun i => ‖lie v i‖) (endowment D) (home S e) |
| 139 | ‖lie v e‖ ≤ debit P D C * ((Real.sqrt weight)⁻¹*g + t*δ*L) := by |
| 140 | intro δ g L |
| 141 | have hE' : home S e∉A.dome (10*radiusB x) := fun hi => Finset.disjoint_left.mp |
| 142 | (mem_filter.mp hw).2.2 (pin_origin ..) hi |
| 143 | obtain ⟨z,hz⟩ := reduceV S V A x hf (endowment D+1) (endowment D) (by omega) (home S e) |
| 144 | (fun hi => hE' (placed A (endowment D+1) _ (by omega) hi)) he |
| 145 | have hd : 0≤δ := by unfold δ tariff; have hx := Work.E04.temp_nonneg x; positivity |
| 146 | have hY : city D ≤ 2*radiusB x := by unfold endowment at hR; omega |
| 147 | have hG := chart_gap P D x δ T F A v V e hu hD hh hd z hb hz hw hY |
| 148 | let Z := rotateG (lie v) (z ∘ S.ratio.parent) |
| 149 | have hZ i (hi : i∈F.trunks) : collect G (form Z) i=0 := by |
| 150 | rw [collect_form]; have he : lie v i=(0:G.Color) := by |
| 151 | ext j |
| 152 | have hn : i ∉ activeB A F (radiusB x) := fun he => (mem_filter.mp he).2.1 hi |
| 153 | exact hb (i,j) hn |
| 154 | unfold Z rotateG; rw [he,map_zero] |
| 155 | let hL := Work.F01.link_bound S (Push.SectorMeasure.funds_branch hh) F s (form Z) hZ C hC e hE |
| 156 | let b := (Real.sqrt weight)⁻¹*g + t*δ*L; let a := home S e; let l := Real.sqrt P.top.clip.direct; let K := Real.sqrt S.kernel.penalty |
| 157 | have hl : 0<l := Real.sqrt_pos.mpr P.top.clip.quadratic_pos |
| 158 | have hk : 0<K := Real.sqrt_pos.mpr S.kernel.penalty_pos |
| 159 | have hv (y : Cover) (hy : y∈box (macroR S.patch)) (p : PlaqAxes) : |
| 160 | ‖curl (wrap f y + S.ratio.embed a,p) Z‖ ≤ l⁻¹*b := by |
| 161 | let i : Cell f := (wrap f y + S.ratio.embed a,p) |
| 162 | have ht : separation a (base S (straightF S i)) ≤ city D := by |
| 163 | rw [show base S (straightF S i)=S.ratio.parent i.1 from rfl, ← hD] |
| 164 | exact parcel S e y hy |
| 165 | have hs := hG _ ht (Or.inl ⟨i,rfl⟩) |
| 166 | apply le_of_mul_le_mul_left _ hl; rw [mul_inv_cancel_left₀ hl.ne'] |
| 167 | rw [section_flat T (till x) Z i, hh.high,norm_smul,Real.norm_of_nonneg hl.le] at hs; exact hs |
| 168 | have ht : ‖Bid.bills S (form Z) (a,coord e.2)‖ ≤ K⁻¹*b := by |
| 169 | let i : Bond c := (a,e.2) |
| 170 | have hs := hG (straightI S i) (by simp [straightI,i,base,center,a]) (Or.inr ⟨i,rfl⟩) |
| 171 | rw [rate_flat T (till x) Z i,norm_smul,norm_neg, Real.norm_of_nonneg hk.le] at hs |
| 172 | apply le_of_mul_le_mul_left _ hk; rw [mul_inv_cancel_left₀ hk.ne']; exact hs |
| 173 | rw [collect_form] at hL |
| 174 | rw [← show ‖Z e‖=‖lie v e‖ from G.norm_adjoint ..]; apply hL.trans |
| 175 | calc |
| 176 | _ ≤ C*(∑ _y ∈ box (macroR S.patch),∑ _p : PlaqAxes,l⁻¹*b) + K⁻¹*b := add_le_add |
| 177 | (mul_le_mul_of_nonneg_left (sum_le_sum fun y hy => sum_le_sum fun p _ => hv y hy p) hC) ht |
| 178 | _ = _ := by simp only [sum_const,nsmul_eq_mul,card_univ,hD,debit]; unfold l b K; rw [hh.knobs]; ring |
| 179 | end short |
| 180 | end YM.AnalyticNext.ConnectedActivity.Aff |