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.Calculus.FDeriv.Symmetric |
| 2 | import Mathlib.Analysis.SpecialFunctions.ExpDeriv |
| 3 | import Mathlib.MeasureTheory.Integral.Pi |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | /-! |
| 10 | # Weighted integrals on the closed counting box |
| 11 | |
| 12 | SUP coordinate bounds for the charts, but all charges and derivatives below |
| 13 | will use the L² **counting** metric. Continuous just on the box is enough for |
| 14 | L¹; seminorms here needn't see values outside. No division by volume yet. |
| 15 | -/ |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | namespace YM.Primitives.SmallFieldExterior |
| 19 | open Function Set Filter Metric MeasureTheory |
| 20 | open scoped BigOperators Topology ContDiff |
| 21 | |
| 22 | abbrev Points (ι : Type) := ι → ℝ |
| 23 | variable {ι : Type} [Fintype ι] |
| 24 | |
| 25 | def cube (ι : Type) [Fintype ι] (r : ℝ) : Set (Points ι) := closedBall 0 r |
| 26 | |
| 27 | lemma cube_compact (r : ℝ) : IsCompact (cube ι r) := isCompact_closedBall _ _ |
| 28 | lemma cube_meas (r : ℝ) : MeasurableSet (cube ι r) := (cube_compact _).measurableSet |
| 29 | lemma cube_pi {r : ℝ} (hr : 0 ≤ r) : cube ι r = Set.univ.pi (fun _ => Icc (-r) r) := by |
| 30 | rw [cube, closedBall_pi _ hr] |
| 31 | simp [Real.closedBall_eq_Icc] |
| 32 | lemma cube_iff {r : ℝ} (hr : 0 ≤ r) {x : Points ι} : x ∈ cube ι r ↔ ∀ i, |x i| ≤ r := by |
| 33 | simp only [cube_pi hr, Set.mem_pi, Set.mem_univ, Set.mem_Icc, forall_true_left, abs_le] |
| 34 | |
| 35 | def raw (r : ℝ) (V f : Points ι → ℝ) : ℝ := ∫ x in cube ι r, Real.exp (-V x) * f x |
| 36 | |
| 37 | def bracket (r : ℝ) (V f g : Points ι → ℝ) := raw r V (f*g) |
| 38 | |
| 39 | def size (r : ℝ) (V f : Points ι → ℝ) := Real.sqrt (bracket r V f f) |
| 40 | |
| 41 | variable {r : ℝ} {V H f g h : Points ι → ℝ} |
| 42 | |
| 43 | lemma raw_L1 (hV : ContinuousOn V (cube ι r)) (hf : ContinuousOn f (cube ι r)) : |
| 44 | IntegrableOn (fun x => Real.exp (-V x) * f x) (cube ι r) := |
| 45 | ((Real.continuous_exp.comp_continuousOn hV.neg).mul hf).integrableOn_compact (cube_compact _) |
| 46 | lemma raw_congr (he : EqOn f g (cube ι r)) : raw r V f = raw r V g := |
| 47 | setIntegral_congr_fun (cube_meas _) (fun i hi => by rw [he hi]) |
| 48 | lemma raw_add (hV : ContinuousOn V (cube ι r)) (hf : ContinuousOn f (cube ι r)) (hg : ContinuousOn g (cube ι r)) : |
| 49 | raw r V (f+g)=raw r V f + raw r V g := by |
| 50 | unfold raw |
| 51 | simp only [Pi.add_apply, mul_add]; exact integral_add (raw_L1 hV hf) (raw_L1 hV hg) |
| 52 | lemma raw_sub (hV : ContinuousOn V (cube ι r)) (hf : ContinuousOn f (cube ι r)) (hg : ContinuousOn g (cube ι r)) : |
| 53 | raw r V (f-g)=raw r V f - raw r V g := by |
| 54 | unfold raw |
| 55 | simp only [Pi.sub_apply, mul_sub]; exact integral_sub (raw_L1 hV hf) (raw_L1 hV hg) |
| 56 | lemma raw_smul (k : ℝ) (r : ℝ) (V f : Points ι → ℝ) : raw r V (k • f) = k * raw r V f := by |
| 57 | unfold raw; simp only [Pi.smul_apply, smul_eq_mul, mul_left_comm (Real.exp _ ) k, integral_const_mul] |
| 58 | lemma raw_sum {α : Type*} (hV : ContinuousOn V (cube ι r)) {f : α → Points ι → ℝ} |
| 59 | (s : Finset α) (hi : ∀ i∈s, ContinuousOn (f i) (cube ι r)) : |
| 60 | raw r V (∑ i∈s, f i)=∑ i∈s, raw r V (f i) := by |
| 61 | unfold raw; simp only [Finset.sum_apply, Finset.mul_sum] |
| 62 | exact integral_finsetSum _ fun i h => raw_L1 hV (hi i h) |
| 63 | lemma raw_nonneg (he : ∀ x∈cube ι r, 0 ≤ f x) : 0 ≤ raw r V f := |
| 64 | setIntegral_nonneg (cube_meas _) fun x hx => mul_nonneg (Real.exp_pos _).le (he x hx) |
| 65 | lemma raw_mono (hV : ContinuousOn V (cube ι r)) (hf : ContinuousOn f (cube ι r)) |
| 66 | (hg : ContinuousOn g (cube ι r)) (he : ∀ x∈cube ι r, f x ≤ g x) : raw r V f ≤ raw r V g := |
| 67 | setIntegral_mono_on (raw_L1 hV hf) (raw_L1 hV hg) (cube_meas _) |
| 68 | (fun x hx => mul_le_mul_of_nonneg_left (he x hx) (Real.exp_pos _).le) |
| 69 | lemma raw_one_pos (hr : 0 < r) (hV : ContinuousOn V (cube ι r)) : 0 < raw r V 1 := by |
| 70 | apply (setIntegral_pos_iff_support_of_nonneg_ae _ (raw_L1 hV continuousOn_const)).mpr |
| 71 | · have hx : support (fun x => Real.exp (-V x) * (1:ℝ)) ∩ cube ι r = cube ι r := by ext; simp |
| 72 | change 0 < volume (support (fun x => Real.exp (-V x) * (1:ℝ)) ∩ cube ι r) |
| 73 | rw [hx] |
| 74 | exact (isOpen_ball.measure_pos volume ⟨0,mem_ball_self hr⟩).trans_le (measure_mono ball_subset_closedBall) |
| 75 | exact Filter.Eventually.of_forall (fun x => mul_nonneg (Real.exp_pos _).le zero_le_one) |
| 76 | lemma raw_none (r : ℝ) (f : Points ι → ℝ) : raw r 0 f = ∫ x in cube ι r, f x := by simp [raw] |
| 77 | |
| 78 | lemma self_nonneg (r : ℝ) (V f : Points ι → ℝ) : 0 ≤ bracket r V f f := raw_nonneg fun x _ => mul_self_nonneg (f x) |
| 79 | lemma bracket_sym (r : ℝ) (V f g : Points ι → ℝ) : bracket r V f g = bracket r V g f := by |
| 80 | unfold bracket; rw [mul_comm] |
| 81 | lemma bracket_add (hV : ContinuousOn V (cube ι r)) (hf : ContinuousOn f (cube ι r)) |
| 82 | (hg : ContinuousOn g (cube ι r)) (hh : ContinuousOn h (cube ι r)) : |
| 83 | bracket r V (f+g) h = bracket r V f h + bracket r V g h := by unfold bracket; rw [add_mul]; exact raw_add hV (hf.mul hh) (hg.mul hh) |
| 84 | lemma bracket_sub (hV : ContinuousOn V (cube ι r)) (hf : ContinuousOn f (cube ι r)) |
| 85 | (hg : ContinuousOn g (cube ι r)) (hh : ContinuousOn h (cube ι r)) : |
| 86 | bracket r V (f-g) h = bracket r V f h - bracket r V g h := by unfold bracket; rw [sub_mul]; exact raw_sub hV (hf.mul hh) (hg.mul hh) |
| 87 | lemma bracket_smul (k : ℝ) (r : ℝ) (V f g : Points ι → ℝ) : bracket r V (k • f) g = k * bracket r V f g := by |
| 88 | unfold bracket; rw [smul_mul_assoc, raw_smul] |
| 89 | lemma bracket_sum {α : Type*} (hV : ContinuousOn V (cube ι r)) {f : α → Points ι → ℝ} (s : Finset α) |
| 90 | (hi : ∀ i∈s, ContinuousOn (f i) (cube ι r)) (hg : ContinuousOn g (cube ι r)) : |
| 91 | bracket r V (∑ i∈s, f i) g=∑ i∈s, bracket r V (f i) g := by |
| 92 | unfold bracket; rw [Finset.sum_mul]; exact raw_sum hV s fun i h => (hi i h).mul hg |
| 93 | lemma size_sq (r : ℝ) (V f : Points ι → ℝ) : size r V f ^ 2 = bracket r V f f := Real.sq_sqrt (self_nonneg r V f) |
| 94 | lemma size_nn (r : ℝ) (V f : Points ι → ℝ) : 0 ≤ size r V f := Real.sqrt_nonneg _ |
| 95 | @[simp] lemma size_zero (r : ℝ) (V : Points ι → ℝ) : size r V 0 = 0 := by simp [size,bracket,raw] |
| 96 | lemma size_smul (k : ℝ) (r : ℝ) (V f : Points ι → ℝ) : size r V (k • f)= |k| * size r V f := by |
| 97 | have h : size r V (k • f)^2=(|k| * size r V f)^2 := by |
| 98 | rw [size_sq, bracket_smul, bracket_sym r V f (k • f), bracket_smul, mul_pow, sq_abs, size_sq]; ring |
| 99 | exact (sq_eq_sq₀ (size_nn ..) (mul_nonneg (abs_nonneg _) (size_nn ..))).mp h |
| 100 | lemma size_mono (hV : ContinuousOn V (cube ι r)) (hf : ContinuousOn f (cube ι r)) |
| 101 | (hg : ContinuousOn g (cube ι r)) (he : ∀ x∈cube ι r, |f x| ≤ |g x|) : size r V f ≤ size r V g := |
| 102 | Real.sqrt_le_sqrt (raw_mono hV (hf.mul hf) (hg.mul hg) fun x hx => by |
| 103 | change f x * f x ≤ g x * g x; rw [← sq, ← sq]; exact sq_le_sq.mpr (he x hx)) |
| 104 | lemma size_le_mul (hV : ContinuousOn V (cube ι r)) (hf : ContinuousOn f (cube ι r)) (hg : ContinuousOn g (cube ι r)) |
| 105 | {k : ℝ} (hk : 0 ≤ k) (he : ∀ x∈cube ι r, |f x| ≤ k*|g x|) : size r V f ≤ k * size r V g := by |
| 106 | have hh : ContinuousOn (k • g) _ := continuousOn_const.smul hg |
| 107 | have hi : size r V f ≤ size r V (k • g) := size_mono hV hf hh fun x hx => by simpa [abs_mul,abs_of_nonneg hk] using he x hx |
| 108 | simpa [size_smul,abs_of_nonneg hk] using hi |
| 109 | lemma cauchy (hV : ContinuousOn V (cube ι r)) (hf : ContinuousOn f (cube ι r)) (hg : ContinuousOn g (cube ι r)) : |
| 110 | |bracket r V f g| ≤ size r V f * size r V g := by |
| 111 | have h (k : ℝ) : 0 ≤ bracket r V g g * (k*k) + (2*bracket r V f g)*k + bracket r V f f := by |
| 112 | have he : ContinuousOn (k • g) (cube ι r) := continuousOn_const.smul hg |
| 113 | have ht := self_nonneg r V (f+k • g) |
| 114 | rw [bracket_add hV hf he (hf.add he), bracket_sym r V f (f+k • g), bracket_add hV hf he hf, bracket_smul, |
| 115 | bracket_smul, bracket_sym r V g (f+k • g), bracket_add hV hf he hg, bracket_smul, bracket_sym r V g f] at ht |
| 116 | linarith |
| 117 | have hx := discrim_le_zero h |
| 118 | unfold discrim at hx |
| 119 | apply abs_le_of_sq_le_sq _ (mul_nonneg (size_nn ..) (size_nn ..)) |
| 120 | rw [mul_pow,size_sq,size_sq]; nlinarith only [hx] |
| 121 | lemma size_add (hV : ContinuousOn V (cube ι r)) (hf : ContinuousOn f (cube ι r)) |
| 122 | (hg : ContinuousOn g (cube ι r)) : size r V (f+g) ≤ size r V f + size r V g := by |
| 123 | have h := le_of_abs_le (cauchy hV hf hg) |
| 124 | apply (sq_le_sq₀ (size_nn ..) (add_nonneg (size_nn ..) (size_nn ..))).mp |
| 125 | rw [size_sq, bracket_add hV hf hg (hf.add hg), bracket_sym r V f (f+g), bracket_add hV hf hg hf, |
| 126 | bracket_sym r V g (f+g), bracket_add hV hf hg hg, bracket_sym r V g f] |
| 127 | nlinarith only [h,size_sq r V f,size_sq r V g] |
| 128 | lemma size_neg (r : ℝ) (V f : Points ι → ℝ) : size r V (-f)= size r V f := by simpa using size_smul (-1) r V f |
| 129 | lemma size_sub (hV : ContinuousOn V (cube ι r)) (hf : ContinuousOn f (cube ι r)) |
| 130 | (hg : ContinuousOn g (cube ι r)) : size r V (f-g) ≤ size r V f + size r V g := by |
| 131 | simpa only [size_neg, sub_eq_add_neg] using size_add hV hf hg.neg |
| 132 | lemma size_sum {α : Type*} (hV : ContinuousOn V (cube ι r)) {f : α → Points ι → ℝ} (s : Finset α) |
| 133 | (hi : ∀ i∈s, ContinuousOn (f i) (cube ι r)) : size r V (∑ i∈s, f i) ≤ ∑ i∈s, size r V (f i) := by |
| 134 | classical |
| 135 | induction s using Finset.induction with |
| 136 | | empty => simp |
| 137 | | insert i s hj ih => |
| 138 | have ht l (hl : l ∈ s) := hi l (Finset.mem_insert_of_mem hl) |
| 139 | rw [Finset.sum_insert hj, Finset.sum_insert hj] |
| 140 | have hc : ContinuousOn (∑ i∈s, f i) (cube ι r) := by |
| 141 | have he : (∑ i∈s, f i)=fun x => ∑ i∈s, f i x := funext fun x => Finset.sum_apply .. |
| 142 | rw [he]; exact continuousOn_finsetSum _ ht |
| 143 | exact (size_add hV (hi i (Finset.mem_insert_self ..)) hc).trans |
| 144 | (add_le_add (le_refl _) (ih ht)) |
| 145 | end YM.Primitives.SmallFieldExterior |