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.Work.F05.Measure |
| 2 | import YM.Work.F05.Reindex |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Additive Jacobian compared to the physical Haar chart ratios |
| 7 | |
| 8 | Use compact measurable tests near each point of interest, freezing the |
| 9 | coarse coordinate. Products live on a common additive space (coordinate |
| 10 | permutation); the two pushforwards live on the actual two forest slices. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Work.F05 |
| 15 | open Function Filter Set MeasureTheory Lattice Wilson RG Precision Exterior Tree Metric |
| 16 | open scoped Topology ENNReal BigOperators ContDiff Matrix.Norms.Frobenius |
| 17 | |
| 18 | private lemma detects {E : Type} [MetricSpace E] [MeasureSpace E] [BorelSpace E] |
| 19 | [IsFiniteMeasureOnCompacts (volume : Measure E)] |
| 20 | [Measure.IsOpenPosMeasure (volume : Measure E)] [ProperSpace E] {x : E} {s : Set E} |
| 21 | {F H : E → ℝ} (hs : s ∈ 𝓝 x) (he : ∀ C : Set E, IsCompact C → C ⊆ s → |
| 22 | (∫⁻ y in C, ENNReal.ofReal (F y)) = ∫⁻ y in C, ENNReal.ofReal (H y)) |
| 23 | (hF : ContinuousAt F x) (hH : ContinuousAt H x) (hp : 0 ≤ F x) : H x ≤ F x := by |
| 24 | by_contra! hn |
| 25 | obtain ⟨a,ha,hb⟩ := exists_between hn |
| 26 | obtain ⟨b,hab,hb'⟩ := exists_between hb |
| 27 | have hN : ∀ᶠ y in 𝓝 x, y∈s ∧ F y < a ∧ b < H y := |
| 28 | (show ∀ᶠ y in 𝓝 x, y∈s from hs).and ((hF.eventually (gt_mem_nhds ha)).and (hH.eventually (lt_mem_nhds hb'))) |
| 29 | obtain ⟨d,hd,h⟩ := nhds_basis_closedBall.mem_iff.mp hN |
| 30 | let C := closedBall x d |
| 31 | have hu (y : E) (hy : y ∈ C) : y∈s ∧ F y < a ∧ b < H y := h hy |
| 32 | have hv : IsCompact C := isCompact_closedBall x d |
| 33 | have hw : 0 < volume C := lt_of_lt_of_le |
| 34 | (isOpen_ball.measure_pos volume ⟨x,mem_ball_self hd⟩) (measure_mono ball_subset_closedBall) |
| 35 | refine (he C hv (fun y hy => (hu y hy).1)).not_lt ?_ |
| 36 | calc |
| 37 | _ ≤ ∫⁻ (_ : E) in C, ENNReal.ofReal a := setLIntegral_mono' hv.measurableSet (fun y hy => |
| 38 | ENNReal.ofReal_le_ofReal (hu y hy).2.1.le) |
| 39 | _ < ∫⁻ (_ : E) in C, ENNReal.ofReal b := by |
| 40 | simp only [lintegral_const, Measure.restrict_apply_univ] |
| 41 | exact ENNReal.mul_lt_mul_left hw.ne' hv.measure_lt_top.ne |
| 42 | ((ENNReal.ofReal_lt_ofReal_iff_of_nonneg (hp.trans ha.le)).mpr hab) |
| 43 | _ ≤ _ := setLIntegral_mono' hv.measurableSet (fun y hy => |
| 44 | ENNReal.ofReal_le_ofReal (hu y hy).2.2.le) |
| 45 | |
| 46 | variable {c f : Side} {G : Gauge} {g : Ratio c f} {B T : Forest g} |
| 47 | {P : ChartRatio G} (e : B.Free ≃ T.Free) |
| 48 | |
| 49 | -- Conditions used for compact testing at fixed x |
| 50 | private def gate (P : ChartRatio G) (e : B.Free ≃ T.Free) (x : Bid.Dir G c) (y : AxisChart G B) : Prop := |
| 51 | y ∈ parcel B P ∧ index e (move e x y) ∈ parcel T P ∧ |
| 52 | exposure T x (index e (move e x y)) = Profiles.reroute B T G (exposure B x y) ∧ |
| 53 | ContDiffAt ℝ ω (move e x) y |
| 54 | |
| 55 | private lemma cost_compact (h : LocalRatio P) (x : Bid.Dir G c) |
| 56 | (C : Set (AxisChart G B)) (hC : IsCompact C) (hs : C ⊆ {y | gate P e x y}) : |
| 57 | (∫⁻ y in C, ENNReal.ofReal (load B P y)) = |
| 58 | ∫⁻ y in C, ENNReal.ofReal (|(fderiv ℝ (move e x) y).det| * load T P (index e (move e x y))) := by |
| 59 | let F := exposure B x |
| 60 | let H := exposure T x |
| 61 | let L : AxisChart G B ≃L[ℝ] AxisChart G T := index e |
| 62 | let R := move e x |
| 63 | let f := Profiles.reroute B T G |
| 64 | let V := R '' C |
| 65 | let A := L '' V |
| 66 | have ht (y : AxisChart G B) (hy : y ∈ C) : gate P e x y := hs hy |
| 67 | have hd (y : AxisChart G B) (hy : y ∈ C) : HasFDerivAt R (fderiv ℝ R y) y := |
| 68 | ((ht y hy).2.2.2.differentiableAt (by simp)).hasFDerivAt |
| 69 | have hw (y : AxisChart G B) (hy : y ∈ C) : H (L (R y)) = f (F y) := (ht y hy).2.2.1 |
| 70 | have hi : InjOn R C := fun a ha b hb e => exposure_inj B h x (ht a ha).1 (ht b hb).1 |
| 71 | (f.injective ((hw a ha).symm.trans ((congr_arg (fun s => H (L s)) e).trans (hw b hb)))) |
| 72 | have hV : IsCompact V := hC.image_of_continuousOn |
| 73 | (fun y hy => (hd y hy).continuousAt.continuousWithinAt) |
| 74 | have hA : IsCompact A := hV.image L.continuous |
| 75 | have HH : Continuous H := (exposure_continuous T).comp (f:= fun y => (x,y)) |
| 76 | (continuous_const.prodMk continuous_id) |
| 77 | have he : H '' A = f '' (F '' C) := by |
| 78 | refine Subset.antisymm ?_ ?_ |
| 79 | · rintro _ ⟨_, ⟨_,⟨w,hw',rfl⟩,rfl⟩,rfl⟩ |
| 80 | rw [hw w hw']; exact mem_image_of_mem _ (mem_image_of_mem _ hw') |
| 81 | rintro _ ⟨_,⟨w,hw',rfl⟩,rfl⟩ |
| 82 | rw [← hw w hw']; exact mem_image_of_mem _ (mem_image_of_mem _ (mem_image_of_mem _ hw')) |
| 83 | have hM : (B.order G) (F '' C) = (T.order G) (H '' A) := by |
| 84 | have hu := (Profiles.spending B T G).measure_preimage |
| 85 | ((hA.image HH).measurableSet.nullMeasurableSet (μ:=T.order G)) |
| 86 | rw [show f ⁻¹' (H '' A) = F '' C by rw [he, f.injective.preimage_image]] at hu |
| 87 | exact hu |
| 88 | have ha : A ⊆ parcel T P := by |
| 89 | rintro _ ⟨_,⟨w,hw',rfl⟩,rfl⟩; exact (ht w hw').2.1 |
| 90 | have hy : MeasurableEmbedding L := (MeasurableEquiv.piCongrLeft (fun _ => G.Color) e).measurableEmbedding |
| 91 | calc |
| 92 | _ = (B.order G) (F '' C) := (order_exposed B h x C hC (fun y hx => (ht y hx).1)).symm |
| 93 | _ = (T.order G) (H '' A) := hM |
| 94 | _ = ∫⁻ y in A, ENNReal.ofReal (load T P y) := order_exposed T h x A hA ha |
| 95 | _ = ∫⁻ y in V, ENNReal.ofReal (load T P (L y)) := by |
| 96 | have hm : L ⁻¹' A = V := L.injective.preimage_image _ |
| 97 | rw [← hm] |
| 98 | exact ((index_preserves e).setLIntegral_comp_preimage_emb hy _ _).symm |
| 99 | _ = ∫⁻ y in C, ENNReal.ofReal |(fderiv ℝ R y).det| * ENNReal.ofReal (load T P (L (R y))) := |
| 100 | lintegral_image_eq_lintegral_abs_det_fderiv_mul volume hC.measurableSet |
| 101 | (fun y hy => (hd y hy).hasFDerivWithinAt) hi _ |
| 102 | _ = _ := by simp only [ENNReal.ofReal_mul (abs_nonneg _)]; rfl |
| 103 | |
| 104 | private lemma gate_cost (h : LocalRatio P) (x : Bid.Dir G c) (y : AxisChart G B) |
| 105 | (hs : ∀ᶠ w in 𝓝 y, gate P e x w) : |
| 106 | toll B P y = |(fderiv ℝ (move e x) y).det| * toll T P (switch B T x y) := by |
| 107 | let s := {w | gate P e x w} |
| 108 | have hy : gate P e x y := hs.self_of_nhds |
| 109 | let R := move e x |
| 110 | let L : AxisChart G B ≃L[ℝ] AxisChart G T := index e |
| 111 | let F (z : AxisChart G B) := load B P z |
| 112 | let H (z : AxisChart G B) := |(fderiv ℝ R z).det| * load T P (L (R z)) |
| 113 | have hr : ContDiffAt ℝ ω R y := hy.2.2.2 |
| 114 | have hc : ContinuousAt F y := load_cont B h hy.1 |
| 115 | have hd : ContinuousAt (fun z => (fderiv ℝ R z).det) y := |
| 116 | ContinuousLinearMap.continuous_det.continuousAt.comp (hr.fderiv_right (m:=ω) (by simp)).continuousAt |
| 117 | have hu : ContinuousAt H y := hd.abs.mul ((load_cont T h hy.2.1).comp |
| 118 | (f:= fun z => L (R z)) (L.continuousAt.comp hr.continuousAt)) |
| 119 | have hp : 0 ≤ F y := (load_pos B h hy.1).le |
| 120 | have hq : 0 ≤ H y := mul_nonneg (abs_nonneg _) (load_pos T h hy.2.1).le |
| 121 | have he : F y = H y := le_antisymm |
| 122 | (detects (s:=s) hs (fun C hc hx => (cost_compact e h x C hc hx).symm) hu hc hq) |
| 123 | (detects (s:=s) hs (cost_compact e h x) hc hu hp) |
| 124 | unfold F H at he |
| 125 | rw [load_eq, load_eq, ← free_card B T, |
| 126 | show L (R y) = switch B T x y from (congr_fun (move_eq e x) y).symm, mul_left_comm] at he |
| 127 | exact mul_left_cancel₀ (pow_ne_zero _ h.scale.ne') he |
| 128 | |
| 129 | lemma toll_switch (h : LocalRatio P) : |
| 130 | ∀ᶠ z : Bid.Dir G c × AxisChart G B in 𝓝 0, |
| 131 | toll B P z.2 = |(fderiv ℝ (move e z.1) z.2).det| * toll T P (switch B T z.1 z.2) := by |
| 132 | have hs : ∀ᶠ z : Bid.Dir G c × AxisChart G B in 𝓝 0, gate P e z.1 z.2 := by |
| 133 | have hi := (switch_jet B T (G:=G)).continuousAt.tendsto |
| 134 | change Tendsto (uncurry (switch B T (G:=G))) (𝓝 0) (𝓝 (switch B T (G:=G) 0 0)) at hi |
| 135 | rw [switch_zero] at hi |
| 136 | filter_upwards [hi.eventually (parcel_zero T h), |
| 137 | (continuous_snd.tendsto (0:Bid.Dir G c × AxisChart G B)).eventually (parcel_zero B h), |
| 138 | exposure_switch B T, (move_jet e).eventually (by simp)] with ⟨x,y⟩ hv hw he hd |
| 139 | have he' : index e (move e x y) = switch B T x y := (congr_fun (move_eq e x) y).symm |
| 140 | exact ⟨hw, he'.symm ▸ hv, he'.symm ▸ he, hold_jet hd⟩ |
| 141 | filter_upwards [eventually_eventually_nhds.mpr hs] with ⟨x,y⟩ hx |
| 142 | exact gate_cost e h x y (hold_near hx) |
| 143 | end YM.Work.F05 |