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.Ac.Table |
| 2 | import YM.Pressure.Seeds |
| 3 | import YM.SectorNext.RECONNECTED_LOCALITY.Gram |
| 4 | import YM.SectorNext.RECONNECTED_LOCALITY.Parts |
| 5 | import YM.SectorNext.RECONNECTED_LOCALITY.Replica |
| 6 | |
| 7 | |
| 8 | |
| 9 | set_option warningAsError false |
| 10 | |
| 11 | /-! |
| 12 | # Dictionary after optional extensions |
| 13 | |
| 14 | Present the actual Gaussian conditional sector step on this |
| 15 | IR. The alphabet isn't a support type; give a distinct address for each raw choice incl packet |
| 16 | seed set, marked internal letter/path/outcome choice, alternatives in a split etc (labels may |
| 17 | also stay dormant or denote the zero function). Exclude forbidden pairs e.g. duplicate physical |
| 18 | *parent* address using the gate, with full queried sites. `Cellular` is a purchase, not imposing |
| 19 | that a physical analytic expression already use a quotient locality: compute contents and |
| 20 | validity of an address from selections (packet origins, original K labels etc), fields, regular |
| 21 | color args, and independent bindings; require these individual recipe/table operations to respect |
| 22 | complete footprints BEFORE taking the integral. Record halos all physical tag/Y/Z positions |
| 23 | (incl the halo for the covariance table/conditional computations at a Z entry), even if their |
| 24 | value there is zero. To integrate a term multiplying a flag query keep the link endpoints it can |
| 25 | probe also (use e.g. `inspected`). No assertion that every stored site is a numerical read. |
| 26 | Weights may jump at thresholds here. Standalone integrals are *not* the smooth extensions one |
| 27 | will need a separate port to supply later, though they are measurable/gauge/local under explicit |
| 28 | hypotheses. All applications of the analytic charge after this will be *also* conditional on the |
| 29 | source hypotheses producing the actual integral and its absolute/differentiated bounds. The tag |
| 30 | law is not hidden in existence hypotheses on coarse activities: see `Bind` below and the tie-in |
| 31 | requiring the chart identity with the actual `StepData.Choices`. |
| 32 | -/ |
| 33 | |
| 34 | set_option autoImplicit false |
| 35 | noncomputable section |
| 36 | namespace YM.SectorNext.Reconnect |
| 37 | |
| 38 | open RG Lattice Filter Function MeasureTheory Words Wilson |
| 39 | open Bind Window |
| 40 | |
| 41 | variable {G : Gauge} {c : Side} {ι η κ : Type*} {Y : η → Type*} |
| 42 | |
| 43 | /-- Factors & geometry. Can include evaluated profile choices/kernels, kept guards, potentials, |
| 44 | Mayer remainders, determinant/Jacobian letters etc. Include complete decisions and paths. `value` |
| 45 | uses one address at a time with SAME V,θ,z even for likelihoods. Sector/context computations |
| 46 | use `s` plus that common data. The compatibility predicates on raw choices use the `s` table |
| 47 | (eg eligibility of a selected optional address); internal Borel/flag predicates on actual fields |
| 48 | keep INSIDE `value`. `gate` not a test of realizability by off-address fine fields. Real-valued |
| 49 | physical weights; if doing probabilities on complex marks handle absolute value and signs also |
| 50 | inside, not in reference law (this release uses ℝ, countable gas). -/ |
| 51 | structure Form (G : Gauge) (c : Side) (ι κ : Type*) {η : Type*} (Y : η → Type*) where |
| 52 | foot : ι → Support c |
| 53 | flag : ι → Support c |
| 54 | foot_ne : ∀ i,(foot i).Nonempty |
| 55 | flag_sub : ∀ i,flag i ⊆ foot i |
| 56 | stages : ι → Finset η |
| 57 | lines : ι → Finset κ |
| 58 | gate : ι → Finset ι → Prop |
| 59 | value : ι → Finset ι → Config G c → Tables Y → Z κ → ℝ |
| 60 | |
| 61 | namespace Form |
| 62 | variable (X : Form G c ι κ Y) |
| 63 | |
| 64 | abbrev land (p : Finset ι) := region X.foot p |
| 65 | abbrev vote (p : Finset ι) := region X.flag p |
| 66 | |
| 67 | def roll (s p : Finset ι) (V : Config G c) (t : Tables Y) (z : Z κ) := ∏ i∈p,X.value i s V t z |
| 68 | |
| 69 | def Ok (p : Finset ι) := permits X.gate p |
| 70 | def Reads (P : BudgetPoint) (p : Finset ι) (V : Config G c) := X.land p ∩ flags P.threshold V = X.vote p |
| 71 | |
| 72 | |
| 73 | |
| 74 | end Form |
| 75 | |
| 76 | /-- Agreement on exactly the tested table coordinates. -/ |
| 77 | def Tied {α : Type*} {E : α → Type*} (I : Finset α) (x y : Tables E) := ∀ i∈I,x i=y i |
| 78 | |
| 79 | lemma Tied.smaller {α : Type*} {E : α → Type*} {I J : Finset α} {x y : Tables E} |
| 80 | (h : Tied I x y) (hv : J⊆I) : Tied J x y := fun _ he => h _ (hv he) |
| 81 | |
| 82 | variable [∀ i,MeasurableSpace (Y i)] |
| 83 | |
| 84 | /-- ONE conditional full Z covariance, can depend on all tables and V |
| 85 | (e.g., to complete local evaluations with actual D' far away). `Borel`/smooth not part of |
| 86 | this record. Outside may be inactive with identity covariance. When tying to a Wilson or |
| 87 | fluctuation kernel, keep that *same* matrix and completion every time. -/ |
| 88 | structure StageLaw (G : Gauge) (c : Side) (ι κ : Type*) {η : Type*} (Y : η → Type*) where |
| 89 | map : Finset ι → Config G c → Tables Y → Measure (Z κ) |
| 90 | cov : Finset ι → Config G c → Tables Y → Cov κ |
| 91 | |
| 92 | /-- Full context-locality hypotheses. |
| 93 | |
| 94 | * Order of inputs frozen across standalone and assembled. Want validity gates and |
| 95 | address values `Retained` incl negative answers that could change those rules. Geometry |
| 96 | should price all potential k, V and seed-list queries at their endpoints. |
| 97 | * `entry` means the locations determining a conditional **Z-Z covariance** between |
| 98 | two used arguments are priced in the endpoint letter neighborhoods (can choose bigger within |
| 99 | committed halo), EVEN when they are read by two different letters. Allows computed |
| 100 | A entry stencil, principal inverses etc, but no claim of that locality for an inverse |
| 101 | on all sites. Symmetric principal-window rules can meet this. Either preserve even |
| 102 | off V domains or extend while preserving assembly. Actual output D' far away may be |
| 103 | included in cov recipe, as long as `entry` holds there. `cross` separate finite range task. |
| 104 | * Costs not furnished by this locality. The product tag/Y law is not for Z. |
| 105 | -/ |
| 106 | structure Cellular [Fintype κ] (X : Form G c ι κ Y) (N : StageLaw G c ι κ Y) : Prop where |
| 107 | ready : Retained X.foot X.gate |
| 108 | stagePos : ∀ i j, Disjoint (X.foot i) (X.foot j) → Disjoint (X.stages i) (X.stages j) |
| 109 | linePos : ∀ i j, Disjoint (X.foot i) (X.foot j) → Disjoint (X.lines i) (X.lines j) |
| 110 | recover : ∀ i s b V U t q z w, (∀ j, ¬Disjoint (X.foot i) (X.foot j) → (j∈s ↔ j∈b)) → |
| 111 | Agrees (X.foot i) V U → Tied (X.stages i) t q → Tied (X.lines i) z w → |
| 112 | X.value i s V t z = X.value i b U q w |
| 113 | entry : ∀ i j s b V U t q, (∀ l, ¬Disjoint (X.foot i) (X.foot l) ∨ ¬Disjoint (X.foot j) (X.foot l) → (l∈s ↔ l∈b)) → |
| 114 | Agrees (X.foot i) V U → Agrees (X.foot j) V U → |
| 115 | -- ACTUAL V endpoints for a link with one site in each footprint but in neither footprint |
| 116 | -- wholly: not allowed by this version unless footprints are extended. Could permit |
| 117 | -- `Agrees` on the *union* instead here (legit!); this stronger gate suffices and |
| 118 | -- matches separate windows at either endpoint if that construction is used. |
| 119 | Tied (X.stages i) t q → Tied (X.stages j) t q → ∀ a∈X.lines i, ∀ d∈X.lines j, |
| 120 | N.cov s V t a d = N.cov b U q a d |
| 121 | cross : ∀ i j s V t,Disjoint (X.foot i) (X.foot j) → ∀ a∈X.lines i, ∀ d∈X.lines j, |
| 122 | N.cov s V t a d = 0 |
| 123 | states : ∀ s V t,Says (N.map s V t) (N.cov s V t) |
| 124 | symmetric : ∀ s V t i j,N.cov s V t i j=N.cov s V t j i |
| 125 | |
| 126 | /-- Convenient Borel port through a (possibly dense) Gram table, NEVER pay locality or cost |
| 127 | from this table itself. Full Y,Z,V together, not pointwise sections. -/ |
| 128 | structure Printed [Fintype κ] (X : Form G c ι κ Y) (N : StageLaw G c ι κ Y) : Prop where |
| 129 | rootLaw : ∃ R : Finset ι → Config G c → Tables Y → κ → κ → ℝ, |
| 130 | (∀ s V t,N.cov s V t=gram (R s V t)) ∧ |
| 131 | (∀ s i j,Measurable (fun (p : Config G c × Tables Y) => R s p.1 p.2 i j)) |
| 132 | stamped : ∀ i s,Measurable (fun (p : (Config G c × Tables Y) × Z κ) => X.value i s p.1.1 p.1.2 p.2) |
| 133 | |
| 134 | namespace Form |
| 135 | variable (X : Form G c ι κ Y) |
| 136 | variable [DecidableEq η] [DecidableEq κ] |
| 137 | abbrev staged (p : Finset ι) := p.biUnion X.stages |
| 138 | abbrev window (p : Finset ι) := p.biUnion X.lines |
| 139 | |
| 140 | /-- Conditional on all θ,Y. Reserves its actual full covariance when used in global formula, |
| 141 | standalone p-covariance when used by p. -/ |
| 142 | def booth (N : StageLaw G c ι κ Y) (s p : Finset ι) (V : Config G c) (ρ : ℝ → ℝ) (t : Tables Y) := |
| 143 | ∫ z, ρ (X.roll s p V t z) ∂N.map s V t |
| 144 | |
| 145 | variable [Fintype η] |
| 146 | |
| 147 | /-- Full iterated conditional expectation. No V measure or normalization by output |
| 148 | probability inside this density. -/ |
| 149 | def edition (N : StageLaw G c ι κ Y) (m : ∀ i, Measure (Y i)) (s p : Finset ι) (V : Config G c) (ρ : ℝ → ℝ) := |
| 150 | ∫ t, X.booth N s p V ρ t ∂Measure.pi m |
| 151 | |
| 152 | end Form |
| 153 | |
| 154 | namespace Cellular |
| 155 | variable {X : Form G c ι κ Y} {N : StageLaw G c ι κ Y} |
| 156 | variable [Fintype κ] (H : Cellular X N) |
| 157 | variable [DecidableEq κ] [DecidableEq η] |
| 158 | |
| 159 | include H |
| 160 | omit [∀ i,MeasurableSpace (Y i)] in |
| 161 | private theorem resurvey {p s b : Finset ι} {V U : Config G c} {t w : Tables Y} |
| 162 | (hv : Agrees (X.land p) V U) (ht : Tied (X.staged p) t w) {z z' : Z κ} (hz : Tied (X.window p) z z') |
| 163 | (hh : ∀ j, ¬Disjoint (X.land p) (X.foot j) → (j∈s↔j∈b)) : |
| 164 | X.roll s p V t z=X.roll b p U w z' ∧ |
| 165 | ∀ a∈X.window p,∀ d∈X.window p,N.cov s V t a d=N.cov b U w a d := by |
| 166 | have hs (i) (hi : i∈p) : X.foot i⊆X.land p := fun _ he => Finset.mem_biUnion.mpr ⟨_,hi,he⟩ |
| 167 | have he (i) (hi : i∈p) : Agrees (X.foot i) V U := agrees_mono hv (Finset.coe_subset.mpr (hs i hi)) |
| 168 | have hr (i) (hi : i∈p) : Tied (X.stages i) t w := ht.smaller fun _ he => Finset.mem_biUnion.mpr ⟨_,hi,he⟩ |
| 169 | have hl (i) (hi : i∈p) : Tied (X.lines i) z z' := hz.smaller fun _ he => Finset.mem_biUnion.mpr ⟨_,hi,he⟩ |
| 170 | have hy (i) (hi : i∈p) (j) (hj : ¬Disjoint (X.foot i) (X.foot j)) : j∈s↔j∈b := |
| 171 | hh j (fun h => hj (Finset.disjoint_of_subset_left (hs i hi) h)) |
| 172 | refine ⟨Finset.prod_congr rfl (fun i h => H.recover i s b V U t w z z' (hy i h) (he i h) (hr i h) (hl i h)),?_⟩ |
| 173 | intro a ha d hd |
| 174 | obtain ⟨i,hi,ha⟩:=Finset.mem_biUnion.mp ha; obtain ⟨j,hj,hd⟩:=Finset.mem_biUnion.mp hd |
| 175 | exact H.entry i j _ _ _ _ _ _ (fun k hh => hh.elim (hy i hi k) (hy j hj k)) |
| 176 | (he i hi) (he j hj) (hr i hi) (hr j hj) a ha d hd |
| 177 | |
| 178 | omit [∀ i,MeasurableSpace (Y i)] in |
| 179 | /-- Compare component to standalone. -/ |
| 180 | theorem survey {p s : Finset ι} (h : p ⊆ s) (he : ∀ i∈s, ¬Disjoint (X.land p) (X.foot i) → i∈p) |
| 181 | {V U : Config G c} {t w : Tables Y} (hv : Agrees (X.land p) V U) (ht : Tied (X.staged p) t w) : |
| 182 | (∀ z z',Tied (X.window p) z z' → X.roll s p V t z=X.roll p p U w z') ∧ |
| 183 | ∀ a∈X.window p, ∀ d∈X.window p,N.cov s V t a d=N.cov p U w a d := by |
| 184 | have hr : ∀ j,¬Disjoint (X.land p) (X.foot j) → (j∈s↔j∈p) := fun _ hx => ⟨fun hi => he _ hi hx, fun hi => h hi⟩ |
| 185 | exact ⟨fun _ _ hh => (H.resurvey hv ht hh hr).1,(H.resurvey hv ht (z:=0) (z':=0) (fun _ _ => rfl) hr).2⟩ |
| 186 | |
| 187 | variable (L : Printed X N) |
| 188 | |
| 189 | include L |
| 190 | omit [DecidableEq κ] [DecidableEq η] H in |
| 191 | theorem _root_.YM.SectorNext.Reconnect.Printed.roll {s p : Finset ι} {ρ : ℝ → ℝ} (hρ : Measurable ρ) : |
| 192 | Measurable (fun (q : (Config G c × Tables Y) × Z κ) => ρ (X.roll s p q.1.1 q.1.2 q.2)) := by |
| 193 | apply Measurable.comp hρ (Finset.measurable_prod _ (fun i _ => L.stamped i s)) |
| 194 | omit [DecidableEq κ] [DecidableEq η] in |
| 195 | theorem booth_joint (s p : Finset ι) (ρ : ℝ → ℝ) (he : Measurable ρ) : |
| 196 | Measurable (fun q : Config G c × Tables Y => X.booth N s p q.1 ρ q.2) := by |
| 197 | obtain ⟨R,hR,hB⟩:=L.rootLaw |
| 198 | have hr (V : Config G c) (t : Tables Y) : N.map s V t=pour (R s V t) := by |
| 199 | have he := H.states s V t; rw [hR] at he |
| 200 | exact he.unique (pour_says _) |
| 201 | simp_rw [Form.booth,hr] |
| 202 | exact parameter_meas (R:=fun q : Config G c × Tables Y => R s q.1 q.2) (hB s) _ (L.roll he) |
| 203 | |
| 204 | omit [DecidableEq κ] [DecidableEq η] in |
| 205 | theorem edition_joint [Fintype η] (m : ∀ i,Measure (Y i)) [∀ i,SigmaFinite (m i)] (s p : Finset ι) |
| 206 | (ρ : ℝ → ℝ) (he : Measurable ρ) : Measurable (fun V => X.edition N m s p V ρ) := by |
| 207 | exact (booth_joint H L s p ρ he).stronglyMeasurable.integral_prod_right'.measurable |
| 208 | |
| 209 | end Cellular |
| 210 | end YM.SectorNext.Reconnect |