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.Primitives.SMALL_FIELD_EXTERIOR.Squares |
| 2 | |
| 3 | /-! |
| 4 | # Finite-dimensional range estimates en route |
| 5 | |
| 6 | Because the box is compact and nonnegative Hessian charge holds while steering, |
| 7 | we can afford crude comparisons *to prove density of the range*. This |
| 8 | costs volume, NOT a method to infer the estimate on BL constants. |
| 9 | -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.Primitives.SmallFieldExterior |
| 13 | open Function Set Filter MeasureTheory |
| 14 | open scoped Topology BigOperators ContDiff |
| 15 | variable {ι : Type} [Fintype ι] |
| 16 | variable {V H u v : Points ι → ℝ} {r K : ℝ} |
| 17 | |
| 18 | lemma size_compare (hV : ContinuousOn V (cube ι r)) (hH : ContinuousOn H (cube ι r)) |
| 19 | (hu : ContinuousOn u (cube ι r)) (h : ∀ x∈cube ι r,H x-V x ≤ K) : |
| 20 | size r V u ≤ Real.exp (K/2)*size r H u := by |
| 21 | apply (sq_le_sq₀ (size_nn ..) (mul_nonneg (Real.exp_pos _).le (size_nn ..))).mp |
| 22 | rw [mul_pow,size_sq,size_sq,sq (Real.exp _), ← Real.exp_add,add_halves] |
| 23 | unfold bracket raw |
| 24 | rw [← integral_const_mul] |
| 25 | apply setIntegral_mono_on (raw_L1 hV (hu.mul hu)) ((raw_L1 hH (hu.mul hu)).const_mul _) (cube_meas _) |
| 26 | intro x hx |
| 27 | rw [← mul_assoc,← Real.exp_add] |
| 28 | exact mul_le_mul_of_nonneg_right (Real.exp_monotone (by linarith [h x hx])) (mul_self_nonneg _) |
| 29 | |
| 30 | structure Glide (r : ℝ) (V : Points ι → ℝ) (K : ℝ) : Prop where |
| 31 | pos : 0<K |
| 32 | down (t) : t∈Icc (0:ℝ) 1 → ∀ f, ContinuousOn f (cube ι r) → size r (t • V) f ≤ K * size r 0 f |
| 33 | up (t) : t∈Icc (0:ℝ) 1 → ∀ f, ContinuousOn f (cube ι r) → size r 0 f ≤ K * size r (t • V) f |
| 34 | lemma glide (hr : 0 < r) (hV : ContinuousOn V (cube ι r)) : ∃ K, Glide r V K := by |
| 35 | obtain ⟨K,h⟩ := (cube_compact r).exists_bound_of_continuousOn hV |
| 36 | have hk : 0 ≤ K := (norm_nonneg _).trans (h _ (show 0 ∈ cube ι r from Metric.mem_closedBall_self hr.le)) |
| 37 | have he (t : ℝ) (ht : t ∈ Icc (0:ℝ) 1) (x : Points ι) (hx : x∈cube ι r) : |(t • V) x| ≤ K := calc |
| 38 | _ = t* |V x| := by simp [abs_mul,abs_of_nonneg ht.1] |
| 39 | _ ≤ 1*K := mul_le_mul ht.2 (h x hx) (abs_nonneg _) (by positivity) |
| 40 | _ = _ := one_mul _ |
| 41 | refine ⟨Real.exp (K/2), Real.exp_pos _, fun t ht f hf => size_compare (continuousOn_const.smul hV) continuousOn_const hf ?_, |
| 42 | fun t ht f hf => size_compare continuousOn_const (continuousOn_const.smul hV) hf ?_⟩ |
| 43 | · intro x hx |
| 44 | change 0 - (t • V) x ≤ K; linarith [(abs_le.mp (he t ht x hx)).1] |
| 45 | intro x hx; change (t • V) x - 0 ≤ K; linarith [(abs_le.mp (he t ht x hx)).2] |
| 46 | |
| 47 | lemma pythagoras (hV : ContinuousOn V (cube ι r)) (hu : ContinuousOn u (cube ι r)) (hv : ContinuousOn v (cube ι r)) |
| 48 | (h : bracket r V u v=0) : size r V u ≤ size r V (u+v) := by |
| 49 | apply (sq_le_sq₀ (size_nn ..) (size_nn ..)).mp |
| 50 | rw [size_sq,size_sq,bracket_add hV hu hv (hu.add hv), bracket_sym r V u (u+v), bracket_add hV hu hv hu, |
| 51 | bracket_sym r V v (u+v), bracket_add hV hu hv hv,bracket_sym r V v u,h,add_zero,zero_add] |
| 52 | linarith only [self_nonneg r V v] |
| 53 | lemma deficit (hV : ContinuousOn V (cube ι r)) (hu : ContinuousOn u (cube ι r)) (hv : ContinuousOn v (cube ι r)) : |
| 54 | size r V u ≤ size r V v + size r V (v-u) := calc |
| 55 | _ = size r V (v-(v-u)) := by rw [sub_sub_cancel] |
| 56 | _ ≤ _ := size_sub hV hv (hv.sub hu) |
| 57 | lemma size_congr (V : Points ι → ℝ) (h : EqOn u v (cube ι r)) : size r V u=size r V v := by |
| 58 | unfold size bracket; congr 1; apply raw_congr; intro x hx; simp only [Pi.mul_apply,h hx] |
| 59 | |
| 60 | variable [DecidableEq ι] |
| 61 | |
| 62 | lemma Neumann.free_estimate (hr : 0 ≤ r) (hV : Regular r 2 V) (hh : Charged r V 0) (hk : Glide r V K) (hu : Neumann r u) |
| 63 | (t) (ht : t∈Icc (0:ℝ) 1) (i : ι) : size r 0 (pc i u) ≤ (2*r)*K * size r (t • V) (elliptic (t • V) u) := by |
| 64 | have hw : Charged r (t • V) 0 := by simpa only [mul_zero] using hh.smul hV t ht.1 |
| 65 | apply (hu.rough hr i).trans |
| 66 | rw [mul_assoc (2*r)] |
| 67 | apply mul_le_mul_of_nonneg_left _ (by positivity) |
| 68 | exact (hk.up _ ht _ (((hu.stripe i).tangent i).cOn)).trans |
| 69 | (mul_le_mul_of_nonneg_left (second_budget hr hu (hV.smul _) hw i i) hk.pos.le) |
| 70 | |
| 71 | lemma ceiling_first (hr : 0 ≤ r) (hV : Regular r 2 V) : ∃ A : ι → ℝ, (∀ i, 0 ≤ A i) ∧ |
| 72 | ∀ i x, x∈cube ι r → |pc i V x| ≤ A i := by |
| 73 | choose A hA using fun i => (cube_compact r).exists_bound_of_continuousOn ((hV.tangent i).cOn) |
| 74 | exact ⟨A,fun i => (norm_nonneg _).trans (hA i _ (show 0∈cube ι r from Metric.mem_closedBall_self hr)),hA⟩ |
| 75 | |
| 76 | def drift (V u : Points ι → ℝ) := ∑ i, pc i V * pc i u |
| 77 | lemma under_drift (hV : Regular r 2 V) (u : Points ι → ℝ) (s t : ℝ) : |
| 78 | EqOn (elliptic (t • V) u-elliptic (s • V) u) ((t-s) • drift V u) (cube ι r) := by |
| 79 | intro x hx |
| 80 | unfold elliptic drift |
| 81 | rw [← Finset.sum_sub_distrib,Finset.smul_sum] |
| 82 | simp only [Finset.sum_apply] |
| 83 | refine Finset.sum_congr rfl fun i _ => ?_ |
| 84 | unfold row; simp only [Pi.smul_apply,Pi.mul_apply,Pi.sub_apply,smul_eq_mul,pc_smul i t (hV.diff (by norm_num) hx),pc_smul i s (hV.diff (by norm_num) hx)] |
| 85 | ring |
| 86 | |
| 87 | /-- Uniform in t and this test (including the constant target). -/ |
| 88 | theorem advance_rate (hr : 0 < r) (hV : Regular r 2 V) (hh : Charged r V 0) : |
| 89 | ∃ K : ℝ, 0 < K ∧ ∀ u : Points ι → ℝ, Neumann r u → ∀ t∈Icc (0:ℝ) 1, ∀ c : ℝ, |
| 90 | size r 0 (drift V u) ≤ K * size r 0 (elliptic (t • V) u + (fun _ => c)) := by |
| 91 | obtain ⟨K,hk⟩ := glide hr hV.cOn |
| 92 | obtain ⟨A,hA,h⟩ := ceiling_first hr.le hV |
| 93 | let C (i : ι) := A i * ((2*r)*K)*K |
| 94 | have ht i : 0 ≤ C i := mul_nonneg (mul_nonneg (hA i) (by have := hk.pos; positivity)) hk.pos.le |
| 95 | have hs : 0 ≤ ∑ i, C i := Finset.sum_nonneg fun i _ => ht i |
| 96 | refine ⟨(∑ i,C i)+1,by linarith,fun u hu t hv c => ?_⟩ |
| 97 | let W := t • V; let f := elliptic W u+(fun _ => c) |
| 98 | have hc := (hu.elliptic1 (hV.smul t)).cOn |
| 99 | have hf : ContinuousOn f (cube ι r) := hc.add continuousOn_const |
| 100 | have he (i) : ContinuousOn (pc i V * pc i u) (cube ι r) := ((hV.tangent i).mul (hu.stripe i)).cOn |
| 101 | have hy : size r W (elliptic W u) ≤ K*size r 0 f := calc |
| 102 | _ ≤ size r W f := pythagoras (hV.smul t).cOn hc continuousOn_const (hu.mean_zero hr.le (hV.smul t) c) |
| 103 | _ ≤ _ := hk.down _ hv _ hf |
| 104 | apply (size_sum (V:=0) continuousOn_const Finset.univ (fun i _ => he i)).trans |
| 105 | apply le_trans _ (mul_le_mul_of_nonneg_right (show ∑ i,C i ≤ (∑ i,C i)+1 by linarith) (size_nn ..)) |
| 106 | rw [Finset.sum_mul]; apply Finset.sum_le_sum |
| 107 | intro i _ |
| 108 | have hvi : size r 0 (pc i u) ≤ (2*r*K)*(K*size r 0 f) := |
| 109 | (hu.free_estimate hr.le hV hh hk _ hv i).trans (mul_le_mul_of_nonneg_left hy (by have := hk.pos; positivity)) |
| 110 | calc |
| 111 | _ ≤ A i*size r 0 (pc i u) := size_le_mul continuousOn_const (he i) ((hu.stripe (n:=1) i).cOn) (hA i) |
| 112 | (fun x hx => by rw [Pi.mul_apply,abs_mul]; exact mul_le_mul_of_nonneg_right (h i x hx) (abs_nonneg _)) |
| 113 | _ ≤ A i*((2*r*K)*(K*size r 0 f)) := mul_le_mul_of_nonneg_left hvi (hA i) |
| 114 | _ = _ := by unfold f W C; ring |
| 115 | |
| 116 | /-- Also at fixed volume, enough to make the error form vanish as |
| 117 | we take a limit. Not the final covariance constant. -/ |
| 118 | lemma row_size (hr : 0 < r) (hV : Regular r 2 V) (hh : Charged r V 0) (w : ι → ℝ) : |
| 119 | ∃ K : ℝ, 0 < K ∧ ∀ u : Points ι → ℝ, Neumann r u → size r V (adjRow w V u) ≤ K * size r V (elliptic V u) := by |
| 120 | obtain ⟨K,hk⟩ := glide hr hV.cOn |
| 121 | obtain ⟨A,hA,h⟩ := ceiling_first hr.le hV |
| 122 | have hK := hk.pos |
| 123 | let C (i : ι) := w i^2 * (A i * ((2*r)*K)*K + 1) |
| 124 | have ht (i : ι) : 0 ≤ C i := by unfold C; have := hA i; positivity |
| 125 | have hs : 0 ≤ ∑ i, C i := Finset.sum_nonneg fun i _ => ht i |
| 126 | refine ⟨(∑ i,C i)+1,by linarith,fun u hu => ?_⟩ |
| 127 | have hi i : ContinuousOn (w i^2 • row V i u) (cube ι r) := continuousOn_const.smul ((hu.row1 hV i).cOn) |
| 128 | apply (size_sum hV.cOn Finset.univ fun i _ => hi i).trans |
| 129 | apply le_trans _ (mul_le_mul_of_nonneg_right (show ∑ i,C i ≤ (∑ i,C i)+1 by linarith) (size_nn ..)) |
| 130 | rw [Finset.sum_mul]; apply Finset.sum_le_sum |
| 131 | intro i _ |
| 132 | have he := (hu.stripe (n:=2) i).cOn |
| 133 | have hc := (hV.tangent i).cOn.mul he |
| 134 | let B := elliptic V u |
| 135 | have hv : size r V (pc i u) ≤ K * size r 0 (pc i u) := by |
| 136 | simpa only [one_smul] using hk.down 1 ⟨zero_le_one,le_rfl⟩ _ he |
| 137 | have hj : size r 0 (pc i u) ≤ 2*r*K*size r V B := by |
| 138 | unfold B; simpa only [one_smul] using hu.free_estimate hr.le hV hh hk 1 ⟨zero_le_one,le_rfl⟩ i |
| 139 | have hJ : size r V (pc i V * pc i u) ≤ A i*(K*(2*r*K*size r V B)) := calc |
| 140 | _ ≤ A i * size r V (pc i u) := size_le_mul hV.cOn hc he (hA i) fun x hx => by |
| 141 | rw [Pi.mul_apply,abs_mul]; exact mul_le_mul_of_nonneg_right (h i x hx) (abs_nonneg _) |
| 142 | _ ≤ _ := mul_le_mul_of_nonneg_left (hv.trans (mul_le_mul_of_nonneg_left hj hK.le)) (hA i) |
| 143 | unfold C |
| 144 | rw [size_smul, abs_of_nonneg (sq_nonneg _),mul_assoc (w i^2)] |
| 145 | apply mul_le_mul_of_nonneg_left _ (by positivity) |
| 146 | apply (size_sub hV.cOn hc (((hu.stripe i).tangent i).cOn)).trans |
| 147 | apply (add_le_add hJ (second_budget hr.le hu hV hh i i)).trans_eq |
| 148 | unfold B; ring |
| 149 | end YM.Primitives.SmallFieldExterior |