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.AnalyticNext.CONNECTED_LOG_IDENTITY.LogAction |
| 2 | import YM.Next.EXTRACTION.Tails |
| 3 | import YM.Next.FOUNDATIONS.SU2 |
| 4 | import YM.Org.Theatre |
| 5 | |
| 6 | |
| 7 | set_option warningAsError false |
| 8 | |
| 9 | /-! |
| 10 | # The liberated vacuum formula in the actual RG representation |
| 11 | |
| 12 | Choose dictionaries and normalization once. Both the leading log and K |
| 13 | reconnect are countable here even though the lattice is finite. Don't |
| 14 | confuse the denotational K predicates/values with operational semantics: |
| 15 | we retain older predicates from d as V-dependences and can also keep them as |
| 16 | the new `.extraTest`; keep the earlier supports & inventories as record |
| 17 | data in the address decoder. The earlier disjointness and incidence guards |
| 18 | in the values remain EXACTLY those used in the computed charge. |
| 19 | |
| 20 | Anchor accounting: species specified by finite *sets* might not have an |
| 21 | equivariant anchor (consider a winding species stabilized by a |
| 22 | translation). Never compute a regular payload by making an arbitrary |
| 23 | translation-dependent tie decision. Here one copy per site of the |
| 24 | clustering tuple's root label, sharing one unit of expense (field values |
| 25 | divided by card root footprint). |
| 26 | |
| 27 | Issued *formula*. Also derivatives/asymptotic/secant and calibrated receipt |
| 28 | obligations to use in a Move; see files dependent on this one for some |
| 29 | such costs. No assuming a history producer or asserting the emitted |
| 30 | R is already admissible. |
| 31 | -/ |
| 32 | |
| 33 | set_option autoImplicit false |
| 34 | noncomputable section |
| 35 | namespace YM.Push.LogIdentity.Emit |
| 36 | open Lattice RG Wilson Pressure Finset Filter Function |
| 37 | open AbsoluteSums Ursell Restore Attach |
| 38 | open scoped BigOperators Topology Classical Matrix.Norms.Frobenius ContDiff |
| 39 | variable {n : Side} {G : Gauge} {ι κ : Type*} (X : ι → Support n) (Y I : κ → Support n) |
| 40 | (hX : ∀ i,(X i).Nonempty) (hI : ∀ i,(I i).Nonempty) (hQ : ∀ i,I i ⊆ Y i) |
| 41 | (p : BudgetPoint) |
| 42 | |
| 43 | /-- Decoder with separate dummy room *at all sites*, can permute coherently |
| 44 | also on the padding. -/ |
| 45 | abbrev Padded (ι : Type*) (n : Side) := ι ⊕ (ℕ × Site n) |
| 46 | |
| 47 | def codec (ι : Type*) [Countable ι] (n : Side) : Padded ι n ≃ ℕ := |
| 48 | nonempty_equiv_of_countable.some |
| 49 | |
| 50 | def padEval {V : Type*} [Zero V] (F : ι → V) (i : Padded ι n) := i.elim F (fun _ => 0) |
| 51 | |
| 52 | private def padEmb (ι : Type*) (n : Side) : ι ↪ Padded ι n := ⟨Sum.inl,Sum.inl_injective⟩ |
| 53 | |
| 54 | lemma pad_absolute (f : ι → ℝ) : Summable (padEval f (n:=n)) ↔ Summable f := |
| 55 | ((padEmb ι n).injective.summable_iff (f:=padEval f (n:=n)) (by |
| 56 | rintro (i|i) h |
| 57 | · exact (h ⟨i,rfl⟩).elim |
| 58 | rfl)).symm |
| 59 | |
| 60 | lemma pad_total (f : ι → ℝ) : (∑' i : Padded ι n,padEval f i) = ∑' i,f i := |
| 61 | ((padEmb ι n).injective.tsum_eq (f:=padEval f (n:=n)) (by |
| 62 | rintro (i|i) h |
| 63 | · exact ⟨i,rfl⟩ |
| 64 | exact (h rfl).elim)).symm |
| 65 | |
| 66 | -- Can derive from Countable's hypotheses on demand |
| 67 | variable [Countable κ] [Countable ι] |
| 68 | |
| 69 | abbrev Anchors := Σ z : Clusters ι, ↥(X (z.2 none)) |
| 70 | |
| 71 | def share (w : Clusters ι → ℝ) (z : Anchors X) := w z.1/(X (z.1.2 none)).card |
| 72 | |
| 73 | include hX in |
| 74 | omit [Countable ι] in |
| 75 | lemma splits (w : Clusters ι → ℝ) (z : Clusters ι) : ∑ i : ↥(X (z.2 none)),share X w ⟨z,i⟩=w z := by |
| 76 | unfold share; simp only [sum_const,card_univ,Fintype.card_coe,nsmul_eq_mul] |
| 77 | have he : 0 < ((X (z.2 none)).card : ℝ) := by exact_mod_cast (card_pos.mpr (hX (z.2 none))) |
| 78 | field_simp |
| 79 | |
| 80 | omit [Countable ι] in |
| 81 | lemma norm_share (w : Clusters ι → ℝ) (z : Anchors X) : ‖share X w z‖ = share X (fun i => ‖w i‖) z := by |
| 82 | simp only [share,norm_div,norm_natCast] |
| 83 | |
| 84 | include hX in |
| 85 | omit [Countable ι] in |
| 86 | lemma pays_every (w : Clusters ι → ℝ) (h : Summable fun i => ‖w i‖) : |
| 87 | Summable (fun i => ‖share X w i‖) ∧ (∑' i : Anchors X,share X w i) = ∑' i,w i := by |
| 88 | have he : Summable (fun i => ‖share X w i‖) := by |
| 89 | refine (summable_sigma_of_nonneg (fun i => norm_nonneg (share X w i))).mpr ⟨fun i => Summable.of_finite,?_⟩ |
| 90 | convert h using 1 |
| 91 | ext i; rw [tsum_fintype]; simp_rw [norm_share, splits X hX] |
| 92 | refine ⟨he,?_⟩ |
| 93 | rw [he.of_norm.tsum_sigma]; apply tsum_congr; intro i; rw [tsum_fintype, splits X hX] |
| 94 | |
| 95 | -- New regular addresses |
| 96 | |
| 97 | def host (z : Anchors X) : RegularAddress n := |
| 98 | ⟨z.2, Z X z.1, Zcontains X z.1 none z.2.property⟩ |
| 99 | |
| 100 | def table : Padded (Anchors X) n → RegularAddress n := |
| 101 | Sum.elim (host X) fun i => ⟨i.2,{i.2},mem_singleton_self _⟩ |
| 102 | |
| 103 | def reg := table X ∘ (codec (Anchors X) n).symm |
| 104 | |
| 105 | def ability (u : Config G n → ι → ℝ) (v : Clusters ι → ℝ) (i : Anchors X) (V : Config G n) := |
| 106 | share X (regular X (u V) v) i |
| 107 | |
| 108 | def lettering (u : Config G n → ι → ℝ) (v : Clusters ι → ℝ) (i : Padded (Anchors X) n) (V : Config G n) := |
| 109 | padEval (fun i => ability X u v i V) i |
| 110 | |
| 111 | def E (u : Config G n → ι → ℝ) (v : Clusters ι → ℝ) := lettering X u v ∘ (codec (Anchors X) n).symm |
| 112 | |
| 113 | def earned (u : Config G n → ι → ℝ) (v : Clusters ι → ℝ) (V : Config G n) (i : ℕ) := |
| 114 | masked p.threshold (reg X i).support (E X u v i) V |
| 115 | |
| 116 | def maskedIn (u : Config G n → ι → ℝ) (v : Clusters ι → ℝ) (V : Config G n) := |
| 117 | Restore.good (Restore.Z X) (RG.flags p.threshold V) (regular X (u V) v) |
| 118 | |
| 119 | lemma earned_eq (u : Config G n → ι → ℝ) (v : Clusters ι → ℝ) (V : Config G n) : |
| 120 | earned X p u v V = padEval (share X (maskedIn X p u v V)) (n:=n) ∘ (codec (Anchors X) n).symm := by |
| 121 | funext i; obtain ⟨j,rfl⟩ := (codec (Anchors X) n).surjective i |
| 122 | unfold earned reg E; simp only [comp_apply, Equiv.symm_apply_apply]; unfold lettering padEval table ability |
| 123 | rcases j with i|i |
| 124 | · change masked _ (Z X i.1) _ V = _ |
| 125 | by_cases he : Healthy p.threshold (Z X i.1) V |
| 126 | · rw [masked_eq _ _ _ _ he]; unfold share maskedIn Restore.good; simp only [Sum.elim_inl,if_pos (show Disjoint _ _ from he)] |
| 127 | rw [masked_ne _ _ _ _ he]; change 0=share X _ _; unfold share maskedIn Restore.good; rw [if_neg (show ¬ Disjoint _ _ from he),zero_div] |
| 128 | by_cases he : Healthy p.threshold {i.2} V |
| 129 | · exact masked_eq _ _ _ V he |
| 130 | exact masked_ne _ _ _ V he |
| 131 | |
| 132 | include hX in |
| 133 | lemma additive_series (u : Config G n → ι → ℝ) (v : Clusters ι → ℝ) (V : Config G n) |
| 134 | (h : Summable (fun i => ‖maskedIn X p u v V i‖)) : |
| 135 | Summable (fun i => ‖earned X p u v V i‖) ∧ (∑' i,earned X p u v V i) = ∑' i,maskedIn X p u v V i := by |
| 136 | rw [earned_eq]; let w := share X (maskedIn X p u v V) |
| 137 | let e := (codec (Anchors X) n).symm |
| 138 | obtain ⟨he,hT⟩ := pays_every X hX _ h |
| 139 | have hD (i : Padded (Anchors X) n) : ‖padEval w i‖=padEval (fun i => ‖w i‖) i := by |
| 140 | rcases i with i|i; rfl; exact norm_zero |
| 141 | constructor |
| 142 | · change Summable ((fun i : Padded (Anchors X) n => ‖padEval w i‖) ∘ e) |
| 143 | rw [e.summable_iff]; simp_rw [hD]; exact (pad_absolute _).mpr he |
| 144 | change (∑' i,padEval w (e i)) = _ |
| 145 | rw [Equiv.tsum_eq,pad_total]; exact hT |
| 146 | |
| 147 | section Publish |
| 148 | variable (test : κ → Config G n → Prop) -- old forced extra tests (may also all be carried implicitly inside d) |
| 149 | |
| 150 | def letterTest (i : Out X Y) (V : Config G n) : Prop := |
| 151 | ∀ j∈i.val.val.fst.toLeft,test j V |
| 152 | |
| 153 | def stationed (i : Out X Y) : ForcedAddress G n := |
| 154 | ⟨location X Y i,flagsOut X Y I i,hold_nonempty Y _ _ i hI,hold_zone Y _ _ i hQ,letterTest X Y test i⟩ |
| 155 | |
| 156 | def reserve : Padded (Out X Y) n → ForcedAddress G n := Sum.elim |
| 157 | (stationed X Y I hI hQ test) fun i => |
| 158 | ⟨{i.2},{i.2},Finset.singleton_nonempty _,Finset.Subset.refl _,fun _ => False⟩ |
| 159 | |
| 160 | def forced := reserve X Y I hI hQ test ∘ (codec (Out X Y) n).symm |
| 161 | |
| 162 | def imprint (u : Config G n → ι → ℝ) (d : Config G n → κ → ℝ) (v : Clusters ι → ℝ) |
| 163 | (i : Padded (Out X Y) n) (V : Config G n) := |
| 164 | padEval (Restore.K X Y I (RG.flags p.threshold V) (u V) (d V) v) i |
| 165 | |
| 166 | def body (u : Config G n → ι → ℝ) (d : Config G n → κ → ℝ) (v : Clusters ι → ℝ) := |
| 167 | imprint X Y I p u d v ∘ (codec (Out X Y) n).symm |
| 168 | |
| 169 | /-- The raw reconnected activity data with all signs. Not yet |
| 170 | asserting contraction, test-affine Hessian, mask changes etc. -/ |
| 171 | def print (u : Config G n → ι → ℝ) (d : Config G n → κ → ℝ) (v : Clusters ι → ℝ) : |
| 172 | Activities G n := ⟨reg X,forced X Y I hI hQ test,E X u v,body X Y I p u d v⟩ |
| 173 | |
| 174 | def gasAt (u : Config G n → ι → ℝ) (d : Config G n → κ → ℝ) (v : Clusters ι → ℝ) (V : Config G n) := |
| 175 | gasTerm (location X Y) (flagsOut X Y I) (RG.flags p.threshold V) |
| 176 | (Restore.K X Y I (RG.flags p.threshold V) (u V) (d V) v) |
| 177 | |
| 178 | lemma gas_distance (u : Config G n → ι → ℝ) (d : Config G n → κ → ℝ) (v : Clusters ι → ℝ) (V : Config G n) : |
| 179 | let g := gasAt X Y I p u d v V |
| 180 | let A := print X Y I hI hQ p test u d v |
| 181 | (Summable (fun i => ‖A.gasOccurrence p i V‖) ↔ Summable (fun i => ‖g i‖)) ∧ |
| 182 | A.gas p V = ∑' i,g i := by |
| 183 | intro g A |
| 184 | let e := (padEmb (Out X Y) n).trans (codec (Out X Y) n).toEmbedding |
| 185 | let L := fun i => (A.forced i).support |
| 186 | let M := fun i => (A.forced i).inventory |
| 187 | let F := fun i => A.K i V |
| 188 | have he (i) (hi:F i≠0) : i∈Set.range e := by |
| 189 | obtain ⟨t,rfl⟩ := (codec (Out X Y) n).surjective i |
| 190 | rcases t with t|t |
| 191 | · exact ⟨t,rfl⟩ |
| 192 | refine (hi ?_).elim |
| 193 | change imprint X Y I p u d v ((codec _ _).symm ((codec _ _) (Sum.inr _))) V = 0; rw [Equiv.symm_apply_apply]; rfl |
| 194 | have hx : (fun s => A.gasOccurrence p s V)=gasTerm L M (RG.flags p.threshold V) F := by |
| 195 | funext i |
| 196 | unfold Activities.gasOccurrence gasTerm Records Apart Activities.admissible |
| 197 | congr! -- classical guard |
| 198 | have hL : (fun i => L (e i)) = location X Y := by |
| 199 | funext i |
| 200 | change (reserve X Y I hI hQ test ((codec _ _).symm ((codec _ _) (Sum.inl i)))).support = _ |
| 201 | rw [Equiv.symm_apply_apply]; rfl |
| 202 | have hM : (fun i => M (e i)) = flagsOut X Y I := by |
| 203 | funext i |
| 204 | change (reserve X Y I hI hQ test ((codec _ _).symm ((codec _ _) (Sum.inl i)))).inventory = _ |
| 205 | rw [Equiv.symm_apply_apply]; rfl |
| 206 | have hF : (fun i => F (e i)) = Restore.K X Y I (RG.flags p.threshold V) (u V) (d V) v := by |
| 207 | funext i |
| 208 | change imprint X Y I p u d v ((codec _ _).symm ((codec _ _) (Sum.inl i))) V = _ |
| 209 | rw [Equiv.symm_apply_apply]; rfl |
| 210 | have hz := project_forced e L M (RG.flags p.threshold V) F he |
| 211 | dsimp only at hz; rw [hL,hM,hF,← hx] at hz; exact hz |
| 212 | |
| 213 | /-- Insert the theory's OWN coarse denominator & path choices on |
| 214 | the unnormalized vacuum representation. Here B is LOG of scalar at |
| 215 | this volume (may already include pStep.R.v from the incoming cutoff). |
| 216 | Path/loop normalization and beta calibration are separately required! |
| 217 | -/ |
| 218 | def insert (u : Config G n → ι → ℝ) (d : Config G n → κ → ℝ) (v : Clusters ι → ℝ) |
| 219 | (R : PathData G) (c : Clip) (β B : ℝ) : Rep G n := |
| 220 | ⟨R,c,print X Y I hI hQ p test u d v,p,β,(B+∑' i,v i)/(Fintype.card (Site n))⟩ |
| 221 | |
| 222 | include hX in |
| 223 | lemma recovers (u : Config G n → ι → ℝ) (d : Config G n → κ → ℝ) (v : Clusters ι → ℝ) |
| 224 | (R : PathData G) (c : Clip) (β B : ℝ) (V : Config G n) |
| 225 | (h : Summable (fun i => ‖maskedIn X p u v V i‖)) (_hh : Summable (fun i => ‖gasAt X Y I p u d v V i‖)) (_hv : Summable fun i => ‖v i‖) : |
| 226 | let τ := insert X Y I hI hQ p test u d v R c β B |
| 227 | τ.eval V = (Real.exp B * Real.exp (-R.inChannels c p β V)) * |
| 228 | (Real.exp ((∑' i,v i) - ∑' i,maskedIn X p u v V i)*(∑' i, gasAt X Y I p u d v V i)) := by |
| 229 | intro T |
| 230 | unfold Rep.eval Rep.exponent T insert |
| 231 | dsimp only |
| 232 | rw [(gas_distance X Y I hI hQ p test u d v V).2, Activities.additive] |
| 233 | change Real.exp (_ - _ - ∑' i,earned X p u v V i) * _ = _ |
| 234 | rw [(additive_series X hX p u v V h).2] |
| 235 | rw [div_mul_cancel₀ _ (by positivity),← Real.exp_add,← mul_assoc,← Real.exp_add]; congr 2; ring |
| 236 | |
| 237 | include hX |
| 238 | |
| 239 | end Publish |
| 240 | end YM.Push.LogIdentity.Emit |