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.Analysis.Polydisc |
| 2 | import YM.SectorNext.RECONNECTED_LOCALITY.Brochures |
| 3 | import YM.Work.E09 |
| 4 | |
| 5 | |
| 6 | set_option warningAsError false |
| 7 | |
| 8 | /-! |
| 9 | # Missing unforced clusters & failed masks/integrated halo attachments |
| 10 | |
| 11 | Variant with one address per missing Rose (resp. correction) and |
| 12 | *identity-restoring* $e^x-1$ at that address, rather than terms from a |
| 13 | multiset expansion. Require every selected attachment to intersect the ORIGINAL |
| 14 | support of one selected d (when $x$ is a failed-mask potential, its failure |
| 15 | in a covered term already guarantees this; for the Rose address use exactly |
| 16 | this rule to detect clusters omitted in the pressure). Keep original disjointness, |
| 17 | coverage and *all* extra predicates within new connected components. Do not |
| 18 | turn overlaps of attachments with internal d into prior d incompatibilities. |
| 19 | -/ |
| 20 | set_option autoImplicit false |
| 21 | noncomputable section |
| 22 | namespace YM.SectorNext.Reconnect |
| 23 | open Function Filter RG Lattice Wilson Words MeasureTheory Finset |
| 24 | open scoped Classical |
| 25 | |
| 26 | variable {G : Gauge} {c : Side} {ι β τ : Type*} |
| 27 | |
| 28 | structure Riser (G : Gauge) (c : Side) (ι : Type*) where |
| 29 | bank : ι → Support c |
| 30 | solid i : (bank i).Nonempty |
| 31 | call : ι → Config G c → ℝ |
| 32 | |
| 33 | namespace Riser |
| 34 | variable (X : Riser G c ι) (D : Brand G c β) (P : BudgetPoint) |
| 35 | |
| 36 | abbrev Letter (β ι : Type*) := β ⊕ ι |
| 37 | -- bank is attachment cost (complete support). B d already local on D.range incl final-read exceptions. |
| 38 | def scope (i : Letter β ι) := i.elim D.range X.bank |
| 39 | def flag (_X : Riser G c ι) (i : Letter β ι) := i.elim D.require (fun _ => (∅:Support c)) |
| 40 | |
| 41 | def phase (i : Letter β ι) (U : Config G c) : ℝ := |
| 42 | i.elim (fun i=>D.ink i U) (fun i=>Real.exp (X.call i U)-1) |
| 43 | |
| 44 | def rawEligible (i : Letter β ι) (s : Finset (Letter β ι)) := i.elim |
| 45 | (fun i => ∀ j∈s.toLeft,i≠j → Disjoint (D.range i) (D.range j)) |
| 46 | (fun i => ∃ j∈s.toLeft,¬Disjoint (X.bank i) (D.range j)) |
| 47 | |
| 48 | lemma live : Retained (X.scope D) (X.rawEligible D) := by |
| 49 | have hx (i : Letter β ι) (s b : Finset (Letter β ι)) (h : ∀ l,¬Disjoint (X.scope D i) (X.scope D l) → (l∈s↔l∈b)) |
| 50 | (he : rawEligible X D i s) : rawEligible X D i b := by |
| 51 | rcases i with i|i |
| 52 | · intro j hj hn; by_contra hh |
| 53 | have hx : Disjoint (D.range i) (D.range j) := he _ (Finset.mem_toLeft.mpr ((h (.inl j) hh).2 (Finset.mem_toLeft.mp hj))) hn |
| 54 | exact hh hx |
| 55 | obtain ⟨j,hj,hr⟩:= (show ∃ j∈s.toLeft, ¬Disjoint (X.bank i) (D.range j) from he) |
| 56 | exact ⟨j, Finset.mem_toLeft.mpr ((h (.inl j) hr).1 (Finset.mem_toLeft.mp hj)),hr⟩ |
| 57 | intro i s b h; exact propext ⟨hx _ _ _ h, hx _ _ _ (fun l e => (h l e).symm)⟩ |
| 58 | |
| 59 | lemma covered (t : Letter β ι) : X.flag D t ⊆ X.scope D t := by |
| 60 | cases t |
| 61 | · exact (D.forced _).inventory_sup |
| 62 | exact Finset.empty_subset _ |
| 63 | |
| 64 | lemma aboard (t : Letter β ι) : (X.scope D t).Nonempty := by cases t; exact D.active _; exact X.solid _ |
| 65 | |
| 66 | lemma key (s : Finset (Letter β ι)) : region (X.flag D) s=s.toLeft.biUnion D.require := by |
| 67 | ext i |
| 68 | simp only [region,Finset.mem_biUnion,Finset.mem_toLeft] |
| 69 | constructor |
| 70 | · rintro ⟨j,hj,H⟩; rcases j with j|j |
| 71 | · exact ⟨j,hj,H⟩ |
| 72 | exact (Finset.notMem_empty i H).elim |
| 73 | rintro ⟨j,hj,H⟩; exact ⟨.inl _,hj,H⟩ |
| 74 | |
| 75 | lemma orders (s : Finset (Letter β ι)) : permits (rawEligible X D) s ↔ |
| 76 | ((s.toLeft : Set β).PairwiseDisjoint D.range ∧ ∀ i∈s.toRight,∃ j∈s.toLeft, ¬Disjoint (X.bank i) (D.range j)) := by |
| 77 | refine ⟨fun h => ⟨fun i hi j hj => (show ∀ k∈_,_ from h (.inl i) (mem_toLeft.mp hi)) j hj,fun i hi => h (.inr i) (mem_toRight.mp hi)⟩,?_⟩ |
| 78 | rintro ⟨h1,h2⟩ (i|i) hi |
| 79 | · exact fun j hj => h1 (mem_toLeft.mpr hi) hj |
| 80 | exact h2 i (mem_toRight.mpr hi) |
| 81 | |
| 82 | abbrev Wagon := {s : Finset (Letter β ι) // Ac.Spark (X.scope D) s ∧ permits (rawEligible X D) s} |
| 83 | |
| 84 | instance [Countable ι] [Countable β] : Countable (X.Wagon D) := by unfold Wagon; infer_instance |
| 85 | |
| 86 | /-- Each merged address necessarily carries at least one OLD d occurrence. -/ |
| 87 | theorem forced (s : X.Wagon D) : s.val.toLeft.Nonempty := by |
| 88 | obtain ⟨i,hi⟩:=s.property.1.1; rcases i with i|i |
| 89 | · exact ⟨i,mem_toLeft.mpr hi⟩ |
| 90 | obtain ⟨j,hj,_⟩:=((X.orders D _).1 s.property.2).2 i (mem_toRight.mpr hi) |
| 91 | exact ⟨j,hj⟩ |
| 92 | |
| 93 | def route (s : X.Wagon D) : ForcedAddress G c where |
| 94 | support:=region (X.scope D) s.val |
| 95 | inventory:=region (X.flag D) s.val |
| 96 | inventory_ne:=by |
| 97 | rw [key]; obtain ⟨i,hi⟩:=X.forced D s; obtain ⟨x,hx⟩:=(D.forced i).inventory_ne |
| 98 | exact ⟨x,Finset.mem_biUnion.mpr ⟨i,hi,hx⟩⟩ |
| 99 | inventory_sup:=region_inventory (covered X D) _ |
| 100 | extraTest x := ∀ i ∈ s.val.toLeft,(D.forced i).eligible P.threshold x |
| 101 | |
| 102 | /-- New forced label. Test on old V predicates and the new *final centers*; overlaps |
| 103 | formed using bank union and D.range, so UsedFinal is passed on those, without retroactive |
| 104 | enlargement. When integrating THESE U flags later must use e.g. `inspected` before merging again. -/ |
| 105 | def fused : Brand G c (X.Wagon D) := { |
| 106 | forced:=X.route D P |
| 107 | ink:=fun s V => if (X.route D P s).eligible P.threshold V then ∏ i∈s.val,X.phase D i V else 0 } |
| 108 | |
| 109 | lemma chamber (V : Config G c) (s : X.Wagon D) (h : D.Names P) : |
| 110 | clause (X.rawEligible D) (X.scope D) (X.flag D) (flags P.threshold V) |
| 111 | (fun p => ∏ i∈p,X.phase D i V) s.val = (X.fused D P).ink s V := by |
| 112 | unfold clause Brand.ink fused ForcedAddress.eligible route |
| 113 | simp only [s.property.2,true_and] |
| 114 | split_ifs with he hq |
| 115 | · rfl |
| 116 | · by_contra hn |
| 117 | have hv (i : β) (hi : i∈s.val.toLeft) := prod_ne_zero_iff.mp hn (.inl i) (mem_toLeft.mp hi) |
| 118 | exact hq ⟨he,fun i hi => h.permits i V (hv i hi)⟩ |
| 119 | rename_i H; exact absurd H.1 he |
| 120 | rfl |
| 121 | |
| 122 | def extra (Y : Support c) (i : ι) (U : Config G c) := if Disjoint (X.bank i) Y then 0 else X.call i U |
| 123 | |
| 124 | def toll (V : Config G c) (b : Finset β) := D.record P V b * |
| 125 | Real.exp (∑' i,X.extra (b.biUnion D.range) i V) |
| 126 | |
| 127 | set_option maxHeartbeats 400000 in |
| 128 | /-- Main bridge already evaluating the REAL restored gas, conditional on retained d and |
| 129 | payments for those and the arriving exponent letters (before even pricing fused). |
| 130 | The masks and old flag predicates are genuine evaluations. |
| 131 | -/ |
| 132 | theorem luggage (h : D.Names P) {a ε : ℝ} (H : D.Charged P a ε) (ha : 0≤a) |
| 133 | (he : Dominated X.call) (V : Config G c) : |
| 134 | HasSum ((X.fused D P).record P V) (∑' b,toll X D P V b) := by |
| 135 | let p:=fun i => X.phase D i V |
| 136 | let f:= fun s => if permits (X.rawEligible D) s ∧ region (X.flag D) s=flags P.threshold V then |
| 137 | ∏ i∈s,p i else 0 |
| 138 | let c' := clause (X.rawEligible D) (X.scope D) (X.flag D) (flags P.threshold V) (fun s => ∏ i∈s,p i) |
| 139 | let g := openOccurrence (X.scope D) (X.flag D) (flags P.threshold V) c' |
| 140 | let A:=X.fused D P |
| 141 | have hw (r : ℝ) : HasSum f r ↔ HasSum g r := by |
| 142 | refine layout_sum (live X D) (covered X D) (flags P.threshold V) _ _ ?_ _ |
| 143 | intro s _ _ |
| 144 | nth_rw 1 [← Ac.reconstruct (scope X D) s] |
| 145 | exact prod_biUnion (Ac.different ..) |
| 146 | have hg : HasSum g (∑' b,toll X D P V b) := by |
| 147 | apply (hw _).mp |
| 148 | let e := (Finset.sumEquiv : Finset (Letter β ι) ≃o Finset β × Finset ι).toEquiv |
| 149 | -- rolling out per selected d family, signed attachment activated iff incidence. |
| 150 | let Y b := (Finset.biUnion b D.range) |
| 151 | let w b i := Real.exp (X.extra (Y b) i V)-1 |
| 152 | have hf (b : Finset β) (u : Finset ι) : (f ∘ e.symm) (b,u)=D.record P V b * ∏ i∈u,w b i := by |
| 153 | change f (b.disjSum u)=_ |
| 154 | unfold f |
| 155 | rw [orders,key,toLeft_disjSum,toRight_disjSum] |
| 156 | rw [prod_disjSum] |
| 157 | unfold Brand.record Brand.covered |
| 158 | let T := fun i : ι => ¬Disjoint (X.bank i) (Y b) |
| 159 | have ht i : T i ↔ ∃ j∈b,¬Disjoint (X.bank i) (D.range j) := by |
| 160 | unfold T Y; simp [Finset.disjoint_left] |
| 161 | grind |
| 162 | simp_rw [← ht] |
| 163 | by_cases hA : (b : Set β).PairwiseDisjoint D.range ∧ b.biUnion D.require=flags P.threshold V |
| 164 | · rw [if_pos hA] |
| 165 | by_cases hv : ∀ i∈u,T i |
| 166 | · rw [if_pos ⟨⟨hA.1,hv⟩,hA.2⟩,prod_congr rfl (g:=w b) (f:=fun j : ι => p (.inr j)) |
| 167 | (fun j hj => by unfold p phase w extra; rw [if_neg (hv _ hj)]; rfl)] |
| 168 | rfl |
| 169 | obtain ⟨i,hi,hni⟩ : ∃ i∈u,¬T i := by push Not at hv; exact hv |
| 170 | rw [if_neg (fun hm => hv hm.1.2), prod_eq_zero hi (show w b i=0 from by |
| 171 | unfold w extra; rw [if_pos (of_not_not ‹¬ T i›)]; simp)]; ring |
| 172 | rw [if_neg hA, if_neg (fun ht => hA ⟨ht.1.1,ht.2⟩)]; ring |
| 173 | -- common summable w majorant over all b |
| 174 | let z i:= Real.exp (X.call i V)-1 |
| 175 | have hz : Summable z := by |
| 176 | have hp:=he.absolute V |
| 177 | refine (hp.mul_left 2).of_norm_bounded_eventually ?_ |
| 178 | filter_upwards [hp.tendsto_cofinite_zero.eventually_le_const zero_lt_one] with i hi |
| 179 | exact Real.abs_exp_sub_one_le hi |
| 180 | have hs : Summable (f ∘ e.symm) := by |
| 181 | apply Summable.of_norm_bounded (g:=fun x : Finset β × Finset ι => ‖D.record P V x.1‖*∏ i∈x.2,‖z i‖) |
| 182 | (summable_mul_of_summable_norm (f:=fun x => ‖D.record P V x‖) (g:=fun x => ∏ i∈x,‖z i‖) |
| 183 | ((Brand.liable D H ha).absolute V).norm (summable_finsetProd_of_summable_norm (f:=fun i => ‖z i‖) hz.norm.norm).norm) |
| 184 | rintro ⟨b,u⟩; change ‖(f ∘ e.symm) (b,u)‖ ≤ _ |
| 185 | rw [hf,norm_mul,norm_prod]; apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) |
| 186 | apply Finset.prod_le_prod (fun _ _ => norm_nonneg _) |
| 187 | intro i _ |
| 188 | unfold w z extra; split; simp; exact le_rfl |
| 189 | have hw b : Summable (fun i => X.extra (Y b) i V) := by |
| 190 | refine (he.absolute V).of_norm_bounded fun i => ?_; unfold extra; split; simp; exact le_rfl |
| 191 | have hW b : Summable (w b) := by |
| 192 | refine hz.norm.of_norm_bounded fun i => ?_; unfold w z extra; split; simp; exact le_rfl |
| 193 | refine e.symm.hasSum_iff.mp (hs.hasSum_iff.mpr ?_) |
| 194 | rw [hs.tsum_prod]; apply tsum_congr; intro b |
| 195 | simp_rw [hf,tsum_mul_left,← tprod_one_add (summable_finsetProd_of_summable_norm (hW b).norm)] |
| 196 | unfold toll w; simp only [add_sub_cancel]; rw [← (hw b).hasSum.rexp.tprod_eq]; rfl |
| 197 | -- Now relabel g (which had tests inside) to the Wagon gas. Pieces etc preserve coverage; remove invalid p only. |
| 198 | let b := fun p : Finset (X.Wagon D) => p.image (Subtype.val (p:=fun _ => _)) |
| 199 | have hu i : g (b i)=A.record P V i := by |
| 200 | unfold g b openOccurrence Brand.record |
| 201 | have heq : Pieces (X.scope D) (b i) ∧ (b i).biUnion (region (X.flag D))=flags P.threshold V ↔ A.covered P V i := by |
| 202 | have eq : (image (Subtype.val : X.Wagon D → _) i).biUnion (region (X.flag D)) = i.biUnion A.require := by |
| 203 | rw [image_biUnion]; rfl |
| 204 | dsimp only [b] |
| 205 | rw [eq,Brand.covered] |
| 206 | refine and_congr_left fun _ => ?_ |
| 207 | constructor |
| 208 | · intro H q hq s hs hn |
| 209 | exact H.1 (Finset.mem_image_of_mem _ hq) (Finset.mem_image_of_mem _ hs) (mt Subtype.ext hn) |
| 210 | refine fun hr => ⟨fun q hq s hs hn => ?_,fun p hp => ?_⟩ |
| 211 | · obtain ⟨q,h0,rfl⟩:=Finset.mem_image.mp hq; obtain ⟨s,h1,rfl⟩:=Finset.mem_image.mp hs |
| 212 | exact hr h0 h1 (fun he => hn (congr_arg Subtype.val he)) |
| 213 | obtain ⟨p,hp,rfl⟩:=Finset.mem_image.mp hp; exact p.property.1 |
| 214 | split |
| 215 | · rename_i hv; rw [if_pos (heq.mp hv),prod_image Subtype.val_injective.injOn] |
| 216 | exact prod_congr rfl fun i _ => X.chamber D P V i h |
| 217 | rename_i hv; rw [if_neg (mt heq.mpr hv)] |
| 218 | have ho : Injective b:= Finset.image_injective Subtype.val_injective |
| 219 | have ht : Summable (A.record P V) := (hg.summable.comp_injective ho).congr (fun i => hu i) |
| 220 | refine ht.hasSum_iff.mpr <| (tsum_eq_tsum_of_ne_zero_bij (g:=A.record P V) (fun i => b i.val) (ho.comp Subtype.val_injective) |
| 221 | (show support g⊆_ from ?_) (fun i => hu i.val)).symm.trans hg.tsum_eq |
| 222 | intro i H |
| 223 | have he : ∀ j∈i, Ac.Spark (scope X D) j ∧ permits (X.rawEligible D) j := by |
| 224 | change g i≠0 at H |
| 225 | unfold g openOccurrence at H; split at H |
| 226 | · rename_i hS; intro j hj |
| 227 | have hh := prod_ne_zero_iff.mp H j hj |
| 228 | unfold c' clause at hh; split at hh |
| 229 | · rename_i ht; exact ⟨hS.1.2 j hj,ht.1⟩ |
| 230 | exact (hh rfl).elim |
| 231 | exact (H rfl).elim |
| 232 | let v : Finset (X.Wagon D):=i.subtype _ |
| 233 | have hv : b v=i := by |
| 234 | ext x |
| 235 | unfold b; rw [Finset.mem_image] |
| 236 | constructor |
| 237 | · rintro ⟨q,hq,rfl⟩; exact (Finset.mem_subtype).mp hq |
| 238 | intro hx; exact ⟨⟨x,he x hx⟩,by simp [v,hx],rfl⟩ |
| 239 | refine ⟨⟨v,?_⟩,hv⟩ |
| 240 | rw [mem_support,←hu,hv]; exact H |
| 241 | |
| 242 | end Riser |
| 243 | end YM.SectorNext.Reconnect |