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.BOUNDARY.Alias |
| 2 | import YM.PREC.Derivative |
| 3 | import YM.Push.SECTOR_MEASURE.Cells |
| 4 | import YM.Work.B04 |
| 5 | -- smooth one-dimensional profiles |
| 6 | |
| 7 | |
| 8 | /-! |
| 9 | # The two allocations of sector costs |
| 10 | |
| 11 | Includes the partition of unity version literally (in the |
| 12 | 1/4 convention); this is *not* a partition by disjoint supports. |
| 13 | Numerical weights move across the overlap band, testing all physical |
| 14 | sites/bonds. These results are real and Borel; don't assert that V reads |
| 15 | through a branch switch, flags, masks etc. smoothly. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | noncomputable section |
| 20 | namespace YM.Push.SectorMeasure |
| 21 | |
| 22 | open Lattice RG Wilson Pressure MeasureTheory |
| 23 | open scoped Topology Matrix.Norms.Frobenius BigOperators Classical ContDiff |
| 24 | |
| 25 | variable {G : Gauge} {c f : Side} {S : StepData c f} {x W : ℝ} |
| 26 | |
| 27 | /-- A partition of unity subordinate to the seed prerequisites. |
| 28 | The data themselves do **not** include likelihood; their physical support |
| 29 | with positive likelihood will be in the Plot. -/ |
| 30 | structure Allocation (G : Gauge) (S : StepData c f) (x W : ℝ) where |
| 31 | bill : Stores S → S.Choices → Config G f → Config G c → ℝ |
| 32 | nonneg A k U V : 0 ≤ bill A k U V |
| 33 | sums k U V : ∑ A, bill A k U V = 1 |
| 34 | borel : S.patch.Branches S.kernel G → ∀ A k, |
| 35 | Measurable (fun r : Config G f × Config G c => bill A k r.1 r.2) |
| 36 | actual : ∀ A k U V, bill A k U V ≠ 0 → Seeded A U k V x W |
| 37 | |
| 38 | namespace Allocation |
| 39 | variable (D : Allocation G S x W) |
| 40 | |
| 41 | theorem range (A : Stores S) (k : S.Choices) (U : Config G f) (V : Config G c) : D.bill A k U V ≤ 1 := by |
| 42 | rw [← D.sums k U V] |
| 43 | exact Finset.single_le_sum (fun B _ => D.nonneg B k U V) (Finset.mem_univ A) |
| 44 | |
| 45 | theorem envelope {α : Type*} [MeasurableSpace α] {U : α → Config G f} {V : α → Config G c} |
| 46 | (h : S.patch.Branches S.kernel G) (u : Measurable U) (v : Measurable V) (A : Stores S) (k : S.Choices) : |
| 47 | Envelope (fun a => D.bill A k (U a) (V a)) := |
| 48 | ⟨(D.borel h A k).comp (u.prodMk v),1,fun _ => (Real.norm_of_nonneg (D.nonneg ..)).trans_le (D.range ..)⟩ |
| 49 | |
| 50 | theorem plots {A : Stores S} {k : S.Choices} {U : Config G f} {V : Config G c} |
| 51 | (h : D.bill A k U V ≠ 0) (l : Alive S U k) : Stores.Plot A U k V x W := (D.actual _ _ _ _ h).plot l |
| 52 | |
| 53 | /-- 's incidence (intact global sector). Every actual fine flag |
| 54 | requires a nondefault fine plaquette, independent of what is booked in |
| 55 | the overlap band. -/ |
| 56 | theorem flagged {A : Stores S} {k : S.Choices} {U : Config G f} {V : Config G c} |
| 57 | (h : D.bill A k U V ≠ 0) (i : Site f) (hi : i ∈ RG.flags (fiery G x S.patch.L) U) : |
| 58 | ∃ p ∈ A.costs, i ∈ RG.touched p := by |
| 59 | obtain ⟨p,hp,hr⟩ := (RG.flags_spec ..).1 hi |
| 60 | refine ⟨p,?_,hp⟩ |
| 61 | by_contra hv |
| 62 | have hm := ((D.actual _ _ _ _ h).fine p).2 hv |
| 63 | change fiery _ _ _ < toll U p at hr |
| 64 | have ht : 0 ≤ fiery G x S.patch.L := temp_nonneg _ |
| 65 | linarith |
| 66 | |
| 67 | /-- The disjoint hard allocation; also valid in degenerate cases. -/ |
| 68 | def hard (G : Gauge) (S : StepData c f) (x W : ℝ) : Allocation G S x W where |
| 69 | bill A k U V := if booking S x W U k V = A then 1 else 0 |
| 70 | nonneg := by intros; split <;> norm_num |
| 71 | sums := by intros; simp |
| 72 | borel h A k := Measurable.ite (booking_meas k x W A h measurable_fst measurable_snd) |
| 73 | measurable_const measurable_const |
| 74 | actual := by |
| 75 | intro A k U V h |
| 76 | split at h |
| 77 | next e => rw [← e]; exact booking_seeded U k V x W |
| 78 | next _ => exact False.elim (h rfl) |
| 79 | |
| 80 | end Allocation |
| 81 | |
| 82 | /-- E χ, extended to ℝ (only evaluated on squares). Use a genuine |
| 83 | smooth cutoff here even though the finite-measure lemmas need only |
| 84 | bounded Borel and the displayed support guards. -/ |
| 85 | structure Chi where |
| 86 | read : ℝ → ℝ |
| 87 | range y : read y ∈ Set.Icc 0 1 |
| 88 | to_one : ∀ y, y ≤ 1 → read y = 1 |
| 89 | to_zero : ∀ y, 4 ≤ y → read y = 0 |
| 90 | smooth : ContDiff ℝ ∞ read |
| 91 | mono : Antitone read |
| 92 | |
| 93 | namespace Chi |
| 94 | |
| 95 | def canonical : Chi where |
| 96 | read y := Real.smoothTransition ((4-y)/3) |
| 97 | range _ := ⟨Real.smoothTransition.nonneg _, Real.smoothTransition.le_one _⟩ |
| 98 | to_one _ h := Real.smoothTransition.one_of_one_le (by linarith) |
| 99 | to_zero _ h := Real.smoothTransition.zero_of_nonpos (by linarith) |
| 100 | smooth := Real.smoothTransition.contDiff.comp ((contDiff_const.sub contDiff_id).div_const _) |
| 101 | mono := fun _ _ h => Real.smoothTransition.monotone (by linarith) |
| 102 | |
| 103 | variable (q : Chi) |
| 104 | |
| 105 | /-- Default in cutoff units with denominator `d`. -/ |
| 106 | def innerShare (d r : ℝ) := q.read ((r/d)^2) |
| 107 | |
| 108 | theorem chosen_lt (r d : ℝ) (hd : 0 < d) (h : q.innerShare d r ≠ 0) : r < 2*d := by |
| 109 | by_contra! e |
| 110 | have he : 2 ≤ r/d := (le_div_iff₀ hd).2 e |
| 111 | exact h (q.to_zero _ (by nlinarith)) |
| 112 | |
| 113 | theorem exterior_gt (r d : ℝ) (hr : 0 ≤ r) (hd : 0 < d) (h : 1 - q.innerShare d r ≠ 0) : d < r := by |
| 114 | by_contra! e |
| 115 | have he : r/d ≤ 1 := (div_le_one hd).2 e |
| 116 | have hh : 0 ≤ r/d := by positivity |
| 117 | have hg : q.innerShare d r = 1 := q.to_one _ (by nlinarith) |
| 118 | exact h (by rw [hg, sub_self]) |
| 119 | |
| 120 | section table |
| 121 | |
| 122 | variable {ι α : Type*} [Fintype ι] [DecidableEq ι] |
| 123 | |
| 124 | /-- Every input physical address carries one of two complementary |
| 125 | weights. -/ |
| 126 | def share (s : Finset ι) (r : ι → ℝ) (d : ℝ) : ℝ := |
| 127 | (∏ i ∈ s, (1 - q.innerShare d (r i))) * ∏ i ∈ sᶜ, q.innerShare d (r i) |
| 128 | |
| 129 | theorem share_nonneg (s : Finset ι) (r : ι → ℝ) (d : ℝ) : 0 ≤ q.share s r d := |
| 130 | mul_nonneg (Finset.prod_nonneg fun _ _ => sub_nonneg.mpr (q.range _).2) |
| 131 | (Finset.prod_nonneg fun _ _ => (q.range _).1) |
| 132 | |
| 133 | theorem share_sum (r : ι → ℝ) (d : ℝ) : ∑ s, q.share s r d = 1 := by |
| 134 | unfold share |
| 135 | rw [← Fintype.prod_add] |
| 136 | simp |
| 137 | |
| 138 | theorem share_meas [MeasurableSpace α] (s : Finset ι) (r : α → ι → ℝ) |
| 139 | (h : ∀ i, Measurable (fun a => r a i)) (d : ℝ) : Measurable (fun a => q.share s (r a) d) := by |
| 140 | have he (i : ι) : Measurable (fun a => q.innerShare d (r a i)) := |
| 141 | q.smooth.continuous.measurable.comp (((h i).div_const d).pow_const 2) |
| 142 | exact ((Finset.measurable_fun_prod _ fun i _ => measurable_const.sub (he i)).mul |
| 143 | (Finset.measurable_fun_prod _ fun i _ => he i)) |
| 144 | |
| 145 | theorem share_cuts (s : Finset ι) (r : ι → ℝ) (d : ℝ) (h : q.share s r d ≠ 0) |
| 146 | (hd : 0 < d) (i : ι) (hr : 0 ≤ r i) : |
| 147 | (i ∈ s → d < r i) ∧ (i ∉ s → r i < 2*d) := by |
| 148 | constructor |
| 149 | · intro hi |
| 150 | apply q.exterior_gt _ _ hr hd |
| 151 | intro e |
| 152 | unfold share at h |
| 153 | rw [Finset.prod_eq_zero hi e, zero_mul] at h |
| 154 | exact h rfl |
| 155 | intro hi |
| 156 | apply q.chosen_lt _ _ hd |
| 157 | intro e |
| 158 | unfold share at h |
| 159 | rw [Finset.prod_eq_zero (Finset.mem_compl.mpr hi) e, mul_zero] at h |
| 160 | exact h rfl |
| 161 | |
| 162 | end table |
| 163 | |
| 164 | def fineShare (S : StepData c f) (x : ℝ) (U : Config G f) (s : Finset (Cell f)) := |
| 165 | q.share s (toll U) (fiery G x S.patch.L / 4) |
| 166 | |
| 167 | def bondShare (S : StepData c f) (x W : ℝ) (U : Config G f) (k : S.Choices) (V : Config G c) |
| 168 | (s : Finset (Bond c)) := q.share s (wire (S.prediction U k) V) (W*fiery G x S.patch.L) |
| 169 | |
| 170 | /-- Keep precisely the actual `D'`, no extra mass per site. -/ |
| 171 | def distribute (A : Stores S) (x W : ℝ) (U : Config G f) (k : S.Choices) (V : Config G c) := |
| 172 | if RG.flags (temp x) V = A.flags then |
| 173 | q.fineShare S x U A.costs * q.bondShare S x W U k V A.aisles else 0 |
| 174 | |
| 175 | /-- E's profile partition. Positivity of the two scales here matters; |
| 176 | at zero temperature/width the quotient formulas for χ don't have these |
| 177 | guards (use `hard` if needed). -/ |
| 178 | def profiles (G : Gauge) (S : StepData c f) (x W : ℝ) (h : 0 < W) (he : 0 < fiery G x S.patch.L) : |
| 179 | Allocation G S x W where |
| 180 | bill A k U V := q.distribute A x W U k V |
| 181 | nonneg := by intros; unfold distribute; split |
| 182 | · exact mul_nonneg (q.share_nonneg ..) (q.share_nonneg ..) |
| 183 | rfl |
| 184 | sums := by |
| 185 | intro k U V |
| 186 | rw [← Equiv.sum_comp (inventory S).symm] |
| 187 | rw [Fintype.sum_prod_type]; simp_rw [Fintype.sum_prod_type] |
| 188 | unfold distribute |
| 189 | simp only [inventory, Equiv.coe_fn_symm_mk, Finset.sum_ite_eq, Finset.mem_univ, ↓reduceIte, |
| 190 | fineShare, bondShare, ← Finset.mul_sum, q.share_sum, mul_one] |
| 191 | borel := by |
| 192 | intro hb A k |
| 193 | unfold distribute fineShare bondShare |
| 194 | have hf : MeasurableSet {a : Config G f × Config G c | RG.flags (temp x) a.2 = A.flags} := |
| 195 | measurable_snd (RG.flags_measurable_eq _ _) |
| 196 | apply Measurable.ite hf _ measurable_const |
| 197 | apply Measurable.mul |
| 198 | · exact q.share_meas _ (fun a : Config G f × Config G c => toll a.1) |
| 199 | (fun i => toll_meas i measurable_fst) _ |
| 200 | exact q.share_meas _ (fun a : Config G f × Config G c => wire (S.prediction a.1 k) a.2) |
| 201 | (fun i => wire_meas k i hb measurable_fst measurable_snd) _ |
| 202 | actual := by |
| 203 | intro A k U V hv |
| 204 | unfold distribute at hv; split at hv |
| 205 | · rename_i he' |
| 206 | have hu := left_ne_zero_of_mul hv |
| 207 | have hm := right_ne_zero_of_mul hv |
| 208 | refine ⟨fun i => ?_, fun i => ?_, he'.symm⟩ |
| 209 | · obtain ⟨hl,hr⟩ := q.share_cuts _ _ _ hu (by positivity) i (G.chord_nonneg _) |
| 210 | exact ⟨fun hi => (hl hi).le, fun hi => by linarith [hr hi]⟩ |
| 211 | obtain ⟨hl,hr⟩ := q.share_cuts _ _ _ hm (by positivity) i (G.chord_nonneg _) |
| 212 | refine ⟨fun hi => (hl hi).le, fun hi => ?_⟩ |
| 213 | rw [mul_assoc]; exact (hr hi).le |
| 214 | exact (hv rfl).elim |
| 215 | |
| 216 | end Chi |
| 217 | end YM.Push.SectorMeasure |