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.Push.ABSOLUTE_SUMS.Mixed |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Stencil to remove clamps and work in a patch |
| 7 | |
| 8 | Uses true thresholds and data on a halo, all orientations including away |
| 9 | from holes. Query when a V selector outside is determined by universal |
| 10 | distance and compact-group chords, not assuming payload locations at |
| 11 | which it returns nonzero automatically determine all decisions. Again some |
| 12 | public read lemmas adapted from the working private localities; here also |
| 13 | publish/use on the projected F and on the affines. |
| 14 | -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.AnalyticNext.ConnectedActivity.Aff |
| 18 | open Function Lattice RG Precision Wilson Pressure Pressure.Stores Exterior Bloch Turn |
| 19 | open Matrix Work.F03 Progress.StationaryScenes Push.SectorMeasure Push.SectorMeasure.Oriented |
| 20 | open Push.AbsoluteSums Tree Next.Fluctuations Finset Filter |
| 21 | open scoped Topology BigOperators Matrix.Norms.Frobenius Classical |
| 22 | variable {G : Gauge} {c f n : Side} {S : StepData c f} |
| 23 | |
| 24 | section prices |
| 25 | |
| 26 | /-- E04 receipts pre-L in support, obtain unconditionally on any |
| 27 | operation funded by Teller. Plot at empty halo is locally valid for |
| 28 | this use. Don't deduce a global default slice from that Plot. -/ |
| 29 | def blank (S : StepData c f) : Stores S := ⟨∅,∅,∅⟩ |
| 30 | |
| 31 | lemma blank_dome (S : StepData c f) (r) : (blank S).dome r=∅ := by |
| 32 | ext; simp [dome,place,halo_spec,blank] |
| 33 | |
| 34 | structure Reserve (P : Teller G) (C : ℝ) : Prop where |
| 35 | price : 0<C |
| 36 | receipt (L : Side) : ∀ᶠ x : ℝ in atTop, ∀ (c f : Side) (S : StepData c f) (T : Tube G S), |
| 37 | P.Funds S T → S.patch.L=L → 100*(1+radiusB x) ≤ c.val → (∀ (_ : Forest S.ratio) (V : Config G c), |
| 38 | Bid.LaneCounts T.up x (fiery G x S.patch.L) T.high C 1 S.ratio.parent ∧ |
| 39 | Bid.LaneCounts T.down x (temp x) T.low C S.patch.L.val (id:Site c → Site c) ∧ Bid.Maximum C T x V) |
| 40 | |
| 41 | lemma reserves (P : Teller G) : ∃ C, Reserve P C := by |
| 42 | obtain ⟨C,hC,h⟩ := Work.E04.answer Work.E03.answer P |
| 43 | refine ⟨C,hC,fun L => ?_⟩ |
| 44 | filter_upwards [(h L 0).late] with x hx c f S T hh hS hm F V |
| 45 | let k : S.Choices := Classical.ofNonempty |
| 46 | have hF : Plot (blank S) (1:Config G f) k V x 0 := by |
| 47 | refine ⟨fun p hp => ?_,fun b hb => ?_,fun i hi => ?_,fun i hi => ?_⟩ |
| 48 | all_goals simp [blank_dome] at * |
| 49 | rw [hS]; exact hx c f S hS hm T hh F (blank S) 1 k V (fun _ _ => rfl) hF |
| 50 | |
| 51 | lemma honor {W : Config G n} {t : ℝ} {y : Site n} {p : PlaqAxes} (h : y ∉ RG.flags t W) : |
| 52 | toll W (y,p) ≤ t := by |
| 53 | apply le_of_not_gt; intro he; exact h ((RG.flags_spec ..).mpr ⟨(y,p),Work.E01.base_touched (y,p),he⟩) |
| 54 | |
| 55 | lemma veil (T : Tube G S) {C : ℝ} (x : ℝ) (V : Config G c) (i : Twin c) |
| 56 | (h : Bid.LaneCounts T.down x (temp x) T.low C S.patch.L.val (id:Site c → Site c)) |
| 57 | (hv : ∀ y : Site c,separation i.1.1 y ≤ radiusB x/50 → y∉ RG.flags (temp x) V) : |
| 58 | T.vision (till x) (temp x) V i=T.Xn (till x) V i := by |
| 59 | let t := temp x |
| 60 | unfold Tube.vision Tube.Xn thinned plotted |
| 61 | have he : toll V i.1 ≤ t := honor (hv _ (by simp)) |
| 62 | split |
| 63 | next => |
| 64 | rw [if_pos] |
| 65 | intro p; apply le_of_not_gt; intro H |
| 66 | let V' := h.dropped V i.1.1 p H; have hz : toll V p ≤ t := honor (hv _ V') |
| 67 | have hm : t ≤ t * Real.exp (↑(separation i.1.1 p.1)/ T.low.relaxation) := le_mul_of_one_le_right |
| 68 | (temp_nonneg _) (Real.one_le_exp (div_nonneg (by positivity) T.low.radius_pos.le)) |
| 69 | exact H.not_ge (hz.trans hm) |
| 70 | next => |
| 71 | split |
| 72 | next => rw [one_smul] |
| 73 | next hh => |
| 74 | have ht : 0<toll V i.1 := lt_of_le_of_ne (G.chord_nonneg _) (Ne.symm hh) |
| 75 | rw [min_eq_left (by rw [le_div_iff₀ ht, one_mul]; exact he),one_smul] |
| 76 | end prices |
| 77 | |
| 78 | -- Numerical stencils, reads with model/tag parameters kept fixed. No freedom to |
| 79 | -- use an eigenvalue-cap based st instead. |
| 80 | section extents |
| 81 | variable {ι κ : Type*} (M : Config G c→ι→κ→Pay G) (p : ι→Site c) (q : κ→Site c) |
| 82 | open Work.E03 |
| 83 | structure Unseen (R : ℕ) : Prop where |
| 84 | view i j (V W : Config G c) : AgreeNear id (p i) R V W → M V i j=M W i j |
| 85 | zero i j V : R < separation (p i) (q j) → M V i j=0 |
| 86 | |
| 87 | lemma Unseen.pay [Fintype κ] {V W : Config G c} {v w : κ→G.Color} {R i} |
| 88 | (h : Unseen M p q R) (hp : AgreeNear id (p i) R V W) (hv : ∀ j, separation (p i) (q j) ≤ R → v j=w j) : |
| 89 | zip (M V) v i=zip (M W) w i := by |
| 90 | unfold zip; refine Finset.sum_congr rfl fun j _ => ?_ |
| 91 | by_cases hi : separation (p i) (q j)≤R |
| 92 | · rw [hv j hi,h.view i j V W hp] |
| 93 | rw [h.zero i j V (lt_of_not_ge hi), h.zero i j W (lt_of_not_ge hi), _root_.zero_apply, _root_.zero_apply] |
| 94 | |
| 95 | lemma laneSight {α β : Type*} (N : Row α β) (d R : ℕ) (hd : 1 ≤ d) (a : ι → Co c α) (b : κ → Co c β) : |
| 96 | Unseen (fun (V : Config G c) i j => lane R d V N (a i) (b j)) (Prod.fst∘a) (Prod.fst∘b) R := by |
| 97 | have hh r (hr : r*d≤R) : r≤R := (by nlinarith) |
| 98 | constructor |
| 99 | · intro i j V W H; apply tsum_congr; intro y; unfold priced; split |
| 100 | next h => rw [rated,rated, travel_near id (fun _ _ => sep_step ..) _ _ _ _ R (hh _ h.1) H] |
| 101 | next h => rfl |
| 102 | intro i j V ht |
| 103 | have he (u) : priced R d V N (a i) (b j) u=0 := by |
| 104 | unfold priced; split |
| 105 | next h => |
| 106 | let w := route 0 u 1 |
| 107 | have he : stop (a i).1 w = (b j).1 := by rw [h.2]; simpa only [map_zero, add_zero] using Work.E03.stop_route (a i).1 0 u |
| 108 | have hv := Work.E03.sep_walk (fun x : Site c => x) Work.E03.sep_step (a i).1 w |
| 109 | rw [he] at hv; exact (ht.not_ge (hv.trans (hh _ h.1))).elim |
| 110 | next => rfl |
| 111 | simp only [lane,he,tsum_zero] |
| 112 | |
| 113 | lemma river (T : Tube G S) (R : ℕ) : Unseen (T.Φ R) |
| 114 | (fun i : Twin f => S.ratio.parent (mesh i).1) (fun i : Twin c => (mesh i).1) R := by |
| 115 | constructor |
| 116 | · intro i j V W ht; apply tsum_congr; intro k; dsimp only [casted]; split |
| 117 | next h => |
| 118 | rw [rated,rated, travel_near S.ratio.parent (parent_step S) _ _ _ _ R h.1 ?_] |
| 119 | intro e he; unfold replica; split |
| 120 | next => rfl |
| 121 | next => exact ht _ he |
| 122 | next => rfl |
| 123 | intro i j V ht |
| 124 | have he u : casted S T.R R V (mesh i) (mesh j) u = 0 := by |
| 125 | dsimp only [casted]; split |
| 126 | next h => |
| 127 | let w := route (lift (S.ratio.residue (mesh i).1)) (S.patch.L.val • u) 1 |
| 128 | have hp := sep_walk S.ratio.parent (parent_step S) (mesh i).1 w |
| 129 | rw [show stop _ w = _ from casted_endpoint S (mesh i).1 u,S.ratio.embed_parent,← h.2] at hp |
| 130 | exact (ht.not_ge (hp.trans h.1)).elim |
| 131 | next => rfl |
| 132 | unfold Tube.Φ leap; simp only [he, tsum_zero] |
| 133 | end extents |
| 134 | |
| 135 | -- raw (unclipped, not analytic on all U,V) |
| 136 | section raw |
| 137 | variable (T : Tube G S) (R : ℕ) |
| 138 | open Work.E03 |
| 139 | |
| 140 | def primalF (V : Config G c) := zip (T.Φ R V) (T.Xn R V) |
| 141 | def primalI (V : Config G c) := zip (T.Φ' R V) (T.Xn R V) |
| 142 | def primalN (V : Config G c) := zip (T.N R V) (T.Xn R V) |
| 143 | |
| 144 | def primal (i : Pos S) (k : S.Choices) (V : Config G c) (U : Config G f) : G.Color := |
| 145 | let X := pull i.1 0 V; let W := pull i.1 0 U |
| 146 | i.2.elim (fun p => T.Xf R W p - primalF T R X p) |
| 147 | (fun b => Pressure.Tube.Z S (S.prediction W (choice i.1 k)) X b - primalI T R X b) |
| 148 | |
| 149 | -- coordinate shift allowance on V |
| 150 | |
| 151 | def radial (D : Patch) := 2*R+predReach D+10 |
| 152 | |
| 153 | lemma plots_within (i : Twin c) (w : Site c) (r : ℕ) (V W : Config G c) (he : AgreeNear id w r V W) |
| 154 | (ht : separation w (mesh i).1 + (R+4) ≤ r) : T.Xn R V i=T.Xn R W i := |
| 155 | plotted_near id (fun x i => sep_step x i) V W T.low T.down R S.patch.L.val i S.patch.L.property (he.shrink ht) |
| 156 | |
| 157 | lemma primalF_local (i : Twin f) (V W : Config G c) (he : AgreeNear id (S.ratio.parent (mesh i).1) (2*R+4) V W) : |
| 158 | primalF T R V i=primalF T R W i := Unseen.pay _ _ _ (river T R) (he.shrink (by simp; omega)) |
| 159 | (fun j hj => plots_within T R j _ _ V W he (by omega)) |
| 160 | |
| 161 | lemma primalI_local (i : Bond c) (V W : Config G c) (he : AgreeNear id i.1 (2*R+4) V W) : |
| 162 | primalI T R V i=primalI T R W i := Unseen.pay _ _ _ |
| 163 | (i:=i) (laneSight (G:=G) T.R.mn S.patch.L.val R S.patch.L.property pole mesh) |
| 164 | (he.shrink (show separation i.1 i.1 + R ≤ _ by simp; omega)) (fun j hj => plots_within T R j _ _ V W he (by |
| 165 | change separation i.1 (mesh j).1≤ _ at hj; omega)) |
| 166 | |
| 167 | lemma primalN_local (i : Co c Gain) (V W : Config G c) (he : AgreeNear id i.1 (2*R+4) V W) : |
| 168 | primalN T R V i=primalN T R W i := Unseen.pay _ _ _ |
| 169 | (i:=i) (laneSight (G:=G) T.R.o S.patch.L.val R S.patch.L.property id mesh) |
| 170 | (he.shrink (show separation i.1 i.1 + R ≤ _ by simp; omega)) (fun j hj => plots_within T R j _ _ V W he (by |
| 171 | change separation i.1 (mesh j).1≤ _ at hj; omega)) |
| 172 | |
| 173 | lemma pull_agreesFine (S : StepData c f) {u v : Config G f} (p : Pos S) {D : ℕ} |
| 174 | (hu : AgreeNear S.ratio.parent (base S p) (D+1) u v) : |
| 175 | AgreeNear S.ratio.parent (center S p.2) D (pull p.1 0 u) (pull p.1 0 v) := by |
| 176 | intro i hi; simp only [step_transport,hu (edgeP p.1 i) |
| 177 | ((along_home p.1 (center S p.2) S i).trans (Nat.add_le_add_right hi _))] |
| 178 | |
| 179 | lemma pull_agreesCoarse (s : Signed) (x : Site c) {u v : Config G c} {D : ℕ} |
| 180 | (hu : AgreeNear id (s.act x) (D+1) u v) : AgreeNear id x D (pull s 0 u) (pull s 0 v) := by |
| 181 | intro i hi; simp only [step_transport,hu (edgeP s i) ((directed_climb s x i).trans (Nat.add_le_add_right hi _))] |
| 182 | |
| 183 | lemma primal_local (p : Pos S) (k : S.Choices) {U W : Config G f} {V X : Config G c} (hb : S.patch.Branches S.kernel G) |
| 184 | (he : AgreeNear S.ratio.parent (base S p) (radial R S.patch) U W) |
| 185 | (hd : AgreeNear id (base S p) (radial R S.patch) V X) : primal T R p k V U = primal T R p k X W := by |
| 186 | let D := radial R S.patch-1 |
| 187 | have hD : D+1=radial R S.patch := by unfold D radial; omega |
| 188 | rw [← hD] at he hd |
| 189 | have hu := pull_agreesFine S p he; have hv := pull_agreesCoarse p.1 (center S p.2) hd |
| 190 | have hel : 2*R+4 ≤ D := by unfold D radial; omega |
| 191 | have hy : predReach S.patch ≤ D := by unfold D radial; omega |
| 192 | rcases p with ⟨s,i|i⟩ |
| 193 | · change _-_=_-_ |
| 194 | exact congr_arg₂ Sub.sub |
| 195 | (plotted_near _ (parent_step S) _ _ T.high T.up R 1 i le_rfl |
| 196 | (hu.shrink (show separation (S.ratio.parent i.1.1) (S.ratio.parent i.1.1)+(R+4)≤D by simp; omega))) |
| 197 | (primalF_local T R i _ _ (hv.shrink (show separation (S.ratio.parent i.1.1) (S.ratio.parent i.1.1)+(2*R+4)≤D by simp; exact hel))) |
| 198 | unfold primal; dsimp only [Sum.elim_inr]; apply congr_arg₂ Sub.sub |
| 199 | · unfold Tube.Z; rw [hv i (by change separation i.1 i.1 ≤ _; simp),prediction_near_eq hb _ (pull s 0 W) _ i |
| 200 | (hu.shrink (show separation i.1 i.1 + _ ≤ D by rw [separation_self]; omega))] |
| 201 | apply primalI_local; exact hv.shrink (show separation i.1 i.1+(2*R+4)≤D by rw [separation_self]; omega) |
| 202 | |
| 203 | -- Only through the outward halo. The `φ` path stencil lives in R, don't |
| 204 | -- use R to pay the kept-row tests; for that enlarge to R+B/50 etc. |
| 205 | lemma target_unveiled (x : ℝ) (p : Pos S) (k : S.Choices) (V : Config G c) (U : Config G f) |
| 206 | {C : ℝ} (h : Bid.LaneCounts T.down x (temp x) T.low C S.patch.L.val (id:Site c → Site c)) |
| 207 | (he : ∀ y : Site c,separation (base S p) y ≤ radiusB x → y∉RG.flags (temp x) V) : |
| 208 | target T (till x) (temp x) p k V U = primal T (till x) p k V U := by |
| 209 | let W := pull p.1 0 V |
| 210 | have ht i (hg : separation (center S p.2) (mesh i).1 ≤ till x) : |
| 211 | T.vision (till x) (temp x) W i=T.Xn (till x) W i := by |
| 212 | apply veil T x W i h; intro j hj hp |
| 213 | have hy : p.1.act j ∈ RG.flags (temp x) V := by |
| 214 | rw [← Work.H03.flags_send p.1 0]; simpa only [affine,add_zero] using Finset.mem_image_of_mem (affine p.1 0) hp |
| 215 | apply he (p.1.act j) _ hy |
| 216 | unfold base; rw [separation_signed]; apply le_trans (separation_triangle _ (mesh i).1 _) |
| 217 | refine le_trans (Nat.add_le_add hg hj) ?_; unfold till; omega |
| 218 | rcases p with ⟨a,i|i⟩ |
| 219 | · unfold target primal; dsimp only [Sum.elim_inl]; congr 1 |
| 220 | apply Unseen.pay _ _ _ (river T _) (fun _ _ => rfl) ht |
| 221 | unfold target primal; dsimp only [Sum.elim_inr]; congr 1 |
| 222 | apply Unseen.pay _ _ _ (laneSight (G:=G) T.R.mn S.patch.L.val (till x) S.patch.L.property pole mesh) |
| 223 | (fun _ _ => rfl) ht |
| 224 | end raw |
| 225 | end YM.AnalyticNext.ConnectedActivity.Aff |