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.Analysis.Symmetric |
| 2 | import Mathlib.Analysis.Calculus.FDeriv.Symmetric |
| 3 | import Mathlib.Analysis.Calculus.ContDiff.Comp |
| 4 | |
| 5 | /-! |
| 6 | # Ordinary mixed tensors, slot convention |
| 7 | |
| 8 | Over the reals. These are **local** assertions at a point, |
| 9 | so they can be used directly on separated configuration spaces. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Analysis |
| 14 | open Set Filter ContinuousMultilinearMap Equiv |
| 15 | open scoped Topology ContDiff |
| 16 | |
| 17 | variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 18 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 19 | variable {j : ℕ} {f g : E → F} {x : E} |
| 20 | |
| 21 | /-- Directional derivative. Totalized as with mathlib `fderiv`. -/ |
| 22 | def D (u : E) (f : E → F) (x : E) : F := fderiv ℝ f x u |
| 23 | |
| 24 | theorem dSmooth {m n : WithTop ℕ∞} (hf : ContDiffAt ℝ n f x) (u : E) (h : m+1 ≤ n) : |
| 25 | ContDiffAt ℝ m (D u f) x := (hf.fderiv_right h).clm_apply contDiffAt_const |
| 26 | |
| 27 | theorem iterD (h : ContDiffAt ℝ j f x) (u : Fin j → E) : |
| 28 | ContinuousAt (fun y ↦ iteratedFDeriv ℝ j f y u) x := |
| 29 | (ContinuousMultilinearMap.apply ℝ (fun _ => E) F u).continuous.continuousAt.comp (h.continuousAt_iteratedFDeriv le_rfl) |
| 30 | |
| 31 | theorem cons_jet (h : ContDiffAt ℝ (↑(j+1 : ℕ)) f x) (u : E) (v : Fin j → E) : |
| 32 | iteratedFDeriv ℝ (j+1) f x (Fin.cons u v) = |
| 33 | D u (fun z ↦ iteratedFDeriv ℝ j f z v) x := by |
| 34 | have hd : DifferentiableAt ℝ (iteratedFDeriv ℝ j f) x := |
| 35 | h.differentiableAt_iteratedFDeriv (Nat.cast_lt.mpr j.lt_succ_self) |
| 36 | rw [hd.iteratedFDeriv_succ_apply_left'] |
| 37 | simp [D] |
| 38 | |
| 39 | theorem snoc_jet (h : ContDiffAt ℝ (↑(j+1 : ℕ)) f x) (u : E) (v : Fin j → E) : |
| 40 | iteratedFDeriv ℝ (j+1) f x (Fin.snoc v u) = |
| 41 | iteratedFDeriv ℝ j (D u f) x v := by |
| 42 | rw [iteratedFDeriv_succ_apply_right] |
| 43 | simp only [Fin.init_snoc, Fin.snoc_last] |
| 44 | let E1 := ContinuousLinearMap.apply ℝ F u |
| 45 | change _ = iteratedFDeriv ℝ j (E1 ∘ fderiv ℝ f) x v |
| 46 | rw [ContinuousLinearMap.iteratedFDeriv_comp_left] |
| 47 | · rfl |
| 48 | · exact h.fderiv_right (by push_cast; rfl) |
| 49 | rfl |
| 50 | |
| 51 | theorem GermD (u : E) (he : f =ᶠ[𝓝 x] g) : D u f x = D u g x := by |
| 52 | rw [D,D, he.fderiv_eq] |
| 53 | |
| 54 | theorem commuteD (h : ContDiffAt ℝ 2 f x) (u v : E) : D u (D v f) x = D v (D u f) x := by |
| 55 | have hu := (h.isSymmSndFDerivAt (by simp)) |
| 56 | have hd (a b : E) : D a (D b f) x = (fderiv ℝ (fderiv ℝ f) x a) b := by |
| 57 | unfold D |
| 58 | rw [fderiv_clm_apply (hc := (h.fderiv_right (m := 1) (by norm_num)).differentiableAt one_ne_zero) (hu := differentiableAt_const _)] |
| 59 | simp |
| 60 | rw [hd, hd, hu u v] |
| 61 | |
| 62 | theorem double_cons (h : ContDiffAt ℝ (↑(j+2 : ℕ)) f x) (u w : E) (v : Fin j → E) : |
| 63 | iteratedFDeriv ℝ (j+2) f x (Fin.cons u (Fin.cons w v)) = |
| 64 | D u (D w fun z : E ↦ iteratedFDeriv ℝ j f z v) x := by |
| 65 | rw [cons_jet h] |
| 66 | refine GermD u ?_ |
| 67 | have he (i : ℕ) : (i : WithTop ℕ∞) ≠ ∞ := by simp |
| 68 | filter_upwards [h.eventually (he _)] with y hy |
| 69 | exact cons_jet (hy.of_le (Nat.cast_le.mpr (j+1).le_succ)) w v |
| 70 | |
| 71 | theorem sym_Jet (h : ContDiffAt ℝ j f x) : Tensor.Sym (iteratedFDeriv ℝ j f x) := by |
| 72 | induction j generalizing x with |
| 73 | | zero => intro v s; congr! 1 |
| 74 | | succ j ih => |
| 75 | cases j with |
| 76 | | zero => |
| 77 | intro v s |
| 78 | rw [show v ∘ s = v from funext fun a ↦ congr_arg v (@Subsingleton.elim (Fin 1) _ _ _)] |
| 79 | | succ k => |
| 80 | -- Tail permutations, from lower-order symmetry locally. |
| 81 | let B (s : Perm (Fin (k+1))) := Perm.decomposeFin.symm (0,s) |
| 82 | let P (s : Perm (Fin (k+2))) := ∀ v : Fin (k+2) → E, iteratedFDeriv ℝ (k+2) f x (v ∘ s) = iteratedFDeriv ℝ (k+2) f x v |
| 83 | have T (s : Perm (Fin (k+1))) : P (B s) := by |
| 84 | intro v |
| 85 | let w := Fin.tail v |
| 86 | conv_lhs => rw [show v ∘ B s = Fin.cons (v 0) (w ∘ s) by |
| 87 | ext i; refine Fin.cases ?_ (fun j ↦ ?_) i <;> simp [B, w, Fin.tail]] |
| 88 | conv_rhs => rw [← Fin.cons_self_tail v] |
| 89 | rw [cons_jet h, cons_jet h] |
| 90 | refine GermD (v 0) ?_ |
| 91 | filter_upwards [h.eventually (by simp)] with y hy |
| 92 | exact ih (hy.of_le (Nat.cast_le.mpr (k+1).le_succ)) w s |
| 93 | -- And exchange the first two positions, by the real C² theorem. |
| 94 | let oneI := (0 : Fin (k+1)).succ |
| 95 | have U : P (swap 0 oneI) := by |
| 96 | intro v |
| 97 | let w := Fin.tail (Fin.tail v) |
| 98 | conv_rhs => rw [show v = Fin.cons (v 0) (Fin.cons (v oneI) w) by |
| 99 | change v = Fin.cons (v 0) (Fin.cons (Fin.tail v 0) (Fin.tail (Fin.tail v))) |
| 100 | rw [Fin.cons_self_tail, Fin.cons_self_tail]] |
| 101 | conv_lhs => rw [show v ∘ swap 0 oneI = Fin.cons (v oneI) (Fin.cons (v 0) w) by |
| 102 | ext i; refine Fin.cases ?_ (fun j ↦ ?_) i |
| 103 | · simp |
| 104 | · refine Fin.cases ?_ (fun n ↦ ?_) j |
| 105 | · dsimp only [oneI]; simp |
| 106 | simp only [w, Function.comp, swap_apply_def, oneI] |
| 107 | simp only [Fin.succ_ne_zero, Fin.succ_inj, ↓reduceIte, Fin.cons_succ] |
| 108 | rfl] |
| 109 | rw [double_cons h, double_cons h] |
| 110 | refine commuteD ((ContinuousMultilinearMap.apply ℝ _ F w).contDiff.contDiffAt.comp x |
| 111 | (h.iteratedFDeriv_right ?_)) _ _ |
| 112 | push_cast; rw [add_comm, add_assoc]; rfl |
| 113 | have M (s t : Perm (Fin (k+2))) (hs : P s) (ht : P t) : P (s*t) := fun v => |
| 114 | (ht (v ∘ s)).trans (hs v) |
| 115 | have IH0 (s : Perm (Fin (k+2))) (hs : P s) : P s⁻¹ := by |
| 116 | intro v |
| 117 | rw [← hs] |
| 118 | rw [show (v ∘ ⇑s⁻¹) ∘ ⇑s = v by ext; simp] |
| 119 | have V (i : Fin (k+2)) : P (swap 0 i) := by |
| 120 | refine Fin.cases (by intro v; simp) ?_ i |
| 121 | intro j |
| 122 | let t := swap 0 j |
| 123 | have he := swap_apply_apply (B t) 0 oneI |
| 124 | have ht0 : (B t) 0 = 0 := by simp [B] |
| 125 | have ht1 : (B t) oneI = j.succ := by simp [B, oneI, t] |
| 126 | rw [ht0, ht1] at he |
| 127 | rw [he] |
| 128 | exact M _ _ (M _ _ (T _) U) (IH0 _ (T _)) |
| 129 | intro v s |
| 130 | obtain ⟨⟨i,q⟩,rfl⟩ := Perm.decomposeFin.symm.surjective s |
| 131 | have he : Perm.decomposeFin.symm (i,q) = swap 0 i * B q := by |
| 132 | ext a |
| 133 | refine Fin.cases ?_ (fun j ↦ ?_) a <;> simp [B] |
| 134 | rw [he]; exact M _ _ (V _) (T _) _ |
| 135 | |
| 136 | theorem cons_inner (h : ContDiffAt ℝ (↑(j+1 : ℕ)) f x) (u : E) (v : Fin j → E) : |
| 137 | iteratedFDeriv ℝ (j+1) f x (Fin.cons u v) = |
| 138 | iteratedFDeriv ℝ j (D u f) x v := by |
| 139 | rw [← snoc_jet h, Fin.snoc_eq_cons_rotate] |
| 140 | exact (sym_Jet h _ (finRotate _)).symm |
| 141 | |
| 142 | end YM.Analysis |