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.AnalyticBridge.VERIFIED_RESET_STEP.Jets |
| 2 | |
| 3 | /-! E:eq:FQaff. Work in native site units at the actual anchor. Gradients need only |
| 4 | agree on edges of the tested support; never identify a nonperiodic affine field |
| 5 | on the whole torus. Prices normalized by `(a.budget m).threshold` on each slot. -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.AnalyticBridge.VerifiedReset |
| 9 | open Function Filter Set Lattice Wilson RG |
| 10 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators InnerProductSpace |
| 11 | |
| 12 | variable {G : Gauge} {n : Side} {p : BudgetPoint} {X : Support n} |
| 13 | |
| 14 | abbrev Flux (G : Gauge) := PlaqAxes → G.Color |
| 15 | |
| 16 | structure LinearJet (G : Gauge) where |
| 17 | at0 : Axis → G.Color |
| 18 | slope : Axis → Axis → G.Color |
| 19 | |
| 20 | def coord (o x : Site n) (j : Axis) : ℝ := lift (x-o) j |
| 21 | |
| 22 | lemma small_coord (o x : Site n) (j : Axis) : |coord o x j| ≤ separation x o := by |
| 23 | unfold coord separation |
| 24 | exact_mod_cast ((Int.natCast_natAbs _).symm.trans_le (Int.ofNat_le.mpr (component_le (x-o) j))) |
| 25 | |
| 26 | lemma lift_step {o x : Site n} (hx : 10*separation x o < n.val) (hn : 4 ≤ n.val) (d : Step) : |
| 27 | lift (x + d.vec - o) = lift (x-o) + d.vec := by |
| 28 | refine lift_eq_iff.mpr ⟨?_,fun i => ?_⟩ |
| 29 | · rw [map_add,wrap_lift,wrap_vec]; abel |
| 30 | have hi : (lift (x-o) i).natAbs ≤ separation x o := component_le _ _ |
| 31 | rcases d with ⟨b,_|_⟩ <;> by_cases e : i=b <;> simp_all [Step.vec] <;> omega |
| 32 | |
| 33 | lemma coord_step {o x : Site n} (hx : 10*separation x o < n.val) (hn : 4 ≤ n.val) (i j : Axis) : |
| 34 | coord o (x+step i) j = coord o x j + if j=i then 1 else 0 := by |
| 35 | unfold coord; rw [← Step.vec_pos, lift_step hx hn]; simp |
| 36 | |
| 37 | namespace LinearJet |
| 38 | variable (a : LinearJet G) |
| 39 | |
| 40 | def field (o : Site n) : Dir G n := fun e => a.at0 e.2 + ∑ j, coord o e.1 j • a.slope e.2 j |
| 41 | lemma isAffine (o : Site n) {v : Dir G n} : IsAffineDirection o v ↔ ∃ a : LinearJet G, v = a.field o := by |
| 42 | constructor |
| 43 | · rintro ⟨a,d,h⟩; refine ⟨⟨a,d⟩,funext fun e => ?_⟩ |
| 44 | simpa [field,coord,Int.cast_smul_eq_zsmul] using h e |
| 45 | rintro ⟨a,rfl⟩; exact ⟨a.at0,a.slope,fun _ => by simp [field,coord,Int.cast_smul_eq_zsmul]⟩ |
| 46 | |
| 47 | def curl (i j : Axis) := a.slope j i - a.slope i j |
| 48 | def positive : Flux G := fun b => a.curl b.val.1 b.val.2 |
| 49 | |
| 50 | lemma field_step {o x : Site n} (hx : 10*separation x o < n.val) (hn : 4 ≤ n.val) (i j : Axis) : |
| 51 | a.field o (x+step i,j) = a.field o (x,j) + a.slope j i := by |
| 52 | rw [field,field]; simp only [coord_step hx hn,add_smul,Finset.sum_add_distrib,add_assoc]; congr 2 |
| 53 | simp [ite_smul] |
| 54 | |
| 55 | lemma zero_symm (h : a.positive = 0) (i j) : a.slope j i = a.slope i j := by |
| 56 | have he (i j : Axis) (hi : i < j) := sub_eq_zero.mp (show a.slope j i - a.slope i j = 0 from congr_fun h ⟨(i,j),hi⟩) |
| 57 | rcases lt_trichotomy i j with hi|hi|hi |
| 58 | · exact he i j hi |
| 59 | · rw [hi] |
| 60 | exact (he j i hi).symm |
| 61 | |
| 62 | private def phi (o x : Site n) : G.Color := |
| 63 | (∑ i, coord o x i • (a.at0 i - (2:ℝ)⁻¹ • a.slope i i)) + |
| 64 | (2 : ℝ)⁻¹ • ∑ i, ∑ j, (coord o x i * coord o x j) • a.slope i j |
| 65 | |
| 66 | private lemma linear_step (o x : Site n) (d : Axis) (k : Axis → G.Color) (hx : 10 * separation x o < n.val) (hn : 4 ≤ n.val) : |
| 67 | ∑ i, coord o (x+step d) i • k i = (∑ i, coord o x i • k i) + k d := by |
| 68 | simp [coord_step hx hn,ite_smul,add_smul,Finset.sum_add_distrib] |
| 69 | |
| 70 | private lemma phi_step (h : a.positive = 0) {o x : Site n} (hx : 10*separation x o < n.val) (hn : 4 ≤ n.val) (d : Axis) : |
| 71 | a.phi o (x+step d) - a.phi o x = a.field o (x,d) := by |
| 72 | simp_rw [phi,linear_step o x d _ hx hn,mul_smul,← Finset.smul_sum,linear_step o x d _ hx hn, |
| 73 | smul_add,Finset.sum_add_distrib] |
| 74 | simp_rw [a.zero_symm h d _] |
| 75 | unfold field; module |
| 76 | |
| 77 | lemma gradient_agrees {o : Site n} (h : Nonwrapping X o) (hn : 4 ≤ n.val) (ha : a.positive = 0) : |
| 78 | ∃ s, Agrees X (gradient s) (a.field o) := ⟨a.phi o,fun e he _ => a.phi_step ha (h _ he) hn e.2⟩ |
| 79 | |
| 80 | instance : Sub (LinearJet G) := ⟨fun a b => ⟨fun i => a.at0 i-b.at0 i, fun i j => a.slope i j - b.slope i j⟩⟩ |
| 81 | |
| 82 | lemma field_sub (b : LinearJet G) (o : Site n) : (a-b).field o = a.field o - b.field o := by |
| 83 | funext e |
| 84 | change a.at0 _ - b.at0 _ + ∑ j,coord _ _ _ • (a.slope e.2 j - b.slope e.2 j) = _ |
| 85 | simp only [smul_sub,Finset.sum_sub_distrib,Pi.sub_apply,field]; abel |
| 86 | lemma positive_sub (b : LinearJet G) : (a-b).positive = a.positive - b.positive := by |
| 87 | ext1 ⟨⟨i,j⟩,h⟩; change a.slope j i - b.slope j i - (a.slope i j - b.slope i j) = _ - _; dsimp [positive,curl]; abel |
| 88 | |
| 89 | lemma hessian_curl₁ {f : Pot G n} (hG : G.Simple) (hf : p.Regular X f) {o : Site n} (h : Nonwrapping X o) |
| 90 | (hn : 4 ≤ n.val) (b : LinearJet G) (hab : a.positive = b.positive) (u : Dir G n) : |
| 91 | logHessian f (a.field o) u = logHessian f (b.field o) u := by |
| 92 | obtain ⟨s,hs⟩ := (a-b).gradient_agrees h hn (by rw [positive_sub,hab,sub_self]) |
| 93 | have he := hessian_agrees hG hf hs (show Agrees X u u from fun _ _ _ => rfl) |
| 94 | rw [hessian_gradient hG hf,field_sub,hessian_eq,map_sub,sub_apply,← hessian_eq, ← hessian_eq] at he |
| 95 | linarith only [he] |
| 96 | |
| 97 | lemma hessian_curl {f : Pot G n} (hG : G.Simple) (hf : p.Regular X f) {o : Site n} (h : Nonwrapping X o) |
| 98 | (hn : 4 ≤ n.val) {a b c d : LinearJet G} (hab : a.positive = b.positive) (hcd : c.positive = d.positive) : |
| 99 | logHessian f (a.field o) (c.field o) = logHessian f (b.field o) (d.field o) := by |
| 100 | rw [a.hessian_curl₁ hG hf h hn b hab, hessian_symm hf, c.hessian_curl₁ hG hf h hn d hcd, hessian_symm hf] |
| 101 | end LinearJet |
| 102 | |
| 103 | def wedge (b : PlaqAxes) (w : G.Color) : LinearJet G := ⟨0, fun i j => if b.val=(j,i) then w else 0⟩ |
| 104 | lemma wedge_field (o : Site n) (b : PlaqAxes) (w : G.Color) (e : Edge (Site n)) : |
| 105 | (wedge b w).field o e = if b.val.2=e.2 then coord o e.1 b.val.1 • w else 0 := by |
| 106 | by_cases hh : b.val.2 = e.2 <;> simp [LinearJet.field,wedge,Prod.ext_iff,hh,smul_ite] |
| 107 | lemma curl_wedge (b : PlaqAxes) (w : G.Color) (i : PlaqAxes) : (wedge b w).positive i = if b=i then w else 0 := by |
| 108 | obtain ⟨⟨k,l⟩,h⟩ := i; change k < l at h |
| 109 | have hi := b.property; have h' : b.val ≠ (l,k) := fun he => by rw [he] at hi; exact lt_asymm h hi |
| 110 | by_cases he : b.val = (k,l) <;> simp [LinearJet.positive,LinearJet.curl,wedge,h',he,Subtype.ext_iff,h.ne] |
| 111 | |
| 112 | def primitive (w : Flux G) : LinearJet G := ⟨0,fun i j => ∑ b, (wedge b (w b)).slope i j⟩ |
| 113 | lemma primitive_field (w : Flux G) (o : Site n) : (primitive w).field o = ∑ b, (wedge b (w b)).field o := by |
| 114 | funext i; simpa [LinearJet.field, primitive, Finset.sum_apply, Finset.smul_sum,show ∀ b,(wedge b (w b)).at0 = 0 from fun _ => rfl] using Finset.sum_comm (s:=Finset.univ) (t:=Finset.univ) (f:=fun j b => coord o i.1 j • (wedge b (w b)).slope i.2 j) |
| 115 | @[simp] lemma positive_primitive (w : Flux G) : (primitive w).positive = w := by |
| 116 | ext1 i |
| 117 | change (∑ b, (wedge b (w b)).slope _ _) - ∑ b,(wedge b (w b)).slope _ _ = _ |
| 118 | rw [← Finset.sum_sub_distrib]; change ∑ b, (wedge b _).positive i = _; simp [curl_wedge] |
| 119 | |
| 120 | lemma wedge_dir (o : Site n) (p : BudgetPoint) (b : PlaqAxes) (w : G.Color) (h : ‖w‖ ≤ 1) : |
| 121 | p.dirBound o (p.threshold • (wedge b w).field o) := by |
| 122 | intro e; rw [Pi.smul_apply,wedge_field,norm_smul,Real.norm_of_nonneg p.threshold_pos.le] |
| 123 | apply mul_le_mul_of_nonneg_left _ p.threshold_pos.le |
| 124 | split |
| 125 | · rw [norm_smul,Real.norm_eq_abs] |
| 126 | apply (mul_le_of_le_one_right (abs_nonneg _) h).trans |
| 127 | have hp := p.power_ge |
| 128 | exact (small_coord ..).trans <| (le_add_of_nonneg_left zero_le_one).trans <| by |
| 129 | simpa using |
| 130 | pow_le_pow_right₀ (show (1:ℝ) ≤ 1+↑(separation e.1 o) by simp) (by omega : 1 ≤ p.power) |
| 131 | rw [norm_zero]; positivity |
| 132 | lemma wedge_avg (o : Site n) (p : BudgetPoint) (b c : PlaqAxes) (w : G.Color) (h : ‖w‖ ≤ 1) : |
| 133 | p.dirBound o ((p.threshold/2) • ((wedge b w).field o + (wedge c w).field o)) := by |
| 134 | intro e |
| 135 | have hh (x : PlaqAxes) := wedge_dir o p x w h e |
| 136 | simp only [Pi.smul_apply,norm_smul,Real.norm_of_nonneg p.threshold_pos.le] at hh |
| 137 | rw [Pi.smul_apply,Pi.add_apply,norm_smul,Real.norm_of_nonneg (by have := p.threshold_pos; positivity : 0 ≤ p.threshold/2)] |
| 138 | have hp := p.threshold_pos |
| 139 | nlinarith [norm_add_le ((wedge b w).field o e) ((wedge c w).field o e),hh b,hh c] |
| 140 | end YM.AnalyticBridge.VerifiedReset |