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.PREC.FrameResponse |
| 2 | |
| 3 | /-! |
| 4 | # Tree stationary quadratic gluing |
| 5 | |
| 6 | Given REAL counting matrix solve on EVERY torus. `extracted` slice tangent |
| 7 | response rooted at actual projected block. No quotient by harmonic directions. |
| 8 | The stationary quadratic value is a real theorem on these algebraic inputs; |
| 9 | must identify K,H etc and the near-flat germ before it proves any physics. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Precision |
| 14 | open Lattice Wilson RG Matrix Exterior Finset Tree |
| 15 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff |
| 16 | variable {c f : Side} {S : StepData c f} |
| 17 | |
| 18 | def marked (F : Forest S.ratio) (a : form 1 f) : Prop := ∀ i∈F.trunks,a (i.1,coord i.2)=0 |
| 19 | |
| 20 | /-- phi formula: hike is BACKWARDS to root, so plus here. -/ |
| 21 | def straighten (S : StepData c f) (F : Forest S.ratio) (W : Matrix (Body 1 f) (Body 1 c) ℝ) : |
| 22 | Matrix (Body 0 f) (Body 1 c) ℝ := LinearMap.toMatrix' |
| 23 | ((LinearMap.pi fun i : Body 0 f => |
| 24 | integralLink i.1 (F.hike i.1)-((LinearMap.proj ((S.ratio.parent i.1),vac)).comp (fixRoot S).mulVecLin)).comp W.mulVecLin) |
| 25 | |
| 26 | def extracted (S : StepData c f) (F : Forest S.ratio) (W : Matrix (Body 1 f) (Body 1 c) ℝ) : |
| 27 | Matrix (Body 1 f) (Body 1 c) ℝ := W+d 0 f*straighten S F W |
| 28 | |
| 29 | variable (F : Forest S.ratio) (W : Matrix (Body 1 f) (Body 1 c) ℝ) (a : form 1 c) |
| 30 | |
| 31 | lemma books (i : Body 0 f) : |
| 32 | (straighten S F W *ᵥ a) i=integralLink i.1 (F.hike i.1) (W *ᵥ a)-(fixRoot S *ᵥ (W *ᵥ a)) (S.ratio.parent i.1,vac) := by |
| 33 | rw [straighten,LinearMap.toMatrix'_mulVec]; rfl |
| 34 | |
| 35 | lemma centers : centered S (straighten S F W *ᵥ a) = -(fixRoot S *ᵥ (W *ᵥ a)) := by |
| 36 | funext ⟨x,i⟩; rw [vac_only i]; simp only [centered,books,Pi.neg_apply] |
| 37 | rw [S.ratio.embed_parent, Forest.hike, dif_neg (by simp [Tree.leaf,Ratio.embed_parent])] |
| 38 | simp [integralLink, linkSum] |
| 39 | |
| 40 | lemma stays : marked (S:=S) F (extracted S F W *ᵥ a) := by |
| 41 | rintro i hi |
| 42 | obtain ⟨x,hx,rfl⟩ := (F.trunk_mem_iff _).mp hi |
| 43 | have HH := F.stays x hx |
| 44 | let b := x+(F.up x).vec |
| 45 | let y := W *ᵥ a |
| 46 | let p := straighten S F W *ᵥ a |
| 47 | have ht : integralLink x (F.hike x) y=(if (F.up x).neg then -y ((F.up x).used x |>.1,coord ((F.up x).used x).2) else y ((F.up x).used x |>.1,coord ((F.up x).used x).2)) + integralLink b (F.hike b) y := by |
| 48 | rw [Forest.hike,dif_pos hx]; rfl |
| 49 | rw [extracted,add_mulVec,← mulVec_mulVec,Pi.add_apply, d_sites] |
| 50 | cases h : F.up x with |
| 51 | | mk i val => |
| 52 | rw [h] at HH |
| 53 | unfold b at ht; rw [h] at ht |
| 54 | cases val |
| 55 | · simp only [Step.used,Bool.false_eq_true,↓reduceIte] at * |
| 56 | simp_rw [books]; change S.ratio.parent (x+step i)=S.ratio.parent x at HH |
| 57 | change integralLink _ _ (W *ᵥ a)=_ at ht |
| 58 | rw [HH]; simp only [Step.vec,Bool.false_eq_true,↓reduceIte,y] at ht; linarith only [ht] |
| 59 | simp only [Step.used,↓reduceIte,sub_add_cancel] at * |
| 60 | have hh' : (Step.vec ⟨i,true⟩ : Site f) = -step i := rfl |
| 61 | rw [hh',← sub_eq_add_neg] at HH ht |
| 62 | simp_rw [books]; rw [HH]; unfold y at ht; linarith only [ht] |
| 63 | |
| 64 | section trace |
| 65 | |
| 66 | variable (H : Matrix (Body 2 f) (Body 2 f) ℝ) (H' : Matrix (Body 2 c) (Body 2 c) ℝ) |
| 67 | |
| 68 | def K {n : Side} (H : Matrix (Body 2 n) (Body 2 n) ℝ) : Matrix (Body 1 n) (Body 1 n) ℝ := |
| 69 | (d 1 n).transpose*H*d 1 n |
| 70 | |
| 71 | lemma d_d_vac : d 1 c*d 0 c=0 := closed 0 c |
| 72 | lemma K_kills : K H' * d 0 c=0 := by rw [K,Matrix.mul_assoc,d_d_vac,Matrix.mul_zero] |
| 73 | lemma K_orthogonal : (d 0 c).transpose*K H'=0 := by |
| 74 | rw [K,← Matrix.mul_assoc,← Matrix.mul_assoc, ← Matrix.transpose_mul, d_d_vac]; simp |
| 75 | |
| 76 | structure Inputs (S : StepData c f) (W : Matrix (Body 1 f) (Body 1 c) ℝ) (H : Matrix (Body 2 f) (Body 2 f) ℝ) |
| 77 | (H' : Matrix (Body 2 c) (Body 2 c) ℝ) : Prop where |
| 78 | primal : K H*W=(mean S).transpose*K H' |
| 79 | dual : mean S*W=1-S.kernel.penalty⁻¹ • K H' |
| 80 | |
| 81 | lemma stationed (i : Inputs S W H H') : |
| 82 | probe S*extracted S F W=1-S.kernel.penalty⁻¹ • K H' ∧ |
| 83 | K H*extracted S F W = (probe S).transpose*K H' := by |
| 84 | constructor |
| 85 | · rw [← i.dual] |
| 86 | apply Matrix.toLin'.injective |
| 87 | apply LinearMap.ext; intro x |
| 88 | change (probe S*extracted S F W) *ᵥ x=(mean S*W) *ᵥ x |
| 89 | rw [← mulVec_mulVec,extracted, add_mulVec,← mulVec_mulVec, mulVec_add, root_gradient, centers, mulVec_neg,probe, add_mulVec, ← mulVec_mulVec, add_neg_cancel_right, mulVec_mulVec] |
| 90 | rw [extracted, Matrix.mul_add, ← Matrix.mul_assoc _ (d 0 f), K_kills]; rw [Matrix.zero_mul, add_zero] |
| 91 | rw [probe, transpose_add, Matrix.add_mul,i.primal,transpose_mul,Matrix.mul_assoc, K_orthogonal,Matrix.mul_zero,add_zero] |
| 92 | |
| 93 | lemma action (i : Inputs S W H H') : |
| 94 | let T:=extracted S F W |
| 95 | let P:=1-probe S*T |
| 96 | T.transpose*K H*T+S.kernel.penalty • (P.transpose*P)=K H' := by |
| 97 | intro T P |
| 98 | have hv : P = S.kernel.penalty⁻¹ • K H' := by unfold P T; rw [(stationed F W H H' i).1]; simp |
| 99 | calc |
| 100 | _ = T.transpose*(probe S).transpose*K H'+ P.transpose*(S.kernel.penalty • P) := by |
| 101 | rw [Matrix.mul_assoc _ (K H) T,← Matrix.mul_smul,(show K H*T = _ from (stationed F W H H' i).2),Matrix.mul_assoc] |
| 102 | _ = (T.transpose*(probe S).transpose + P.transpose)*K H' := by rw [hv, smul_smul,mul_inv_cancel₀ S.kernel.penalty_pos.ne',one_smul,add_mul] |
| 103 | _ = _ := by unfold P; rw [transpose_sub,transpose_mul,add_sub_cancel]; simp |
| 104 | end trace |
| 105 | end YM.Precision |