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.Trace.BoundaryUnique |
| 2 | import Mathlib.MeasureTheory.Constructions.Polish.Basic |
| 3 | |
| 4 | /-! Parameter integration over a compact support (strict contour interior). -/ |
| 5 | noncomputable section |
| 6 | set_option autoImplicit false |
| 7 | set_option linter.unusedSectionVars false |
| 8 | namespace YM.Trace |
| 9 | open Function MeasureTheory Complex Set Filter |
| 10 | open scoped Interval Topology ContDiff ENNReal BigOperators |
| 11 | |
| 12 | variable {X : Type*} [TopologicalSpace X] [T2Space X] [MeasurableSpace X] |
| 13 | [BorelSpace X] |
| 14 | {μ : Measure X} [IsFiniteMeasure μ] [CompactSpace X] |
| 15 | {F : ℂ → X → ℂ} {s : Set ℂ} |
| 16 | |
| 17 | lemma contour_continuous (H : ContinuousOn (uncurry F) (s ×ˢ univ)) (hs : IsOpen s) : |
| 18 | ContinuousOn (fun z => ∫ x,F z x ∂μ) s := by |
| 19 | apply hs.continuousOn_iff.mpr; intro z hz |
| 20 | obtain ⟨r,hr,hR⟩ := Metric.nhds_basis_closedBall.mem_iff.mp (hs.mem_nhds hz) |
| 21 | let U := Metric.closedBall z r ×ˢ (univ : Set X) |
| 22 | obtain ⟨C,hC⟩ := (isCompact_closedBall z r|>.prod CompactSpace.isCompact_univ).bddAbove_image (f:=fun p : ℂ × X => ‖F p.1 p.2‖) |
| 23 | (H.norm.mono (prod_mono hR Subset.rfl)) |
| 24 | refine tendsto_integral_filter_of_dominated_convergence (fun _ => C) |
| 25 | ?_ ?_ (integrable_const _) (.of_forall fun x => ?_) |
| 26 | · filter_upwards [Metric.closedBall_mem_nhds z hr] with p hp |
| 27 | have hh : Continuous (F p) := continuous_iff_continuousAt.mpr (fun x=> by |
| 28 | change ContinuousAt (uncurry F ∘ (fun y => (p,y))) _ |
| 29 | apply ((((hs.prod isOpen_univ).continuousOn_iff.mp H) (by exact ⟨hR hp, mem_univ _⟩)).comp |
| 30 | (by fun_prop))) |
| 31 | exact hh.aestronglyMeasurable |
| 32 | · filter_upwards [Metric.closedBall_mem_nhds z hr] with p hp |
| 33 | exact .of_forall fun x => hC (mem_image_of_mem _ ((prodMk_mem_set_prod_eq ..).mpr ⟨hp,mem_univ _⟩)) |
| 34 | apply ((hs.prod isOpen_univ).continuousOn_iff.mp H _) |>.tendsto.comp |
| 35 | (tendsto_id.prodMk_nhds tendsto_const_nhds) |
| 36 | exact ⟨hz,mem_univ _⟩ |
| 37 | |
| 38 | lemma line_swap (H : ContinuousOn (uncurry F) (s ×ˢ univ)) {a b : ℝ} {l : ℝ→ℂ} (hc : Continuous l) |
| 39 | (hl : MapsTo l (uIcc a b) s) : |
| 40 | Integrable (fun x => ∫ y in a..b, F (l y) x) μ ∧ |
| 41 | (∫ y in a..b, ∫ x, F (l y) x ∂μ)= (∫ x, (∫ y in a..b, F (l y) x) ∂μ) := by |
| 42 | suffices ∀ w⊆ uIcc a b, MeasurableSet w → |
| 43 | Integrable (uncurry (fun y=> F (l y))) (((volume : Measure ℝ).restrict w).prod μ) by |
| 44 | have ha := this (Ioc a b) (Set.Ioc_subset_Icc_self.trans Set.Icc_subset_uIcc) measurableSet_Ioc |
| 45 | have hb := this (Ioc b a) (Ioc_subset_Icc_self.trans (uIcc_comm b a ▸ Icc_subset_uIcc)) measurableSet_Ioc |
| 46 | unfold intervalIntegral |
| 47 | constructor |
| 48 | · exact ha.integral_prod_right.sub hb.integral_prod_right |
| 49 | erw [integral_integral_swap ha,integral_integral_swap hb, integral_sub ha.integral_prod_right hb.integral_prod_right] |
| 50 | rfl |
| 51 | intro w hw _ |
| 52 | have hi : ContinuousOn (uncurry fun y=> F (l y)) (uIcc a b ×ˢ (univ : Set X)) := by |
| 53 | exact H.comp (f:=(fun p : ℝ×X => (l p.1, p.2))) (by fun_prop) (fun p hp => ⟨hl hp.1,hp.2⟩) |
| 54 | rw [← show μ.restrict univ=μ from Measure.restrict_univ, Measure.prod_restrict] |
| 55 | exact ((ContinuousOn.integrableOn_compact (isCompact_uIcc.prod CompactSpace.isCompact_univ) hi).mono_set (prod_mono hw Subset.rfl)) |
| 56 | |
| 57 | lemma contour_analytic_compact (hs : IsOpen s) (H : ContinuousOn (uncurry F) (s ×ˢ univ)) |
| 58 | (h : ∀ x, DifferentiableOn ℂ (F · x) s) : DifferentiableOn ℂ (fun z => ∫ x,F z x ∂μ) s := by |
| 59 | apply (isConservativeOn_and_continuousOn_iff_isDifferentiableOn hs).mp |
| 60 | refine ⟨fun z w hw => ?_, contour_continuous H hs⟩ |
| 61 | suffices HH : ∀ {z w:ℂ}, Rectangle z w ⊆ s → wedgeIntegral z w (fun z' => ∫ x,F z' x ∂μ) = ∫ x, wedgeIntegral z w (fun z' => F z' x) ∂μ by |
| 62 | rw [HH hw, HH (z:=w) (w:=z) (by simpa only [Rectangle,uIcc_comm w.re,uIcc_comm w.im])] |
| 63 | rw [← MeasureTheory.integral_neg] |
| 64 | exact integral_congr_ae (.of_forall fun x => (h x).isConservativeOn z w hw) |
| 65 | intro z w hw |
| 66 | let l (x : ℝ) := (x : ℂ)+z.im*I; let l' (x : ℝ) := (w.re : ℂ)+x*I |
| 67 | have h1 := line_swap (μ:=μ) H (l:=l) (by fun_prop) (a:=z.re) (b:=w.re) |
| 68 | (fun x hx => hw (by simpa [l,Rectangle,mem_reProdIm] using! hx)) |
| 69 | have h2 := line_swap (μ:=μ) H (l:=l') (by fun_prop) (a:=z.im) (b:=w.im) |
| 70 | (fun x hx => hw (by simpa [l',Rectangle,mem_reProdIm] using! hx)) |
| 71 | erw [wedgeIntegral,h1.2,h2.2,← MeasureTheory.integral_smul] |
| 72 | symm; exact integral_add h1.1 (h2.1.const_mul _) |
| 73 | |
| 74 | lemma contour_analytic {Z : Type*} [TopologicalSpace Z] [T2Space Z] [MeasurableSpace Z] |
| 75 | [BorelSpace Z] {μ : Measure Z} [IsFiniteMeasureOnCompacts μ] {F : ℂ→Z→ℂ} (hs : IsOpen s) {u : Set Z} (hu : IsCompact u) |
| 76 | (H : ∀ z ∈ s, ∀ x ∉ u, F z x = 0) (he : ContinuousOn (uncurry F) (s ×ˢ (univ : Set Z))) (ht : ∀x, DifferentiableOn ℂ (F · x) s) : |
| 77 | DifferentiableOn ℂ (fun z=> ∫ x,F z x∂μ) s := by |
| 78 | let ν : Measure (u) := μ.comap Subtype.val |
| 79 | haveI : @CompactSpace u _ := isCompact_iff_compactSpace.mp hu |
| 80 | haveI : BorelSpace u := inferInstance |
| 81 | haveI : IsFiniteMeasure ν := ⟨show Measure.comap ((↑):u → Z) μ univ < ⊤ from (by |
| 82 | simpa [(MeasurableEmbedding.subtype_coe hu.measurableSet).comap_apply] using hu.measure_lt_top (μ:=μ))⟩ |
| 83 | let y (z : ℂ) := ∫ x:u,F z x∂ν |
| 84 | have hd : DifferentiableOn ℂ y s := contour_analytic_compact (μ:=ν) (F:=fun z x => F z x) hs |
| 85 | (he.comp (f:=Prod.map id ((↑):u→Z)) (by fun_prop) (fun p hp => ⟨hp.1, mem_univ _⟩)) (fun i=> ht i) |
| 86 | exact hd.congr (fun z hz => (integral_subtype_comap hu.measurableSet _ |>.trans (setIntegral_eq_integral_of_forall_compl_eq_zero (H _ hz))).symm) |
| 87 | end YM.Trace |