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.Extra.MULTISOURCE_TRAJECTORIES.Signals |
| 2 | import YM.Next.BOUNDARY.Stage |
| 3 | /-! |
| 4 | # Gauge invariant localization of exact connected coefficients |
| 5 | |
| 6 | Finite anchored inclusion/exclusion, integrating over *all* exterior links |
| 7 | using dummy Haar (not replacing the law used in the RG evolution). A physical |
| 8 | output piece reads only internal links of its declared support, including for |
| 9 | disconnected or wrapping supports. Under the integral it may involve the |
| 10 | entire lattice of old variables and global tag array; no fictitious assertion |
| 11 | that the same small stencil controls dependence on the integrated argument. |
| 12 | No uniform cluster decay for the signed localized pieces is asserted here. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Extra.Trajectories |
| 17 | open Function Wilson RG Lattice Finset MeasureTheory Marker |
| 18 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff |
| 19 | variable {G : Gauge} {n : Side} |
| 20 | |
| 21 | def hybrid {E : Type*} (X : Support n) (a b : Edge (Site n) → E) (i : Edge (Site n)) := |
| 22 | if i.1∈X ∧ i.1+Lattice.step i.2∈X then a i else b i |
| 23 | |
| 24 | lemma smooth_hybrid (X : Support n) : ContDiff ℝ ∞ (fun p : Field G n × Field G n => hybrid X p.1 p.2) := by |
| 25 | refine contDiff_pi.mpr fun i => ?_ |
| 26 | unfold hybrid; split |
| 27 | · exact (contDiff_apply ℝ _ i).comp contDiff_fst |
| 28 | exact (contDiff_apply ℝ _ i).comp contDiff_snd |
| 29 | |
| 30 | lemma field_hybrid (X : Support n) (U W : Config G n) : hybrid X (matrixField U) (matrixField W) = matrixField (hybrid X U W) := by |
| 31 | funext i; unfold hybrid matrixField; dsimp only [comp_apply]; split <;> rfl |
| 32 | |
| 33 | lemma hybrid_gauge (X : Support n) (U W : Config G n) (t : Site n → G.El) : |
| 34 | hybrid X (gauge t U) (gauge t W) = gauge t (hybrid X U W) := by |
| 35 | funext i; simp only [hybrid,Lattice.gauge]; split <;> rfl |
| 36 | |
| 37 | /-- Ambient extension of the projection. Selects by tests of site membership; |
| 38 | does not replace a near-threshold configuration by a promised healthy one. -/ |
| 39 | def project (X : Support n) (f : Field G n → ℂ) (a : Field G n) := ∫ W, f (hybrid X a (matrixField W)) ∂prior G n |
| 40 | |
| 41 | lemma project_smooth (X : Support n) {f : Field G n → ℂ} (h : ContDiff ℝ ∞ f) : ContDiff ℝ ∞ (project X f) := by |
| 42 | haveI : TopologicalSpace.PseudoMetrizableSpace G.Mat := inferInstanceAs |
| 43 | (TopologicalSpace.PseudoMetrizableSpace (Fin G.repDim → Fin G.repDim → ℂ)) |
| 44 | exact integral_smooth (p:=matrixField) matrixField_cont.aestronglyMeasurable (isCompact_range matrixField_cont) |
| 45 | (fun _ => Set.mem_range_self _) (h.comp (smooth_hybrid X)) |
| 46 | |
| 47 | lemma project_univ (f : Field G n → ℂ) : project univ f = f := by |
| 48 | funext a; simp only [project, show ∀ U, hybrid univ a (matrixField U) = a from fun U => by funext i; simp [hybrid]] |
| 49 | simp |
| 50 | |
| 51 | lemma project_local (X : Support n) (f : Field G n → ℂ) : LocalOn X (project X f ∘ matrixField) := by |
| 52 | intro U W h |
| 53 | have he (a : Config G n) : hybrid X (matrixField U) (matrixField a) = hybrid X (matrixField W) (matrixField a) := by |
| 54 | funext i; unfold hybrid; split |
| 55 | next hi => exact congrArg G.mat (h i hi.1 hi.2) |
| 56 | rfl |
| 57 | simp only [comp_apply, project, he] |
| 58 | |
| 59 | lemma project_gauge (X : Support n) {f : Field G n → ℂ} (hf : ContDiff ℝ ∞ f) |
| 60 | (h : GaugeInvariant (f ∘ matrixField)) : GaugeInvariant (project X f ∘ matrixField) := by |
| 61 | intro t U |
| 62 | let Z := gauge t U |
| 63 | have hc : Continuous fun W => f (hybrid X (matrixField Z) (matrixField W)) := |
| 64 | ((hf.comp (smooth_hybrid X)).continuous.comp (continuous_const.prodMk matrixField_cont)) |
| 65 | have hm := Wilson.prior_gauge (n:=n) t |
| 66 | have he := integral_map (f:=fun W => f (hybrid X (matrixField Z) (matrixField W))) hm.aemeasurable |
| 67 | (by rw [hm.map_eq]; exact hc.aestronglyMeasurable) |
| 68 | rw [hm.map_eq] at he |
| 69 | change project X f (matrixField Z) = _ |
| 70 | simp only [project, comp_apply]; rw [he]; simp only [Z,field_hybrid,hybrid_gauge] |
| 71 | exact integral_congr_ae (Filter.Eventually.of_forall fun W => h t _) |
| 72 | |
| 73 | section Mobius |
| 74 | variable {ι : Type*} [DecidableEq ι] {E : Type*} [Ring E] |
| 75 | |
| 76 | def delta (f : Finset ι → E) (s : Finset ι) := ∑ u∈s.powerset,(-1:E)^(s.card - u.card)*f u |
| 77 | lemma delta_insert {s : Finset ι} {i : ι} (hi : i∉s) (f : Finset ι → E) : |
| 78 | delta f (insert i s) = delta (fun t => f (insert i t)) s - delta f s := by |
| 79 | rw [delta,sum_powerset_insert hi]; simp_rw [card_insert_of_notMem hi] |
| 80 | rw [sub_eq_neg_add,delta,delta,← sum_neg_distrib] |
| 81 | congr 1 |
| 82 | · exact sum_congr rfl fun t ht => by rw [show s.card+1-t.card = (s.card-t.card)+1 by |
| 83 | have := card_le_card (mem_powerset.mp ht); omega, pow_succ]; simp |
| 84 | · refine sum_congr rfl fun t ht => ?_ |
| 85 | rw [card_insert_of_notMem (fun he => hi ((mem_powerset.mp ht) he)),Nat.add_sub_add_right] |
| 86 | |
| 87 | lemma delta_exact (s : Finset ι) (f : Finset ι → E) : ∑ u∈s.powerset,delta f u = f s := by |
| 88 | induction s using Finset.induction_on generalizing f with |
| 89 | | empty => simp [delta] |
| 90 | | insert i s hi ih => |
| 91 | rw [sum_powerset_insert hi, show ∑ t∈s.powerset,delta f (insert i t) = |
| 92 | ∑ t∈s.powerset,(delta (fun t => f (insert i t)) t - delta f t) from |
| 93 | sum_congr rfl fun t ht => delta_insert (fun he => hi ((mem_powerset.mp ht) he)) f, sum_sub_distrib,ih,ih]; abel |
| 94 | end Mobius |
| 95 | |
| 96 | /-- A finite covering menu of test blocks at one scale; overlap permitted. -/ |
| 97 | structure Windows (n : Side) where |
| 98 | blocks : Finset (Support n) |
| 99 | full : blocks.biUnion id = univ |
| 100 | |
| 101 | namespace Windows |
| 102 | variable (B : Windows n) (core : Support n) (f : Field G n → ℂ) |
| 103 | abbrev Piece := ↥B.blocks.powerset |
| 104 | |
| 105 | def patch (core : Support n) (T : Finset (Support n)) := core ∪ T.biUnion id |
| 106 | |
| 107 | def gain (u : B.Piece) (x : Field G n) := delta (fun T => project (patch core T) f x) u.val |
| 108 | |
| 109 | lemma exact_sum (x : Field G n) : ∑ u,B.gain core f u x = f x := by |
| 110 | unfold gain |
| 111 | rw [sum_coe_sort,delta_exact,patch,B.full,show core ∪ univ = univ by simp,project_univ] |
| 112 | |
| 113 | lemma gain_smooth (u : B.Piece) (hf : ContDiff ℝ ∞ f) : ContDiff ℝ ∞ (B.gain core f u) := |
| 114 | ContDiff.sum fun i _ => contDiff_const.mul (project_smooth (patch core i) hf) |
| 115 | |
| 116 | lemma gain_local (u : B.Piece) : LocalOn (patch core u.val) (B.gain core f u ∘ matrixField) := by |
| 117 | intro U W h |
| 118 | unfold gain delta |
| 119 | apply sum_congr rfl |
| 120 | intro t ht; congr 1 |
| 121 | exact project_local _ f U W (agrees_mono h (coe_subset.mpr (Finset.union_subset_union_right |
| 122 | (by intro i hi; obtain ⟨s,hs,hx⟩ := mem_biUnion.mp hi; exact mem_biUnion.mpr ⟨_,mem_powerset.mp ht hs,hx⟩)))) |
| 123 | |
| 124 | lemma gain_gauge (u : B.Piece) (hf : ContDiff ℝ ∞ f) (hg : GaugeInvariant (f ∘ matrixField)) : |
| 125 | GaugeInvariant (B.gain core f u ∘ matrixField) := by |
| 126 | intro t U; unfold gain delta; exact sum_congr rfl fun j _ => congrArg (_ * ·) (project_gauge _ hf hg t U) |
| 127 | |
| 128 | /-- Simplest test menu (no effective localization by the empty vs whole |
| 129 | choice if the core itself is full). -/ |
| 130 | def whole (n : Side) : Windows n := ⟨{univ},by simp⟩ |
| 131 | end Windows |
| 132 | |
| 133 | variable {V : Type} [Fintype V] [DecidableEq V] (R : Census V) |
| 134 | abbrev Hot := {s : R.Mode // s.val.Nonempty} |
| 135 | |
| 136 | variable {N p : ℕ} {H : RG.History G} |
| 137 | namespace Insertions |
| 138 | variable (A : Insertions H V N p) {j : ℕ} (B : Windows (H.S.side j p)) |
| 139 | (atSite : V → Site (H.S.side j p)) (core : V → Support (H.S.side j p)) |
| 140 | |
| 141 | def fragments : Layers (H.rep N p j) R (Hot R × B.Piece) where |
| 142 | origins := atSite |
| 143 | units _ := 0 |
| 144 | tag a := a.1.val |
| 145 | region a := Windows.patch (a.1.val.val.biUnion core) a.2.val |
| 146 | H a := B.gain (a.1.val.val.biUnion core) (A.cumulant j a.1.val) a.2 ∘ matrixField |
| 147 | |
| 148 | lemma anchored (hc : ∀ i, atSite i ∈ core i) : (A.fragments R B atSite core).Anchored := |
| 149 | ⟨fun i => i.1.property,fun _ s hs => mem_union_left _ (mem_biUnion.mpr ⟨s,hs,hc s⟩)⟩ |
| 150 | |
| 151 | lemma ready (h : A.Symmetric) (hj : j≤N) (hc : ∀ i,atSite i∈core i) : (A.fragments R B atSite core).Ready where |
| 152 | toAnchored := A.anchored R B atSite core hc |
| 153 | regular i := regular_matrix _ (B.gain_smooth _ _ i.2 (A.cumulant_smooth hj i.1.val)) |
| 154 | (B.gain_gauge _ _ i.2 (A.cumulant_smooth hj i.1.val) (A.cumulant_gauge h hj i.1.val)) (B.gain_local _ _ i.2) |
| 155 | |
| 156 | lemma logPart_eq (hj : j≤N) (U : Config G (H.S.side j p)) : |
| 157 | (A.fragments R B atSite core).logPart U = Poly.inject fun s => A.cumulant j s (matrixField U) := by |
| 158 | ext s; change Poly.part ((A.fragments ..).logPart U) s = A.cumulant j s (matrixField U) |
| 159 | rw [Layers.logPart,Fintype.sum_prod_type,Poly.part_plus,Poly.part_sum] |
| 160 | dsimp only [fragments]; simp_rw [comp_apply,Poly.send_zero,Poly.part_nil,sum_const_zero,zero_add,Poly.part_sum] |
| 161 | by_cases he : s.val.Nonempty |
| 162 | · rw [sum_eq_single (⟨s,he⟩ : Hot R)] |
| 163 | · simpa only [Poly.part_send,↓reduceIte] using (B.exact_sum ..) |
| 164 | · intro b _ h; simp [Poly.part_send,show s ≠ b.val from fun e => h (Subtype.ext e.symm)] |
| 165 | simp |
| 166 | have hs := show s=R.quiet from Subtype.ext (not_nonempty_iff_eq_empty.mp he) |
| 167 | rw [hs,A.cumulant_quiet hj] |
| 168 | exact sum_eq_zero fun b _ => sum_eq_zero fun c _ => by simp [Poly.part_send,show R.quiet ≠ b.val from |
| 169 | fun e => b.property.ne_empty (congrArg Subtype.val e.symm)] |
| 170 | |
| 171 | lemma fragments_exact [Nonempty V] (h : H.Selected) (ho : Aperture (H.rep N p j)) (hc : ∀ i,atSite i∈core i) |
| 172 | (hj : j≤N) (U : Config G (H.S.side j p)) (s : R.Mode) : |
| 173 | (((A.fragments R B atSite core).bands).density U).part s = A.total s j (matrixField U) := by |
| 174 | let X := A.fragments R B atSite core |
| 175 | rw [X.exact_density ho (A.anchored R B atSite core hc) (h.represents _ _ _ hj).good.labels,A.logPart_eq R B atSite core hj U, |
| 176 | A.compound_eq hj,Poly.part_smul,A.part_ratios,← vac_eq h hj,comp_apply,Complex.ofReal_inv,mul_left_comm,mul_inv_cancel₀ (Complex.ofReal_ne_zero.mpr (vac_pos hj _).ne'),mul_one] |
| 177 | end Insertions |
| 178 | end YM.Extra.Trajectories |