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.Next.MULTISOURCE.Ends |
| 2 | import YM.Next.MULTISOURCE.LevelD |
| 3 | |
| 4 | /-! uniform but called with HORRIBLY volume-costed bound. -/ |
| 5 | set_option autoImplicit false |
| 6 | noncomputable section |
| 7 | namespace YM.Multi.Step |
| 8 | open RG Wilson Lattice MeasureTheory Function Marker Finset Filter Work.G07 |
| 9 | open scoped Topology Matrix.Norms.Frobenius BigOperators Classical ContDiff |
| 10 | variable {G : Gauge} {n : Side} {P : Rep G n} |
| 11 | |
| 12 | lemma box_charge (P : BudgetPoint) (θ : ℝ) (F : Config G n → ℂ) (b : ℝ) (Y : Support n) |
| 13 | (hh : ∀ (d : Directions G n) x,P.dirBound x d → ‖d‖≤ θ) (h : SimpleBound P θ b F) : |
| 14 | Banked P 2 Y (masked P.threshold univ F) (burn P 2 (univ : Support n)*b) := by |
| 15 | apply Banked.term (Finset.subset_univ _) h.bounded.nonneg |
| 16 | · constructor |
| 17 | · intro U V hx; exact congrArg _ (funext fun i => hx i (mem_univ _) (mem_univ _)) |
| 18 | · exact h.hom.measurable |
| 19 | · exact h.sym |
| 20 | · intro U hU; exact ((h.bounded.smooth [] (Nat.zero_le _) U).of_le (WithTop.coe_le_coe.mpr le_top)).contDiffAt |
| 21 | intro U hU A l hl; exact h.bounded.smooth.has hl.le U A |
| 22 | intro i hi; refine ⟨h.bounded.nonneg,fun U hu l hx hX => ?_⟩ |
| 23 | simpa only [one_pow,mul_one] using h.bounded.bound l hx (fun j hj => hh j i (hX j hj)) U trivial |
| 24 | |
| 25 | def right (P : Rep G n) (g f : Config G n→ℂ) : Pulse G n := (masked P.p.threshold univ f, |
| 26 | fun q U => if q.zone=univ ∧ flags P.p.threshold U=q.flagsAt then (Real.exp (-P.exponent U):ℂ)*g U else 0) |
| 27 | lemma right_paid (P : Rep G n) {σ A B δ p : ℝ} (h : P.Lawful σ A B δ p) (hp : GaugeInvariant P.exponent) |
| 28 | (b m : ℝ) {θ κ : ℝ} (he : ∀ d : Directions G n,∀ x, P.p.dirBound x d → ‖d‖≤θ) (hκ : 0<κ) : ∃ C : ℝ, |
| 29 | ∀ g f : Config G n→ℂ,SimpleBound P.p θ m f → FitsPurse b g → ∀ X : Support n, X.Nonempty → |
| 30 | Credit P.p 2 κ X (right P g f) C := by |
| 31 | obtain ⟨hZ,C,hC⟩ := (P.exponentEnv h).neg.exp |
| 32 | let u := burn P.p 2 (univ : Support n) |
| 33 | let w (q : Pack n) := burn P.p 2 q.zone |
| 34 | let Z := ∑ i,w i*(C*b) |
| 35 | refine ⟨max (u*m) (Z/κ),fun g f hG hF X hX => ?_⟩ |
| 36 | have hv : 0 ≤ u*m := mul_nonneg (burn_pos ..).le hG.bounded.nonneg |
| 37 | refine ⟨hX,by norm_num,hκ,hv.trans (le_max_left ..),⟨0,(right P g f).1,(by funext U; rw [zero_add]),fun _ => rfl, |
| 38 | norm_zero.trans_le (hv.trans (le_max_left ..)), (box_charge P.p θ f m X he hG).enlarge (le_max_left ..)⟩, |
| 39 | (fun _ => C*b),?_,?_⟩ |
| 40 | · rw [mul_comm κ]; exact (div_le_iff₀ hκ).mp (le_max_right (u*m) (Z/κ)) |
| 41 | have hx : 0 ≤ C*b := mul_nonneg ((norm_nonneg _).trans (hC 1)) hF.nonneg |
| 42 | intro i |
| 43 | by_cases h : i.zone=univ |
| 44 | · refine ⟨⟨?_,?_,?_,?_⟩,fun _ => h ▸ subset_univ X,hx,?_⟩ |
| 45 | · simp only [right,h,true_and] |
| 46 | apply Measurable.ite (flags_measurable_eq ..) _ measurable_const; exact |
| 47 | (Complex.continuous_ofReal.measurable.comp hZ).mul hF.borel |
| 48 | · intro t U; unfold right |
| 49 | simp only [h,true_and,gauge_flags,hp t U,hF.symmetry t U] |
| 50 | · intro U V he _; rw [show U=V from funext fun j => he j (h ▸ mem_univ _) (h ▸ mem_univ _)] |
| 51 | · simp only [right,h,true_and,Finset.univ_inter]; intro U; split <;> simp_all |
| 52 | simp only [right,h,true_and]; intro U; split |
| 53 | · rw [norm_mul,Complex.norm_real]; exact mul_le_mul (hC U) (hF.all U) (norm_nonneg _) ((norm_nonneg _).trans (hC U)) |
| 54 | rw [norm_zero]; exact hx |
| 55 | rw [show (right P g f).2 i=0 from funext fun x => by simp [right,h]] |
| 56 | exact ⟨Legible.zero ..,fun H => False.elim (H rfl),hx,fun _ => norm_zero.le.trans hx⟩ |
| 57 | |
| 58 | lemma box_true (U : Config G n) (P : Rep G n) : Healthy P.p.threshold univ U ↔ flags P.p.threshold U=∅ := by simp [Healthy,Finset.disjoint_left,Finset.ext_iff] |
| 59 | |
| 60 | private lemma clears_all (W : Finset (Pack n)) (X : Support n) (_hx : X.Nonempty) (h : W∈ Pack.clears X) (j : Pack n) (hp : j∈W) |
| 61 | (hj : j.zone=univ) : W={j} ∧ X=j.flagsAt := by |
| 62 | obtain ⟨H,hV⟩ := (mem_filter.mp h).2 |
| 63 | have hf : W={j} := by |
| 64 | refine Finset.eq_singleton_iff_unique_mem.mpr ⟨hp,fun i hi => ?_⟩ |
| 65 | by_contra hh |
| 66 | obtain ⟨v,hv⟩ := i.property.1; exact Finset.disjoint_left.mp (H hi hp hh) (i.property.2 hv) (hj ▸ mem_univ v) |
| 67 | rw [hf,Finset.singleton_biUnion] at hV |
| 68 | exact ⟨hf,hV.symm⟩ |
| 69 | |
| 70 | lemma right_valid (P : Rep G n) (g f : Config G n → ℂ) (h : recept P.p g (fun U => (P.eval U:ℂ)*f U)) : |
| 71 | recept P.p (right P g f).1 f ∧ tangent P (right P g f)=g := by |
| 72 | refine ⟨fun x hx => masked_eq _ _ _ _ ((box_true x P).mpr hx),?_⟩ |
| 73 | funext U; by_cases ht : (flags P.p.threshold U).Nonempty |
| 74 | · let X : Pack n := ⟨⟨univ,_⟩,ht, subset_univ _⟩ |
| 75 | have he : {X} ∈ Pack.clears (flags P.p.threshold U) := Finset.mem_filter.mpr ⟨mem_univ _,by simp; rfl⟩ |
| 76 | unfold tangent; rw [show (right P g f).1 U=0 from masked_ne _ _ _ _ (fun h => |
| 77 | nonempty_iff_ne_empty.mp ht ((box_true U P).mp h)), mul_zero,zero_add] |
| 78 | rw [Finset.sum_eq_single {X}]; rotate_left |
| 79 | · intro b hb H; refine sum_eq_zero fun i hi => ?_ |
| 80 | have hn : i.zone ≠ univ := by |
| 81 | intro h; apply H |
| 82 | obtain ⟨hv,hk⟩ := clears_all b _ ht hb i hi h |
| 83 | rw [hv, show i=X from Subtype.ext (Prod.ext h hk.symm)] |
| 84 | simp [right,hn] |
| 85 | · simp [he] |
| 86 | rw [sum_singleton, erase_singleton,prod_empty,mul_one] |
| 87 | simp only [right, show X.zone=univ from rfl,show X.flagsAt=flags P.p.threshold U from rfl,true_and,if_true, |
| 88 | ← mul_assoc,← Complex.ofReal_mul,← Real.exp_add,add_neg_cancel, Real.exp_zero,Complex.ofReal_one,one_mul] |
| 89 | rw [tangent] |
| 90 | have he := not_nonempty_iff_eq_empty.mp ht |
| 91 | rw [h U he] |
| 92 | simp [right,he,masked_eq _ _ _ _ ((box_true U P).mpr he), fun i : Pack n => (nonempty_iff_ne_empty.mp i.property.1).symm] |
| 93 | end YM.Multi.Step |