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.SOURCE_HISTORIES.Birth |
| 2 | import YM.Extra.SOURCE_HISTORIES.Replay |
| 3 | |
| 4 | /-! |
| 5 | # Placed composition . Output choices pinned. |
| 6 | |
| 7 | Call birth and the one-level theorem on every step where the stencil and |
| 8 | costs fit. This is an **actual construction conditional** on precise |
| 9 | one-block analytic estimates, sufficient entrance prices and address shelf, |
| 10 | on a supplied history. Includes N=reference. No need to adjust stages after |
| 11 | the construction; have to pass these same prices in! |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Extra.Histories |
| 16 | open Lattice Wilson RG Source Function Filter Set MeasureTheory Bid Labels Motion |
| 17 | open scoped Topology BigOperators Matrix.Norms.Frobenius ContDiff |
| 18 | |
| 19 | variable {G : Gauge} {d : ℕ} {F : Labels.Frame G d} |
| 20 | variable (B : SectionData F) (H : History G) (N p : ℕ) (A : Hol G) |
| 21 | |
| 22 | structure Music (F : Labels.Frame G d) (H : History G) (N p : ℕ) where |
| 23 | tone : ∀ m, Voice F H p m |
| 24 | |
| 25 | namespace Music |
| 26 | variable {N p} (V : Music F H N p) |
| 27 | |
| 28 | def draft : Paper H N p F where |
| 29 | inits m := (V.tone m).plays |
| 30 | paid m := (V.tone m).charge |
| 31 | end Music |
| 32 | |
| 33 | /-- The top always uses the fixed B and frame F, same shelf & chosen |
| 34 | docket for all v. -/ |
| 35 | def topVoice (Y : Shelf (H.rep N p N).activities) (q : ℕ) : Voice F H p N where |
| 36 | plays := born B _ 0 Y q |
| 37 | charge v := F.coeffSize (F.core v) |
| 38 | index := LinearEquiv.refl ℂ _ |
| 39 | |
| 40 | structure OnTop (V : Voice F H p N) : Prop where |
| 41 | heard : Heard B H N p A N V |
| 42 | out v : (V.plays v).x = v |
| 43 | germ v : (V.plays v).regular=0 |
| 44 | cost v : V.charge v ≤ F.coeffSize (F.core v) |
| 45 | earns v U : (V.plays v).density 0 B (H.rep N p N) U = ((H.S.a N:ℂ)^d)* |
| 46 | ((H.rep N p N).eval U:ℂ) * initial B H N p v 0 U |
| 47 | |
| 48 | theorem onTop (h : H.Selected) (hS : B.Sound A) (Y : Shelf (H.rep N p N).activities) (q : ℕ) {C : ℝ} (hc : 1 ≤ C) |
| 49 | (ht : ∀ (i : F.Index) (U : Config G (H.S.side N p)), ‖B.places (Size.axis F i) 0 U‖ ≤ C) |
| 50 | (he : fee F (H.levels.budget N) (B.footprint (0:Site (H.S.side N p))) C (H.levels.clock.forcedAllowance N) ≤ |
| 51 | Real.sqrt (H.levels.clock.forcedAllowance N)) : OnTop B H N p A (topVoice B H N p Y q) := by |
| 52 | let R := H.rep N p N |
| 53 | have hv : R.p = H.levels.budget N := (h.represents N p N le_rfl).vac |
| 54 | obtain ⟨hp,hs⟩ := launched B R 0 Y hS (h.represents N p N le_rfl).good (forcedPos _ N) hc ht (hv.symm ▸ he) q |
| 55 | let V := topVoice B H N p Y q |
| 56 | let t := H.levels.clock.threshold N |
| 57 | have hb : R.p.threshold=t := congr_arg BudgetPoint.threshold hv |
| 58 | let i (v : F.Coeff) := B.places (F.scaled t⁻¹ v) (0:Site (H.S.side N p)) |
| 59 | let Z (v) := (V.plays v).density 0 B R |
| 60 | have ha (v U) : Z v U=liftVac H N p N U * i v U := by |
| 61 | unfold i; rw [← hb]; exact (hs v).2.2 U |
| 62 | refine ⟨⟨hp,fun v => ⟨(hs v).1,(hs v).2.1⟩,fun _ => rfl,fun v => ?_,?_,fun _ _ => rfl,rfl,?_,?_⟩, |
| 63 | fun _ => rfl,fun _ => rfl,fun _ => le_rfl,fun v U => ?_⟩ |
| 64 | · exact le_mul_of_one_le_left (Work.G08.size_nonneg ..) (H.levels.params _).columns_ge |
| 65 | · intro i j; change F.coeffSize (F.core (i+j)) ≤ _; rw [map_add]; exact Size.add F .. |
| 66 | · change IsLinearMap ℂ Z |
| 67 | have he : IsLinearMap ℂ i := by |
| 68 | constructor |
| 69 | · intro a b; funext U; simp [i,SectionData.places,B.eval_linear.map_add] |
| 70 | intro a b; funext U; simp [i,SectionData.places,B.eval_linear.map_smul] |
| 71 | constructor |
| 72 | · intro a b; funext U; simp [ha,he.map_add,mul_add] |
| 73 | intro a b; funext U; simp [ha,he.map_smul]; ring |
| 74 | · have hbar (x : F.Coeff) : i (star x)=star (i x) := by |
| 75 | unfold i |
| 76 | have ht : F.scaled t⁻¹ (star x)=star (F.scaled t⁻¹ x) := funext fun j => by simp |
| 77 | funext U; rw [ht]; exact hS.ordinary_real .. |
| 78 | have ht (s : Signed) (v) (U) : i (F.act s.ortho v) U=i v (pull s 0 U) := by |
| 79 | unfold i; rw [B.placed_signed hS, F.scaling]; simp [affine] |
| 80 | intro v s; funext U |
| 81 | change scalar s (Z v (pull _ _ U))=Z (Motion.patch F s v) U |
| 82 | simp only [ha,scalar_mul,vac_pull H N p N h le_rfl] |
| 83 | rw [show scalar s (liftVac H N p N U)=liftVac H N p N U from scalar_real ..] |
| 84 | unfold scalar Motion.patch; split |
| 85 | · rw [hbar]; simp [ht] |
| 86 | rw [ht] |
| 87 | change Z v U = _ |
| 88 | rw [ha,initial] |
| 89 | have hj : (H.S.a N:ℂ)^d ≠ 0 := pow_ne_zero _ (Complex.ofReal_ne_zero.mpr (H.S.a_pos N).ne') |
| 90 | simp only [liftVac,i,t,Pi.smul_apply,smul_eq_mul]; field_simp |
| 91 | |
| 92 | variable (W : Worth) |
| 93 | |
| 94 | structure Sung (r : ℕ) (V : Music F H N p) : Prop where |
| 95 | head : OnTop B H N p A (V.tone N) |
| 96 | ahead : r ≤ N |
| 97 | earned m (hm : r ≤ m) (ht : m ≤ N) : Heard B H N p A m (V.tone m) |
| 98 | step m (hm : r ≤ m) (ht : m<N) : Responds B H N p W m (V.tone (m+1)) (V.tone m) |
| 99 | |
| 100 | theorem Sung.clocks (r : ℕ) (V : Music F H N p) (h : Sung B H N p A W r V) : Paper.Clocks (V.draft H) B A W r := by |
| 101 | refine ⟨h.ahead, fun m hm hp => (h.earned m hm hp).earns,h.head.cost,fun m hm hp => (h.step m hm hp).tally, |
| 102 | fun m hm hp => (h.step m hm hp).values,h.head.earns,fun v => ⟨h.head.out v,h.head.germ v⟩,fun i hi he => ?_, |
| 103 | fun i hi he => ?_,fun i hi he v => ?_⟩ |
| 104 | · have ht := h.earned i hi he; exact (ht.currents _).trans ht.unit |
| 105 | · have he := (h.earned i hi he).book; exact ⟨he.x,he.reg,he.f,he.tags⟩ |
| 106 | let y := V.tone i |
| 107 | have he := h.earned i hi he |
| 108 | have hf (s) : Motion.patch F s (y.plays v).x=(y.plays (Motion.patch F s v)).x := by |
| 109 | unfold y; rw [he.currents,he.currents,he.moves] |
| 110 | refine ⟨?_,fun s => (hf (s,false)).symm⟩ |
| 111 | have ha := (hf (1,true)).symm |
| 112 | unfold Motion.patch at ha; simp only [if_true] at ha |
| 113 | simpa only [Music.draft,y,show (1:Signed).ortho=1 from map_one Signed.inclusionO, Frame.act_one] using ha |
| 114 | |
| 115 | /-- Compose to the chosen reference. Builds a `Music` with SAME topVoice, |
| 116 | and stronger `Heard` invariant at every fitted stage. -/ |
| 117 | theorem pursue (h : H.Selected) (hw : roomCost H.levels W) (hb : Bank W H.levels) (r : ℕ) (hr : r≤N) |
| 118 | (V : Voice F H p N) (hu : OnTop B H N p A V) |
| 119 | (calls : ∀ m : ℕ, r ≤ m → m<N → ∃ (C η : ℝ), ∃ T : Heading F, Buys H F W m C η ∧ AtomStep B H N p m A T C η) : |
| 120 | ∃ M : Music F H N p,M.tone N=V ∧ Sung B H N p A W r M := by |
| 121 | classical |
| 122 | induction hr using Nat.decreasingInduction with |
| 123 | | self => |
| 124 | let a (m : ℕ) : Voice F H p m := ⟨fun _ => primary 0 0, fun _ => 0,LinearEquiv.refl ℂ _⟩ |
| 125 | let M : Music F H N p := ⟨update a N V⟩ |
| 126 | have he : M.tone N=V := update_self N V a |
| 127 | refine ⟨M,he,⟨he.symm ▸ hu, le_rfl, fun i hi ht => ?_, fun i hi ht => by omega⟩⟩ |
| 128 | obtain rfl : i=N := le_antisymm ht hi |
| 129 | rw [he]; exact hu.heard |
| 130 | | of_succ k hk ih => |
| 131 | obtain ⟨M,hM,hS⟩ := ih fun i hi => calls i (by omega) |
| 132 | obtain ⟨C,η,T,hT,hQ⟩ := calls k le_rfl hk |
| 133 | obtain ⟨v,hv,hV⟩ := reprise B H N p A W k (M.tone (k+1)) h hk (hS.earned (k+1) le_rfl hk) hw hb T hQ hT |
| 134 | let t : Music F H N p := ⟨update M.tone k v⟩ |
| 135 | have hh : t.tone k=v := update_self k v M.tone |
| 136 | have hu (i : ℕ) (hi : k < i) : t.tone i=M.tone i := update_of_ne hi.ne' v M.tone |
| 137 | refine ⟨t,(hu N hk).trans hM,?_,hk.le, fun i hi he => ?_,fun i hi he => ?_⟩ |
| 138 | · rw [hu _ hk]; exact hS.head |
| 139 | · obtain h|h := lt_or_eq_of_le hi |
| 140 | · rw [hu _ h]; exact hS.earned i h he |
| 141 | subst i; rw [hh]; exact hv |
| 142 | obtain h|h := lt_or_eq_of_le hi |
| 143 | · rw [hu i h,hu (i+1) (by omega)]; exact hS.step i h he |
| 144 | subst i; rw [hu (k+1) k.lt_succ_self,hh]; exact hV |
| 145 | |
| 146 | end YM.Extra.Histories |