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.ITERATION_NO_LOSS.ComplexDerivs |
| 2 | import YM.Next.SCHEDULE.Stadium |
| 3 | import YM.PhysicalNext.ACTUAL_SECTOR_FACTOR_DICTIONARY.Folios |
| 4 | import YM.PhysicalNext.ACTUAL_SECTOR_FACTOR_DICTIONARY.Postage |
| 5 | import YM.PhysicalNext.ACTUAL_SECTOR_FACTOR_DICTIONARY.Voice |
| 6 | |
| 7 | /-! Physical, unmarked gates. Keep q decisions even for still-owned |
| 8 | incoming sites; every coarse-frame likelihood (inclusive of denominators) |
| 9 | retained. -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.PhysicalNext.Dictionary.Voice.Check |
| 13 | open Function Filter Set Lattice RG Wilson Pressure Pressure.Tube Pressure.Stores Tree Precision Exterior MeasureTheory Matrix Bloch |
| 14 | open Next.Fluctuations Next.SectorChange Next.SectorChange.Rows Push.SectorMeasure Push.SectorMeasure.Oriented |
| 15 | open AnalyticBridge.Annulus AnalyticBridge.Annulus.Map |
| 16 | open AnalyticBridge.RelativeLogdet |
| 17 | open AnalyticBridge.LocalGaussian AnalyticBridge.LocalGaussian.Spot |
| 18 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius ContDiff InnerProductSpace |
| 19 | open Wires Geo Notify |
| 20 | variable {G : Gauge} {c f : Side} {S : StepData c f} (D : AnalyticBridge.LocalGaussian.Desk G S) |
| 21 | local notation "s₀" => D.betaHat |
| 22 | local notation "B" => radiusB D.betaHat |
| 23 | |
| 24 | inductive Test (c f : Side) : Type |
| 25 | | fine (i : Cell f) |
| 26 | | noise (i : Bond c) |
| 27 | | void (i : Site f) |
| 28 | | frame (i : Site c) |
| 29 | | predictor (i : Bond c) |
| 30 | | screen (i : Bond f) |
| 31 | |
| 32 | instance : Finite (Test c f) := by |
| 33 | let t : Cell f ⊕ Bond c ⊕ Site f ⊕ Site c ⊕ Bond c ⊕ Bond f → Test c f := Sum.elim Test.fine (Sum.elim Test.noise |
| 34 | (Sum.elim Test.void (Sum.elim Test.frame (Sum.elim Test.predictor Test.screen)))) |
| 35 | apply Finite.of_surjective t |
| 36 | rintro (i|i|i|i|i|i) |
| 37 | · exact ⟨.inl i,rfl⟩ |
| 38 | · exact ⟨.inr (.inl i),rfl⟩ |
| 39 | · exact ⟨.inr (.inr (.inl i)),rfl⟩ |
| 40 | · exact ⟨.inr (.inr (.inr (.inl i))),rfl⟩ |
| 41 | · exact ⟨.inr (.inr (.inr (.inr (.inl i)))), rfl⟩ |
| 42 | · exact ⟨.inr (.inr (.inr (.inr (.inr i)))), rfl⟩ |
| 43 | |
| 44 | -- at all touched projections (either end), deterministic even at |
| 45 | -- unrealized queries |
| 46 | def post (S : StepData c f) (i : Test c f) : Support c := match i with |
| 47 | | .fine i=> startPos S i |
| 48 | | .noise i=>pinPos i |
| 49 | | .void i=> (inspected {i}).image S.ratio.parent |
| 50 | | .frame i=>{i} |
| 51 | | .predictor i=>pinPos i |
| 52 | | .screen i=> (pinPos i).image S.ratio.parent |
| 53 | |
| 54 | def location (S : StepData c f) : Test c f→Site c |
| 55 | | .fine i=>S.ratio.parent i.1 |
| 56 | | .noise i=>i.1 |
| 57 | | .void i=>S.ratio.parent i |
| 58 | | .frame i=>i |
| 59 | | .predictor i=>i.1 |
| 60 | | .screen i=>S.ratio.parent i.1 |
| 61 | |
| 62 | lemma at_post (i : Test c f) : location S i ∈ post S i := by |
| 63 | cases i with |
| 64 | | fine i=>exact Finset.mem_image_of_mem _ (Work.E01.base_touched i) |
| 65 | | void i=>exact Finset.mem_image_of_mem _ (Finset.mem_union_left _ (Finset.mem_singleton_self i)) |
| 66 | | screen i=>exact Finset.mem_image_of_mem _ (Finset.mem_insert_self ..) |
| 67 | | _ => simp [post,location,pinPos] |
| 68 | |
| 69 | def films (i : Test c f) : Formula G S ℝ := fun F A b k V p=> |
| 70 | let u:= chosen D F k A k |
| 71 | let U:=skin D F A b k V p |
| 72 | match i with |
| 73 | | .fine i=>u.fineBit i U |
| 74 | | .noise i=>u.noiseBit i V U |
| 75 | | .void i=>D.qVoid b i U |
| 76 | | .frame i=>u.frameBit i U |
| 77 | | .predictor i=>u.connectorBit i U |
| 78 | | .screen i=> if Physical.openBond A F s₀ i then broad D.broadCut D.radius (aura D F A b k V p i) else 1 -- padded unit |
| 79 | |
| 80 | abbrev custody (i : ℕ) := (inspected (D.labels.forced i).support).image S.ratio.parent |
| 81 | |
| 82 | def cargo (i : ℕ) : Formula G S ℝ := fun F A b k V p=>D.labels.K i (skin D F A b k V p) |
| 83 | |
| 84 | def historical (g : Spot D) {b : Finset ℕ} : g.Gates b → Test c f ⊕ ℕ |
| 85 | | .inl (.inl i)=>.inl (.fine i) |
| 86 | | .inl (.inr (.inl i))=>.inl (.noise i) |
| 87 | | .inl (.inr (.inr (.inl i)))=>.inl (.frame i) |
| 88 | | .inl (.inr (.inr (.inr (.inl i))))=>.inl (.predictor i) |
| 89 | | .inl (.inr (.inr (.inr (.inr i))))=>.inl (.screen i.val.val) |
| 90 | | .inr (.inl i)=>.inr i.val |
| 91 | | .inr (.inr i)=>.inl (.void i) |
| 92 | |
| 93 | lemma admits (u : Spot D) {b : Finset ℕ} : Injective (historical D u (b:=b)) := by |
| 94 | rintro ((i|i|i|i|i)|i|i) ((j|j|j|j|j)|j|j) hj <;> |
| 95 | simp only [historical,Sum.inl.injEq,Sum.inr.injEq,reduceCtorEq,Test.fine.injEq,Test.noise.injEq, |
| 96 | Test.frame.injEq,Test.void.injEq,Test.screen.injEq,Test.predictor.injEq,Subtype.val_inj] at hj ⊢ <;> first | exact hj.elim | exact hj |
| 97 | |
| 98 | theorem true_gate (h : Route.Badge.App D) (F : Forest S.ratio) (A : Stores S) (k k₀ : S.Choices) (V : Config G c) (b : Finset ℕ) |
| 99 | (hv : A.flags=RG.flags (temp D.betaHat) V) (p : Refs G f) (i : (chosen D F k₀ A k).Gates b) : |
| 100 | let u := chosen D F k₀ A k |
| 101 | u.gate b i V (Print.see s₀ A F p)=Sum.elim (fun j=>films D j F A b k V p) (fun j=>cargo D j F A b k V p) (historical D u i) := by |
| 102 | intro u |
| 103 | obtain ⟨C,hC⟩:=h.earns A F V hv; obtain ⟨η,hη,hP⟩:=h.gaps A F V k hv |
| 104 | have he := Print.painted D.tube s₀ D.broadCut D.radius D.g k V h.aperture hC hη hP p |
| 105 | have hl : skin D F A b k V p = u.hard V (Print.see s₀ A F p):= he |
| 106 | rcases i with (i|i|i|i|i)|i|i |
| 107 | all_goals simp only [Spot.gate,Spot.test,historical,Sum.elim_inl,Sum.elim_inr,cargo,films] |
| 108 | · simp only [hl,fineBit,chosen,Route.Badge.camera,u] |
| 109 | · simp only [hl,noiseBit,chosen,Route.Badge.camera,u] |
| 110 | · simp only [hl,frameBit,chosen,Route.Badge.camera,u] |
| 111 | · simp only [hl,connectorBit,chosen,Route.Badge.camera,u] |
| 112 | · rw [if_pos (show Physical.openBond A F s₀ i.val.val from ⟨i,rfl⟩)] |
| 113 | exact congr_arg (broad D.broadCut D.radius) (Print.tinting D.tube s₀ D.broadCut D.radius D.g k i V h.aperture hC hη hP p).symm |
| 114 | · exact congr_arg (D.labels.K i.val) hl.symm |
| 115 | exact congr_arg (D.qVoid b i) hl.symm |
| 116 | |
| 117 | set_option maxHeartbeats 600000 in |
| 118 | lemma film (h : Route.Badge.App D) (i : Test c f) : Care D (post S i) (films D i) := by |
| 119 | obtain ⟨P,hP⟩:=h.valid.funds |
| 120 | obtain ⟨a,c₀,v,w,r,hR⟩:=h.valid.lawful |
| 121 | constructor |
| 122 | · intro F A b k |
| 123 | let U (z : Config G c × Refs G f) := skin D F A b k z.1 z.2 |
| 124 | have ht : Measurable U := Print.printed_meas D.tube s₀ D.broadCut D.radius D.g hP k A F h.valid.positive h.enough |
| 125 | have hm {f : Config G c × Refs G f → ℝ} (d : ℝ) (h : Measurable f) : Measurable (fun z=>D.profile.innerShare d (f z)) := |
| 126 | D.profile.smooth.continuous.measurable.comp ((h.div_const _).pow_const _) |
| 127 | cases i with |
| 128 | | fine i=> |
| 129 | unfold uncurry films; dsimp only [fineBit,chosen,Route.Badge.camera] |
| 130 | split |
| 131 | · exact measurable_const.sub (hm _ (toll_meas i ht)) |
| 132 | exact hm _ (toll_meas i ht) |
| 133 | | noise i=> |
| 134 | unfold uncurry films; dsimp only [noiseBit,chosen,Route.Badge.camera] |
| 135 | have hw : Measurable (fun z : Config G c × Refs G f => wire (S.prediction (U z) k) z.1 i) := wire_meas k i h.aperture.branched ht measurable_fst |
| 136 | split |
| 137 | · exact measurable_const.sub (hm (D.W*fiery G D.betaHat S.patch.L) hw) |
| 138 | exact hm (D.W*fiery G D.betaHat S.patch.L) hw |
| 139 | | void i=> |
| 140 | change Measurable (fun z => D.qVoid b i (U z)) |
| 141 | unfold Desk.qVoid |
| 142 | by_cases he : i∈D.Owners b |
| 143 | · simp only [he,true_or,↓reduceIte]; exact measurable_const |
| 144 | simp only [he,false_or] |
| 145 | exact Measurable.ite (ht ((RG.flags_open i _).measurableSet.compl)) measurable_const measurable_const |
| 146 | | frame i=> |
| 147 | unfold uncurry films; dsimp only [frameBit,chosen,Route.Badge.camera] |
| 148 | have hf : Continuous (fun z : Config G f=>expandAt (S.ratio.embed i) z) := by unfold expandAt; fun_prop |
| 149 | have hr : Measurable (fun z=> expandAt (S.ratio.embed i) (U z)) := hf.measurable.comp ht |
| 150 | have hu := (S.patch.frameMass_meas (C:=S.kernel) (G:=G) (k.1 i)).comp hr |
| 151 | exact (measurable_const (a:=(Fintype.card S.patch.FrameTag : ℝ))).mul hu |
| 152 | | predictor i=> |
| 153 | unfold uncurry films; dsimp only [connectorBit,chosen,Route.Badge.camera] |
| 154 | have hi := ((S.patch.predictorMass_meas (G:=G) (C:=S.kernel) (k.2 i)).comp (S.connector_meas h.aperture.branched k.1 i)).comp ht |
| 155 | exact (measurable_const (a:=(Fintype.card S.patch.Points : ℝ))).mul hi |
| 156 | | screen i=> |
| 157 | by_cases fl : Physical.openBond A F s₀ i |
| 158 | · unfold films uncurry; dsimp only; simp_rw [if_pos fl] |
| 159 | exact (broad_smooth _ _).continuous.measurable.comp |
| 160 | (Print.shade_meas D.tube D.betaHat D.broadCut D.radius D.g hP k A F h.valid.positive h.enough i) |
| 161 | unfold films uncurry; dsimp only; simp_rw [if_neg fl]; exact measurable_const |
| 162 | intro F F' A A' b b' k k' V V' p p' H |
| 163 | let X:=post S i; let o:=location S i |
| 164 | let U:=skin D F A b k V p; let U':=skin D F' A' b' k' V' p' |
| 165 | have hB:=h.aperture.scale |
| 166 | have hv : Shields (ambient D X) o (40*B) := covers_shield _ (at_post i) |
| 167 | have he : AgreeNear S.ratio.parent o (14*B) U U':=daily D h H o (at_post i) |
| 168 | have hf := Geo.Reads.visit H.fields (r:=B) (hv.shrink (by omega)); have hl := Geo.Reads.way H.fields (r:=B) (hv.shrink (by omega)) |
| 169 | have hi {i j : Site c} (ht : separation o i≤1) : TagNe S i 1 k k' := TagNe.close o B k k' hl (by omega) |
| 170 | have hr {j : Bond c} : j.1=o → (frameRate S k U j.1=frameRate S k' U' j.1 ∧ bondRate S k U j=bondRate S k' U' j) := fun hj=> |
| 171 | rates_local h.aperture.branched k k' U U' j (hi (by rw [hj,separation_self]; omega) (j:=j.1)) |
| 172 | (by rw [hj]; exact anchored he (by have := h.aperture.visits; omega)) |
| 173 | cases i with |
| 174 | | void i=> |
| 175 | have hg := H.owners i (halo_subset _ X (at_post (S:=S) (Test.void i))) |
| 176 | have hy := flags_agree D.input.p.threshold U U' {i} (ink D h H (Finset.Subset.refl _)) |
| 177 | change D.qVoid b i U=D.qVoid b' i U' |
| 178 | unfold Desk.qVoid |
| 179 | have hk : i∈RG.flags D.input.p.threshold U ↔ i ∈ RG.flags D.input.p.threshold U' := by |
| 180 | have hh := iff_of_eq (congr_arg (fun t : Finset (Site f)=> i∈t) hy) |
| 181 | simpa only [Finset.mem_inter,Finset.mem_singleton_self,true_and] using hh |
| 182 | simp_rw [propext hg,propext hk] |
| 183 | | fine i=> |
| 184 | unfold films; dsimp only; unfold fineBit |
| 185 | have hk := H.fields.cost i (show startPos S i⊆ ambient D X from halo_subset ..) |
| 186 | have hm := congr_arg G.chord (face_near (Work.E03.parent_step S) i U U' (anchored he (by omega))) |
| 187 | unfold toll |
| 188 | dsimp only [chosen, Route.Badge.camera,U,U'] at hk hm ⊢ |
| 189 | simp only [hk,hm]; split_ifs <;> rfl |
| 190 | | noise i=> |
| 191 | unfold films; dsimp only; unfold noiseBit |
| 192 | have hk := H.fields.aisle i (show pinPos i ⊆ ambient D X from halo_subset ..) |
| 193 | have hm := transmission D.tube D.betaHat U U' k k' h.aperture i (anchored he (by omega)) hl |
| 194 | have hn : V i=V' i := hf i (by change separation o o ≤ B; simp) |
| 195 | unfold wire |
| 196 | dsimp only [chosen,Route.Badge.camera,U,U'] at hk hm ⊢ |
| 197 | simp only [hk,hm,hn]; split_ifs <;> rfl |
| 198 | | frame i=> exact (hr (j:=(i,(0:Axis))) rfl).1 |
| 199 | | predictor i=>exact (hr (j:=i) rfl).2 |
| 200 | | screen i=> |
| 201 | have hx:=floor_reach D (e:=i) (Y:=X) (at_post (S:=S) (Test.screen i)) (by change separation _ _ ≤ _; rw [show location S (Test.screen i)=portOf S i from rfl,separation_self]; omega) hB |
| 202 | have hQ:=dress D h H hx.1 hx.2 |
| 203 | unfold films; dsimp only; rw [hQ.1,hQ.2.2] |
| 204 | |
| 205 | lemma packed (h : Route.Badge.App D) (i : ℕ) : Care D (custody D i) (cargo D i) := by |
| 206 | obtain ⟨P,hP⟩:=h.valid.funds |
| 207 | obtain ⟨a,c,v,w,r,hR⟩:=h.valid.lawful |
| 208 | have hp := hR.labels.forced.reads i |
| 209 | constructor |
| 210 | · intro F A b k; exact (hR.labels.forced.meas i).comp (Print.printed_meas D.tube D.betaHat D.broadCut D.radius D.g hP k A F h.valid.positive h.enough) |
| 211 | intro F F' A A' b b' k k' V V' p p' H |
| 212 | have he := ink D h H (Z:=inspected (D.labels.forced i).support) (Finset.Subset.refl _) |
| 213 | exact hp _ _ (agrees_mono he (fun w hx => Finset.mem_union_left _ hx)) (flags_agree _ _ _ _ he) |
| 214 | end YM.PhysicalNext.Dictionary.Voice.Check |