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.Push.STRESS_FLUX.Annular |
| 2 | import YM.Push.STRESS_FLUX.Low |
| 3 | import YM.Push.STRESS_FLUX.Matching |
| 4 | |
| 5 | /-! |
| 6 | A surface version on closed coordinate boxes. Use Lebesgue volume in |
| 7 | THREE face coordinates (ordinary face measure, outward orientation), not |
| 8 | totalized ambient volume on the surface nor samples against a discontinuous |
| 9 | χ in `Table.shellGrad`. This does not assert a general Stokes theorem on |
| 10 | arbitrary enclosing manifolds. . |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.StressFlux.Surface |
| 15 | open Table Work.A01 Analysis MeasureTheory Function Filter Set Metric |
| 16 | open scoped Topology BigOperators ContDiff |
| 17 | abbrev Cube := Axis → ℝ |
| 18 | abbrev to4 := WithLp.toLp (V:= Cube) 2 |
| 19 | |
| 20 | def deep (l r : Cube) : Set E4 := {x | ∀ i, x i∈Ioo (l i) (r i)} |
| 21 | lemma deep_open (l r : Cube) : IsOpen (deep l r) := by |
| 22 | rw [show deep l r = ⋂ i, (fun x : E4 => x i) ⁻¹' (Ioo (l i) (r i)) by ext; simp [deep]] |
| 23 | exact isOpen_iInter_of_finite fun i => isOpen_Ioo.preimage (by fun_prop) |
| 24 | lemma deep_in {l r : Cube} {x : E4} (h : x ∈ deep l r) : x.ofLp ∈ Icc l r := ⟨fun i => (h i).1.le, fun i => (h i).2.le⟩ |
| 25 | |
| 26 | def edge (l : Cube) (i : Axis) (w : Fin 3 → ℝ) := to4 (i.insertNth (l i) w) |
| 27 | |
| 28 | def area (l r : Cube) (F : Axis → E4 → ℂ) := ∑ i : Axis, |
| 29 | ((∫ w : Fin 3 → ℝ in Icc (l ∘ i.succAbove) (r ∘ i.succAbove), F i (edge r i w)) - |
| 30 | ∫ w : Fin 3 → ℝ in Icc (l ∘ i.succAbove) (r ∘ i.succAbove), F i (edge l i w)) |
| 31 | |
| 32 | variable {G : Gauge} {L : Register G} {S : Table L} {W : DiffPlan S} {H : S.RealSpin} |
| 33 | {n d : ℕ} {x : Points (n+1)} {V : E4 → E4} {l r : Cube} {J : S.Stress} {χ : E4 → ℝ} |
| 34 | structure Encloses (x : Points (n+1)) (l r : Cube) : Prop where |
| 35 | center : x 0 ∈ deep l r |
| 36 | avoids (i : Fin n) : (x i.succ).ofLp ∉ Icc l r |
| 37 | |
| 38 | lemma Encloses.window (ht : Encloses x l r) : ∃ χ, Window x χ ∧ tsupport χ ⊆ deep l r := by |
| 39 | obtain ⟨t,ht',h⟩ := nhds_basis_closedBall.mem_iff.mp ((deep_open ..).mem_nhds ht.center) |
| 40 | let χ : ContDiffBump (x 0) := ⟨t/2,t,by positivity, by linarith⟩ |
| 41 | rw [show closedBall (x 0) t = _ from χ.tsupport_eq.symm] at h |
| 42 | exact ⟨χ,⟨χ.contDiff,χ.hasCompactSupport,χ.eventuallyEq_one,fun j hy => ht.avoids j (deep_in (h hy))⟩, h⟩ |
| 43 | |
| 44 | def trunc (χ : E4 → ℝ) (F : Axis → E4 → ℂ) (a : Axis) (z : E4) := (1-χ z) • F a z |
| 45 | lemma near_trunc (hw : Window x χ) (F : Axis → E4 → ℂ) (a : Axis) : trunc χ F a =ᶠ[𝓝 (x 0)] fun _ => 0 := by |
| 46 | filter_upwards [hw.2.2.1] with y hy; simp [trunc,hy] |
| 47 | |
| 48 | section Wall |
| 49 | variable (q : Fin (n+1) → S.Tag) (hv : ∀ b : Axis, ContDiff ℝ ∞ (fun z => V z b)) (hs : S.Smooth) (hx : x∈conf _) (hw : Window x χ) (ht : Encloses x l r) |
| 50 | include hx ht |
| 51 | lemma wall_conf {y : E4} (hy : y.ofLp ∈ Icc l r) (he : y ≠ x 0) : Points.cons y x ∈ conf _ := |
| 52 | conf_cons hx fun i => Fin.cases he (fun j h => ht.avoids j (h ▸ hy)) i |
| 53 | include hv hs hw |
| 54 | lemma wall_smooth {y : E4} (hy : y.ofLp ∈ Icc l r) (a : Axis) : ContDiffAt ℝ ∞ (trunc χ (current J V x q) a) y := by |
| 55 | rcases eq_or_ne y (x 0) with e|e |
| 56 | · exact e ▸ (contDiffAt_const.congr_of_eventuallyEq (near_trunc hw _ _)) |
| 57 | exact (contDiff_const.sub hw.1 |>.contDiffAt.smul (smooth_current J V q a hv (wall_conf hx ht hy e) hs)) |
| 58 | lemma wall_div (hd : W.Derivatives S) (hJ : Conserved W H J) (hV : killing V) {y : E4} (hy : y.ofLp ∈ Icc l r) : |
| 59 | ∑ a, D (basis a) (trunc χ (current J V x q) a) y = - ∑ a, D (basis a) χ y • current J V x q a y := by |
| 60 | rcases eq_or_ne y (x 0) with e|e |
| 61 | · subst y |
| 62 | simp only [D,(near_trunc hw ..).fderiv_eq, hw.2.2.1.fderiv_eq, fderiv_fun_const, Pi.zero_apply, _root_.zero_apply,zero_smul,Finset.sum_const_zero,neg_zero] |
| 63 | have hp := wall_conf hx ht hy e |
| 64 | let F := current J V x q |
| 65 | have he a := smooth_current J V q a hv hp hs |
| 66 | have hh a : D (basis a) (trunc χ F a) y = (1-χ y) • D (basis a) (F a) y - D (basis a) χ y • F a y := by |
| 67 | unfold D trunc |
| 68 | rw [fderiv_fun_smul (c:=fun z => 1-χ z) (f:=F a) (differentiableAt_const _ |>.sub (hw.1.differentiable (by simp) _)) ((he a).differentiableAt (by simp)), fderiv_fun_sub (differentiableAt_const _) (hw.1.differentiable (by simp) _)] |
| 69 | simp [sub_eq_add_neg] |
| 70 | have hD := divergence hs W hd J hJ V hv hV q hp |
| 71 | change ∑ a, D _ (trunc _ F a) _ = _ |
| 72 | rw [Finset.sum_congr rfl (fun a _ => hh a),Finset.sum_sub_distrib,← Finset.smul_sum,hD,smul_zero,zero_sub] |
| 73 | |
| 74 | end Wall |
| 75 | |
| 76 | lemma wall_formula (q : Fin (n+1) → S.Tag) (hv : ∀ b : Axis, ContDiff ℝ ∞ (fun z => V z b)) (hs : S.Smooth) (hx : x∈conf _) (ht : Encloses x l r) |
| 77 | (hw : Window x χ) (he : tsupport χ ⊆ deep l r) (hd : W.Derivatives S) (hJ : Conserved W H J) (hV : killing V) : |
| 78 | area l r (current J V x q) = ∫ y, -∑ a : Axis, D (basis a) χ y • current J V x q a y := by |
| 79 | let F := current J V x q |
| 80 | let Q : Cube →L[ℝ] E4 := (PiLp.continuousLinearEquiv 2 ℝ _).symm.toContinuousLinearMap |
| 81 | let f (a : Axis) := trunc χ F a ∘ Q |
| 82 | let f' := fun i : Axis => fderiv ℝ (f i) |
| 83 | let g (y : E4) := -∑ a : Axis, D (basis a) χ y • F a y |
| 84 | have hle : l ≤ r := fun i => (ht.center i).1.trans (ht.center i).2 |>.le |
| 85 | have hc a z (hz : z∈Icc l r) : ContDiffAt ℝ ∞ (trunc χ F a) (Q z) := wall_smooth q hv hs hx hw ht hz a |
| 86 | have hu a z (hz : z∈Icc l r) := (hc a z hz).comp z Q.contDiff.contDiffAt |
| 87 | have hpartial (z) (hz : z∈Icc l r) : (∑ a : Axis, f' a z (Pi.single a 1)) = g (Q z) := by |
| 88 | have hh (a : Axis) : Q (Pi.single a 1) = basis a := PiLp.toLp_single 2 a 1 |
| 89 | calc |
| 90 | _ = ∑ a, D (basis a) (trunc χ F a) (Q z) := by simp only [D,f',f, fderiv_comp _ ((hc _ z hz).differentiableAt (by simp)) (Q.differentiableAt (x:=z)), Q.fderiv,ContinuousLinearMap.comp_apply,hh] |
| 91 | _ = _ := wall_div q hv hs hx hw ht hd hJ hV hz |
| 92 | have hb (z) (hz : z ∈ univ.pi (fun i => Ioo (l i) (r i)) \ (∅:Set Cube)) : z ∈ Icc l r := deep_in (x:=to4 z) (fun i => hz.1 i (mem_univ i)) |
| 93 | have hi a : ContinuousOn (fun z => f' a z (Pi.single a 1)) (Icc l r) := fun z hz => |
| 94 | ((Analysis.dSmooth (show ContDiffAt ℝ ∞ (f a) z from hu a z hz) (Pi.single a 1) (m:=∞) (by simp)).continuousAt).continuousWithinAt |
| 95 | have h := integral_divergence_of_hasFDerivAt_off_countable' (n:=3) l r hle f f' ∅ countable_empty (fun i z hz => (hu i z hz).continuousAt.continuousWithinAt) |
| 96 | (fun z hz i => ((hu i z (hb z hz)).differentiableAt (by simp)).hasFDerivAt) |
| 97 | (integrable_finsetSum _ fun i _ => (hi i).integrableOn_compact isCompact_Icc) |
| 98 | have hχ a (t : Cube) (h : t=l ∨ t=r) (w : Fin 3 → ℝ) : χ (edge t a w)=0 := by |
| 99 | by_contra hc |
| 100 | have := he (subset_closure hc) a |
| 101 | simp only [edge,to4,WithLp.ofLp_toLp,Fin.insertNth_apply_same,mem_Ioo] at this |
| 102 | rcases h with h|h <;> subst t <;> linarith |
| 103 | have ht' (t : Cube) (h : t=l ∨ t=r) a (w : Fin 3 → ℝ) : f a (a.insertNth (t a) w)=F a (edge t a w) := by change (1-χ (edge t a w)) • F a (edge t a w) = _; rw [hχ _ t h, sub_zero,one_smul] |
| 104 | simp_rw [ht' l (Or.inl rfl),ht' r (Or.inr rfl)] at h |
| 105 | change area l r F = ∫ y, g y |
| 106 | rw [area,← h,setIntegral_congr_fun measurableSet_Icc hpartial] |
| 107 | rw [setIntegral_eq_integral_of_forall_compl_eq_zero (fun z hz => by |
| 108 | have hc : fderiv ℝ χ (Q z) = 0 := by_contra fun h' => hz (deep_in (he (tsupport_fderiv_subset ℝ (subset_closure h')))) |
| 109 | simp [g,D,hc])] |
| 110 | exact (PiLp.volume_preserving_toLp Axis).integral_comp (MeasurableEquiv.toLp 2 Cube).measurableEmbedding g |
| 111 | |
| 112 | /-- Box flux = any smooth tested cutoff flux by conservation/symmetry. |
| 113 | The center must be STRICTLY inside; all other points STRICTLY outside the |
| 114 | closed box. Edges/corners aren't counted as contact insertions. `q` is never |
| 115 | restricted to any particular exterior word. -/ |
| 116 | theorem box (q : Fin n → S.Tag) (B : S.Field d) (hv : ∀ b : Axis, ContDiff ℝ ∞ (fun z => V z b)) (hs : S.Smooth) (hx : x∈conf _) (ht : Encloses x l r) |
| 117 | (hw : Window x χ) (hd : W.Derivatives S) (hJ : Conserved W H J) (hV : killing V) : |
| 118 | area l r (current J V x (Fin.cons ⟨d,B⟩ q)) = flux J χ V x q B := by |
| 119 | obtain ⟨ψ,hp,he⟩ := ht.window |
| 120 | have hi a := Annular.expanded (J:=J) hx hp hs q B (fun b => (hv b).continuous) a |
| 121 | rw [wall_formula _ hv hs hx ht hp he hd hJ hV, integral_neg,integral_finsetSum _ (fun a _ => (hi a).1)] |
| 122 | simp_rw [← (hi _).2]; exact Annular.independent hs hd hJ V hv hV hx hp hw q B |
| 123 | |
| 124 | section Pre |
| 125 | variable {H : S.Hierarchy} {p : Climb.Parts S} {Y : Ward.SpinRows S} (q : Fin n → S.Tag) (B : S.Field d) (hx : x∈conf _) (ht : Encloses x l r) |
| 126 | (hd : W.Derivatives S) (hJ : Climb.Pre H W J p Y) |
| 127 | |
| 128 | include hx ht hd hJ |
| 129 | |
| 130 | |
| 131 | end Pre |
| 132 | end YM.StressFlux.Surface |