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.TraceExtension.Perfect.Volume |
| 2 | |
| 3 | /-! # Tensor shell composition packets -/ |
| 4 | set_option autoImplicit false |
| 5 | noncomputable section |
| 6 | namespace YM.Trace.Perfect |
| 7 | open Stationary Filter Function Matrix Lattice Precision Finset OrderedFinpartition |
| 8 | open scoped Topology BigOperators ContDiff |
| 9 | variable {I J W:Type} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] [Fintype W] [DecidableEq W] |
| 10 | {m : ℕ} {X : Type*}[NormedAddCommGroup X][NormedSpace ℝ X] |
| 11 | |
| 12 | def scheme (c:OrderedFinpartition m)(x:Fin m→I) (i:Fin c.length) := x ∘ c.emb i |
| 13 | omit [Fintype I] [DecidableEq I] in |
| 14 | lemma scheme_equiv (c:OrderedFinpartition m): Bijective (scheme (I:=I) c) := by |
| 15 | refine ⟨?_,?_⟩ |
| 16 | · intro x y h; ext i; obtain ⟨⟨k,l⟩,hi⟩:=c.equivSigma.surjective i; rw [← hi]; exact congr_fun (congr_fun h k) l |
| 17 | intro z; let v : Fin m→I:= (fun j : (i:Fin c.length)×Fin (c.partSize i)=>z j.1 j.2) ∘ c.equivSigma.symm; refine ⟨v,?_⟩; ext i j; change z ((c.equivSigma.symm _).1) ((c.equivSigma.symm _).2)=_; exact congr_arg (fun j : (i:Fin c.length)×Fin (c.partSize i)=> z j.1 j.2) (c.equivSigma.symm_apply_apply ⟨i,j⟩) |
| 18 | |
| 19 | omit [DecidableEq I] in |
| 20 | lemma splitSum (c:OrderedFinpartition m)(F:(i:Fin c.length)→(Fin (c.partSize i)→I)→ℝ): |
| 21 | (∑ x : Fin m → I,∏ i,F i (scheme c x i)) = ∏ i, ∑ v,F i v:=by |
| 22 | classical |
| 23 | let f (z:(i:Fin c.length)→(Fin (c.partSize i)→I)):= ∏ i,F i (z i) |
| 24 | change (∑ x : Fin m→ I, f ((Equiv.ofBijective _ (scheme_equiv c)) x)) = _ |
| 25 | rw [Equiv.sum_comp]; unfold f; rw [Fintype.prod_sum] |
| 26 | |
| 27 | omit [DecidableEq I] in |
| 28 | lemma plate (A:I→ℕ)(α t r)(c:OrderedFinpartition m) (f:(i:Fin c.length)→ (Fin (c.partSize i)→ I) → ℝ) |
| 29 | (h : 0≤α)(hr:0≤r): cost A α t r (fun x=> ∏ i,f i (scheme c x i))≤∏ i,cost A α t r (f i):=by |
| 30 | classical |
| 31 | unfold cost; refine le_trans ?_ (le_of_eq (splitSum c (fun i y=> spot α t r (limitN A y) * ‖f i y‖))) |
| 32 | apply sum_le_sum; intro x _; dsimp only; rw [norm_prod,prod_mul_distrib]; exact mul_le_mul_of_nonneg_right (splitN A _ _ _ _ _ h hr) (prod_nonneg (fun i _=>norm_nonneg _)) |
| 33 | |
| 34 | omit [DecidableEq I] in |
| 35 | lemma cost_smul (A:I→ℕ)(α t r)(f:(W→I)→ℝ) (u:X): cost A α t r (fun x=>f x • u)=cost A α t r f*‖u‖:=by |
| 36 | unfold cost; simp_rw [norm_smul,Finset.sum_mul, mul_assoc] |
| 37 | |
| 38 | abbrev Rays (I : Type) := I → ℝ |
| 39 | abbrev desk (x: I) : Rays I := Pi.single x 1 |
| 40 | abbrev bank (F : ContinuousMultilinearMap ℝ (fun _ : Fin m=> Rays I) X) (v:Fin m → I):X:= F (desk ∘ v) |
| 41 | |
| 42 | lemma many (c:OrderedFinpartition m) (F : ContinuousMultilinearMap ℝ (fun _ : Fin c.length=> Rays J) X) |
| 43 | (x: Fin c.length → Rays J): F x=∑ b: Fin c.length→ J, (∏ i,x i (b i)) • bank F b:=by |
| 44 | classical |
| 45 | let g (i:Fin c.length) (j : J):= x i j • desk j |
| 46 | have h:x=(fun i=>∑ j,g i j):=by ext i l; rw [Finset.sum_apply]; unfold g; simp [desk,Pi.single_apply] |
| 47 | conv_lhs=> rw [h] |
| 48 | change F.toMultilinearMap _=_ ; rw [MultilinearMap.map_sum]; apply Finset.sum_congr rfl; intro b _; exact F.toMultilinearMap.map_smul_univ (fun i=>x i (b i)) (desk ∘ b) |
| 49 | |
| 50 | omit [DecidableEq I] in |
| 51 | lemma volume_join (A:I→ℕ) (α t)(c:OrderedFinpartition m) (F : ContinuousMultilinearMap ℝ (fun _ : Fin c.length=> Rays J) X) |
| 52 | (L:(i:Fin c.length)→(Fin (c.partSize i)→ I)→ Rays J)(R:(Fin c.length→ J)→ℝ) |
| 53 | (h:0 ≤ α)(hR:∀ b,0≤R b) : cost A α t 0 (fun x=> F (fun i=> L i (scheme c x i))) ≤ |
| 54 | ∑ b: Fin c.length→J, shelter α t (R b) * (∏ i,cost A α t (R b) fun v=> L i v (b i))* ‖bank F b‖:=by |
| 55 | classical |
| 56 | let g (b:Fin c.length→J) (x:Fin m→I):=(∏ i,L i (scheme c x i) (b i)) • bank F b |
| 57 | rw [show (fun x=> F (fun i=> L i (scheme c x i)))=fun x=>∑ b,g b x from funext fun x=>many c F _]; refine (cost_sum A α t 0 g).trans (sum_le_sum (fun b _=>?_)) |
| 58 | unfold g; rw [cost_smul]; exact mul_le_mul_of_nonneg_right ((cost_build (fun x:Fin m→I=>∏ i,L i (scheme c x i) (b i)) A α t (R b) h (hR b)).trans (mul_le_mul_of_nonneg_left (plate A α t _ c (fun i v=> L i v (b i)) h (hR b)) (shelter_pos _ _ (hR _)).le)) (norm_nonneg _) |
| 59 | |
| 60 | end YM.Trace.Perfect |
| 61 | |
| 62 | namespace YM.Trace.Perfect |
| 63 | open scoped Classical Topology BigOperators ContDiff |
| 64 | open Stationary Function Matrix Lattice Precision Finset OrderedFinpartition |
| 65 | variable {I J:Type} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] |
| 66 | {m : ℕ} {X : Type*}[NormedAddCommGroup X][NormedSpace ℝ X] {f : Rays I → X} {a:Rays I} |
| 67 | |
| 68 | abbrev leaf (f:Rays I→ X)(a:Rays I)(m : ℕ):= bank (iteratedFDeriv ℝ m f a) |
| 69 | -- useful high estimates |
| 70 | end YM.Trace.Perfect |