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.Bid.Loan |
| 2 | import YM.MultiNext.SIGNED_SOURCE_CONTINUATION.Strings |
| 3 | |
| 4 | set_option warningAsError false |
| 5 | |
| 6 | /-! |
| 7 | # Averaged direction: identity modulo one lower degree. Gradients |
| 8 | and radial tensors. -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.MultiNext.SignedSource.Averaging |
| 12 | open Function Filter Finset Tensor Work Set MeasureTheory Powers Analysis |
| 13 | open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators Classical |
| 14 | variable {V E F : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 15 | [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 16 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 17 | |
| 18 | /-- Mean on the segment, defined as in the Volterra tool via projIcc. -/ |
| 19 | def average : C(unitInterval,E) →L[ℝ] E := by |
| 20 | let π := projIcc (0:ℝ) 1 zero_le_one |
| 21 | have hf (v : C(unitInterval,E)) : IntervalIntegrable (fun t => v (π t)) volume 0 1 := |
| 22 | (v.continuous.comp continuous_projIcc).intervalIntegrable _ _ |
| 23 | let A : C(unitInterval,E) →ₗ[ℝ] E := { |
| 24 | toFun v := ∫ t in (0:ℝ)..1,v (π t) |
| 25 | map_add' v u := intervalIntegral.integral_add (hf v) (hf u) |
| 26 | map_smul' r u := by change (∫ t in (0:ℝ)..1,r • u (π t))= r • (∫ t in (0:ℝ)..1,u (π t)); rw [intervalIntegral.integral_smul] } |
| 27 | refine A.mkContinuous 1 fun v => ?_ |
| 28 | rw [one_mul]; change ‖∫ t in (0:ℝ)..1,v (π t)‖ ≤ _ |
| 29 | simpa using intervalIntegral.norm_integral_le_of_norm_le_const |
| 30 | (a:=(0:ℝ)) (b:=1) (f:=fun t => v (π t)) (fun s _ => v.norm_coe_le_norm (π s)) |
| 31 | |
| 32 | omit [FiniteDimensional ℝ E] in -- maybe |
| 33 | lemma integrated (f : C(unitInterval,E)) (p : ℝ → E) (h : ∀ t : unitInterval, f t=p t) : |
| 34 | average f=∫ t in (0:ℝ)..1,p t := by |
| 35 | let π := projIcc (0:ℝ) 1 zero_le_one |
| 36 | change (∫ t in (0:ℝ)..1,f (π t)) = _ |
| 37 | refine intervalIntegral.integral_congr (fun i hi => ?_) |
| 38 | rw [Set.uIcc_of_le zero_le_one] at hi; unfold π; rw [projIcc_of_mem _ hi,h] |
| 39 | |
| 40 | lemma buys {k : ℕ} {p : V → E} (h : home p k) (x : V) : |
| 41 | (fun v : V => (∫ t in (0:ℝ)..1,p (v+t • x))-p v) ∈ space V E (k-1) := by |
| 42 | let A := Tensor.coeff p k 0 |
| 43 | letI := FiniteDimensional.complete ℝ E |
| 44 | convert carried average (sparse_mem A x) using 1 |
| 45 | funext v |
| 46 | have hv : IntervalIntegrable (fun t : ℝ => p (v+t • x)) volume 0 1 := (h.1.continuous.comp (continuous_const.add (continuous_id.smul continuous_const))).intervalIntegrable _ _ |
| 47 | rw [integrated (sparse A x v) (fun t => p (v+t • x)-p v) (fun t => ?_), intervalIntegral.integral_sub hv intervalIntegrable_const,intervalIntegral.integral_const]; simp |
| 48 | rw [tensor_form h,diag_sparse,add_sub_cancel_left] |
| 49 | |
| 50 | |
| 51 | variable {p : V → E} {k : ℕ} |
| 52 | omit [FiniteDimensional ℝ E] in |
| 53 | lemma graded (h : home p (k+1)) (y : V) : home (D y p) k := by |
| 54 | let A := Tensor.coeff p (k+1) 0 |
| 55 | let i (v) := (A.curryLeft v) |
| 56 | have hp : p=Tensor.diagonal A := tensor_form h |
| 57 | have hv v : D y p v=((k+1):ℕ) • Tensor.diagonal (i y) v := by |
| 58 | change fderiv ℝ p v y = _ |
| 59 | rw [hp,Tensor.differential_diagonal A (Tensor.coeff_symm (h.1.contDiffAt.of_le le_top))] |
| 60 | rfl |
| 61 | rw [funext hv] |
| 62 | refine ⟨?_,fun t v => ?_⟩ |
| 63 | · simp_rw [← Nat.cast_smul_eq_nsmul ℝ]; exact contDiff_const.smul (diag_smooth ..) |
| 64 | dsimp only; rw [homogeneous, ← Nat.cast_smul_eq_nsmul ℝ,← Nat.cast_smul_eq_nsmul ℝ]; exact smul_comm .. |
| 65 | |
| 66 | lemma differential (h : home p (k+1)) (x : V) (v : V) : |
| 67 | (∫ t : ℝ in 0..1, D x p (v+t • x))=p (v+x)-p v := by |
| 68 | letI := FiniteDimensional.complete ℝ E |
| 69 | conv_rhs => rw [← one_smul ℝ x]; rhs; rw [← add_zero v, ← zero_smul ℝ x] |
| 70 | exact intervalIntegral.integral_eq_sub_of_hasDerivAt (f:=fun t : ℝ => p (v+t • x)) |
| 71 | (fun y _ => ((h.1.differentiable (by simp)).differentiableAt.hasFDerivAt.comp_hasDerivAt y (show HasDerivAt (fun t => v+t • x) x y by simpa using ((hasDerivAt_id' y).smul_const x).const_add v))) |
| 72 | (((graded h x).1.continuous.comp (by fun_prop : Continuous (fun t : ℝ => v+t • x))).intervalIntegrable _ _) |
| 73 | |
| 74 | open Lattice |
| 75 | private lemma basis_sum (x : E4) : (∑ i : Axis, x i • basis i) = x := by |
| 76 | -- from standard basis |
| 77 | let g := EuclideanSpace.basisFun Axis ℝ |
| 78 | simpa only [g, EuclideanSpace.basisFun_repr,EuclideanSpace.basisFun_apply,basis] using g.sum_repr x |
| 79 | |
| 80 | /-- Every positive-degree homogeneous vector splits as a true radial jet |
| 81 | plus sampled gradient homogeneous. (The degree 0 is entirely gradient -- |
| 82 | handle separately.) Compatible with the genuine `Labels.radial` curve and |
| 83 | the grading there (Snap i really degree i+1). -/ |
| 84 | lemma locale {G : Gauge} {Q : Axis → E4 → G.Color} (j) (h : ∀ i, home (Q i) (j+1)) : |
| 85 | ∃ (r : E4→G.Color) (K : Labels.Taylor G j), home r (j+2) ∧ ∀ i v,Q i v=K.value i v + D (basis i) r v := by |
| 86 | let w := (j+2:ℝ) |
| 87 | let p (x : E4) := ∑ i, x i • Q i x |
| 88 | let R := w⁻¹ • p |
| 89 | have hw : w = (j+2:ℕ) := by push_cast; rfl |
| 90 | have h0 : w ≠ 0 := by rw [hw]; positivity |
| 91 | have hr : home p (j+2) := by |
| 92 | refine ⟨ContDiff.sum (fun i _ => ?_), fun t v => ?_⟩ |
| 93 | · exact (EuclideanSpace.proj _).contDiff.smul (h i).1 |
| 94 | unfold p; rw [Finset.smul_sum]; refine sum_congr rfl fun i _ => ?_ |
| 95 | rw [(h i).2,smul_smul]; simp only [PiLp.smul_apply,smul_eq_mul,smul_smul]; congr 1; ring |
| 96 | have hR : home R (j+2) := ⟨contDiff_const.smul hr.1, fun t v => by simp [R,hr.2]; exact smul_comm ..⟩ |
| 97 | let L i v := Q i v-D (basis i) R v |
| 98 | let T (i : Axis) := Tensor.coeff (L i) (j+1) 0 |
| 99 | have ht i : home (D (basis i) R) (j+1) := graded hR _ |
| 100 | have hl i : home (L i) (j+1) := ⟨(h i).1.sub (ht i).1, fun t v => by unfold L; rw [(h i).2,(ht i).2,smul_sub]⟩ |
| 101 | have hh i : L i=Tensor.diagonal (T i) := tensor_form (hl i) |
| 102 | have hv : T∈Labels.radial G j := by |
| 103 | refine ⟨fun i => Tensor.coeff_symm ((hl i).1.contDiffAt.of_le le_top),fun x => ?_⟩ |
| 104 | have hp : (fderiv ℝ R x) x=p x := by |
| 105 | let r := Tensor.coeff R (j+2) 0 |
| 106 | have hT : R=Tensor.diagonal r := tensor_form hR |
| 107 | rw [hT, Tensor.Euler r (Tensor.coeff_symm (hR.1.contDiffAt.of_le le_top)), ← hT,← hw] |
| 108 | simp only [R,Pi.smul_apply, |
| 109 | smul_inv_smul₀ h0] |
| 110 | simp_rw [← hh,L,smul_sub, Finset.sum_sub_distrib, D, ← map_smul, ← map_sum, basis_sum] |
| 111 | exact sub_eq_zero.mpr hp.symm |
| 112 | refine ⟨R,⟨T,hv⟩,hR,fun i x => ?_⟩ |
| 113 | change _=Tensor.diagonal (T i) x+_ |
| 114 | rw [← hh]; unfold L; exact (sub_add_cancel ..).symm |
| 115 | |
| 116 | lemma sheet0 {G : Gauge} {Q : Axis → E4 → G.Color} (h : ∀ i, home (Q i) 0) : |
| 117 | ∃ r : E4→G.Color,home r 1 ∧ ∀ i v,Q i v=D (basis i) r v := by |
| 118 | let T : E4 →L[ℝ] G.Color := ∑ i,(EuclideanSpace.proj i).smulRight (Q i 0) |
| 119 | refine ⟨T,⟨T.contDiff,fun i v => by rw [map_smul,pow_one]⟩,fun i v => ?_⟩ |
| 120 | have hh := (h i).2 0 v; simp at hh |
| 121 | unfold D; rw [T.fderiv,_root_.sum_apply] |
| 122 | simp only [ContinuousLinearMap.smulRight_apply,EuclideanSpace.proj,basis]; simp [hh] |
| 123 | end YM.MultiNext.SignedSource.Averaging |