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.RG08.Room.Glass |
| 2 | |
| 3 | /-! # Spare season / nonce elimination for Jacobian change. -/ |
| 4 | set_option autoImplicit false |
| 5 | noncomputable section |
| 6 | namespace YM.RG08.Room |
| 7 | open Forms Glyph Cloud Finset Function MvPolynomial |
| 8 | open scoped PowerSeries BigOperators Topology Classical |
| 9 | variable {I:Type}[Fintype I] |
| 10 | namespace Haze |
| 11 | variable (H:Haze I) |
| 12 | abbrev Jot (I:Type):=Unit ⊕ I |
| 13 | |
| 14 | def active {I:Type} : I↪Jot I:=⟨Sum.inr,Sum.inr_injective⟩ |
| 15 | def lifted (H:Haze I):Haze (Jot I) where |
| 16 | foam := H.foam.map active |
| 17 | price := Sum.elim (fun _ _=>0) (fun i=>Sum.elim (fun _=>0) (H.price i)) |
| 18 | flipped i j:=by cases i <;> cases j <;> simp [H.flipped] |
| 19 | dryL i j hi:=by |
| 20 | cases i <;> cases j <;> try rfl |
| 21 | rename_i i j; exact H.dryL i j (fun h=>hi (Finset.mem_map_of_mem active h)) |
| 22 | |
| 23 | abbrev tick :Jot I:=.inl () |
| 24 | omit [Fintype I] in |
| 25 | lemma inactive : tick∉H.lifted.foam:=by simp [lifted,active,tick] |
| 26 | |
| 27 | def noon (i:I):Port (Jot I):=rod (.inr i) |
| 28 | def dawn : Port I→ₐ[ℝ] Port (Jot I):=belt noon |
| 29 | |
| 30 | private def traceL (i:I)(j:Jot I):ℝ:=if Sum.inr i=j then 1 else 0 |
| 31 | omit [Fintype I] in |
| 32 | lemma guard : Scout H H.lifted noon traceL:=by |
| 33 | constructor |
| 34 | · intro i hi; have he: Sum.inr i ∈ H.lifted.foam:=mem_map_of_mem active hi |
| 35 | simp [traceL,he,noon,ite_smul] |
| 36 | · intro i hi; apply abroad_atom |
| 37 | simpa [lifted,active] using hi |
| 38 | intro i k hi hk |
| 39 | simp only [traceL,mul_ite,mul_one,mul_zero];simp [lifted,active,hi,hk] |
| 40 | |
| 41 | omit [Fintype I] in |
| 42 | lemma unguard : Injective (dawn (I:=I)):=by |
| 43 | let t : Jot I→Port I:=Sum.elim (fun _=>0) rod |
| 44 | intro a b h |
| 45 | apply_fun belt t at h |
| 46 | change ((belt t).comp (belt noon)) _=((belt t).comp (belt noon)) _ at h |
| 47 | rw [switched,show (fun i=>belt t (noon i))=rod from funext (fun i=>belt_x ..),belt_id,belt_id] at h |
| 48 | exact h |
| 49 | lemma fit_pin (i:I)(p:Port I):pin (.inr i) (dawn p)=dawn (pin i p):=by |
| 50 | unfold dawn; rw [belt_chain,sum_eq_single i (by intro b _ hi; rw [noon,pins,if_neg (by simp [Ne.symm hi]),mul_zero]) (by simp)];rw [noon,pins,if_pos rfl,mul_one] |
| 51 | lemma freeze (p:Port I):pin tick (dawn p)=0:=by unfold dawn;rw [belt_chain];apply Finset.sum_eq_zero;intro i _;rw [noon,pins,if_neg (by simp [tick]),mul_zero] |
| 52 | |
| 53 | -- clocks don't alter field CVs, adjoin identity on spare for determinant |
| 54 | |
| 55 | def hoist (x:I→Port I):Jot I→Port (Jot I):=Sum.elim (fun _=>rod tick) (fun i=>dawn (x i)) |
| 56 | omit [Fintype I] in |
| 57 | lemma hoist_chain (x:I→Port I)(p:Port I):belt (hoist x) (dawn p)=dawn (belt x p):=by |
| 58 | change ((belt (hoist x)).comp (belt noon)) p=((belt noon).comp (belt x)) p |
| 59 | rw [switched,switched,show (fun i=>belt (hoist x) (noon i))=(fun i=>dawn (x i)) from funext (fun i=>belt_x ..)];rfl |
| 60 | private def poem (Q:Inn I):Inn (Jot I):=rename Sum.inr Q |
| 61 | omit [Fintype I] in |
| 62 | private lemma dawn_light (Q:Inn I):dawn (liftInn Q)=liftInn (poem Q):=by |
| 63 | unfold dawn;rw [belt_c] |
| 64 | induction Q using MvPolynomial.induction_on with |
| 65 | | C r=>unfold poem lug;rw [aeval_C,rename_C,PowerSeries.algebraMap_apply];rfl |
| 66 | | add a b ha hb=>unfold poem at *;rw [_root_.map_add,_root_.map_add,_root_.map_add,ha,hb] |
| 67 | | mul_X a i ih=>unfold poem at *;rw [_root_.map_mul,_root_.map_mul,_root_.map_mul,ih,rename_X,lug,aeval_X];rfl |
| 68 | |
| 69 | omit [Fintype I] in |
| 70 | lemma dawn_head {x:I→Port I}(h:Near x):Near (hoist x):=by |
| 71 | rintro (u|i) |
| 72 | · cases u;simp [tap,hoist,rod,tick,liftInn] |
| 73 | change tap 0 (belt noon _)=_;rw [rim,h i,MvPolynomial.aeval_X];simp [noon,rod,tap,liftInn] |
| 74 | |
| 75 | private lemma hoist_gate (x:I→Port I):gate (hoist x) = Matrix.fromBlocks (1:Matrix Unit Unit (Port (Jot I))) 0 0 (dawn.mapMatrix (gate x)):=by |
| 76 | ext i j :1 |
| 77 | cases i <;> cases j |
| 78 | · rename_i u r; cases u;cases r;change pin tick (rod (tick:Jot I))=(1 : Matrix Unit Unit (Port (Jot I))) () (); rw [pins,Matrix.one_apply];simp |
| 79 | · rename_i u i; change pin (.inr i) (rod (tick:Jot I))=0; simp [pins,tick] |
| 80 | · rename_i i u;cases u;change pin (tick) (dawn _)=0;rw [freeze] |
| 81 | rename_i i j;exact fit_pin j (x i) |
| 82 | lemma hoist_det (x:I→Port I): (gate (hoist x)).det=dawn (gate x).det:=by rw [hoist_gate,Matrix.det_fromBlocks_zero₂₁,Matrix.det_one,one_mul, ← AlgHom.map_det] |
| 83 | |
| 84 | /-- No spare variable version of Jacobian conservation. Use centered coordinates. Doesn't |
| 85 | assert positivity or nondegeneracy; consume centered precision-covariance equation. -/ |
| 86 | theorem absorbed {P:I→I→ℝ}{Q:Inn I}{x:I→Port I}(hz:Near x)(ho:anchored H.foam x)(hb:H.Boil P Q) |
| 87 | (F:Port I)(hu:tiny F): H.evolve x F Q=H.brew (rise F):=by |
| 88 | let t:=H.lifted |
| 89 | let y:=hoist x |
| 90 | have h:anchored t.foam y:=by |
| 91 | intro i hi; cases i with |
| 92 | | inl u=>cases u;rfl |
| 93 | | inr i=>change dawn (x i)=_; rw [ho i (by simpa [t,lifted,active] using hi),dawn,belt_x];rfl |
| 94 | have he(i)(hi:i∈t.foam):pin tick (y i)=0:=by |
| 95 | rcases i with u|i |
| 96 | · cases u;exact False.elim (H.inactive hi) |
| 97 | exact freeze (x _) |
| 98 | have hd(i:I)(p:Inn I):pderiv (.inr i) (poem p)=poem (pderiv i p):=by |
| 99 | have he:=fit_pin i (liftInn p) |
| 100 | rw [dawn_light,pin_c,pin_c,dawn_light] at he |
| 101 | have ht:=congrArg (tap 0) he;simpa [tap,liftInn] using ht |
| 102 | have hb': t.Boil (Sum.elim (fun _ _=>0) (fun i=>Sum.elim (fun _=>0) (P i))) (poem Q):=by |
| 103 | constructor |
| 104 | · rintro (⟨⟩|i) hi j |
| 105 | · exact False.elim (H.inactive hi) |
| 106 | have hx:=hb.1 i (by simpa [lifted,active,t] using hi) |
| 107 | cases j <;> simp [t,lifted,active,hx] |
| 108 | rintro (⟨⟩|i) hi |
| 109 | · exact False.elim (H.inactive hi) |
| 110 | rw [hd,hb.2 i (by simpa [lifted,t,active] using hi)] |
| 111 | simp [t,poem,lifted,active,_root_.map_smul] |
| 112 | have ha':Near y:=dawn_head hz |
| 113 | have hu':tiny (dawn F):=by unfold tiny at *;change tap 0 (belt noon F)=_; rw [rim]; unfold tap;rw [hu,map_zero] |
| 114 | have hh:=still (H:=t) H.inactive ha' h he hb' (dawn F) (freeze F) (by rw [←dawn_light];exact freeze _) hu' |
| 115 | apply unguard |
| 116 | unfold evolve at * |
| 117 | unfold y at hh; simp_rw [←dawn_light, hoist_chain] at hh -- y let |
| 118 | simp only [dawn,←entrusted (guard H),_root_.map_mul,belt_rose _ (neartiny hz hu Q),belt_rose _ hu,map_add,map_sub] |
| 119 | -- maybe names |
| 120 | refine Eq.trans ?_ hh |
| 121 | apply congrArg t.brew; apply congrArg₂ (·*·) rfl; |
| 122 | have hr:= (hoist_det x).symm |
| 123 | rw [show (@instDecidableEqSum Unit I _ (Classical.decEq I))=(Classical.decEq (Jot I)) from Subsingleton.elim _ _] at hr;exact hr |