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.MULTISOURCE.Fibers |
| 2 | import YM.RG.History |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Finite bucketing at one step |
| 7 | |
| 8 | Support and *actual retained inventory*, not just center. Extra tests |
| 9 | stay enforced (in the activities themselves as zeros elsewhere). Compression |
| 10 | is only an identity for evaluating the denominator and its tangents. |
| 11 | We have to write to actual legal addresses in THAT Rep when rendering any new |
| 12 | family. One simple sufficient allocation is `Room` below. It has to be bought |
| 13 | upstream. We never change a vacuum support/predicate mid-transfer. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | |
| 19 | namespace YM.Multi |
| 20 | open RG Wilson Lattice Filter Function MeasureTheory |
| 21 | open scoped Topology Matrix.Norms.Frobenius Classical BigOperators |
| 22 | |
| 23 | abbrev Pack (n : Side) := { P : Support n × Support n // P.2.Nonempty ∧ P.2 ⊆ P.1 } |
| 24 | |
| 25 | namespace Pack |
| 26 | variable {n : Side} {G : Gauge} |
| 27 | |
| 28 | abbrev zone (P : Pack n) : Support n := P.val.1 |
| 29 | abbrev flagsAt (P : Pack n) := P.val.2 |
| 30 | |
| 31 | def ofAddress (A : Activities G n) (i : ℕ) : Pack n := |
| 32 | ⟨⟨(A.forced i).support, (A.forced i).inventory⟩, (A.forced i).inventory_ne, (A.forced i).inventory_sup⟩ |
| 33 | |
| 34 | def clears (L : Support n) := Finset.univ.filter fun b : Finset (Pack n) => |
| 35 | (b : Set (Pack n)).PairwiseDisjoint zone ∧ b.biUnion flagsAt=L |
| 36 | |
| 37 | lemma labeled (P : Rep G n) (U : Config G n) (b : Finset ℕ) : |
| 38 | P.activities.admissible P.p U b ↔ b.image (ofAddress P.activities) ∈ clears (flags P.p.threshold U) ∧ |
| 39 | Set.InjOn (ofAddress P.activities) b := by |
| 40 | let k := ofAddress P.activities |
| 41 | simp only [Activities.admissible, clears, Finset.mem_filter, Finset.mem_univ, true_and, |
| 42 | Set.PairwiseDisjoint] |
| 43 | have he : (b.image k).biUnion flagsAt=b.biUnion (fun i => (P.activities.forced i).inventory) := by |
| 44 | rw [Finset.image_biUnion]; rfl |
| 45 | rw [he] |
| 46 | constructor |
| 47 | · rintro ⟨h,H⟩ |
| 48 | refine ⟨⟨?_,H⟩,?_⟩ |
| 49 | · rw [Finset.coe_image]; exact Set.Pairwise.image (show (b : Set ℕ).Pairwise _ from h) |
| 50 | intro i hi j hj e |
| 51 | by_contra hn |
| 52 | obtain ⟨v,hv⟩ := (k i).property.1 |
| 53 | have hp : v∈(k i).zone := (k i).property.2 hv |
| 54 | have hq : v∈(k j).zone := by rw [show k j=k i from e.symm]; exact hp |
| 55 | exact Finset.disjoint_left.mp (h hi hj hn) hp hq |
| 56 | rintro ⟨⟨h,H⟩, hI⟩ |
| 57 | refine ⟨?_, H⟩ |
| 58 | intro i hi j hj hn |
| 59 | change Disjoint (k i).zone (k j).zone |
| 60 | exact h (Finset.mem_image_of_mem k hi) (Finset.mem_image_of_mem k hj) (fun e => hn (hI hi hj e)) |
| 61 | |
| 62 | lemma neighborhood_meas (P : Pack n) (t : ℝ) : |
| 63 | MeasurableSet {U : Config G n | P.zone ∩ flags t U = P.flagsAt} := by |
| 64 | rw [show {U : Config G n | _} = ⋃ F : {F : Support n // P.zone ∩ F=P.flagsAt}, {U | flags t U=F.val} by |
| 65 | ext u; simp only [Set.mem_iUnion, Set.mem_setOf_eq]; constructor |
| 66 | · intro h; exact ⟨⟨_,h⟩,rfl⟩ |
| 67 | rintro ⟨F,h⟩; rw [h]; exact F.property] |
| 68 | exact MeasurableSet.iUnion fun F => flags_measurable_eq .. |
| 69 | |
| 70 | lemma neighborhood (b : Finset (Pack n)) (t : ℝ) : MeasurableSet {U : Config G n | b ∈ clears (flags t U)} := by |
| 71 | by_cases h : (b : Set (Pack n)).PairwiseDisjoint zone |
| 72 | · simp only [clears, Finset.mem_filter,Finset.mem_univ,true_and,h] |
| 73 | simp_rw [eq_comm] |
| 74 | exact flags_measurable_eq .. |
| 75 | simp [clears,h] |
| 76 | |
| 77 | section |
| 78 | variable {X : Type*} [CommRing X] [UniformSpace X] [T2Space X] [IsUniformAddGroup X] [CompleteSpace X] |
| 79 | |
| 80 | omit [T2Space X] in |
| 81 | def collect (P : Rep G n) (f : ℕ → X) (S : Pack n) := ∑' i, if ofAddress P.activities i=S then f i else 0 |
| 82 | |
| 83 | omit [T2Space X] in |
| 84 | lemma access (P : Rep G n) (f : ℕ → X) (h : Summable f) (S : Pack n) : |
| 85 | Summable (fun i => if ofAddress P.activities i=S then f i else 0) := by |
| 86 | rw [show (fun i => if ofAddress P.activities i=S then f i else 0) = ({i | ofAddress P.activities i=S} : Set _).indicator f from |
| 87 | funext fun i => by by_cases e : ofAddress P.activities i=S <;> simp [Set.indicator,e]] |
| 88 | exact h.indicator _ |
| 89 | |
| 90 | lemma regroup [ContinuousMul X] (P : Rep G n) (U : Config G n) (f : ℕ → X) (hs : Summable f) |
| 91 | (ht : Summable fun b : Finset ℕ => if P.activities.admissible P.p U b then ∏ i∈b,f i else 0) : |
| 92 | (∑' b : Finset ℕ, if P.activities.admissible P.p U b then ∏ i∈b, f i else 0) = |
| 93 | ∑ S∈ clears (flags P.p.threshold U), ∏ t∈S, collect P f t := by |
| 94 | have hco : Tendsto Finset.powerset (atTop (α:=Finset ℕ)) atTop := by |
| 95 | refine tendsto_atTop_atTop.mpr fun L => ⟨L.biUnion id,fun U hu b hb => ?_⟩ |
| 96 | exact Finset.mem_powerset.mpr fun i hi => hu (Finset.mem_biUnion.mpr ⟨b,hb,hi⟩) |
| 97 | apply tendsto_nhds_unique (ht.hasSum.comp hco) |
| 98 | let L := clears (flags P.p.threshold U) |
| 99 | let k := ofAddress P.activities |
| 100 | have he (S : Finset ℕ) : (∑ b∈S.powerset, if P.activities.admissible P.p U b then ∏ i∈b, f i else 0) = |
| 101 | ∑ q∈L, ∏ a∈q, ∑ i∈ S, if k i = a then f i else 0 := by |
| 102 | simp_rw [← Finset.sum_filter] |
| 103 | rw [fiber_gather] |
| 104 | refine Finset.sum_congr ?_ fun _ _ => rfl |
| 105 | ext b; simp only [Finset.mem_filter]; rw [labeled] |
| 106 | change Tendsto (fun i : Finset ℕ => ∑ b ∈ i.powerset, if P.activities.admissible P.p U b then ∏ j∈b,f j else 0) (atTop (α:=Finset ℕ)) _ |
| 107 | simp_rw [he] |
| 108 | refine tendsto_finsetSum L fun i _ => tendsto_finsetProd i fun j _ => (access P f hs j).hasSum |
| 109 | end |
| 110 | |
| 111 | end Pack |
| 112 | |
| 113 | variable {n : Side} {G : Gauge} |
| 114 | |
| 115 | /-- Blank slots in the given alphabet. It also works to reuse such a slot |
| 116 | with a nonzero vacuum value: they are alternatives, all use that very same |
| 117 | support and incompatibility, no implicit simultaneous copies. -/ |
| 118 | def Room (P : Rep G n) := ∀ q : Pack n, ∃ i : ℕ, |
| 119 | Pack.ofAddress P.activities i=q ∧ ∀ U, q.zone ∩ flags P.p.threshold U=q.flagsAt → (P.activities.forced i).extraTest U |
| 120 | |
| 121 | /-- Actual vacuum on the compressed alphabet. -/ |
| 122 | def incumbent (P : Rep G n) (U : Config G n) (q : Pack n) : ℂ := |
| 123 | Pack.collect P (fun i => (P.activities.K i U:ℂ)) q |
| 124 | |
| 125 | lemma real_book (P : Rep G n) (U : Config G n) {δ κ : ℝ} (h : P.activities.Valid P.p δ κ) : |
| 126 | (P.activities.gas P.p U:ℂ)=∑ S∈ Pack.clears (flags P.p.threshold U), ∏ t∈S, incumbent P U t := by |
| 127 | let f i := P.activities.K i U |
| 128 | have hk : Summable f := by |
| 129 | obtain ⟨q,H,H'⟩ := Activities.K_total h.boundK |
| 130 | exact (H.of_nonneg_of_le (fun i => norm_nonneg (f i)) fun i => (H' i).2 U).of_norm |
| 131 | unfold Activities.gas |
| 132 | rw [Complex.ofReal_tsum] |
| 133 | have he (b : Finset ℕ) : (↑(P.activities.gasOccurrence P.p b U):ℂ) = |
| 134 | if P.activities.admissible P.p U b then ∏ i∈b,(f i:ℂ) else 0 := by |
| 135 | split_ifs with h <;> simp [h,f,Activities.gasOccurrence] |
| 136 | simp_rw [he] |
| 137 | refine Pack.regroup P U (fun i => (f i:ℂ)) (Complex.summable_ofReal.mpr hk) ?_ |
| 138 | simp_rw [← he] |
| 139 | exact Complex.summable_ofReal.mpr ((Activities.gasSeries h).summable U) |
| 140 | end YM.Multi |