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 Mathlib.Probability.Distributions.Gaussian.Multivariate |
| 2 | import YM.Next.FOUNDATIONS.SU2 |
| 3 | import YM.Org.Theatre |
| 4 | import YM.Pressure.Seeds |
| 5 | |
| 6 | set_option warningAsError false |
| 7 | |
| 8 | /-! |
| 9 | # Source derivative convention |
| 10 | |
| 11 | Realized here also as actual ordinary real-amplitude mixed derivatives. Use |
| 12 | the multiaffine representative of the **specified source density** (with all |
| 13 | λ_i² and forbidden monomials truncated, ). Not plugging numbers into |
| 14 | the factors before doing marker multiplication; that in general gives a |
| 15 | different function. Reusing a physical observable in a source word uses |
| 16 | different marker names; repeating the SAME amplitude derivative instead gives |
| 17 | zero in this lift. These are not derivatives in beta or V. Hard indicators |
| 18 | are not differentiated! |
| 19 | -/ |
| 20 | set_option autoImplicit false |
| 21 | noncomputable section |
| 22 | namespace YM.Next.SectorChange.Marked.SourceJet |
| 23 | open Function Filter Lattice Wilson RG MeasureTheory Overlay Marker Finset |
| 24 | open scoped Topology BigOperators Classical ContDiff Matrix.Norms.Frobenius |
| 25 | |
| 26 | variable {I : Type*} [DecidableEq I] {B : Census I} |
| 27 | variable {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 28 | |
| 29 | /-- Successive partial derivatives with the head outermost. -/ |
| 30 | def mixed (f : (I → ℝ) → X) : List I → (I → ℝ) → X |
| 31 | | [], t => f t |
| 32 | | i::l, t => deriv (fun s : ℝ => mixed f l (t + Pi.single i s)) 0 |
| 33 | |
| 34 | def rest (l : List I) (p : B.Mode) (t : I → ℝ) : ℝ := |
| 35 | if l.Nodup ∧ l.toFinset ⊆ p.val then ∏ i∈ p.val \ l.toFinset,t i else 0 |
| 36 | |
| 37 | def read (g : B.Mode → X) (l : List I) (t : I → ℝ) := ∑ p, rest l p t • g p |
| 38 | |
| 39 | def lift (g : B.Mode → X) : (I → ℝ) → X := read g [] |
| 40 | |
| 41 | |
| 42 | |
| 43 | private lemma held (l : List I) (i : I) (t : I → ℝ) (p : B.Mode) : |
| 44 | HasDerivAt (fun s => rest l p (t+Pi.single i s)) (rest (i::l) p t) 0 := by |
| 45 | have he : ((i::l).Nodup ∧ (i::l).toFinset⊆p.val) ↔ |
| 46 | (l.Nodup ∧ l.toFinset ⊆ p.val) ∧ i ∈ p.val \ l.toFinset := by simp [Finset.insert_subset_iff]; tauto |
| 47 | by_cases h : l.Nodup ∧ l.toFinset ⊆ p.val |
| 48 | · let q := p.val \ l.toFinset |
| 49 | by_cases hi : i∈q |
| 50 | · have hg : p.val \ (i::l).toFinset=q.erase i := by ext; simp [q]; tauto |
| 51 | unfold rest; simp_rw [if_pos h,if_pos (he.mpr ⟨h,hi⟩),hg] |
| 52 | have hh (s : ℝ) : ∏ j∈q,(t+Pi.single i s : I → ℝ) j=(t i+s)*(∏ j∈q.erase i,t j) := by |
| 53 | rw [← mul_prod_erase q _ hi,Pi.add_apply,Pi.single_eq_same]; congr 1 |
| 54 | exact prod_congr rfl fun j hj => by simp [(mem_erase.mp hj).1] |
| 55 | change HasDerivAt (fun s : ℝ => ∏ j∈q,(t+Pi.single i s : I → ℝ) j) _ 0 |
| 56 | simp_rw [hh]; simpa using ((hasDerivAt_id' (0 : ℝ)).const_add (t i)).mul_const (∏ j∈q.erase i,t j) |
| 57 | have hx (s : ℝ) : rest l p (t+Pi.single i s) = rest l p t := by |
| 58 | unfold rest; rw [if_pos h,if_pos h] |
| 59 | exact prod_congr rfl fun j hj => by |
| 60 | have : j ≠ i := fun e => hi (e ▸ hj) |
| 61 | simp [this] |
| 62 | simp_rw [hx] |
| 63 | rw [show rest (i::l) p t=0 from if_neg (fun h => hi (he.mp h).2)]; exact hasDerivAt_const .. |
| 64 | have hx (s : ℝ) : rest l p (t+Pi.single i s) = 0 := if_neg h |
| 65 | simp_rw [hx] |
| 66 | rw [rest, if_neg (fun hh => h (he.mp hh).1)] |
| 67 | exact hasDerivAt_const .. |
| 68 | |
| 69 | lemma increment (l : List I) (t : I → ℝ) (i : I) (g : B.Mode → X) : |
| 70 | HasDerivAt (fun s : ℝ => read g l (t+Pi.single i s)) (read g (i::l) t) 0 := |
| 71 | HasDerivAt.fun_sum fun (p : B.Mode) _ => (held l i t p).smul_const (g p) |
| 72 | |
| 73 | theorem mixed_lift (l : List I) (g : B.Mode → X) : mixed (lift g) l = read g l := by |
| 74 | induction l with |
| 75 | | nil => rfl |
| 76 | | cons i l ih => |
| 77 | funext t; rw [mixed,ih]; exact (increment l t i g).deriv |
| 78 | |
| 79 | |
| 80 | |
| 81 | lemma at_origin (l : List I) (p : B.Mode) : |
| 82 | rest l p 0 = if l.Nodup ∧ l.toFinset=p.val then 1 else 0 := by |
| 83 | unfold rest; split <;> rename_i hh |
| 84 | · split |
| 85 | next h => simp [h.2] |
| 86 | next h => |
| 87 | have he : (p.val \ l.toFinset).Nonempty := nonempty_iff_ne_empty.mpr fun he => |
| 88 | h ⟨hh.1,Subset.antisymm hh.2 (sdiff_eq_empty_iff_subset.mp he)⟩ |
| 89 | exact prod_eq_zero he.choose_spec rfl |
| 90 | rw [if_neg (fun he => hh ⟨he.1,he.2.le⟩)] |
| 91 | |
| 92 | theorem names (l : List I) (p : B.Mode) (h : l.Nodup) (hp : l.toFinset=p.val) (g : B.Mode → X) : |
| 93 | mixed (lift g) l 0 = g p := by |
| 94 | rw [mixed_lift, read, sum_eq_single p, at_origin, if_pos ⟨h,hp⟩,one_smul] |
| 95 | · intro b _ hb; rw [at_origin,if_neg (fun he => hb (Subtype.ext (he.2.symm.trans hp))), zero_smul] |
| 96 | simp |
| 97 | |
| 98 | |
| 99 | |
| 100 | variable {Y : Type*} [MeasurableSpace Y] (M : Measure Y) |
| 101 | |
| 102 | /-- Coefficientwise interchange, finite sums already gathered (e.g. over |
| 103 | histories). -/ |
| 104 | lemma integral_read (l : List I) (g : B.Mode → Y → X) (t : I → ℝ) (h : ∀ p, Integrable (g p) M) : |
| 105 | Integrable (fun y => read (fun p => g p y) l t) M ∧ |
| 106 | (∫ y, read (fun p => g p y) l t ∂M) = read (fun p => ∫ y, g p y ∂M) l t := by |
| 107 | unfold read |
| 108 | constructor |
| 109 | · exact integrable_finsetSum _ fun p _ => (h p).smul (rest l p t) |
| 110 | rw [integral_finsetSum] |
| 111 | · simp_rw [integral_smul] |
| 112 | exact fun p _ => (h p).smul (rest l p t) |
| 113 | |
| 114 | lemma smul_read (l : List I) (g : B.Mode → X) (t : I → ℝ) (r : ℝ) : |
| 115 | r • read g l t = read (fun i => r • g i) l t := by |
| 116 | unfold read; rw [smul_sum]; exact sum_congr rfl fun _ _ => smul_comm .. |
| 117 | |
| 118 | end YM.Next.SectorChange.Marked.SourceJet |