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 Mathlib.Analysis.Analytic.Binomial |
| 2 | import Mathlib.Analysis.Calculus.BumpFunction.Convolution |
| 3 | import Mathlib.Analysis.Calculus.ContDiff.RestrictScalars |
| 4 | import Mathlib.Analysis.Calculus.ImplicitContDiff |
| 5 | import Mathlib.Analysis.Calculus.IteratedDeriv.FaaDiBruno |
| 6 | import Mathlib.Analysis.Calculus.LineDeriv.Measurable |
| 7 | import Mathlib.Analysis.Calculus.VectorField |
| 8 | import Mathlib.Analysis.ODE.ExistUnique |
| 9 | import Mathlib.LinearAlgebra.Multilinear.Pi |
| 10 | import Mathlib.LinearAlgebra.PiTensorProduct.Generators |
| 11 | import YM.Ac.Table |
| 12 | import YM.Bid.Drops |
| 13 | import YM.Bid.Fuels |
| 14 | import YM.Next.FLUCTUATIONS.Charts |
| 15 | import YM.Next.FREE_KERNELS.Signal |
| 16 | import YM.Work.A05.Read |
| 17 | import YM.Work.A07 |
| 18 | import YM.Work.B04 |
| 19 | |
| 20 | |
| 21 | |
| 22 | set_option warningAsError false |
| 23 | |
| 24 | /-! |
| 25 | # Pay derivatives & true Healthy along leading S arc on small supports |
| 26 | |
| 27 | Quantitative supplement to JHs. Need `dColor` comparison on the supps, |
| 28 | all plaquette touched positions. Only by already supplying exponential |
| 29 | buffered estimate from the patch covariance threshold comparison (e.g. |
| 30 | with .stays using `Forecast.foresail`). Receipt absorptions: one numerical |
| 31 | delay needs at EACH clock index including caller knowing L and stage at that |
| 32 | step (don't infer from slow), and no claim those & the OTHER costs have been |
| 33 | bought jointly. -/ |
| 34 | set_option autoImplicit false |
| 35 | noncomputable section |
| 36 | namespace YM.MultiNext.SignedSource.Flair |
| 37 | open Function Filter Finset Lattice Wilson RG Labels Laurent Bloch Exterior Matrix Set Precision |
| 38 | open Next.Free Next.Fluctuations |
| 39 | open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators Classical |
| 40 | variable {c n : Side} {G : Gauge} {P : BudgetPoint} {U : Directions G n} |
| 41 | |
| 42 | private abbrev Panel (G : Gauge) := Fin 4 → G.Color |
| 43 | private def dial (x : Panel G) := G.lieExp (x 0)*G.lieExp (x 1)*(G.lieExp (x 2))⁻¹*(G.lieExp (x 3))⁻¹ |
| 44 | private def answer (x : Panel G) := x 0+x 1-x 2-x 3 |
| 45 | |
| 46 | private lemma paid (G : Gauge) : ∃ C r : ℝ,0<C ∧ 0<r ∧ ∀ v : Panel G,‖v‖ ≤ r → |
| 47 | G.chord (dial v) ≤ ‖answer v‖+C*‖v‖^2 := by |
| 48 | let f := G.mat ∘ (dial (G:=G)) |
| 49 | have he (i : Fin 4) : ContDiff ℝ ω (fun x : Panel G => G.mat (G.lieExp (x i))) := G.exp_jet.comp (contDiff_apply ℝ _ i) |
| 50 | have hf : ContDiff ℝ ω f := by |
| 51 | simp only [f] |
| 52 | exact (((he 0).mul (he 1)).mul (((starL ℝ:G.Mat≃L[ℝ]G.Mat).contDiff).comp (he 2))).mul (((starL ℝ:G.Mat≃L[ℝ]G.Mat).contDiff).comp (he 3)) |
| 53 | have hx v : HasDerivAt (fun t : ℝ => f (t • v)) (G.colorMat (answer v)) 0 := by |
| 54 | have hv (i) : HasDerivAt (fun t : ℝ => G.mat (G.lieExp (t • v i))) (G.colorMat (v i)) 0 := G.expDiff_zero.comp_hasDerivAt_of_eq (0:ℝ) |
| 55 | (show HasDerivAt (fun t : ℝ => t • v i) (v i) 0 from by simpa using (hasDerivAt_id' (0:ℝ)).smul_const (v i)) (by simp) |
| 56 | simp only [f,dial,Function.comp,G.mat_mul,G.mat_inv,Pi.smul_apply] |
| 57 | apply ((((hv 0).mul (hv 1)).mul (hv 2).star).mul (hv 3).star).congr_deriv |
| 58 | unfold answer; simp only [Pi.mul_apply,zero_smul,G.mat_lieExp_zero,G.mat_one,star_one, |
| 59 | mul_one,one_mul,G.colorMat_skew,map_sub,map_add] |
| 60 | abel |
| 61 | obtain ⟨D,r,hD,hr,h⟩:= chart_quadratic_cost f _ hf.contDiffAt.analyticAt hx |
| 62 | refine ⟨D/G.colorScale, r,div_pos hD G.colorScale_pos,hr,fun x he => ?_⟩ |
| 63 | apply le_of_mul_le_mul_left _ G.colorScale_pos |
| 64 | rw [chord_dist,mul_add, ← mul_assoc G.colorScale, show G.colorScale*(D/G.colorScale)=D by field_simp [G.colorScale_pos.ne']] |
| 65 | have hf : f 0=1 := by simp [f,dial] |
| 66 | obtain hx := (h x).2 he; rw [hf] at hx |
| 67 | have hc := G.colorMat_norm (answer x) |
| 68 | have hh := norm_add_le (f x-(1+G.colorMat (answer x))) (G.colorMat (answer x)) |
| 69 | rw [show f x-(1+G.colorMat (answer x))+G.colorMat (answer x)= f x-1 from by abel, hc] at hh |
| 70 | exact hh.trans ((add_le_add_left hx _).trans_eq (add_comm ..)) |
| 71 | |
| 72 | private def quadruple (p : Face (Per n)) : Fin 4 → Edge (Site n) := let a:=p.2.val.1; let b:=p.2.val.2 |
| 73 | ![(p.1,a),(p.1+Lattice.step a,b),(p.1+Lattice.step b,a),(p.1,b)] |
| 74 | |
| 75 | |
| 76 | |
| 77 | private lemma nearby (p : Face (Per n)) (i : Fin 4) (y : Site n) (h : y∈RG.touched p) : separation (quadruple p i).1 y ≤ 5 := by |
| 78 | have h' (i : Axis) (x : Site n) : separation x (x+Lattice.step i) ≤ 1 := by rw [separation_comm]; unfold separation; rw [add_sub_cancel_left]; exact pdist_step _ |
| 79 | have he : separation p.1 y ≤ 2 := by |
| 80 | have hh (i j : Axis) : p.1+step i+step j+ -step i=p.1+step j := by abel |
| 81 | simp only [RG.touched,visits,square,Step.vec_pos,Step.vec_neg,hh,add_neg_cancel_right,List.toFinset_cons,List.toFinset_nil, |
| 82 | Finset.mem_insert,Finset.notMem_empty, or_false] at h |
| 83 | rcases h with h|h|h|h|h |
| 84 | · simp only [h,separation_self,Nat.zero_le] |
| 85 | · exact by rw [h]; exact le_trans (h' _ _) (by decide) |
| 86 | · rw [h]; exact (separation_triangle _ (p.1+step p.2.val.1) _).trans (show _ ≤ 1+1 from Nat.add_le_add (h' _ _) (h' _ _)) |
| 87 | · exact by rw [h]; exact le_trans (h' _ _) (by decide) |
| 88 | rw [h,separation_self]; decide |
| 89 | apply (separation_triangle _ p.1 _).trans |
| 90 | have hx : separation (quadruple p i).1 p.1 ≤ 1 := by |
| 91 | rw [separation_comm] |
| 92 | fin_cases i |
| 93 | · exact (by change separation p.1 p.1 ≤ 1; simp only [separation_self,Nat.zero_le]) |
| 94 | · exact h' p.2.val.1 p.1 |
| 95 | · exact h' p.2.val.2 p.1 |
| 96 | change separation p.1 p.1 ≤ 1; rw [separation_self]; decide |
| 97 | omega |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | end YM.MultiNext.SignedSource.Flair |
| 105 | namespace YM.MultiNext.SignedSource.Flair |
| 106 | open Function Filter Finset Lattice Wilson RG Labels Laurent Bloch Exterior Matrix Set Precision |
| 107 | open Next.Free Next.Fluctuations |
| 108 | open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators Classical |
| 109 | variable {c n : Side} {G : Gauge} {P : BudgetPoint} {U : Directions G n} |
| 110 | |
| 111 | private lemma guitar {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [ProperSpace E] [NormedAddCommGroup F] [NormedSpace ℝ F] (g : E → F) (he : ContDiff ℝ ω g) : |
| 112 | ∃ Q : ℝ,1 ≤ Q ∧ ∀ v : E,‖v‖ ≤ 1 → ∀ r ∈ Set.Icc (0:ℝ) 1, |
| 113 | ‖g (r • v)-g 0‖ ≤ r*‖g v-g 0‖ + Q*(1-r)*‖v‖^2 := by |
| 114 | let L := fderiv ℝ g |
| 115 | have hl : ContDiff ℝ ω L := he.fderiv_right le_top |
| 116 | let f (x : E) := ‖fderiv ℝ L x‖ |
| 117 | obtain ⟨C,h⟩:= (isCompact_closedBall (0:E) 1).bddAbove_image (f:=f) (hl.continuous_fderiv (by simp)|>.norm.continuousOn) |
| 118 | let C' := 1+|C|; have hC : 1 ≤ C' := le_add_of_nonneg_right (abs_nonneg _) |
| 119 | refine ⟨2*C',by linarith,fun v hv r hr => ?_⟩ |
| 120 | have hh (y : E) := (convex_closedBall (0:E) 1).norm_image_sub_le_of_norm_fderiv_le (𝕜:=ℝ) (y:=y) (fun x _ => hl.differentiable (by simp) x) |
| 121 | (C:=C') (fun x hx => (h (Set.mem_image_of_mem f hx)).trans (show C ≤ C' from (le_abs_self C).trans (le_add_of_nonneg_left zero_le_one))) (show 0∈Metric.closedBall (0:E) 1 by simp) |
| 122 | let a (x : E) := g x - g 0 - L 0 x |
| 123 | have hq (x : E) : HasFDerivAt a (L x-L 0) x := by |
| 124 | exact (((he.differentiable (by simp) x).hasFDerivAt.sub_const (g 0)).sub (L 0).hasFDerivAt) |
| 125 | have hx : v∈Metric.closedBall (0:E) ‖v‖ := by simp |
| 126 | have hy : r • v∈ Metric.closedBall (0:E) ‖v‖ := by simpa [norm_smul,abs_of_nonneg hr.1] using mul_le_of_le_one_left (norm_nonneg v) hr.2 |
| 127 | have hz : (0:E)∈Metric.closedBall (0:E) ‖v‖ := by simp |
| 128 | have hW (x y : E) := (convex_closedBall (0:E) ‖v‖).norm_image_sub_le_of_norm_fderiv_le (C:=C'*‖v‖) (x:=x) (y:=y) (𝕜:=ℝ) (fun x _ => (hq x).differentiableAt) (fun x hi => by |
| 129 | have he := (hh _ (Metric.closedBall_subset_closedBall hv hi)) |
| 130 | rw [sub_zero] at he; rw [(hq x).fderiv] |
| 131 | exact he.trans (mul_le_mul_of_nonneg_left (by simpa using hi) (zero_le_one.trans hC))) |
| 132 | have Hp : ‖a v‖ ≤ C'*‖v‖^2 := by have he := hW _ _ hz hx; simpa [a,sq,mul_assoc] using he |
| 133 | have hi := hW _ _ hx hy |
| 134 | rw [show r • v-v=(r-1) • v by simp [sub_smul], norm_smul,Real.norm_eq_abs,abs_of_nonpos (by linarith [hr.2]),neg_sub] at hi |
| 135 | calc |
| 136 | _ = ‖r • (g v-g 0)+(a (r • v)-a v+(1-r) • a v)‖ := by |
| 137 | unfold a; rw [map_smul]; simp only [one_smul,smul_sub,sub_smul]; congr 1; abel |
| 138 | _ ≤ r*‖g v-g 0‖ + (‖a (r • v)-a v‖ + (1-r)*‖a v‖) := by |
| 139 | apply (norm_add_le ..).trans |
| 140 | apply add_le_add _ ((norm_add_le ..).trans _) |
| 141 | · rw [norm_smul,Real.norm_of_nonneg hr.1] |
| 142 | rw [norm_smul,Real.norm_of_nonneg (show 0≤1-r by linarith only [hr.2])] |
| 143 | _ ≤ _ := by nlinarith only [hi,mul_le_mul_of_nonneg_left Hp (show 0 ≤ 1-r by linarith only [hr.2])] |
| 144 | |
| 145 | /-- Radial *random endpoint* from its ACTUAL chord test, with no |
| 146 | sharper threshold at endpoint or Sobolev estimate for the noise curl. |
| 147 | Pays constant on that same gauge at 4 links only. -/ |
| 148 | lemma strings (G : Gauge) : ∃ C : ℝ,0<C ∧ ∀ (n : Side) (Y : Support n) (τ b : ℝ) (v : Directions G n), |
| 149 | b ≤1 → 0 ≤ b → C*b^2 ≤ τ → (∀ (x : Edge (Site n)), (∃ z∈Y,separation x.1 z ≤ 5) → ‖v x‖ ≤ b) → Healthy τ Y (increment 1 v) → |
| 150 | ∀ s ∈ Set.Icc (0:ℝ) 1,Healthy τ Y (increment 1 (s • v)) := by |
| 151 | have he (i : Fin 4) : ContDiff ℝ ω (fun x : Panel G => G.mat (G.lieExp (x i))) := G.exp_jet.comp (contDiff_apply ℝ _ i) |
| 152 | let f := G.mat ∘ (dial (G:=G)) |
| 153 | have hf : ContDiff ℝ ω f := by |
| 154 | simp only [f]; exact (((he 0).mul (he 1)).mul (((starL ℝ:G.Mat≃L[ℝ]G.Mat).contDiff).comp (he 2))).mul (((starL ℝ:G.Mat≃L[ℝ]G.Mat).contDiff).comp (he 3)) |
| 155 | letI : ProperSpace (Panel G) := FiniteDimensional.proper ℝ _ |
| 156 | obtain ⟨C,hC,H⟩:=guitar f hf |
| 157 | refine ⟨C/G.colorScale, div_pos (zero_lt_one.trans_le hC) G.colorScale_pos,fun n Y τ b v hb he ht hy hh s hs => Finset.disjoint_left.mpr ?_⟩ |
| 158 | intro i hi hI |
| 159 | obtain ⟨y,hx,h⟩ := (flags_spec ..).mp hI |
| 160 | have hq : G.chord (faceValue (increment 1 v) y) ≤ τ := not_lt.mp (fun h => Finset.disjoint_left.mp hh hi ((flags_spec ..).mpr ⟨y,hx,h⟩)) |
| 161 | have hv (u : Directions G n) : dial (fun i => u (quadruple y i)) = faceValue (increment 1 u) y := by |
| 162 | have h (x : Site n) (i j : Axis) : x+step i+step j-step i=x+step j := by abel |
| 163 | have H (x : Site n) (i j : Axis) : x+step i+step j+ -step i=x+step j := by abel |
| 164 | simp [increment,dial,quadruple,faceValue,square,travel,Step.vec_pos,Step.vec_neg,Step.pos_read,Step.neg_read,h,H,add_sub_cancel_right,mul_assoc] |
| 165 | let U := fun i => v (quadruple y i) |
| 166 | have hF : ‖U‖ ≤ b := (pi_norm_le_iff_of_nonneg he).mpr (fun j => hy _ ⟨i,hi,nearby y j i hx⟩) |
| 167 | have he' := H _ (hF.trans hb) s hs |
| 168 | have hG : f 0=1 := by simp [f,dial] |
| 169 | rw [← hv] at h hq |
| 170 | rw [hG] at he' |
| 171 | have hA := G.colorScale_pos |
| 172 | unfold f at he'; rw [Function.comp_apply,Function.comp_apply, ← chord_dist,← chord_dist] at he' |
| 173 | change τ < G.chord (dial (s • U)) at h |
| 174 | change G.chord (dial U) ≤ τ at hq |
| 175 | have ht := ht; field_simp at ht |
| 176 | have hV := mul_le_mul_of_nonneg_left ((mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (norm_nonneg _) hF 2) (zero_le_one.trans hC)).trans ht) (show 0 ≤ 1-s by linarith only [hs.2]) |
| 177 | nlinarith only [he',hV,mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left hq hA.le) hs.1, mul_lt_mul_of_pos_left h hA] |
| 178 | end YM.MultiNext.SignedSource.Flair |