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.TraceExtension.Shepherd.Cage |
| 2 | import YM.Push.STRESS_FLUX.LinkD |
| 3 | set_option autoImplicit false |
| 4 | set_option linter.unusedSectionVars false |
| 5 | noncomputable section |
| 6 | namespace YM.Trace.Shepherd |
| 7 | open RG Wilson Lattice Source AnalyticBridge VerifiedReset Finset Ac MergeProof Cask Function Pressure Next.Fluctuations PathData Extra.Iteration Push.AbsoluteSums Extra.Multi StressFlux MeasureTheory |
| 8 | open scoped Topology BigOperators InnerProductSpace Matrix.Norms.Frobenius Classical ContDiff |
| 9 | variable {G:Gauge}{n:Side} (x:Site n)(a: Step) |
| 10 | variable (g:G.El) (P: Support n) |
| 11 | local notation "X"=> Config G n |
| 12 | lemma modify_off (U:X) (hp:x ∉ P): Agrees P U (StressFlux.modify x a g U):=by |
| 13 | intro l hl hm; by_cases h:l=a.used x; swap; · exact (if_neg h).symm |
| 14 | subst l; unfold Step.used at hl hm; split at hl <;> simp_all |
| 15 | lemma modify_local {U V:X}(he:Agrees P U V): Agrees P (StressFlux.modify x a g U) (StressFlux.modify x a g V):=by |
| 16 | intro i hi hj; unfold StressFlux.modify; rw[he i hi hj] |
| 17 | lemma modify_g (z:Site n→ G.El)(U:X) : Lattice.gauge z (StressFlux.modify x a g U)= StressFlux.modify x a (z x * g * (z x)⁻¹) (Lattice.gauge z U):=by |
| 18 | funext i; unfold StressFlux.modify Lattice.gauge; by_cases hx:i=a.used x |
| 19 | · subst i; cases e:a.neg<;> simp [Step.used,e]<;>group |
| 20 | simp [hx] |
| 21 | lemma paint_local (d:ℝ)(ht:G.chord g ≤ d) (U:X)(t:Edge (Site n)): knot (U t) (StressFlux.modify x a g U t) ≤ d:=by |
| 22 | unfold StressFlux.modify; have hh:= (G.chord_nonneg g).trans ht; split |
| 23 | next he=> split |
| 24 | next h=> unfold knot; rw [show U t*(U t*g⁻¹)⁻¹=U t*g*(U t)⁻¹ from by group, G.chord_conj]; exact ht |
| 25 | next h=> unfold knot;rw [show U t*(g*U t)⁻¹=g⁻¹ from by group,G.chord_inv];exact ht |
| 26 | simpa[knot] using hh |
| 27 | variable (R:Rep G n) |
| 28 | local notation "t"=> R.p.threshold |
| 29 | set_option maxHeartbeats 400000 in |
| 30 | lemma smallC (d:ℝ)(ht:G.chord g ≤ d)(hd:8*d ≤ R.p.threshold) (U:Config G n)(hh:Healthy (R.p.threshold/4) {x} (StressFlux.modify x a g U)): |
| 31 | flags R.p.threshold U=flags R.p.threshold (StressFlux.modify x a g U)∧ Brink R d U (StressFlux.modify x a g U):=by |
| 32 | let V:= StressFlux.modify x a g U; let c:=(R.p.threshold) |
| 33 | let f(F:Face (Per n))(U:X):= G.chord (faceValue U F) |
| 34 | have hq:= paint_local x a g d ht U; have hp(i:Face (Per n)) (hz:f i U≠ f i V) : f i U ≤ c ∧ f i V ≤ c:=by |
| 35 | have h : x∈ touched i:= not_not.mp (fun h=> hz (congr_arg G.chord (travel_local _ _ _ _ (fun e hp hv=> modify_off x a g (touched i) U h e (List.mem_toFinset.mpr hp) (List.mem_toFinset.mpr hv))))) |
| 36 | have hB : f i V ≤ c/4:= le_of_not_gt fun he=> disjoint_left.mp hh (mem_singleton_self _) ((flags_spec ..).mpr ⟨i,h,he⟩) |
| 37 | have hm : |f i U-f i V|≤ 4*d:= (castC ..).trans (by simpa only [faceValue,square,List.length_cons,List.length_nil,Nat.cast_ofNat] using! hike U V hq i.1 (square i.2.val.1 i.2.val.2)) |
| 38 | refine ⟨?_,?_⟩; all_goals linarith only[show 0<c from R.p.threshold_pos,hB,le_abs_self (f i U-f i V),hm,show 8*d≤ c from hd] |
| 39 | have hz(i:Face (Per n)): R.p.threshold < f i U ↔ R.p.threshold < f i V:=by by_cases h:f i U=f i V; rw [h]; exact iff_of_false (not_lt.mpr (hp i h).1) (not_lt.mpr (hp i h).2) |
| 40 | have hx(s:Seat n)(p:Face (Per n))(he:f p (s.view U)≠f p (s.view V)): f p (s.view U) ≤ c ∧ f p (s.view V)≤ c:=by |
| 41 | have hv(U:X):f p (s.view U)= f (Face.send s.1 s.2 p) U:= Face.send_price (R:=Per n) (K:=G.El) (M:=ℝ) U p s.1 s.2 G.chord G.chord_inv (fun k g=> G.chord_conj g k) |
| 42 | rw[hv,hv] at he ⊢; exact hp _ he |
| 43 | refine ⟨?_,⟨(G.chord_nonneg _).trans ht,fun s e=> ?_,fun s=> ?_,fun s p=> hx s _⟩⟩ |
| 44 | · ext p; rw[flags_spec,flags_spec]; exact exists_congr fun i=> and_congr_right fun _=> hz i |
| 45 | · unfold Seat.view pull Step.read; split; rw[spun]; exact hq _; exact hq _ |
| 46 | unfold kept; apply forall_congr'; intro p; by_cases he:f p (s.view U)=f p (s.view V); unfold f V at he; rw[he] |
| 47 | have hM : c≤ c*Real.exp ((separation 0 p.1:ℝ)/R.clip.relaxation):= le_mul_of_one_le_right R.p.threshold_pos.le (Real.one_le_exp (div_nonneg (Nat.cast_nonneg _) R.clip.radius_pos.le)) |
| 48 | obtain ⟨h,h'⟩:=hx s p he; exact iff_of_true (h.trans hM) (h'.trans hM) |
| 49 | lemma flowA : Measurable (fun i:G.El × Config G n=> StressFlux.modify x a i.1 i.2):=by refine Continuous.measurable ?_ ; refine continuous_pi fun i=> ?_; unfold StressFlux.modify; split_ifs <;> fun_prop |
| 50 | lemma pull_shift (s:Seat n)(d:Axis)(g:G.El)(U:X): |
| 51 | Seat.view s (StressFlux.modify (affine s.1 s.2 x) ((posDir d).rotate s.1) g U) = StressFlux.modify x (posDir d) g (Seat.view s U):=by |
| 52 | let a:= posDir d; let b:= a.rotate s.1; let z:= affine s.1 s.2 x; funext i; by_cases hx:i=a.used x |
| 53 | · rw [hx]; change b.read (StressFlux.modify z b g U) z = a.read (StressFlux.modify x a g _) x; rw [read_modify,read_modify,if_pos rfl,if_pos rfl]; rfl |
| 54 | have hq: sendEdge s.1 s.2 i≠ b.used z:= fun h=> hx (sendEdge_injective _ _ h) |
| 55 | rw [show StressFlux.modify x (posDir d) g (Seat.view s U) i=_ from if_neg hx]; unfold Seat.view pull Step.read; split_ifs; exact congr_arg Inv.inv (if_neg hq); exact if_neg hq |
| 56 | end YM.Trace.Shepherd |