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.RG.Patch |
| 2 | |
| 3 | /-! |
| 4 | # Pieces of the exact kernel are Borel |
| 5 | |
| 6 | On the two interior minimizing branches the selected points are continuous |
| 7 | (under uniqueness, a separate substantial obligation). Fallback is defined |
| 8 | Borel, not assumed smooth. Use the actual finite likelihoods, normalized at |
| 9 | fixed fields. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.RG |
| 15 | |
| 16 | open Set MeasureTheory Filter Lattice Wilson |
| 17 | open scoped Topology Matrix.Norms.Frobenius |
| 18 | |
| 19 | /-- Compact target: unique fiber of a closed relation controls all choices. -/ |
| 20 | theorem minArg_cont {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] |
| 21 | [CompactSpace Y] (f : X → Y) (M : Set (X × Y)) (hf : ∀ x, (x,f x) ∈ M) |
| 22 | (hclosed : IsClosed M) (a : X) (ha : ∃! y, (a,y) ∈ M) : ContinuousAt f a := by |
| 23 | apply tendsto_nhds.mpr |
| 24 | intro V h hv |
| 25 | let D := Prod.fst '' (M ∩ Prod.snd ⁻¹' Vᶜ) |
| 26 | have hd : IsClosed D := isClosedMap_fst_of_compactSpace _ (hclosed.inter (h.isClosed_compl.preimage continuous_snd)) |
| 27 | have hi : a ∈ Dᶜ := by |
| 28 | rintro ⟨⟨b,y⟩, ⟨hy,hc⟩, ee⟩ |
| 29 | change b=a at ee |
| 30 | subst b |
| 31 | exact hc (ha.unique (hf a) hy ▸ hv) |
| 32 | apply mem_of_superset (hd.isOpen_compl.mem_nhds hi) |
| 33 | intro x hx |
| 34 | change f x ∈ V |
| 35 | by_contra! H |
| 36 | exact hx ⟨(x,f x),⟨hf x,H⟩,rfl⟩ |
| 37 | |
| 38 | namespace Patch |
| 39 | |
| 40 | variable (P : Patch) {C : KernelChoices} {G : Gauge} |
| 41 | |
| 42 | theorem min_closed : IsClosed {z : CoverConfig G × P.Frame G | P.minimizing z.1 z.2} := by |
| 43 | rw [show {z : CoverConfig G × P.Frame G | _} = |
| 44 | {z : CoverConfig G × P.Frame G | z.2 P.center = 1} ∩ ⋂ y : {h' : P.Frame G // h' P.center = 1}, |
| 45 | {z : CoverConfig G × P.Frame G | P.score z.1 z.2 ≤ P.score z.1 y} by |
| 46 | ext; simp [Patch.minimizing]] |
| 47 | exact (isClosed_eq ((continuous_apply P.center).comp continuous_snd) continuous_const).inter |
| 48 | (isClosed_iInter fun y => isClosed_le P.score_cont (by fun_prop)) |
| 49 | |
| 50 | theorem selected_cont (h : P.Branches C G) : ContinuousOn P.selected {u : CoverConfig G | P.usesMin C u} := by |
| 51 | intro x hx |
| 52 | exact (minArg_cont P.selected {z : CoverConfig G × P.Frame G | P.minimizing z.1 z.2} (fun y ↦ (P.min_exists y).choose_spec) P.min_closed x |
| 53 | (h.frame_unique x hx)).continuousWithinAt |
| 54 | |
| 55 | theorem best_cont (h : P.Branches C G) : ContinuousOn P.best {Y : P.Connector G | P.usesBest C Y} := by |
| 56 | intro Y hy |
| 57 | have he : IsClosed {z : P.Connector G × G.El | ∀ v, P.bondCost z.1 z.2 ≤ P.bondCost z.1 v} := by |
| 58 | simp only [setOf_forall] |
| 59 | exact isClosed_iInter fun T => isClosed_le P.bondCost_cont (by fun_prop) |
| 60 | exact (minArg_cont P.best {z : P.Connector G × G.El | ∀ v, P.bondCost z.1 z.2 ≤ P.bondCost z.1 v} (fun y ↦ (P.bond_min y).choose_spec) he Y |
| 61 | (h.predictor_unique Y hy)).continuousWithinAt |
| 62 | |
| 63 | theorem min_open : IsOpen {u : CoverConfig G | P.usesMin C u} := by |
| 64 | simp only [Patch.usesMin, setOf_forall] |
| 65 | refine isOpen_iInter_of_finite fun l ↦ isOpen_iInter_of_finite fun k ↦ isOpen_iInter_of_finite fun x ↦ |
| 66 | isOpen_iInter_of_finite fun y ↦ isOpen_lt ?_ continuous_const |
| 67 | unfold via axial; fun_prop |
| 68 | |
| 69 | theorem best_open : IsOpen {u : P.Connector G | P.usesBest C u} := by |
| 70 | have h (u : P.Connector G) : P.usesBest C u ↔ ∃ t, P.bondCost u t < C.predictor_cut := |
| 71 | ⟨fun hx ↦ ⟨_,hx⟩, fun ⟨t,hx⟩ ↦ ((P.bond_min u).choose_spec t).trans_lt hx⟩ |
| 72 | simp only [h, setOf_exists] |
| 73 | exact isOpen_iUnion fun t ↦ isOpen_lt (by fun_prop) continuous_const |
| 74 | |
| 75 | @[fun_prop] theorem facesum_cont : Continuous (P.facesum (G := G)) := by |
| 76 | unfold facesum |
| 77 | refine continuous_finsetSum _ fun x _ ↦ continuous_finsetSum _ fun q _ ↦ ?_ |
| 78 | split |
| 79 | · unfold faceValue; fun_prop |
| 80 | exact continuous_const |
| 81 | |
| 82 | @[fun_prop] theorem axialCost_cont (t : P.FrameTag) : |
| 83 | Continuous (fun u : CoverConfig G => P.axialCost u t) := by |
| 84 | unfold axialCost |
| 85 | refine continuous_finsetSum _ fun x _ ↦ continuous_finsetSum _ fun q _ ↦ ?_ |
| 86 | split |
| 87 | · unfold axial; fun_prop |
| 88 | exact continuous_const |
| 89 | |
| 90 | theorem eligible_set (t : P.FrameTag) : |
| 91 | MeasurableSet {u : CoverConfig G | t ∈ P.eligible C u} := by |
| 92 | simp only [eligible, Finset.mem_filter, Finset.mem_univ, true_and] |
| 93 | exact (isClosed_le (P.axialCost_cont _) (by fun_prop)).measurableSet |
| 94 | |
| 95 | theorem count_meas : Measurable fun u : CoverConfig G => ((P.eligible C u).card : ℝ) := by |
| 96 | classical |
| 97 | have h (u : CoverConfig G) : ((P.eligible C u).card : ℝ) = |
| 98 | ∑ i : P.FrameTag, ite (i ∈ P.eligible C u) (1 : ℝ) 0 := by simp |
| 99 | simp only [h] |
| 100 | refine Finset.measurable_fun_sum _ fun i _ ↦ ?_ |
| 101 | exact Measurable.ite (P.eligible_set i) measurable_const measurable_const |
| 102 | |
| 103 | theorem frameMass_meas (t : P.FrameTag) : |
| 104 | Measurable fun u : CoverConfig G => P.frameMass C u t := by |
| 105 | unfold frameMass |
| 106 | refine Measurable.ite P.min_open.measurableSet measurable_const |
| 107 | (Measurable.ite (P.eligible_set t) ?_ measurable_const) |
| 108 | exact P.count_meas.inv |
| 109 | |
| 110 | theorem frame_meas (h : P.Branches C G) (t : P.FrameTag) : |
| 111 | Measurable fun u : CoverConfig G => P.frame C u t := by |
| 112 | classical |
| 113 | have hc : Continuous (fun u : CoverConfig G => fun x => (P.axial u t P.center)⁻¹ * P.axial u t x) := by |
| 114 | unfold axial; fun_prop |
| 115 | exact (P.selected_cont h).measurable_piecewise hc.continuousOn P.min_open.measurableSet |
| 116 | |
| 117 | theorem predictorMass_meas (x : P.Points) : |
| 118 | Measurable fun f : P.Connector G => P.predictorMass C f x := by |
| 119 | unfold predictorMass |
| 120 | exact Measurable.ite P.best_open.measurableSet measurable_const measurable_const |
| 121 | |
| 122 | theorem predict_meas (h : P.Branches C G) (x : P.Points) : |
| 123 | Measurable fun f : P.Connector G => P.predict C f x := by |
| 124 | classical |
| 125 | exact (P.best_cont h).measurable_piecewise (continuous_apply x).continuousOn P.best_open.measurableSet |
| 126 | |
| 127 | theorem frameMass_sum (h : P.Branches C G) (U : CoverConfig G) : |
| 128 | ∑ i, P.frameMass C U i = 1 := by |
| 129 | classical |
| 130 | by_cases ht : P.usesMin C U |
| 131 | · have hh : 0 < (Fintype.card P.FrameTag : ℝ) := by exact_mod_cast Fintype.card_pos |
| 132 | simp only [frameMass, if_pos ht, Finset.sum_const, Finset.card_univ, nsmul_eq_mul, |
| 133 | mul_inv_cancel₀ hh.ne'] |
| 134 | simp_rw [frameMass, if_neg ht] |
| 135 | have hc : (P.eligible C U).card ≠ 0 := (Finset.card_pos.mpr (h.axial_exists U)).ne' |
| 136 | simp [hc] |
| 137 | |
| 138 | theorem predictorMass_sum (Y : P.Connector G) : ∑ i, P.predictorMass C Y i = 1 := by |
| 139 | classical |
| 140 | by_cases ht : P.usesBest C Y |
| 141 | · have hh : 0 < (Fintype.card P.Points : ℝ) := by exact_mod_cast Fintype.card_pos |
| 142 | simp only [predictorMass, if_pos ht, Finset.sum_const, Finset.card_univ, nsmul_eq_mul, |
| 143 | mul_inv_cancel₀ hh.ne'] |
| 144 | simpa only [predictorMass, if_neg ht] using P.weight_sum |
| 145 | end Patch |
| 146 | end YM.RG |