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.Faces |
| 2 | |
| 3 | /-! |
| 4 | # Neumann class and weighted cube IBP |
| 5 | |
| 6 | Include the tangential face equations explicitly on the core of **tests for |
| 7 | the Poisson problem**. We will have dense range even with these hypotheses on |
| 8 | the tests. Observables for the covariance inequality DON'T need them. |
| 9 | Use total negative log potential V, including even the Gaussian part. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Primitives.SmallFieldExterior |
| 14 | open Function Set Filter MeasureTheory |
| 15 | open scoped Topology BigOperators ContDiff |
| 16 | |
| 17 | variable {ι : Type} [Fintype ι] [DecidableEq ι] |
| 18 | variable {i j : ι} {V u v : Points ι → ℝ} {c r : ℝ} |
| 19 | |
| 20 | structure Neumann (r : ℝ) (u : Points ι → ℝ) : Prop where |
| 21 | smooth : ContDiff ℝ ω u |
| 22 | normal (i : ι) (x : Points ι) : x ∈ cube ι r → |x i|=r → pc i u x=0 |
| 23 | mixed (i j : ι) : i≠j → ∀ x∈cube ι r, |x i|=r → pc i (pc j u) x=0 |
| 24 | |
| 25 | namespace Neumann |
| 26 | variable (h : Neumann r u) |
| 27 | include h |
| 28 | lemma differential {x : Points ι} : DifferentiableAt ℝ u x := h.smooth.differentiable (by simp) x |
| 29 | lemma stripe (i : ι) {n : ℕ∞ω} : Regular r n (pc i u) := fun _ _ => |
| 30 | (pcat i h.smooth.contDiffAt (k:=ω) (by simp)).of_le le_top |
| 31 | lemma reg {n : ℕ∞ω} : Regular r n u := fun _ _ => h.smooth.contDiffAt.of_le le_top |
| 32 | lemma swap (i j : ι) : pc i (pc j u)=pc j (pc i u) := funext fun _ => pc_comm i j (h.smooth.contDiffAt.of_le le_top) |
| 33 | lemma add (h' : Neumann r v) : Neumann r (u+v) := by |
| 34 | have he i : pc i (u+v)=pc i u + pc i v := funext fun _ => pc_plus i h.differential h'.differential |
| 35 | refine ⟨h.smooth.add h'.smooth, fun i x hx hh => ?_, fun i j hi x hx hh => ?_⟩ |
| 36 | · rw [he, Pi.add_apply,h.normal i x hx hh,h'.normal i x hx hh,add_zero] |
| 37 | rw [he, pc_plus i ((h.stripe j).diff one_ne_zero hx) ((h'.stripe j).diff one_ne_zero hx), h.mixed i j hi x hx hh, h'.mixed i j hi x hx hh,add_zero] |
| 38 | lemma smul (c : ℝ) : Neumann r (c • u) := by |
| 39 | have he i : pc i (c • u)= c • pc i u := funext fun _ => pc_smul i c h.differential |
| 40 | refine ⟨contDiff_const.smul h.smooth, fun i x hx hh => ?_, fun i j hi x hx hh => ?_⟩ |
| 41 | · rw [he, Pi.smul_apply, h.normal i x hx hh, smul_zero] |
| 42 | rw [he, pc_smul i c ((h.stripe j).diff one_ne_zero hx), h.mixed i j hi x hx hh,mul_zero] |
| 43 | omit h |
| 44 | lemma const (c : ℝ) : Neumann r (fun _ : Points ι => c) := |
| 45 | ⟨contDiff_const,fun _ _ _ _ => by simp [pc],fun _ _ _ _ _ _ => by rw [pc_const, show (0:Points ι → ℝ)=fun _ => (0:ℝ) from rfl, pc_const]; rfl⟩ |
| 46 | end Neumann |
| 47 | |
| 48 | /-- Component of the positive-sign Neumann generator. -/ |
| 49 | def row (V : Points ι → ℝ) (i : ι) (u : Points ι → ℝ) : Points ι → ℝ := pc i V * pc i u - pc i (pc i u) |
| 50 | def elliptic (V : Points ι → ℝ) (u : Points ι → ℝ) := ∑ i, row V i u |
| 51 | |
| 52 | lemma Neumann.row1 (hu : Neumann r u) (hV : Regular r 2 V) (i : ι) : Regular r 1 (row V i u) := |
| 53 | ((hV.tangent i).mul (hu.stripe i)).sub ((hu.stripe i).tangent i) |
| 54 | lemma Neumann.elliptic1 (hu : Neumann r u) (hV : Regular r 2 V) : Regular r 1 (elliptic V u) := |
| 55 | Regular.fsum _ fun i _ => hu.row1 hV i |
| 56 | |
| 57 | lemma elliptic_add (V : Points ι → ℝ) (hu : Neumann r u) (hv : Neumann r v) : |
| 58 | elliptic V (u+v)=elliptic V u+elliptic V v := by |
| 59 | have he (i : ι) : pc i (u+v)=pc i u+pc i v := funext fun _ => pc_plus _ hu.differential hv.differential |
| 60 | unfold elliptic; rw [← Finset.sum_add_distrib]; refine Finset.sum_congr rfl fun i _ => funext (fun x => ?_) |
| 61 | unfold row; rw [he]; simp only [Pi.add_apply,Pi.mul_apply,Pi.sub_apply] |
| 62 | rw [pc_plus i ((pcat i hu.smooth.contDiffAt (k:=ω) (by simp)).differentiableAt (by simp)) |
| 63 | ((pcat i hv.smooth.contDiffAt (k:=ω) (by simp)).differentiableAt (by simp))]; ring |
| 64 | lemma elliptic_smul (V : Points ι → ℝ) (hu : Neumann r u) (c : ℝ) : |
| 65 | elliptic V (c • u)=c • elliptic V u := by |
| 66 | have he (i : ι) : pc i (c • u)=c • pc i u := funext fun _ => pc_smul _ c hu.differential |
| 67 | unfold elliptic; rw [Finset.smul_sum]; refine Finset.sum_congr rfl fun i _ => funext (fun x => ?_) |
| 68 | unfold row; rw [he]; simp only [Pi.smul_apply,Pi.mul_apply,Pi.sub_apply, smul_eq_mul] |
| 69 | rw [pc_smul i c ((pcat i hu.smooth.contDiffAt (k:=ω) (by simp)).differentiableAt (by simp))]; ring |
| 70 | lemma elliptic_zero (V : Points ι → ℝ) : elliptic V 0=0 := by |
| 71 | unfold elliptic row |
| 72 | have hc i : pc i (0:Points ι → ℝ) = 0 := pc_const i 0 |
| 73 | simp [hc] |
| 74 | |
| 75 | /-- IBP in direction i including when the factor multiplying the normal |
| 76 | derivative vanishes on the face. Use this also at edge/corner points in the |
| 77 | iteration below. No assumptions on global smooth extension of the cutoff |
| 78 | indicator. -/ |
| 79 | lemma move_row (hr : 0 ≤ r) (hV : Regular r 1 V) (hu : Regular r 2 u) (hf : Regular r 1 v) |
| 80 | (h : ∀ x∈cube ι r, |x i|=r → pc i u x * v x=0) : bracket r V (row V i u) v = bracket r V (pc i u) (pc i v) := by |
| 81 | let R := fun x => Real.exp (-V x) |
| 82 | have hi := hu.tangent i |
| 83 | have hR : Regular r 1 R := fun x hx => (((hV x hx).neg).exp) |
| 84 | have he := (hR.mul hi).mul hf |
| 85 | have hx : (∫ x in cube ι r, pc i (R * pc i u * v) x) = 0 := faces_zero hr he i fun x hx h' => by |
| 86 | change R x * pc i u x * v x=0; rw [mul_assoc,h x hx h',mul_zero] |
| 87 | have ht : EqOn (pc i (R * pc i u * v)) (fun x => Real.exp (-V x) * (((pc i u)*(pc i v)) x - (row V i u * v) x)) (cube ι r) := by |
| 88 | intro x hx |
| 89 | have hRR := hR.diff one_ne_zero hx; have hi' := hi.diff one_ne_zero hx |
| 90 | rw [pc_mul _ (hRR.mul hi') (hf.diff one_ne_zero hx), pc_mul _ hRR hi', show pc i R x=_ from pc_exp_neg i (hV.diff one_ne_zero hx)] |
| 91 | simp only [row, R, Pi.sub_apply, Pi.mul_apply] |
| 92 | ring |
| 93 | rw [setIntegral_congr_fun (cube_meas _) ht] at hx |
| 94 | have hv : ContinuousOn (row V i u) (cube ι r) := ((hV.tangent_continuous i).mul hi.cOn).sub (hi.tangent_continuous i) |
| 95 | change raw r V ((pc i u)*(pc i v)-row V i u * v)=0 at hx |
| 96 | rw [raw_sub hV.cOn (hi.cOn.mul (hf.tangent_continuous i)) (hv.mul hf.cOn),sub_eq_zero] at hx |
| 97 | exact hx.symm |
| 98 | |
| 99 | lemma Neumann.by_row (hr : 0 ≤ r) (hu : Neumann r u) (hV : Regular r 1 V) (hf : Regular r 1 v) (i : ι) : |
| 100 | bracket r V (row V i u) v = bracket r V (pc i u) (pc i v) := |
| 101 | move_row hr hV hu.reg hf fun x hx h => by rw [hu.normal i x hx h,zero_mul] |
| 102 | |
| 103 | lemma Neumann.energy (hr : 0 ≤ r) (hu : Neumann r u) (hV : Regular r 2 V) (hf : Regular r 1 v) : |
| 104 | bracket r V (elliptic V u) v = ∑ i, bracket r V (pc i u) (pc i v) := by |
| 105 | unfold elliptic |
| 106 | rw [bracket_sum hV.cOn _ (fun i _ => (hu.row1 hV i).cOn) hf.cOn] |
| 107 | exact Finset.sum_congr rfl fun i _ => hu.by_row hr (hV.mono (by norm_num)) hf i |
| 108 | lemma Neumann.mean_zero (hr : 0 ≤ r) (hu : Neumann r u) (hV : Regular r 2 V) (c : ℝ) : |
| 109 | bracket r V (elliptic V u) (fun _ => c) = 0 := by |
| 110 | rw [hu.energy hr hV (Regular.coefficient c)]; simp [pc_const,bracket,raw] |
| 111 | |
| 112 | /-- The actual commutator, an entry of the physical Hessian. -/ |
| 113 | lemma Neumann.commute (hu : Neumann r u) (hV : Regular r 2 V) (i j : ι) : |
| 114 | EqOn (pc i (row V j u)) (row V j (pc i u) + pc i (pc j V) * pc j u) (cube ι r) := by |
| 115 | intro x hx |
| 116 | have he := (hu.stripe j).diff one_ne_zero hx |
| 117 | have hi := (hV.tangent j).diff one_ne_zero hx |
| 118 | unfold row |
| 119 | rw [pc_minus i (hi.mul he) (((hu.stripe j).tangent j).diff one_ne_zero hx), pc_mul i hi he, |
| 120 | pc_comm i j (hu.stripe j x hx), hu.swap i j] |
| 121 | simp only [Pi.sub_apply, Pi.mul_apply, Pi.add_apply] |
| 122 | ring |
| 123 | lemma Neumann.cross (hr : 0 ≤ r) (hu : Neumann r u) (hV : Regular r 2 V) (i j : ι) : |
| 124 | bracket r V (row V i u) (row V j u) = |
| 125 | size r V (pc j (pc i u)) ^ 2 + bracket r V (pc i (pc j V) * pc j u) (pc i u) := by |
| 126 | have he : Regular r 1 V := hV.mono (by norm_num) |
| 127 | have hv := hu.row1 hV j |
| 128 | rw [hu.by_row hr he hv i,bracket_sym r V (pc i u),size_sq] |
| 129 | let H := row V j (pc i u) |
| 130 | have hT (x) (hx : x∈cube ι r) := hu.commute hV i j hx |
| 131 | rw [show bracket r V (pc i (row V j u)) (pc i u) = bracket r V (H+pc i (pc j V)*pc j u) (pc i u) from |
| 132 | (by unfold bracket; apply raw_congr; intro x hx; exact congr_arg (· * pc i u x) (hT x hx))] |
| 133 | have hH : ContinuousOn H (cube ι r) := |
| 134 | ((hV.tangent j).cOn.mul (((hu.stripe i).tangent j).cOn)).sub (((hu.stripe i).tangent j).tangent_continuous j) |
| 135 | rw [bracket_add hV.cOn hH (((hV.tangent j).tangent_continuous i).mul ((hu.stripe (n:=2) j).cOn)) ((hu.stripe (n:=2) i).cOn)] |
| 136 | congr 1 |
| 137 | apply move_row hr he (hu.stripe i) (hu.stripe i) |
| 138 | intro x hx h |
| 139 | by_cases hh : j=i |
| 140 | · subst j; rw [hu.normal i x hx h, mul_zero] |
| 141 | rw [hu.mixed j i hh x hx h, zero_mul] |
| 142 | |
| 143 | /-- Rough fixed-box gradient bounds without a gap, scrolling between V and 0. -/ |
| 144 | lemma Neumann.rough (hr : 0 ≤ r) (hu : Neumann r u) (i : ι) : |
| 145 | size r 0 (pc i u) ≤ (2*r) * size r 0 (pc i (pc i u)) := by |
| 146 | let U := pc i u; let F := fun x : Points ι => x i |
| 147 | have hU : Regular r 1 U := hu.stripe i |
| 148 | have hF : Regular r 1 F := Regular.coordinate i |
| 149 | have h := faces_zero hr ((hF.mul hU).mul hU) i (fun x hx h' => by simp [F, U, hu.normal i x hx h']) |
| 150 | have hi : Regular r 1 (fun _ : Points ι => (0:ℝ)) := Regular.coefficient 0 |
| 151 | have hc : ContinuousOn (pc i U) (cube ι r) := hU.tangent_continuous i |
| 152 | have he : EqOn (pc i (F*U*U)) ((U*U)+(2:ℝ) • ((F*U)*pc i U)) (cube ι r) := by |
| 153 | intro x hx |
| 154 | have hF' := hF.diff one_ne_zero hx |
| 155 | have hU' := hU.diff one_ne_zero hx |
| 156 | rw [pc_mul i (hF'.mul hU') hU', pc_mul i hF' hU', show pc i F x=1 from ?_] |
| 157 | · simp only [Pi.smul_apply, Pi.mul_apply, Pi.add_apply, smul_eq_mul]; ring |
| 158 | unfold pc F |
| 159 | change fderiv ℝ (ContinuousLinearMap.proj (R:=ℝ) (φ:=fun _ => ℝ) i) x _=1; rw [ContinuousLinearMap.fderiv]; simp |
| 160 | rw [← raw_none, raw_congr he, raw_add (V:=0) hi.cOn (hU.cOn.mul hU.cOn) (show ContinuousOn ((2:ℝ) • ((F*U)*pc i U)) (cube ι r) from continuousOn_const.smul ((hF.cOn.mul hU.cOn).mul hc)),raw_smul] at h |
| 161 | have hg : size r 0 (F*U) ≤ r * size r 0 U := size_le_mul hi.cOn (hF.cOn.mul hU.cOn) hU.cOn hr fun x hx => by |
| 162 | rw [Pi.mul_apply, abs_mul]; exact mul_le_mul_of_nonneg_right ((cube_iff hr).1 hx i) (abs_nonneg _) |
| 163 | have hj := calc |
| 164 | size r 0 U^2 = -2 * bracket r 0 (F*U) (pc i U) := by rw [size_sq]; unfold bracket; linarith only [h] |
| 165 | _ ≤ 2 * size r 0 (F*U) * size r 0 (pc i U) := by |
| 166 | have he := (abs_le.mp (cauchy (V:=0) hi.cOn (hF.cOn.mul hU.cOn) hc)).1 |
| 167 | linarith |
| 168 | _ ≤ 2 * (r*size r 0 U) * size r 0 (pc i U) := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hg zero_le_two) (size_nn ..) |
| 169 | change size r 0 U ≤ _*size r 0 (pc i U) |
| 170 | rcases eq_or_lt_of_le (size_nn r 0 U) with hx|hx |
| 171 | · rw [← hx]; exact mul_nonneg (mul_nonneg zero_le_two hr) (size_nn ..) |
| 172 | apply le_of_mul_le_mul_left _ hx |
| 173 | linarith only [hj] |
| 174 | end YM.Primitives.SmallFieldExterior |