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.Contacts.Normal.Subtractions |
| 2 | import YM.Contacts.Score.Order |
| 3 | import Mathlib.RingTheory.TensorProduct.Maps |
| 4 | |
| 5 | /-! # Scores for absolute pointwise kernels |
| 6 | |
| 7 | A tensor product on the algebraic space. Optical instruction acts on tests, evaluated at x, and |
| 8 | field channel at x is unchanged, then smul/add. Tensor product is only bookkeeping; in particular |
| 9 | an individually evaluated simple tensor might have no integrated meaning. We prove absolute |
| 10 | convergence for the canonical *sum* and for the precise residual combinations demanded, not by replacing |
| 11 | by absolute values of the raw summands. Use in ambient integrals with the norm/separation qualifications |
| 12 | in the reading. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | set_option maxHeartbeats 600000 |
| 16 | noncomputable section |
| 17 | namespace YM.Contacts.Normal |
| 18 | open Function Filter Set Metric MeasureTheory MultipleContact Submodule Ordered |
| 19 | open scoped Topology BigOperators Classical ContDiff TensorProduct InnerProductSpace |
| 20 | variable (E A : Type*) {B C : Type*} |
| 21 | variable [NormedAddCommGroup E] [NormedSpace ℝ E] [CommRing A] [Algebra ℂ A] |
| 22 | variable [CommRing B] [Algebra ℂ B] [CommRing C][Algebra ℂ C] |
| 23 | abbrev Score := TensorProduct ℂ (E → A) (Optical E) |
| 24 | variable {E A} |
| 25 | lemma inductionScore {f : Score E A → Prop} (x : Score E A) (h₀ : f 0) (h₁ : ∀ g s, f (g ⊗ₜ[ℂ] s)) (h₂ : ∀ x y,f x→ f y→ f (x+y)) : f x := by |
| 26 | induction x using TensorProduct.induction_on with |
| 27 | | zero=>exact h₀ |
| 28 | | tmul f g=> exact h₁ .. |
| 29 | | add x y hx hy=>exact h₂ _ _ hx hy |
| 30 | |
| 31 | def instructionScore (E A : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] [CommRing A] [Algebra ℂ A] (f : Optical E) : Score E A := 1 ⊗ₜ[ℂ] f |
| 32 | lemma instructions (a b: Optical E) : instructionScore E A (a*b)= instructionScore E A a*instructionScore E A b:= by simp [instructionScore,Algebra.TensorProduct.tmul_mul_tmul] |
| 33 | |
| 34 | def action (x : E) (p : SmoothTests E) : Score E A →ₗ[ℂ] A := TensorProduct.lift |
| 35 | { toFun f:= { |
| 36 | toFun g:= ((g p).val x) • f x |
| 37 | map_add' a b:= add_smul ((a p).val x) ((b p).val x) (f x) |
| 38 | map_smul' t a:= smul_assoc t ((a p).val x) (f x) }, |
| 39 | map_add' a b:= LinearMap.ext fun g=> smul_add ((g p).val x) (a x) (b x), |
| 40 | map_smul' t f:= LinearMap.ext fun g=> smul_comm ((g p).val x) t (f x) } |
| 41 | lemma action_tmul (x : E) (p : SmoothTests E) (f : E→ A) (s : Optical E) : action x p (f ⊗ₜ[ℂ] s)=(s p).val x • f x:= TensorProduct.lift.tmul .. |
| 42 | lemma action_add_test (x:E) (p q: SmoothTests E) (f : Score E A) : action x (p+q) f=action x p f+ action x q f := by |
| 43 | induction f using inductionScore with |
| 44 | | h₀=>simp |
| 45 | | h₁ f g=> simp only [action_tmul,map_add]; exact add_smul .. |
| 46 | | h₂ x y hx hy=> simp only [map_add,hx,hy]; abel |
| 47 | lemma action_smul_test (x:E)(t:ℂ)(p:SmoothTests E)(f : Score E A) : action x (t • p) f=t • action x p f := by |
| 48 | induction f using inductionScore with |
| 49 | | h₀=>simp |
| 50 | | h₁ f g=> simp only [action_tmul,map_smul]; exact smul_assoc t _ _ |
| 51 | | h₂ x y hx hy=> simp only [map_add,hx,hy,smul_add] |
| 52 | def under (x : E) (f : Score E A) : SmoothTests E →ₗ[ℂ] A where |
| 53 | toFun p:= action x p f |
| 54 | map_add' p q:= action_add_test x p q f |
| 55 | map_smul' t p:= action_smul_test x t p f |
| 56 | lemma takeRight (x:E) (p:SmoothTests E) (h : Score E A) (f : Optical E) : action x p (h*instructionScore E A f)= action x (f p) h:=by |
| 57 | induction h using inductionScore with |
| 58 | | h₀=>simp |
| 59 | | h₁ a b=> rw [instructionScore,Algebra.TensorProduct.tmul_mul_tmul,mul_one]; simp only [action_tmul]; rfl |
| 60 | | h₂ a b ha hb=> simp only [add_mul,map_add,ha,hb] |
| 61 | |
| 62 | /-- Evaluate several points in the score interpretation with a common field-channel |
| 63 | transform; no smoothness here assumed of fields, transformation need only be linear. -/ |
| 64 | def evaluateHeads (f : E → A →ₗ[ℂ] B) : (E → A) →ₗ[ℂ] (E→B):= LinearMap.pi fun i=> (f i).comp (LinearMap.proj i) |
| 65 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] in |
| 66 | lemma evaluates (f : E → A →ₗ[ℂ] B)(g x) : evaluateHeads f g x= f x (g x):=rfl |
| 67 | |
| 68 | def reshape (f : E → A →ₗ[ℂ] B) : Score E A →ₗ[ℂ] Score E B:= TensorProduct.map (evaluateHeads f) (.id) |
| 69 | @[simp] lemma reshape_tape (f : E→ A →ₗ[ℂ] B) (p:E→ A) (U:Optical E) : reshape f (p ⊗ₜ[ℂ] U) = evaluateHeads f p ⊗ₜ[ℂ] U:= TensorProduct.map_tmul .. |
| 70 | lemma action_reshape (f : E → A →ₗ[ℂ] B) (x : E) (v : Score E A)(g : SmoothTests E) : action x g (reshape f v)= f x (action x g v):= by |
| 71 | induction v using inductionScore with |
| 72 | | h₀=>simp |
| 73 | | h₁ g p=> rw [reshape_tape, action_tmul, action_tmul,map_smul]; rfl |
| 74 | | h₂ g p hg hp=> simp only [map_add, hg,hp] |
| 75 | lemma reshape_id (p : Score E A) : reshape (fun _=> LinearMap.id) p=p := by |
| 76 | induction p using inductionScore with |
| 77 | | h₀=>simp |
| 78 | | h₁ g p=> rw [reshape_tape]; rfl |
| 79 | | h₂ g h hx hy=> simp only [map_add,hx,hy] |
| 80 | lemma reshape_composes (f : E→ A→ₗ[ℂ] B) (h : E→ B →ₗ[ℂ] C)(p : Score E A) : reshape h (reshape f p)=reshape (fun x=>(h x).comp (f x)) p:=by |
| 81 | induction p using inductionScore with |
| 82 | | h₀=>simp |
| 83 | | h₁ g p=> rw [reshape_tape,reshape_tape,reshape_tape]; rfl |
| 84 | | h₂ g h hx hy=> simp only [map_add,hx,hy] |
| 85 | lemma reshape_add (f g : E → A →ₗ[ℂ] B) (p : Score E A) : reshape (f+g) p = reshape f p + reshape g p:= by |
| 86 | induction p using inductionScore with |
| 87 | | h₀ => simp |
| 88 | | h₁ x y=> simp only [reshape_tape,← TensorProduct.add_tmul]; rfl |
| 89 | | h₂ x y hx hy => simp only [map_add,hx,hy]; abel |
| 90 | lemma reshape_zero (p : Score E A) : reshape (0:E→ A→ₗ[ℂ] B) p=0:=by |
| 91 | have h:= reshape_add (0:E→ A→ₗ[ℂ] B) (0:E→ A→ₗ[ℂ] B) p; rw [add_zero] at h; exact add_eq_left.mp h.symm |
| 92 | lemma reshape_instruction (f : E→ A→ₗ[ℂ] B) (U : Score E A) (p : Optical E) : |
| 93 | reshape f (U*instructionScore E A p)=reshape f U*instructionScore E B p:=by |
| 94 | induction U using inductionScore with |
| 95 | | h₀=>simp |
| 96 | | h₁ x y=> unfold instructionScore; simp only [reshape_tape, Algebra.TensorProduct.tmul_mul_tmul, mul_one] |
| 97 | | h₂ x y hx hy=> simp only [add_mul,map_add,hx,hy] |
| 98 | |
| 99 | def retag (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] (a : A →ₐ[ℂ] B) : Score E A →ₐ[ℂ] Score E B where |
| 100 | __:= reshape (fun _=>a.toLinearMap) |
| 101 | map_zero':= map_zero (reshape (fun _:E=>a.toLinearMap)) |
| 102 | map_mul' f g:= by |
| 103 | let H:Score E A→ₗ[ℂ] Score E B:=reshape (fun _=>a.toLinearMap); change H (f*g)=H f*H g |
| 104 | induction f using inductionScore with |
| 105 | | h₀=>simp |
| 106 | | h₁ f k=> |
| 107 | induction g using inductionScore with |
| 108 | | h₀=>simp |
| 109 | | h₁ g l=> |
| 110 | simp only [Algebra.TensorProduct.tmul_mul_tmul, H, reshape_tape]; congr; funext x; exact map_mul a _ _ |
| 111 | | h₂ f g hx hy=> simp only [mul_add,map_add,hx,hy] |
| 112 | | h₂ f g hx hy=> simp only [add_mul,map_add,hx,hy] |
| 113 | map_one':= by change reshape _ ((1:E→A) ⊗ₜ[ℂ] (1:Optical E))= _; rw [reshape_tape]; change _= (1:E→B) ⊗ₜ[ℂ] (1:Optical E); congr; funext x; exact map_one a |
| 114 | -- commutes via map_smul_one |
| 115 | commutes' r:= by |
| 116 | let Q:=(reshape (fun _:E=>a.toLinearMap) : Score E A →ₗ[ℂ] Score E B); change Q ((algebraMap ..) r)=_ |
| 117 | have he:Q 1=1:= by change reshape _ ((1:E→A) ⊗ₜ[ℂ] (1:Optical E))= _; rw [reshape_tape]; change _= (1:E→B) ⊗ₜ[ℂ] (1:Optical E); congr; funext x; exact map_one a |
| 118 | rw [Algebra.algebraMap_eq_smul_one,map_smul,he,Algebra.algebraMap_eq_smul_one] |
| 119 | lemma retags (f : A →ₐ[ℂ] B) (a : Score E A) : retag E f a= reshape (fun _=>f.toLinearMap) a:=rfl |
| 120 | lemma retag_rules (f : A →ₐ[ℂ] B)(p : Optical E) : retag E f (instructionScore E A p) = instructionScore E B p:= by |
| 121 | rw [retags,instructionScore,reshape_tape]; unfold instructionScore; congr; funext i; exact map_one f |
| 122 | lemma retag_product {I : Type*} (s : Finset I)(x:I → Score E A)(f : A →ₐ[ℂ] B): |
| 123 | retag E f (Ordered.product s x) = Ordered.product s (fun i=> retag E f (x i)):= Ordered.mapped s x (retag E f).toRingHom |
| 124 | end YM.Contacts.Normal |