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.Push.FREE_RESOLVENT.SharedCells |
| 2 | import YM.TraceExtension.Shepherd.Abyss |
| 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 Cells Accent Menu |
| 8 | open Push.GridApprox Overlay |
| 9 | open scoped Topology BigOperators InnerProductSpace Matrix.Norms.Frobenius Classical ContDiff |
| 10 | variable {G:Gauge}{n:Side}{C:Family G}(H:C.Makes) {b:ℝ} |
| 11 | def mama (b:ℝ) (x: Site n) (U:Config G n):ℂ:= if x∈flags b U then 1 else 0 |
| 12 | lemma mommy (b:ℝ) : Interior (Push.GridApprox.window 0 8) (mama (n:=n) (G:=G) b 0):=by |
| 13 | refine ⟨fun g t=>by simp [mama], .ite ((flags_open ..).measurableSet) measurable_const measurable_const,fun U V hu=> ?_,1,fun V=>by unfold mama; split <;> simp⟩ |
| 14 | let P:= ({0}:Support n); have hp : (inspected P:Set (Site n))⊆ Push.GridApprox.window 0 8:=by |
| 15 | intro x hx; have hv:= Next.Rank.Thirst.inspect P hx; have hx : pdist x≤ 8:=by simpa [P,halo_spec,separation] using! hv |
| 16 | exact ⟨lift x,FreeResolvent.Lifted.lift_box x 8 hx,by simp⟩ |
| 17 | have hv := flags_agree b U V P (agrees_mono hu hp) |
| 18 | by_cases hx:0∈flags b U; rw [mama,if_pos hx,mama,if_pos (show 0∈flags b V from (mem_inter.mp (show 0∈P∩flags b V from hv ▸ mem_inter.mpr ⟨mem_singleton_self _,hx⟩)).2)] |
| 19 | rw [mama,if_neg hx,mama,if_neg]; exact fun hd=>hx (mem_inter.mp (show 0∈P∩flags b U from hv.symm ▸ mem_inter.mpr ⟨mem_singleton_self _,hd⟩)).2 |
| 20 | section |
| 21 | set_option quotPrecheck false |
| 22 | variable {J p k N:ℕ} |
| 23 | local notation "n!"=> (C.side k p) |
| 24 | local notation "S"=> C.S |
| 25 | local notation "R"=> (C.path.rep N p k) |
| 26 | local notation "Q"=> C.path |
| 27 | local notation "M!"=> (C.path.levels) |
| 28 | local notation "F"=> mama (G:=G) b (0:Site (C.side k p)) |
| 29 | include H |
| 30 | def brinkP (C:Family G)(J p k N:ℕ) (b:ℝ):= let A:= C.path.rep N p k; (C.S.a J/C.S.a k)^4 * Vac.treasury C.path.levels k - A.beta*(A.clip.linear/5*b^2) |
| 31 | lemma ritual (hk:k ≤ N) (hJ:J ≤ k)(hb:0<b)(hT:2*b≤ (C.path.rep N p k).p.threshold) (hr:Push.GridApprox.room C.path.levels J k 8): |
| 32 | (tilesAt C.S p (hJ.trans hk)).rootTest (C.beta N p) (backTo C.path N p hk F) ≤ Real.exp (brinkP C J p k N b):=by |
| 33 | let W:= tilesAt S p (hJ.trans hk); let X:=tilesAt S p hJ; let V:= Site (C.side J p); let g U:= ∏ i : V,X.copy i F U; have hG:=Joint.incoming_env C.path p hJ (cylinder_env (show Interior (Push.GridApprox.window 0 8) F from mommy b)) univ |
| 34 | let y:= backTo Q N p hk F |
| 35 | have hp: backTo Q N p hk g=fun U=>∏ i:V, W.copy i y U:= backTo_copies Q N p hJ hk univ F 8 (mommy b) hr |
| 36 | let M:=moment (C.beta N p) (backTo Q N p hk g); let Z:= Wilson.partition G (C.side N p) (C.beta N p) |
| 37 | have hz : 0< Z:= partition_pos _ |
| 38 | have hw:=H.wilson.represents N p k hk; obtain hh:=hw.good |
| 39 | let f:=R; let A:=(C.path.levels.params k).paths; let t':=C.path.levels.clock;let Y:=t'.loopCap k;let δ:=t'.allowance k; let w:=t'.forcedAllowance k; have hW:0 ≤ w:= (Real.exp_pos _).le; have hκ:w ≤1:=Real.exp_le_one_iff.mpr (neg_nonpos.mpr (Real.rpow_nonneg (Real.exp_pos _).le _)); let u:= t'.hatCoupling k; have hu : 0<u:= inv_pos.mpr (Real.sqrt_pos.mpr (zero_lt_one.trans (C.path.levels.fits.delayed _))); let β:= f.beta; have hB:0 ≤ β:= (Overlay.beta_positive H.wilson hk).le; have hvk : u ≤ f.p.threshold:=by rw[show f.p= _ from hw.vac]; exact le_mul_of_one_le_right hu.le (Real.one_le_exp (sq_nonneg _)) |
| 40 | let K':= Fintype.card V; let C':= Fintype.card (Site n!); let s:= f.exCost A Y δ;let η:=β*(f.clip.linear/5*b^2);let a:= f.scalar+C'*s-K'*η;have hA: Fintype.card V=Fintype.card W.Cell:=rfl |
| 41 | have He : Z*‖M‖ ≤ Real.exp a:=by |
| 42 | have hx(U): ‖(f.eval U:ℂ)*g U‖≤Real.exp a:=by |
| 43 | by_cases ht:g U=0; rw[ht,mul_zero,norm_zero]; exact (Real.exp_pos _).le |
| 44 | let z(i:V):Seat n! := (X.omega i,X.translateBy i) |
| 45 | have h' (i:V): F (Seat.view (z i) U)≠0:=by |
| 46 | have hν:(X.copy i F U)≠0:= fun h=> ht (prod_eq_zero (mem_univ i) h); intro h; apply hν; unfold Tiling.copy; split; swap;exact h; rw[show F (pull _ _ U)=0 from h]; simp |
| 47 | have hχ(i:V):0∈flags b ((z i).view U):= not_not.mp (fun hw=> h' i (if_neg hw)) |
| 48 | have hp(i:V): anchor S p hJ i∈ flags b U:=by |
| 49 | let e:= z i; rw[← Work.H03.flags_send e.1 e.2 b U]; exact mem_image.mpr ⟨0,hχ i, (show affine e.1 e.2 0=anchor S p hJ i by simp only[affine,Signed.act_zero,zero_add]; exact tile_translate ..)⟩ |
| 50 | have hz : K' ≤ (flags b U).card:= (card_univ (α:=V)).symm.trans_le ( Finset.card_le_card_of_injOn (s:=(@univ V _)) (t:=flags b U) (anchor S p hJ) (fun i _=>hp i) ((show Function.Injective (anchor S p hJ) from fun i j he=> by let s:=C.S.toDepth hJ p; exact (s.embed_parent i|>.symm.trans ((congr_arg s.parent he).trans (s.embed_parent j)))).injOn)) |
| 51 | have he: g U=1:= prod_eq_one fun i _=> by |
| 52 | have hx: F ((z i).view U)=1:= if_pos (hχ i); unfold Tiling.copy; split; rw[show F (pull _ _ U)=_ from hx];simp; exact hx |
| 53 | rw [he,mul_one,Complex.norm_real]; exact (flourishX f U b hh hκ hB K' hz hb hT).trans_eq (by unfold a η β s; congr 2; ring) |
| 54 | have hv:= norm_integral_le_of_norm_le_const (Filter.Eventually.of_forall hx : ∀ᵐ U:Config G n! ∂prior G _, _); rw [show (∫ U:Config G n!, _ ∂prior G _) =(Z:ℂ)*M from forfeit Q hk H.wilson g hG] at hv; simpa [norm_mul, Real.norm_of_nonneg hz.le] using hv |
| 55 | have hν:= f.denominator hh hB u hu hvk (History.nonnegative Q H.wilson N p k hk); have hD:=History.partition_eq Q H.wilson N p k hk; let B:= brinkP C J p k N b |
| 56 | have hpZ: ‖M‖ ≤ Real.exp (K'* B):=by |
| 57 | refine le_of_mul_le_mul_left ?_ hz; apply le_trans He; apply le_trans _ (mul_le_mul_of_nonneg_right (hν.trans hD.le) (Real.exp_pos ((K':ℝ)*B)).le) |
| 58 | rw [← Real.exp_add, Real.exp_le_exp] |
| 59 | have hz := Vac.suffices_bill H.wilson (p:=p) hk 0 0 0 0 0 |
| 60 | unfold Bands.finalBill at hz; simp only [Nat.cast_zero,zero_mul,add_zero] at hz |
| 61 | have hT : (C':ℝ)* ( (2*s)+w+β*baseBudget f.clip A u +4*Module.finrank ℝ G.Mat*Real.log (16/u)) ≤ C'* Vac.treasury C.path.levels k:= hz |
| 62 | rw [show Fintype.card (Edge (Site (C.path.levels.S.side k p)))= Fintype.card (Site n!)*4 from by simp [Edge, Axis]]; let M':=(C.S.a J/C.S.a k);have hx : (↑C':ℝ)= K'*M'^4:=Stock.tallies S ..; unfold a; change f.scalar+C'*s- _≤ f.scalar-C'* (s+ _)- _+ (K':ℝ)*(M'^4* _-η); push_cast; nlinarith only [hT,mul_nonneg (Nat.cast_nonneg C') hW,show (K':ℝ)*M'^4*Vac.treasury C.path.levels k=C'*Vac.treasury C.path.levels k from hx ▸ rfl] |
| 63 | have hv:=Stock.spacer ‖M‖ B 1 K' (norm_nonneg _) zero_lt_one (show 0< K' from Fintype.card_pos) (by simpa using hpZ) |
| 64 | unfold M at hv; rw [div_one,hp] at hv; exact hv |
| 65 | end |
| 66 | end YM.Trace.Shepherd |