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.Analytic.Frame |
| 2 | import YM.Next.EXTRACTION.Tails |
| 3 | import YM.Next.FREE_KERNELS.Signal |
| 4 | import YM.Next.SCHEDULE.Blocks |
| 5 | import YM.Work.F03 |
| 6 | import YM.Work.F05.Graphs |
| 7 | |
| 8 | |
| 9 | |
| 10 | /-! |
| 11 | # Frames to use on the paid regions |
| 12 | |
| 13 | The patch frame and the tree slice are NOT the same choice. Use `S.frames` and its |
| 14 | actual tag rule even off the analytic branch. Here also construct the native analytic |
| 15 | stationary coordinates for the PATCH score on the flat germ and identify with the |
| 16 | actual minimizing frames for *every* site/tag. Proof from the `Branches` interface |
| 17 | (already supplied by our Levels); no Frame hypotheses about interacting fields. |
| 18 | This is a real fixed-period germ, not a uniform IFT or a complex gauge claim. |
| 19 | |
| 20 | Use later with `regionHere`: in addition to the Levels' branches we will have honest |
| 21 | macro-size payment on the same torus `f`. `macro_room` shows e.g. that the region |
| 22 | can be placed using actual physical sites. No using it to ignore winding in OTHER |
| 23 | reads. Forest height bound included in every use of Forest; we'll use any, and all k choices |
| 24 | will concern THE SAME Step with shared tags. |
| 25 | -/ |
| 26 | set_option autoImplicit false |
| 27 | noncomputable section |
| 28 | namespace YM.Progress.StationaryScenes |
| 29 | |
| 30 | open Lattice Filter Function RG Wilson Precision Pressure Bid Tree |
| 31 | open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators |
| 32 | |
| 33 | variable {G : Gauge} {c f : Side} {S : StepData c f} |
| 34 | |
| 35 | |
| 36 | |
| 37 | /-- For consumers wanting one specific slice. NOT a new tree law for the kernel. -/ |
| 38 | def exampleTree (S : StepData c f) : Forest S.ratio := |
| 39 | Classical.choice <| Tree.select S.ratio S.patch.odd_side |
| 40 | |
| 41 | /-- Anchored whichever actual branch, unused tags too. -/ |
| 42 | theorem rooted_frame (U : Config G f) (t : S.SitesChoice) (x : Site c) : |
| 43 | S.frames U t x S.patch.center = 1 := by |
| 44 | unfold StepData.frames Patch.frame |
| 45 | split |
| 46 | · exact (Patch.min_exists ..).choose_spec.1 |
| 47 | · simp |
| 48 | |
| 49 | /-- Full frame coordinates (except imposed root H=1), taken from one tag; near |
| 50 | flat it is the minimizing branch and *all* tags use these. -/ |
| 51 | def rootCoordinates (S : StepData c f) (t : S.SitesChoice) (x : Site c) |
| 52 | (z : Push.In G f) : S.patch.FrameCoordinates G := |
| 53 | WithLp.toLp 2 (fun i => G.plog (Push.hats S x t z i.1.val) i.2) |
| 54 | |
| 55 | lemma root_zero (h : S.patch.Branches S.kernel G) (t : S.SitesChoice) (x : Site c) : |
| 56 | rootCoordinates S t x (0 : Push.In G f) = 0 := by |
| 57 | ext ⟨i,j⟩ |
| 58 | change G.plog (Push.hats S x t 0 i.val) j = ((0:G.Color) j) |
| 59 | rw [Push.hats_zero (h := h), G.plog_one] |
| 60 | |
| 61 | lemma root_smooth (h : S.patch.Branches S.kernel G) (t : S.SitesChoice) (x : Site c) : |
| 62 | ContDiffAt ℝ ω (rootCoordinates S t x (G := G)) 0 := by |
| 63 | refine (contDiffAt_piLp 2).2 fun ⟨i,j⟩ => ?_ |
| 64 | have hc : ContDiffAt ℝ ω G.plog (Push.hats S x t 0 i.val) := by |
| 65 | rw [Push.hats_zero (h := h)]; exact G.plog_diff |
| 66 | exact (contDiffAt_piLp 2).1 (hc.comp (f := fun v => Push.hats S x t v i.val) (0 : Push.In G f) (Push.scheme S x t (h := h) i.val)) j |
| 67 | |
| 68 | lemma realizes_frame (h : S.patch.Branches S.kernel G) (t : S.SitesChoice) (x : Site c) : |
| 69 | ∀ᶠ z : Push.In G f in 𝓝 0, |
| 70 | S.patch.frameFromCoordinates G (rootCoordinates S t x z) = S.frames (represent z) t x := by |
| 71 | have he (i : S.patch.Points) : ∀ᶠ z : Push.In G f in 𝓝 0, |
| 72 | G.lieExp (G.plog (Push.hats S x t z i)) = S.frames (represent z) t x i := by |
| 73 | have ht : ContinuousAt (fun z : Push.In G f => S.frames (represent z) t x i) 0 := |
| 74 | (G.continuous_mat.isClosedEmbedding G.mat_injective).isEmbedding.tendsto_nhds_iff.mpr |
| 75 | (Push.hat_cont S x t (h := h) i).tendsto |
| 76 | have hv := ht.tendsto |
| 77 | have hh : S.frames (represent (0 : Push.In G f)) t x i = 1 := |
| 78 | G.mat_injective ((Push.hats_zero S x t (h := h) i).trans G.mat_one.symm) |
| 79 | rw [hh] at hv |
| 80 | exact hv.eventually G.plog_right |
| 81 | filter_upwards [eventually_all.mpr he] with z hz |
| 82 | funext i |
| 83 | unfold Patch.frameFromCoordinates |
| 84 | split |
| 85 | · rename_i hh |
| 86 | subst i |
| 87 | exact (rooted_frame ..).symm |
| 88 | · exact hz i |
| 89 | |
| 90 | lemma native_score_smooth (S : StepData c f) (x : Site c) : |
| 91 | ContDiffAt ℝ ω (Analytic.nativeFrameScore (G := G) S x) 0 := by |
| 92 | let A := Push.In G f × S.patch.FrameCoordinates G |
| 93 | have ha (i : S.patch.Points) : ContDiffAt ℝ ω |
| 94 | (fun z : A => G.mat (S.patch.frameFromCoordinates G z.2 i)) 0 := by |
| 95 | unfold Patch.frameFromCoordinates |
| 96 | split |
| 97 | · exact contDiffAt_const |
| 98 | rename_i he |
| 99 | let g (z : A) : G.Color := WithLp.toLp 2 (fun j => z.2 (⟨i,he⟩,j)) |
| 100 | have hg : ContDiffAt ℝ ω g 0 := |
| 101 | (contDiffAt_piLp 2).mpr (fun j => ((contDiffAt_piLp 2).1 |
| 102 | (show ContDiffAt ℝ ω (Prod.snd : A → _) 0 from contDiffAt_snd) (⟨i,he⟩,j))) |
| 103 | exact G.exp_jet.contDiffAt.comp _ hg |
| 104 | unfold Analytic.nativeFrameScore Patch.score Patch.average |
| 105 | refine ContDiffAt.mul contDiffAt_const (ContDiffAt.sum fun i _ => ?_) |
| 106 | refine ContDiffAt.mul contDiffAt_const (ContDiffAt.sum fun j _ => ?_) |
| 107 | refine ContDiffAt.mul contDiffAt_const (ContDiffAt.sum fun k _ => ?_) |
| 108 | refine Work.F03.price_smooth (A := fun z : A => S.patch.via |
| 109 | (S.patch.frameFromCoordinates G z.2) (Push.product S x z.1) i j k) ?_ |
| 110 | simp only [Patch.via, Push.product, G.mat_mul, G.mat_inv, travel_at] |
| 111 | exact ((ha i).mul ((Push.writes (G := G) _ _).comp (f := Prod.fst) (0 : A) contDiffAt_fst)).mul |
| 112 | ((show G.Mat ≃L[ℝ] G.Mat from starL ℝ).contDiff.contDiffAt.comp _ (ha j)) |
| 113 | |
| 114 | lemma realizes_minimizer (h : S.patch.Branches S.kernel G) (t : S.SitesChoice) (x : Site c) : |
| 115 | let q := rootCoordinates S t x (G := G) |
| 116 | ∀ᶠ z in 𝓝 0, |
| 117 | S.patch.minimizing (Push.product S x z) (S.patch.frameFromCoordinates G (q z)) ∧ |
| 118 | HasFDerivAt (fun b => Analytic.nativeFrameScore S x (z,b)) (0 : S.patch.FrameCoordinates G →L[ℝ] ℝ) (q z) := by |
| 119 | intro q |
| 120 | have hi := root_smooth h t x |
| 121 | have ht : Tendsto (fun z => (z,q z)) (𝓝 0) (𝓝 0) := by |
| 122 | have hh := (continuousAt_id.prodMk hi.continuousAt).tendsto |
| 123 | simpa only [id_eq, root_zero h] using! hh |
| 124 | filter_upwards [Push.threshold S x, realizes_frame h t x, |
| 125 | ht.eventually ((native_score_smooth (G := G) S x).eventually (by simp))] with z hz he hv |
| 126 | have hh : S.patch.minimizing (Push.product S x z) (S.patch.frameFromCoordinates G (q z)) := by |
| 127 | unfold q |
| 128 | rw [he] |
| 129 | change S.patch.minimizing _ (S.patch.frame S.kernel (Push.product S x z) _) |
| 130 | rw [Patch.frame, if_pos hz] |
| 131 | exact (Patch.min_exists ..).choose_spec |
| 132 | refine ⟨hh,?_⟩ |
| 133 | let g := fun b => Analytic.nativeFrameScore S x (z,b) |
| 134 | have hm : IsLocalMin g (q z) := Filter.Eventually.of_forall fun b => |
| 135 | hh.2 (S.patch.frameFromCoordinates G b) (Patch.frameFromCoordinates_center ..) |
| 136 | rw [← hm.fderiv_eq_zero] |
| 137 | have hs : ContDiffAt ℝ ω g (q z) := hv.comp (f := fun i => (z,i)) (q z) (contDiffAt_const.prodMk contDiffAt_id) |
| 138 | exact (hs.differentiableAt (by simp)).hasFDerivAt |
| 139 | |
| 140 | lemma eventually_best (h : S.patch.Branches S.kernel G) (t : S.SitesChoice) (e : Edge (Site c)) : |
| 141 | ∀ᶠ v : Push.In G f in 𝓝 0, S.patch.usesBest S.kernel (S.connector (represent v) t e) := by |
| 142 | have he : ContinuousAt (Push.deck S e t (G := G)) 0 := continuousAt_pi.mpr fun i => |
| 143 | ((G.continuous_mat.isClosedEmbedding G.mat_injective).isEmbedding.tendsto_nhds_iff).mpr |
| 144 | (Push.builds S h e t i).continuousAt.tendsto |
| 145 | have hb : S.patch.usesBest S.kernel (Push.deck S e t (0 : Push.In G f)) := by |
| 146 | apply lt_of_le_of_lt ((S.patch.bond_min _).choose_spec 1) |
| 147 | simpa [Patch.bondCost, Push.deck_zero S h e t] using S.kernel.predictor_cut_pos |
| 148 | exact he.tendsto.eventually (S.patch.best_open.mem_nhds hb) |
| 149 | |
| 150 | /-- Counts actual likelihood in the near-identity uses. It's constant in t on |
| 151 | this branch, `card⁻¹`, not one in our (counting) convention. -/ |
| 152 | lemma likelihood_here (h : S.patch.Branches S.kernel G) : ∀ᶠ v : Push.In G f in 𝓝 0, |
| 153 | ∀ t : S.Choices, S.likelihood (represent v) t = (Fintype.card S.Choices : ℝ)⁻¹ := by |
| 154 | filter_upwards [eventually_all.mpr (Push.threshold S), eventually_all.mpr fun (s : S.SitesChoice) => |
| 155 | eventually_all.mpr fun e => eventually_best h s e] with v hv hb t |
| 156 | have ht (s : S.Choices) : S.likelihood (represent v) s = S.likelihood (represent v) t := by |
| 157 | unfold Push.product at hv |
| 158 | unfold StepData.likelihood |
| 159 | simp only [Patch.frameMass, hv, ↓reduceIte, Patch.predictorMass, hb] |
| 160 | have HS := S.chosen h (represent v) |
| 161 | have he : ∑ s : S.Choices, S.likelihood (represent v) s = |
| 162 | ∑ _s : S.Choices, S.likelihood (represent v) t := Finset.sum_congr rfl fun s _ => ht s |
| 163 | rw [he] at HS |
| 164 | have ha : 0 < (Fintype.card S.Choices : ℝ) := by exact_mod_cast Fintype.card_pos |
| 165 | apply mul_left_cancel₀ ha.ne' |
| 166 | simpa only [Finset.sum_const, Finset.card_univ, nsmul_eq_mul, mul_inv_cancel₀ ha.ne'] using HS |
| 167 | |
| 168 | /-- One analytic coordinate branch per site BEFORE asking for the tags. On one |
| 169 | common neighborhood (for this fixed finite step & period!), all reads of Frame |
| 170 | and bond prediction here are on their minimizing branch. Off the germ we make |
| 171 | no analytic assertion and retain the actual mass/fallback rules. `LocalRatio` |
| 172 | is a separate issue in the tree-slice loop term later. -/ |
| 173 | structure FrameField (S : StepData c f) (G : Gauge) where |
| 174 | q (x : Site c) : Push.In G f → S.patch.FrameCoordinates G |
| 175 | zero x : q x 0 = 0 |
| 176 | analytic x : ContDiffAt ℝ ω (q x) 0 |
| 177 | roots : ∀ᶠ z in 𝓝 0, |
| 178 | (∀ x, S.patch.usesMin S.kernel (Push.product S x (z : Push.In G f)) ∧ |
| 179 | S.patch.minimizing (Push.product S x z) (S.patch.frameFromCoordinates G (q x z)) ∧ |
| 180 | HasFDerivAt (fun b => Analytic.nativeFrameScore S x (z,b)) (0 : S.patch.FrameCoordinates G →L[ℝ] ℝ) (q x z)) ∧ |
| 181 | ∀ t : S.Choices, |
| 182 | (∀ x, S.frames (represent z) t.1 x = S.patch.frameFromCoordinates G (q x z)) ∧ |
| 183 | S.likelihood (represent z) t = (Fintype.card S.Choices : ℝ)⁻¹ ∧ |
| 184 | ∀ e, S.patch.usesBest S.kernel (S.connector (represent z) t.1 e) |
| 185 | |
| 186 | def frameField (h : S.patch.Branches S.kernel G) : FrameField S G := by |
| 187 | classical |
| 188 | let t₀ := Classical.arbitrary S.SitesChoice |
| 189 | refine ⟨rootCoordinates S t₀, root_zero h t₀, root_smooth h t₀,?_⟩ |
| 190 | filter_upwards [eventually_all.mpr fun x => Push.threshold S x, |
| 191 | eventually_all.mpr (realizes_minimizer h t₀), likelihood_here h, |
| 192 | eventually_all.mpr fun (t : S.SitesChoice) => eventually_all.mpr fun e => eventually_best h t e] |
| 193 | with z hz hQ hb hw |
| 194 | refine ⟨fun x => ⟨hz x,hQ x⟩,fun t => ⟨fun x => ?_, hb t, hw t.1⟩⟩ |
| 195 | have hs := hz x |
| 196 | change S.patch.frame S.kernel (Push.product S x z) _ = _ |
| 197 | rw [Patch.frame, if_pos hs] |
| 198 | exact (h.frame_unique _ hs).unique (S.patch.min_exists _).choose_spec (hQ x).1 |
| 199 | |
| 200 | /-- Use inside an actual stationary graph from the Step. Simultaneous |
| 201 | activation. The graphs may only be germs but one can read the same Kernel |
| 202 | choices on THIS genuine U. No period-independent `𝓝` assertion. -/ |
| 203 | theorem FrameField.lit (W : FrameField S G) (F : Forest S.ratio) {P : PathData G} |
| 204 | {p : Clip} {ρ : Dir G c → AxisChart G F} (h : Critical F p P ρ) : |
| 205 | ∀ᶠ x in 𝓝 (0 : Dir G c), |
| 206 | let U := lifting F (represent x) (ρ x) |
| 207 | let z := Work.F03.axisLog F (x,ρ x) |
| 208 | represent z=U ∧ |
| 209 | (∀ y, S.patch.usesMin S.kernel (expandAt (S.ratio.embed y) U) ∧ |
| 210 | S.patch.minimizing (expandAt (S.ratio.embed y) U) (S.patch.frameFromCoordinates G (W.q y z))) ∧ |
| 211 | ∀ t : S.Choices, S.likelihood U t = (Fintype.card S.Choices : ℝ)⁻¹ ∧ |
| 212 | (∀ y, S.frames U t.1 y = S.patch.frameFromCoordinates G (W.q y z)) ∧ |
| 213 | (∀ e, S.patch.usesBest S.kernel (S.connector U t.1 e) ∧ |
| 214 | S.prediction U t e = S.patch.best (S.connector U t.1 e)) := by |
| 215 | let f (x : Dir G c) := (x, ρ x) |
| 216 | have hf : Tendsto f (𝓝 0) (𝓝 0) := Work.F05.crit_home h |
| 217 | have hv := (Work.F03.inclusion_smooth (G := G) F).continuousAt.tendsto |
| 218 | rw [Work.F03.inclusion_zero] at hv |
| 219 | have hk : Tendsto (Work.F03.axisLog F ∘ f) (𝓝 0) (𝓝 0) := |
| 220 | ContinuousAt.tendsto continuousAt_snd |>.comp (hv.comp hf) |
| 221 | filter_upwards [hf.eventually (Work.F03.inclusion_works F), hk.eventually W.roots] with x hx he |
| 222 | let z := Work.F03.axisLog F (f x) |
| 223 | have ht : represent z = lifting F (represent x) (ρ x) := hx |
| 224 | dsimp only |
| 225 | refine ⟨ht,fun y => ?_,fun t => ?_⟩ |
| 226 | · rw [← ht]; exact ⟨(he.1 y).1,(he.1 y).2.1⟩ |
| 227 | rw [← ht] |
| 228 | refine ⟨(he.2 t).2.1,(he.2 t).1,fun e => ?_⟩ |
| 229 | have hh : S.patch.usesBest S.kernel (S.connector (represent z) t.1 e) := (he.2 t).2.2 e |
| 230 | exact ⟨hh,by rw [StepData.prediction,Patch.predict,if_pos hh]⟩ |
| 231 | |
| 232 | /-- The frame and tree room of an actual admissible step. -/ |
| 233 | structure Region (S : StepData c f) (G : Gauge) where |
| 234 | larger : Larger S (G := G) |
| 235 | field : FrameField S G |
| 236 | tree : Forest S.ratio |
| 237 | |
| 238 | def buildRegion (h : Larger S (G := G)) : Region S G := |
| 239 | ⟨h, frameField h.1, exampleTree S⟩ |
| 240 | |
| 241 | end YM.Progress.StationaryScenes |