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.Extra.WILSON_STARTUP.Face |
| 2 | import YM.Extra.WILSON_STARTUP.Padded |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # A local top-scale path prescription |
| 7 | |
| 8 | Use only at m=N; H and tilde-H BOTH identity there. Intended alternate |
| 9 | input to horizon/paths construction, not imposed after solving continuation. |
| 10 | Keep stage-dependent Clip and require direct ≤ 1 (strict < 1 can buy |
| 11 | nondegenerate square root). Linear large-chord clipping and relaxation stay. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.WilsonStartup |
| 16 | open Function Filter Work Tensor RG Wilson Lattice Precision Exterior Padded |
| 17 | open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators Classical |
| 18 | scoped instance plaqNonempty : Nonempty PlaqAxes := ⟨⟨(0,1),by decide⟩⟩ |
| 19 | |
| 20 | namespace Design |
| 21 | variable (G : Gauge) (p : Clip) |
| 22 | |
| 23 | def bulk := 1 - p.direct |
| 24 | def sideRoot := Real.sqrt (bulk p) |
| 25 | def plaquette (b : PlaqAxes) : Slot := ⟨[],b⟩ |
| 26 | def panel : Tensor.T G.Color ℝ 4 := bulk p • fourth G |
| 27 | |
| 28 | def extractAtom (b : PlaqAxes) {k : ℕ} (T : Tensor.T G.Color ℝ k) : Atom G k where |
| 29 | leg := fun _ => plaquette b |
| 30 | coeff := fun v => T fun i => EuclideanSpace.basisFun G.ColorIndex ℝ (v i) |
| 31 | |
| 32 | def four (i : ℕ) := extractAtom G (name PlaqAxes i) (if fixed PlaqAxes i then panel G p else 0) |
| 33 | |
| 34 | def top : PathData G where |
| 35 | row := fun b i => (if i=0 then sideRoot p else 0, plaquette b) |
| 36 | loop := fun i => extractAtom G (name PlaqAxes i) 0 |
| 37 | cubic := fun i => extractAtom G (name PlaqAxes i) 0 |
| 38 | quartic := four G p |
| 39 | |
| 40 | variable {G} {n : Side} {k : ℕ} |
| 41 | |
| 42 | theorem panel_invariant (u : G.El) (x : Fin 4 → G.Color) : |
| 43 | panel G p (fun i => G.adjoint u (x i)) = panel G p x := by |
| 44 | unfold panel fourth; rw [smul_apply, smul_apply, coeff_adjoint] |
| 45 | |
| 46 | theorem extract_poly (b : PlaqAxes) (T : Tensor.T G.Color ℝ k) (x : Fin k → G.Color) : |
| 47 | (extractAtom G b T).poly x = T x := by |
| 48 | let e := EuclideanSpace.basisFun G.ColorIndex ℝ |
| 49 | have he (v : G.Color) : ∑ i, v i • e i = v := e.sum_repr v |
| 50 | have hb := T.map_sum_finset (fun i j => x i j • e j) (fun _ => Finset.univ) |
| 51 | rw [Fintype.piFinset_univ] at hb |
| 52 | simp_rw [he,T.map_smul_univ,smul_eq_mul] at hb |
| 53 | simpa only [extractAtom,Atom.poly,mul_comm] using hb.symm |
| 54 | |
| 55 | theorem extract_magnitude_zero (b : PlaqAxes) : (extractAtom G (k:=k) b 0).magnitude = 0 := by |
| 56 | simp [Atom.magnitude, extractAtom] |
| 57 | |
| 58 | theorem at_plaquette (b : PlaqAxes) (x : Site n) (U : Config G n) : (plaquette b).atSite U x = G.curvature (faceValue U (x,b)) := by |
| 59 | rw [F03.atSite_path] |
| 60 | simp [F03.slotFace, plaquette,Slot.offset,stop,travel] |
| 61 | |
| 62 | -- use whole square, not just anchor. Includes the wrap. |
| 63 | theorem footprint (T : Tensor.T G.Color ℝ k) (hk : k≠0) (b : PlaqAxes) (x : Site n) : |
| 64 | (extractAtom G b T).footprint x = touched (x,b) := by |
| 65 | have hb : (plaquette b).stencil = {0,step b.val.1,step b.val.1+step b.val.2,step b.val.2} := by |
| 66 | ext y; simp only [Slot.stencil, plaquette,Slot.offset,stop,visits,square,Step.vec_pos,Step.vec_neg,zero_add, |
| 67 | show (step b.val.1:Cover)+step b.val.2+ -step b.val.1 = step b.val.2 by abel, |
| 68 | add_neg_cancel] |
| 69 | simp; tauto |
| 70 | have he : (extractAtom G b T).stencil = (plaquette b).stencil := by |
| 71 | haveI : Nonempty (Fin k) := ⟨⟨0,Nat.pos_of_ne_zero hk⟩⟩ |
| 72 | ext i |
| 73 | simp only [Atom.stencil, extractAtom, Finset.mem_insert,Finset.mem_biUnion, Finset.mem_univ,true_and,exists_const] |
| 74 | rw [hb]; simp |
| 75 | rw [Atom.footprint, he, hb, four_visit]; simp [add_comm x, add_assoc] |
| 76 | |
| 77 | theorem extract_unmasked (T : Tensor.T G.Color ℝ k) (b : PlaqAxes) (x : Site n) (U : Config G n) : |
| 78 | (extractAtom G b T).unmasked U x = diagonal T (G.curvature (faceValue U (x,b))) := by |
| 79 | unfold Atom.unmasked; rw [extract_poly]; simp only [extractAtom,at_plaquette,diagonal] |
| 80 | |
| 81 | theorem ell_top (b : Cell n) (U : Config G n) : (top G p).ell U b = sideRoot p • G.curvature (faceValue U b) := by |
| 82 | unfold PathData.ell; rw [tsum_eq_single 0]; swap |
| 83 | · intro i hi; simp [PathData.ellTerms, top, hi] |
| 84 | simp [PathData.ellTerms, top, at_plaquette] |
| 85 | |
| 86 | theorem ell_sq (hp : p.direct ≤ 1) (U : Config G n) (b : Cell n) : ‖(top G p).ell U b‖ ^ 2 = bulk p * ‖G.curvature (faceValue U b)‖^2 := by |
| 87 | rw [ell_top,norm_smul,sideRoot,bulk,Real.norm_of_nonneg (Real.sqrt_nonneg _),mul_pow,Real.sq_sqrt (sub_nonneg.mpr hp)] |
| 88 | |
| 89 | theorem extract_invariant (T : Tensor.T G.Color ℝ k) (b : PlaqAxes) |
| 90 | (h : ∀ u x,T (fun i => G.adjoint u (x i)) = T x) : (extractAtom G b T).Invariant := |
| 91 | fun u x => by rw [extract_poly,extract_poly]; exact h .. |
| 92 | |
| 93 | theorem normal (hp : p.direct ≤ 1) : (top G p).metric_zero p := by |
| 94 | have h (i j : PlaqAxes) : (top G p).symbol0 i j = if i=j then sideRoot p else 0 := by |
| 95 | unfold PathData.symbol0; rw [tsum_eq_single 0 (fun b hb => by simp [top,plaquette,hb])]; rfl |
| 96 | intro i j |
| 97 | rw [Finset.sum_eq_single i]; rotate_left |
| 98 | · intro b _ hb; rw [h,if_neg hb,zero_mul] |
| 99 | · simp |
| 100 | rw [h,h,if_pos rfl]; split_ifs with h₁ |
| 101 | · rw [← sq,sideRoot,bulk,Real.sq_sqrt (sub_nonneg.mpr hp)]; ring |
| 102 | · simp |
| 103 | |
| 104 | theorem budgets (hp : p.direct ≤ 1) (σ C Λ : ℝ) (hσ : 0 < σ) (hΛ : 0 ≤ Λ) |
| 105 | (hC : |sideRoot p| * Real.exp (σ * 4) ≤ C) |
| 106 | (hT : ∑ i : PlaqAxes, (extractAtom G i (panel G p)).budget σ ≤ C) : (top G p).Bounds p σ C Λ := by |
| 107 | have hE (k : ℕ) : ∀ i : ℕ, (extractAtom G (k:=k) (name PlaqAxes i) 0).budget σ = 0 := fun i => by |
| 108 | rw [Atom.budget, extract_magnitude_zero,zero_mul] |
| 109 | have h0 : 0 ≤ C := (mul_nonneg (abs_nonneg _) (Real.exp_pos _).le).trans hC |
| 110 | refine ⟨hσ,fun b => ?_,?_,?_,?_,fun i => ?_,fun i j => ?_,normal p hp,fun b x => ?_,fun b x => ?_⟩ |
| 111 | · dsimp only [top,plaquette,Slot.length,List.length_nil,Nat.zero_add] |
| 112 | refine ⟨fun _ => by positivity, (hasSum_single 0 (fun b hb => ?_)).summable, ?_⟩ |
| 113 | · simp [hb] |
| 114 | rw [tsum_eq_single 0 (fun b hb => by simp [hb])] |
| 115 | simpa using hC |
| 116 | · simp only [top,hE]; exact ⟨fun _ => le_rfl,summable_zero,by simpa using hΛ⟩ |
| 117 | · simp only [top,hE]; exact ⟨fun _ => le_rfl,summable_zero,by simpa using h0⟩ |
| 118 | · refine Padded.budget (α:=PlaqAxes) ?_ (fun i => ?_) hT |
| 119 | · intro i; dsimp [top,four]; split <;> first | rfl | exact hE _ _ |
| 120 | unfold Atom.budget Atom.magnitude; positivity |
| 121 | · refine ⟨extract_invariant _ _ (by simp), extract_invariant _ _ (by simp), extract_invariant _ _ ?_⟩ |
| 122 | intro u x; split |
| 123 | · exact panel_invariant p .. |
| 124 | simp |
| 125 | · exact (hasSum_single 0 (fun b hb => by simp [top,plaquette,hb])).summable |
| 126 | · unfold PathData.loop_coeff; simp [top,extractAtom] |
| 127 | · unfold PathData.loop_coeff; simp [top,extractAtom] |
| 128 | |
| 129 | -- Denotational atom sums |
| 130 | |
| 131 | theorem extract_placed_zero (b : PlaqAxes) (t : BudgetPoint) (x : Site n) (U : Config G n) : |
| 132 | (extractAtom G (k:=k) b 0).placed t U x = 0 := by |
| 133 | unfold Atom.placed |
| 134 | rw [show (fun V => (extractAtom G (k:=k) b 0).unmasked V x) = fun _ => 0 from |
| 135 | funext fun V => by simp [extract_unmasked,diagonal]] |
| 136 | by_cases h : Healthy t.threshold ((extractAtom G (k:=k) b 0).footprint x) U |
| 137 | · exact masked_eq _ _ _ _ h |
| 138 | · exact masked_ne _ _ _ _ h |
| 139 | |
| 140 | theorem core_top (b : BudgetPoint) (x : Site n) (U : Config G n) : |
| 141 | PathData.atomSeries (top G p).cubic b U x = 0 ∧ PathData.atomSeries (top G p).loop b U x = 0 ∧ |
| 142 | PathData.atomSeries (top G p).quartic b U x = ∑ i : PlaqAxes, masked b.threshold (touched (x,i)) |
| 143 | (fun V => diagonal (panel G p) (G.curvature (faceValue V (x,i)))) U := by |
| 144 | simp only [PathData.atomSeries, top,extract_placed_zero,tsum_zero,true_and] |
| 145 | refine totals (α:=PlaqAxes) ?_ |
| 146 | intro i; dsimp [four]; split |
| 147 | · rw [Atom.placed,footprint _ (by decide)]; simp only [extract_unmasked] |
| 148 | exact extract_placed_zero .. |
| 149 | |
| 150 | theorem uncut_top (U : Config G n) : uncut (top G p).cubic U = 0 ∧ |
| 151 | uncut (top G p).quartic U = ∑ i : Cell n, diagonal (panel G p) (G.curvature (faceValue U i)) := by |
| 152 | simp only [uncut, top,extract_unmasked,diagonal,zero_apply,tsum_zero,Finset.sum_const_zero,true_and] |
| 153 | rw [Fintype.sum_prod_type]; refine Finset.sum_congr rfl fun x _ => totals (α:=PlaqAxes) ?_ |
| 154 | intro i; dsimp only [four]; split <;> exact extract_unmasked .. |
| 155 | |
| 156 | theorem principal_top (U : Config G n) (hp : p.direct ≤ 1) : |
| 157 | quadratic p (top G p) U + uncut (top G p).cubic U + uncut (top G p).quartic U + |
| 158 | ∑ i : Cell n, bulk p * residual G i U = energy U := by |
| 159 | rw [(uncut_top p U).1,(uncut_top p U).2,add_zero] |
| 160 | unfold quadratic energy; simp_rw [ell_sq p hp]; rw [← Finset.sum_add_distrib,← Finset.sum_add_distrib] |
| 161 | apply Finset.sum_congr rfl; intro i _ |
| 162 | simp only [panel,residual,surplus,bulk,diagonal,smul_apply,smul_eq_mul]; ring |
| 163 | end Design |
| 164 | end YM.WilsonStartup |