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.EXTRACTION.Tails |
| 2 | import YM.Next.FOUNDATIONS.SU2 |
| 3 | |
| 4 | /-! |
| 5 | # Actual-sector Borel cells |
| 6 | |
| 7 | one oriented step before dropping any defaults. |
| 8 | `Stores.Plot` is a **prerequisite**, not a disjoint partition. For one |
| 9 | allocation, book the actual tolls and wires at the lower thresholds, |
| 10 | with equality default. Record *all* the seeds, physically (including |
| 11 | `RG.flags`, which uses strict `>` and touched sites). This gives exact |
| 12 | disjoint sets, including in the overlap band. These hard cells themselves |
| 13 | make no smoothness claim. A different allocation, E's profile partition of |
| 14 | unity, also fits these prerequisites; see Profile. Both allocations keep |
| 15 | all tag choices (including zero-likelihood ones; the latter make zero |
| 16 | contribution but are not presumed to satisfy Plot). |
| 17 | |
| 18 | Measure conventions: two Haar priors as in `StepData`, or the true |
| 19 | free-link `Forest.order` Haar slice and output Haar prior, tags discrete |
| 20 | with *counting* sum (use `likelihood` with that convention). Thus for |
| 21 | sets the joint partition with tag records is on the finite disjoint |
| 22 | union over `S.Choices`: measurability section by section, NO independent |
| 23 | copies of tags for different predictors. Use fixed F; although these |
| 24 | results work for *each* F, the corresponding gauge slices aren't a |
| 25 | partition of full input Haar space. |
| 26 | -/ |
| 27 | |
| 28 | set_option autoImplicit false |
| 29 | noncomputable section |
| 30 | namespace YM.Push.SectorMeasure |
| 31 | |
| 32 | open Lattice RG Wilson Pressure Pressure.Stores Tree MeasureTheory |
| 33 | open scoped Topology Matrix.Norms.Frobenius BigOperators Classical |
| 34 | |
| 35 | variable {G : Gauge} {c f : Side} {S : StepData c f} |
| 36 | |
| 37 | /-- Enumerate all Stores. No quotienting by overlap of Plots or |
| 38 | identifying different kinds of seed. -/ |
| 39 | def inventory (S : StepData c f) : Stores S ≃ |
| 40 | (Finset (Cell f) × Finset (Bond c) × Support c) where |
| 41 | toFun A := ⟨A.costs, A.aisles, A.flags⟩ |
| 42 | invFun x := ⟨x.1, x.2.1, x.2.2⟩ |
| 43 | left_inv _ := rfl |
| 44 | right_inv _ := rfl |
| 45 | |
| 46 | scoped instance storesFintype : Fintype (Stores S) := Fintype.ofEquiv _ (inventory S).symm |
| 47 | |
| 48 | /-- The intact global prerequisites, for a Store listing full typed seed |
| 49 | sets. `Plot` itself only asks the two pairs of implications and the flag |
| 50 | tests locally, and asks *also* that relevant tags have positive frame mass. -/ |
| 51 | structure Seeded (A : Stores S) (U : Config G f) (k : S.Choices) (V : Config G c) |
| 52 | (x W : ℝ) : Prop where |
| 53 | fine (p : Cell f) : |
| 54 | (p ∈ A.costs → fiery G x S.patch.L / 4 ≤ toll U p) ∧ |
| 55 | (p ∉ A.costs → toll U p ≤ fiery G x S.patch.L / 2) |
| 56 | coarse (b : Bond c) : |
| 57 | (b ∈ A.aisles → W * fiery G x S.patch.L ≤ wire (S.prediction U k) V b) ∧ |
| 58 | (b ∉ A.aisles → wire (S.prediction U k) V b ≤ 2*W * fiery G x S.patch.L) |
| 59 | exactFlags : A.flags = RG.flags (temp x) V |
| 60 | |
| 61 | /-- Tag support, on the whole physical choices array. -/ |
| 62 | def Alive (S : StepData c f) (U : Config G f) (k : S.Choices) := 0 < S.likelihood U k |
| 63 | |
| 64 | theorem dead {U : Config G f} {k : S.Choices} (h : ¬ Alive S U k) : S.likelihood U k = 0 := |
| 65 | le_antisymm (le_of_not_gt h) (S.likelihood_pos ..) |
| 66 | |
| 67 | theorem listed_of_alive {U : Config G f} {k : S.Choices} (h : Alive S U k) (i : Site c) : |
| 68 | 0 < S.patch.frameMass S.kernel (expandAt (S.ratio.embed i) U) (k.1 i) := by |
| 69 | apply lt_of_le_of_ne ?_ ?_ |
| 70 | · unfold Patch.frameMass |
| 71 | split <;> positivity |
| 72 | intro he |
| 73 | unfold Alive StepData.likelihood at h |
| 74 | rw [Finset.prod_eq_zero (Finset.mem_univ i) he.symm, zero_mul] at h |
| 75 | exact (lt_irrefl _) h |
| 76 | |
| 77 | theorem Seeded.plot {A : Stores S} {U : Config G f} {V : Config G c} {k : S.Choices} {x W : ℝ} |
| 78 | (h : Seeded A U k V x W) (hp : Alive S U k) : Plot A U k V x W := by |
| 79 | refine ⟨fun p _ => h.fine p, fun b _ => h.coarse b, fun i _ => ?_, |
| 80 | fun i _ => listed_of_alive hp i⟩ |
| 81 | rw [h.exactFlags] |
| 82 | |
| 83 | /-- Select the nondefault records strictly above the lower Plot cutoffs; |
| 84 | this *disjointification* of the costs is for measurable partitions, not for |
| 85 | use as smooth profiles or for differentiating across the switch. Defined |
| 86 | also where temperature vanishes. -/ |
| 87 | def booking (S : StepData c f) (x W : ℝ) (U : Config G f) (k : S.Choices) (V : Config G c) : |
| 88 | Stores S where |
| 89 | costs := Finset.univ.filter fun p => fiery G x S.patch.L / 4 < toll U p |
| 90 | aisles := Finset.univ.filter fun b => W*fiery G x S.patch.L < wire (S.prediction U k) V b |
| 91 | flags := RG.flags (temp x) V |
| 92 | |
| 93 | theorem booking_cost {U : Config G f} {k : S.Choices} {V : Config G c} (x W : ℝ) (p) : |
| 94 | p ∈ (booking S x W U k V).costs ↔ fiery G x S.patch.L / 4 < toll U p := by simp [booking] |
| 95 | |
| 96 | theorem booking_aisle {U : Config G f} {k : S.Choices} {V : Config G c} (x W : ℝ) (b) : |
| 97 | b ∈ (booking S x W U k V).aisles ↔ W*fiery G x S.patch.L < wire (S.prediction U k) V b := by simp [booking] |
| 98 | |
| 99 | theorem temp_nonneg (x : ℝ) : 0 ≤ temp x := by unfold temp; positivity |
| 100 | |
| 101 | theorem booking_seeded (U : Config G f) (k : S.Choices) (V : Config G c) (x W : ℝ) : |
| 102 | Seeded (booking S x W U k V) U k V x W := by |
| 103 | refine ⟨?_, ?_, rfl⟩ |
| 104 | · intro p; rw [booking_cost]; constructor |
| 105 | · exact le_of_lt |
| 106 | intro h |
| 107 | apply (le_of_not_gt h).trans |
| 108 | have ht : 0 ≤ fiery G x S.patch.L := temp_nonneg _ |
| 109 | linarith |
| 110 | intro b; rw [booking_aisle]; constructor |
| 111 | · exact le_of_lt |
| 112 | intro h |
| 113 | have he := le_of_not_gt h |
| 114 | have hn : 0 ≤ wire (S.prediction U k) V b := G.chord_nonneg _ |
| 115 | rw [mul_assoc] |
| 116 | linarith |
| 117 | |
| 118 | section borel |
| 119 | |
| 120 | -- These lemmas apply, in particular, with U,V the projections and |
| 121 | -- with U the true drape. Every assertion is at the given common k. |
| 122 | variable {α : Type*} [MeasurableSpace α] {U : α → Config G f} {V : α → Config G c} |
| 123 | |
| 124 | |
| 125 | |
| 126 | theorem toll_meas (p : Cell f) (h : Measurable U) : Measurable (fun a => toll (U a) p) := |
| 127 | (show Continuous (fun u : Config G f => toll u p) by unfold toll faceValue; fun_prop).measurable.comp h |
| 128 | |
| 129 | theorem wire_meas (k : S.Choices) (b : Bond c) (hb : S.patch.Branches S.kernel G) |
| 130 | (h : Measurable U) (l : Measurable V) : Measurable (fun a => wire (S.prediction (U a) k) (V a) b) := by |
| 131 | have hn := (measurable_pi_apply b).comp l |
| 132 | have he := (measurable_pi_apply b).comp ((S.prediction_meas hb k).comp h) |
| 133 | unfold wire |
| 134 | exact (show Continuous G.chord by fun_prop).measurable.comp (hn.mul he.inv) |
| 135 | |
| 136 | /-- Every cell of a finite yes/no inventory is measurable. The inventory |
| 137 | needn't omit inconsistent/empty cells. -/ |
| 138 | theorem record_meas {ι : Type*} [Fintype ι] {s : α → Finset ι} |
| 139 | (h : ∀ i, MeasurableSet {a | i ∈ s a}) (l : Finset ι) : MeasurableSet {a | s a = l} := by |
| 140 | simp only [Finset.ext_iff, Set.setOf_forall] |
| 141 | refine MeasurableSet.iInter fun i => ?_ |
| 142 | by_cases he : i ∈ l |
| 143 | · simpa only [he, iff_true] using h i |
| 144 | simp only [he, iff_false] |
| 145 | exact (h i).compl |
| 146 | |
| 147 | theorem booking_meas (k : S.Choices) (x W : ℝ) (A : Stores S) (hb : S.patch.Branches S.kernel G) |
| 148 | (h : Measurable U) (l : Measurable V) : |
| 149 | MeasurableSet {a | booking S x W (U a) k (V a) = A} := by |
| 150 | have he : ∀ v, v = A ↔ v.costs = A.costs ∧ v.aisles = A.aisles ∧ v.flags = A.flags := by |
| 151 | intro v |
| 152 | simpa only [inventory, Equiv.coe_fn_mk, Prod.mk.injEq] using |
| 153 | (show v = A ↔ inventory S v = inventory S A from (inventory S).injective.eq_iff.symm) |
| 154 | simp_rw [he, Set.setOf_and] |
| 155 | refine (record_meas ?_ _).inter ((record_meas ?_ _).inter (l (RG.flags_measurable_eq _ _))) |
| 156 | · intro i |
| 157 | simp_rw [booking_cost] |
| 158 | exact measurableSet_lt measurable_const (toll_meas _ h) |
| 159 | intro i |
| 160 | simp_rw [booking_aisle] |
| 161 | exact measurableSet_lt measurable_const (wire_meas _ _ hb h l) |
| 162 | |
| 163 | theorem plot_meas (A : Stores S) (k : S.Choices) (x W : ℝ) (hb : S.patch.Branches S.kernel G) |
| 164 | (h : Measurable U) (l : Measurable V) : MeasurableSet {a | Plot A (U a) k (V a) x W} := by |
| 165 | let X := A.dome (5*radiusB x) |
| 166 | let t := fiery G x S.patch.L |
| 167 | let M p (a : α) := ¬ Disjoint X (startPos S p) → |
| 168 | ((p∈A.costs → t/4 ≤ toll (U a) p) ∧ (p∉A.costs → toll (U a) p ≤ t/2)) |
| 169 | let N b (a : α) := ¬ Disjoint X (pinPos b) → |
| 170 | ((b∈A.aisles → W*t ≤ wire (S.prediction (U a) k) (V a) b) ∧ |
| 171 | (b∉A.aisles → wire (S.prediction (U a) k) (V a) b ≤ 2*W*t)) |
| 172 | let H i (a : α) := i ∈ X → (i ∈ A.flags ↔ i ∈ RG.flags (temp x) (V a)) |
| 173 | let E i (a : α) := i∈X → 0 < S.patch.frameMass S.kernel (expandAt (S.ratio.embed i) (U a)) (k.1 i) |
| 174 | have hs : {a | Plot A (U a) k (V a) x W} = {a | (∀ i, M i a) ∧ (∀ i,N i a) ∧ (∀ i,H i a) ∧ (∀ i, E i a)} := by |
| 175 | ext a; exact ⟨fun w => ⟨w.consumes,w.drive,w.precise,w.list⟩, |
| 176 | fun w => ⟨w.1,w.2.1,w.2.2.1,w.2.2.2⟩⟩ |
| 177 | rw [hs, Set.setOf_and, Set.setOf_and, Set.setOf_and] |
| 178 | simp only [Set.setOf_forall] |
| 179 | refine (MeasurableSet.iInter fun i => ?_).inter ((MeasurableSet.iInter fun i => ?_).inter |
| 180 | ((MeasurableSet.iInter fun i => ?_).inter (MeasurableSet.iInter fun i => ?_))) |
| 181 | · by_cases e : Disjoint X (startPos S i) |
| 182 | · simp [M,e] |
| 183 | by_cases he : i ∈ A.costs |
| 184 | · simp only [M,e,not_false_eq_true,he,not_true_eq_false,false_implies,and_true,true_implies] |
| 185 | exact measurableSet_le measurable_const (toll_meas i h) |
| 186 | simp only [M,e,not_false_eq_true,he,false_implies,true_and,true_implies] |
| 187 | exact measurableSet_le (toll_meas i h) measurable_const |
| 188 | · by_cases e : Disjoint X (pinPos i) |
| 189 | · simp [N,e] |
| 190 | by_cases he : i ∈ A.aisles |
| 191 | · simp only [N,e,not_false_eq_true,he,not_true_eq_false,false_implies,and_true,true_implies] |
| 192 | exact measurableSet_le measurable_const (wire_meas k i hb h l) |
| 193 | simp only [N,e,not_false_eq_true,he,false_implies,true_and,true_implies] |
| 194 | exact measurableSet_le (wire_meas k i hb h l) measurable_const |
| 195 | · by_cases he : i ∈ X |
| 196 | · have hi : MeasurableSet {a | i ∈ RG.flags (temp x) (V a)} := l (RG.flags_open ..).measurableSet |
| 197 | by_cases e : i ∈ A.flags |
| 198 | · simpa only [H, he, e, true_implies, true_iff] using hi |
| 199 | simp only [H, he, e, true_implies, false_iff] |
| 200 | exact hi.compl |
| 201 | simp [H,he] |
| 202 | by_cases he : i ∈ X |
| 203 | · simp only [E, he, true_implies] |
| 204 | apply measurableSet_lt measurable_const |
| 205 | exact ((S.patch.frameMass_meas _).comp (show Continuous (fun u : Config G f => |
| 206 | expandAt (S.ratio.embed i) u) by unfold expandAt; fun_prop).measurable).comp h |
| 207 | simp [E,he] |
| 208 | |
| 209 | end borel |
| 210 | |
| 211 | |
| 212 | |
| 213 | |
| 214 | |
| 215 | |
| 216 | |
| 217 | |
| 218 | |
| 219 | |
| 220 | |
| 221 | |
| 222 | |
| 223 | theorem slice_drape (F : Forest S.ratio) (U : Config G f) : |
| 224 | SliceSet S F U ↔ ∃! a : F.Slice G, F.drape a = U := by |
| 225 | constructor |
| 226 | · intro h |
| 227 | let a : F.Slice G := fun i => U i |
| 228 | refine ⟨a, funext fun i => ?_, fun b hb => ?_⟩ |
| 229 | · by_cases he : i ∈ F.trunks |
| 230 | · exact (F.on_tree a ⟨i,he⟩).trans (h i he).symm |
| 231 | exact F.off_tree a ⟨i,he⟩ |
| 232 | funext i |
| 233 | exact (F.off_tree b i).symm.trans (congr_fun hb i) |
| 234 | rintro ⟨a,rfl,-⟩ i hi |
| 235 | exact F.on_tree a ⟨i,hi⟩ |
| 236 | |
| 237 | |
| 238 | |
| 239 | |
| 240 | |
| 241 | |
| 242 | |
| 243 | |
| 244 | |
| 245 | |
| 246 | |
| 247 | |
| 248 | |
| 249 | |
| 250 | |
| 251 | |
| 252 | |
| 253 | |
| 254 | end YM.Push.SectorMeasure |