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.Residual |
| 2 | import YM.Next.FOUNDATIONS.Regular |
| 3 | |
| 4 | /-! # Startup estimates on actual faces -/ |
| 5 | noncomputable section |
| 6 | set_option autoImplicit false |
| 7 | namespace YM.WilsonStartup |
| 8 | open Function Filter Work Tensor Next.Fluctuations Lattice Wilson RG |
| 9 | open scoped ContDiff Topology Matrix.Norms.Frobenius |
| 10 | attribute [local instance] Gauge.frobInner |
| 11 | variable {G : Gauge} {n : Side} |
| 12 | |
| 13 | abbrev Cell (n : Side) := Face (Per n) |
| 14 | abbrev Bond (n : Side) := Edge (Site n) |
| 15 | |
| 16 | def edges (p : Cell n) : Fin 4 → Bond n := |
| 17 | let i := p.2.val.1; let j := p.2.val.2 |
| 18 | ![(p.1,i), (p.1+step i,j), (p.1+step j,i), (p.1,j)] |
| 19 | |
| 20 | lemma four_visit (p : Cell n) : touched p = {p.1, p.1+step p.2.val.1, p.1+step p.2.val.1+step p.2.val.2, p.1+step p.2.val.2} := by |
| 21 | simp only [touched,visits,square,Step.vec_pos,Step.vec_neg, |
| 22 | add_right_comm (b:=step p.2.val.1) (c:=step p.2.val.2), add_neg_cancel_right] |
| 23 | ext y |
| 24 | simp only [List.mem_toFinset,List.mem_cons,List.not_mem_nil,Finset.mem_insert,Finset.mem_singleton]; tauto |
| 25 | |
| 26 | lemma touched_card (p : Cell n) : (touched p).card ≤ 4 := by |
| 27 | rw [four_visit]; refine (Finset.card_insert_le ..).trans ?_; refine Nat.succ_le_succ ((Finset.card_insert_le ..).trans ?_) |
| 28 | exact Nat.succ_le_succ (Finset.card_le_two ..) |
| 29 | |
| 30 | lemma anchor_visit (p : Cell n) : p.1 ∈ touched p := by rw [four_visit]; exact Finset.mem_insert_self .. |
| 31 | |
| 32 | lemma visit_near (p : Cell n) {y : Site n} (h : y ∈ touched p) : separation y p.1 ≤ 2 := by |
| 33 | rw [four_visit] at h |
| 34 | simp only [Finset.mem_insert, Finset.mem_singleton] at h |
| 35 | have hs (i : Axis) : separation (p.1+step i) p.1 ≤ 1 := by simpa [separation, add_comm p.1] using pdist_step (n:=n) i |
| 36 | rcases h with rfl|rfl|rfl|rfl |
| 37 | · simp |
| 38 | · exact (hs _).trans (by omega) |
| 39 | · simpa only [separation,show p.1+step p.2.val.1+step p.2.val.2 - p.1 = step p.2.val.1+step p.2.val.2 by abel] using |
| 40 | (pdist_triangle (n:=n) (step p.2.val.1) (step p.2.val.2)).trans (Nat.add_le_add (pdist_step _) (pdist_step _)) |
| 41 | exact (hs _).trans (by omega) |
| 42 | |
| 43 | lemma edges_visit (p : Cell n) (i : Fin 4) : (edges p i).1 ∈ touched p := by |
| 44 | rw [four_visit]; fin_cases i <;> simp [edges] |
| 45 | |
| 46 | lemma face_one (p : Cell n) : faceValue (1 : Config G n) p = 1 := by |
| 47 | rw [← Precision.link_one (G:=G) (n:=n)]; exact Push.stroll_zero .. |
| 48 | |
| 49 | lemma read_edges (p : Cell n) (U : Config G n) : Quad.read (U ∘ edges p) = faceValue U p := by |
| 50 | |
| 51 | simp only [faceValue, square,travel,Step.pos_read, Step.neg_read,Step.vec_pos, Step.vec_neg, |
| 52 | show p.1 + step p.2.val.1 + step p.2.val.2 - step p.2.val.1 = p.1 + step p.2.val.2 by abel, |
| 53 | show p.1 + step p.2.val.1 + step p.2.val.2 + (-step p.2.val.1) = p.1 + step p.2.val.2 by abel,add_sub_cancel_right] |
| 54 | simp [Quad.read,edges,mul_assoc] |
| 55 | |
| 56 | variable (G) |
| 57 | |
| 58 | def residual (p : Cell n) (U : Config G n) := surplus (faceValue U p) |
| 59 | |
| 60 | variable {G} |
| 61 | |
| 62 | theorem residual_jet (p : Cell n) (U : Config G n) (l : List (Directions G n)) : |
| 63 | leftDerivs (residual G p) l U = Quad.jet (l.map (· ∘ edges p)) (Quad.mat (U ∘ edges p)) := by |
| 64 | induction l generalizing U with |
| 65 | | nil => rw [leftDerivs, List.map_nil, Quad.jet, comp_apply, Quad.read_actual, Quad.surplus_actual, read_edges]; rfl |
| 66 | | cons a l ih => |
| 67 | simp only [leftDerivs, List.map_cons, ih, Quad.jet] |
| 68 | exact congr_arg (deriv · 0) (funext fun t => congr_arg _ (funext fun i : Fin 4 => G.mat_mul ..)) |
| 69 | |
| 70 | theorem healthy_chord (p : Cell n) (U : Config G n) {t : ℝ} (h : Healthy t (touched p) U) : |
| 71 | G.chord (faceValue U p) ≤ t := by |
| 72 | by_contra! hh |
| 73 | have hp := anchor_visit p |
| 74 | exact Finset.disjoint_left.mp h hp ((flags_spec ..).mpr ⟨_,hp,hh⟩) |
| 75 | |
| 76 | theorem residual_price (G : Gauge) (k P : ℕ) : ∃ C δ : ℝ, 0 < C ∧ 0 < δ ∧ δ ≤ 1 ∧ |
| 77 | ∀ (b : BudgetPoint), b.power = P → b.order = k → b.threshold ≤ δ → ∀ (n : Side) (p : Cell n) (o : Site n), |
| 78 | o ∈ touched p → b.supBounds o (touched p) (residual G p) (C*b.threshold^5) := by |
| 79 | let J := Fin (k+1) |
| 80 | choose c d hc hd h' h using fun i : J => Quad.small_jet G i.val ((1+4)^P) |
| 81 | obtain ⟨i,hi,he⟩ := Finset.exists_min_image Finset.univ d Finset.univ_nonempty |
| 82 | let C := 1 + ∑ j : J, c j |
| 83 | have hC : 0 < C := add_pos_of_pos_of_nonneg one_pos (Finset.sum_nonneg fun i _ => (hc i).le) |
| 84 | refine ⟨C,d i,hC, hd i, h' i, fun b hb hk ht n p o ho => ⟨mul_nonneg hC.le (pow_nonneg b.threshold_pos.le _),?_⟩⟩ |
| 85 | intro U hu l hl hA |
| 86 | rw [hk] at hl |
| 87 | let j : J := ⟨l.length, Nat.lt_succ_of_le hl⟩ |
| 88 | let a (i : Fin j.val) := l.get i ∘ edges p |
| 89 | have ha : ‖a‖ ≤ b.threshold*(1+4:ℝ)^P := by |
| 90 | have hh := b.threshold_pos |
| 91 | apply (pi_norm_le_iff_of_nonneg (by positivity)).mpr; intro s |
| 92 | apply (pi_norm_le_iff_of_nonneg (by positivity)).mpr; intro f |
| 93 | apply ((hA _ (l.get_mem s)) (edges p f)).trans |
| 94 | rw [hb]; gcongr |
| 95 | exact_mod_cast (separation_triangle (edges p f).1 p.1 o).trans (Nat.add_le_add (visit_near p (edges_visit p f)) |
| 96 | ((separation_comm _ _) ▸ visit_near p ho)) |
| 97 | have H := h j (U ∘ edges p) a _ b.threshold_pos (ht.trans (he j (Finset.mem_univ j))) ha ((read_edges p U).symm ▸ healthy_chord p U hu) |
| 98 | have hcj : c j ≤ C := (Finset.single_le_sum (fun i _ => (hc i).le) (Finset.mem_univ j)).trans |
| 99 | (le_add_of_nonneg_left zero_le_one) |
| 100 | rw [residual_jet, ← show List.ofFn a = l.map (· ∘ edges p) from (List.map_ofFn (g:=(· ∘ edges p)) (f:=l.get)).symm.trans (by rw [List.ofFn_get])] |
| 101 | exact H.trans (mul_le_mul_of_nonneg_right hcj (pow_nonneg b.threshold_pos.le _)) |
| 102 | |
| 103 | theorem mat_face_inc (p : Cell n) (U : Config G n) : |
| 104 | ContDiff ℝ ω fun v => G.mat (faceValue (increment U v) p) := by |
| 105 | simp_rw [← read_edges,← Quad.read_actual] |
| 106 | refine Quad.readMat_diff.comp (contDiff_pi.mpr fun i => ?_) |
| 107 | simp only [Quad.mat,comp_apply, increment, G.mat_mul] |
| 108 | exact (G.exp_jet.comp (contDiff_apply ..)).mul contDiff_const |
| 109 | |
| 110 | theorem residual_smooth (p : Cell n) (U : Config G n) : ContDiff ℝ ω (residual G p ∘ increment U) := by |
| 111 | simp_rw [comp_def, residual, ← Quad.surplus_actual] |
| 112 | exact Quad.surplusMat_diff.comp (mat_face_inc ..) |
| 113 | |
| 114 | theorem surplus_conjugate (u v : G.El) : surplus (u*v*u⁻¹) = surplus v := by |
| 115 | unfold surplus diagonal |
| 116 | rw [G.curvature_conjugate, G.price_conj, G.norm_adjoint, fourth,coeff_adjoint] |
| 117 | |
| 118 | theorem surplus_inv (v : G.El) : surplus v⁻¹ = surplus v := by |
| 119 | unfold surplus |
| 120 | rw [G.curvature_inv,G.price_inv,norm_neg,← neg_one_smul ℝ _,homogeneous] |
| 121 | norm_num [fourth] |
| 122 | |
| 123 | lemma face_local (p : Cell n) : LocalOn (touched p) (fun U : Config G n => faceValue U p) := |
| 124 | fun U V h => travel_local _ _ U V (fun e he hm => h e (List.mem_toFinset.mpr he) (List.mem_toFinset.mpr hm)) |
| 125 | |
| 126 | theorem residual_regular (p : Cell n) (b : BudgetPoint) : b.Regular (touched p) (residual G p) := by |
| 127 | have h (U : Config G n) := ((residual_smooth p U).of_le (m:=(b.order:ℕ∞)) le_top).contDiffAt (x:=0) |
| 128 | refine ⟨fun U V h => congr_arg surplus (face_local p U V h), Continuous.measurable ?_, ?_,fun U _ => h U, |
| 129 | fun U _ a l hl => Next.Foundations.left_has a hl (h U)⟩ |
| 130 | · change Continuous fun U => residual G p U |
| 131 | simp only [residual,← Quad.surplus_actual]; exact Quad.surplusMat_diff.continuous.comp |
| 132 | (G.continuous_mat.comp (continuous_travel ..)) |
| 133 | intro k U; exact (congr_arg surplus (face_gauge k U p)).trans (surplus_conjugate ..) |
| 134 | |
| 135 | theorem residual_flat (p : Cell n) : FlatAt 5 (residual G p ∘ increment 1) 0 := by |
| 136 | refine surplus_jet (fun v => faceValue (increment 1 v) p) ?_ (mat_face_inc .. |>.contDiffAt) |
| 137 | rw [Work.G07.at_zero_increment,face_one] |
| 138 | |
| 139 | theorem residual_one (p : Cell n) : residual G p 1 = 0 := by |
| 140 | have h := congr_arg (Tensor.diagonal · (0:Directions G n)) (residual_flat p 0 (by omega)) |
| 141 | simpa [Tensor.diagonal,comp_def,G07.at_zero_increment] using! h |
| 142 | |
| 143 | theorem residual_hess (p : Cell n) (x y : Directions G n) : logHessian (residual G p) x y = 0 := |
| 144 | congr_arg (fun u : Tensor.T (Directions G n) ℝ 2 => u ![x,y]) (residual_flat p 2 (by omega)) |
| 145 | |
| 146 | theorem residual_send (p : Cell n) (s : Signed) (x : Site n) (U : Config G n) : |
| 147 | residual G (Face.send s x p) U = residual G p (pull s x U) := |
| 148 | (Face.send_price U p s x surplus surplus_inv (fun v u => surplus_conjugate u v)).symm |
| 149 | end YM.WilsonStartup |