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.AnalyticBridge.SECTOR_AFFINE_JETS.GuardLog |
| 2 | |
| 3 | /-! |
| 4 | # The selected affine shift -- F0 even for Haar Y. Pass into real covariance |
| 5 | |
| 6 | Uses both frozen and active edges in their true orientation. The extra |
| 7 | `all` matrices in proof aren't Gram inputs; Gram only uses the |
| 8 | ACTIVE subarray. No hypotheses on receiving pairs realizing annuli. |
| 9 | -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.AnalyticBridge.SectorAffine.Offset |
| 13 | open Filter Function Lattice Wilson RG Precision Pressure Tree Exterior Bloch |
| 14 | open YM.Next YM.Next.Fluctuations YM.Next.SectorChange YM.Next.SectorChange.Rows |
| 15 | open YM.Push.Uniform (bolt Allows) |
| 16 | open YM.Push.SectorMeasure |
| 17 | open YM.FreeResolvent (Mark Bundle native Cost) |
| 18 | open YM.FreeResolvent.TestD Matrix |
| 19 | open scoped Topology ContDiff BigOperators InnerProductSpace Classical Matrix.Norms.Frobenius |
| 20 | |
| 21 | variable {G : Gauge} {c f : Side} {S : StepData c f} {P : Patch} {T : Tube G S} {F : Forest S.ratio} {A : Stores S} |
| 22 | {V : Config G c} {k : S.Choices} {x B d γ M C : ℝ} {n : ℕ} |
| 23 | |
| 24 | section f0 |
| 25 | variable (T : Tube G S) (x : ℝ) (A : Stores S) (F : Forest S.ratio) (k : S.Choices) (V : Config G c) |
| 26 | |
| 27 | def allData : Matrix (Receipt G S) (Coord G f) ℝ := Matrix.of fun i j => tape.symm |
| 28 | (selected T x V k (shots S x) A F (fineRay j)) i |
| 29 | |
| 30 | def f0 (q : Chi) (d : ℝ) (Y : LinkArray G (Frozen A x F)) : Prices G (Slots S) := |
| 31 | tape.symm (Rows.restrict x (shots S x) A F |
| 32 | (fixedBase T x V k+bump T x V k (Rows.input x A F (autoShell q d V Y)))) |
| 33 | |
| 34 | lemma pass {σ a Λ : ℝ} {c₀ : Clip} (hp : T.up.Bounds c₀ σ a Λ) (e : Directions G f) : |
| 35 | allData T x A F k V *ᵥ (tape.symm e) = tape.symm |
| 36 | (Rows.restrict x (shots S x) A F (bump T x V k e)) := by |
| 37 | let W := shots S x |
| 38 | let J : Directions G f →ₗ[ℝ] LogArray G (Slots S) := { |
| 39 | toFun := selected T x V k W A F |
| 40 | map_add' := fun a b => by unfold selected; rw [bump_add T x V k hp, restrict_add] |
| 41 | map_smul' := fun w a => by unfold selected; rw [bump_smul T x V k hp, restrict_smul]; rfl } |
| 42 | let L := colors.symm.toLinearMap ∘ₗ J ∘ₗ (colors (G:=G) (ι:=Bond f)).toLinearMap |
| 43 | have he : LinearMap.toMatrix' L=allData T x A F k V := by |
| 44 | ext i j; rw [LinearMap.toMatrix'_apply] |
| 45 | change tape.symm (selected T x V k W A F (axisPrice j)) i=_ |
| 46 | rw [show _=fineRay j from on_axis j]; rfl |
| 47 | rw [← he,LinearMap.toMatrix'_mulVec] |
| 48 | change tape.symm (J (tape (tape.symm e))) = _; rw [tape.apply_symm_apply]; rfl |
| 49 | |
| 50 | lemma f0_split {Pt : Teller G} (hp : Pt.Funds S T) (q : Chi) (d : ℝ) (Y : LinkArray G (Frozen A x F)) : |
| 51 | f0 T x A F k V q d Y = tape.symm (Rows.restrict x (shots S x) A F (fixedBase T x V k)) + |
| 52 | allData T x A F k V *ᵥ (tape.symm (Rows.input x A F (autoShell q d V Y))) := by |
| 53 | obtain ⟨a,b,h₁,h₂⟩ := hp.feeds |
| 54 | unfold f0; rw [restrict_add,pass _ _ _ _ _ _ h₁]; exact colors.symm.map_add .. |
| 55 | |
| 56 | lemma correct_f0 (G : Gauge) (P : Patch) (Pt : Teller G) : ∀ᶠ x : ℝ in atTop, |
| 57 | ∀ {c f : Side} (S : StepData c f) (T : Tube G S), S.patch=P → Pt.Funds S T → |
| 58 | ∀ (A : Stores S) (F : Forest S.ratio) (V : Config G c), A.flags=RG.flags (temp x) V → |
| 59 | ∀ (k : S.Choices) (q : Chi) (d : ℝ), f0 T x A F k V q d = Rows.source T x V k (shots S x) A F q d := by |
| 60 | filter_upwards [correct_base G P Pt] with x hx |
| 61 | intro c f S T hS hT A F V hA k q d |
| 62 | funext Y; unfold f0 Rows.source |
| 63 | rw [restrict_add, restrict_add,hx S T hS hT A F V hA k] |
| 64 | end f0 |
| 65 | |
| 66 | section costing |
| 67 | lemma nearby (hd : 0<d) : (native c).Volume (location (G:=G) S) d (FreeResolvent.torusPay |
| 68 | (Co S.patch.L (Axis × G.ColorIndex)) d) := by |
| 69 | let E := (Equiv.prodAssoc (Site f) Axis G.ColorIndex).trans (splitCo S.ratio (Axis × G.ColorIndex)) |
| 70 | have he := (FreeResolvent.volume c (Co S.ratio.count (Axis × G.ColorIndex)) d hd).comp E.injective |
| 71 | rw [show location S (G:=G)=Prod.fst ∘ E from funext fun j => by simp only [Function.comp_apply,E,Equiv.trans_apply,split_co]; rfl] |
| 72 | exact he |
| 73 | |
| 74 | lemma allData_cost (G : Gauge) (P : Patch) (Pt : Teller G) (hk : P.Branches Pt.bind G) (n : ℕ) : |
| 75 | ∃ d M : ℝ, 0<d ∧ 0<M ∧ ∀ᶠ x : ℝ in atTop, |
| 76 | ∀ {c f : Side} (S : StepData c f) (T : Tube G S), S.patch=P → 100*(1+radiusB x) ≤ c.val → |
| 77 | Pt.Funds S T → ∀ (A : Stores S) (F : Forest S.ratio) (V : Config G c), A.flags=RG.flags (temp x) V → |
| 78 | ∀ k : S.Choices, |
| 79 | Polar 0 (Wisps.down S) (location S) (fun z => allData T x A F k (pulse x V z)) n d M := by |
| 80 | obtain ⟨r,d,M,hr,hd,hM,h⟩ := selected_priced G P Pt hk n |
| 81 | let K := max (priceFiber P G d) (FreeResolvent.torusPay (Co P.L (Axis × G.ColorIndex)) d) |
| 82 | have hk : 0<K := lt_of_lt_of_le (priceFiber_pos ..) (le_max_left ..) |
| 83 | refine ⟨d,K*M,hd,mul_pos hk hM,?_⟩ |
| 84 | filter_upwards [monitors G P.L,h] with x hx ht |
| 85 | intro c f S T hP hF hT A F V hv k |
| 86 | let Q := fun z => allData T x A F k (field V z) |
| 87 | have he i j := ht S T hP hF hT A F V hv 0 (by simpa using hr.le) k i j |
| 88 | apply polar_compress (A:=Q) _ hx.1.le hx.2.1 |
| 89 | have hs : ContDiffAt ℝ n Q 0 := by |
| 90 | let W : ((Rows.Receipt G S) → Coord G f → ℝ) ≃L[ℝ] Matrix (Rows.Receipt G S) (Coord G f) ℝ := |
| 91 | (Matrix.ofLinearEquiv ℝ).toContinuousLinearEquiv |
| 92 | exact W.contDiff.contDiffAt.comp (0:PriceCoords G c) (show ContDiffAt ℝ n (fun x i j => Q x i j) |
| 93 | _ from contDiffAt_pi.mpr fun i => contDiffAt_pi.mpr fun j => (he i j).smooth.of_le le_top) |
| 94 | refine ⟨hs,fun l hl => ?_⟩ |
| 95 | have hA : (native c).Volume (location S (G:=G)) (2*d-d) K := by |
| 96 | rw [show 2*d-d=d by ring]; unfold K; rw [← hP]; exact (nearby hd).le (le_max_right ..) |
| 97 | have hB : (native c).Volume (Wisps.down S (G:=G)) (2*d-d) K := by |
| 98 | rw [show 2*d-d=d by ring]; unfold K; rw [← hP]; exact (fiber_volume S G hd A F x).2.le (le_max_left ..) |
| 99 | refine Mark.Bill.of_entry hA hB hM.le (fun i j => ?_) (fun i j => ?_) |
| 100 | · rw [← entry bolt l (smooth_of_le hs hl)]; exact (he i j).each _ (.inl rfl) l hl |
| 101 | rw [(native c).weight_symm,← entry bolt l (smooth_of_le hs hl)]; exact (he i j).each _ (.inr rfl) l hl |
| 102 | |
| 103 | lemma f0_cost (G : Gauge) (P : Patch) (Pt : Teller G) (q : Chi) (hB : 0<B) (hP : P.Branches Pt.bind G) (n : ℕ) : |
| 104 | ∃ d M : ℝ, 0<d ∧ 0<M ∧ ∀ᶠ x : ℝ in atTop, |
| 105 | ∀ {c f : Side} (S : StepData c f) (T : Tube G S), S.patch=P → Pt.Funds S T → 100*(1+radiusB x) ≤ c.val → |
| 106 | ∀ (F : Forest S.ratio) (A : Stores S) (V : Config G c), A.flags=RG.flags (temp x) V → ∀ (k:S.Choices), |
| 107 | let t := fiery G x S.patch.L |
| 108 | f0 T x A F k V q (B*t)=Rows.source T x V k (shots S x) A F q (B*t) ∧ |
| 109 | ∀ Y : LinkArray G (Frozen A x F), Parcel 0 (Wisps.down S) d n |
| 110 | (fun z => f0 T x A F k (pulse x V z) q (B*t) Y) (M*t) := by |
| 111 | obtain ⟨d,X,hd,hX,h⟩ := base_cost G P Pt hP n |
| 112 | obtain ⟨c,Q,hc,hQ,h'⟩ := allData_cost G P Pt hP n |
| 113 | let a : ℝ := c/(n+1:ℕ) |
| 114 | have ha : 0<a := by unfold a; positivity |
| 115 | have hm : a ≤ c ∧ n*a ≤ c := by |
| 116 | have hz : a*(n+1:ℕ)=c := div_mul_cancel₀ _ (by positivity) |
| 117 | have hn : 0≤(n:ℝ)*a := by positivity |
| 118 | push_cast at hz; constructor <;> linarith |
| 119 | obtain ⟨M,hM,H⟩ := shell_price G q P a ha B hB n |
| 120 | refine ⟨min a d, X+((2:ℝ)^n*(M*Q)), lt_min ha hd,by positivity,?_⟩ |
| 121 | filter_upwards [h,h',H,correct_f0 G P Pt] with x hx ht hh hh' |
| 122 | intro c' f S T hs he hF F A V hv k t |
| 123 | refine ⟨hh' S T hs he A F V hv k q (B*t),fun Y => ?_⟩ |
| 124 | have hp : t=fiery G x P.L := by unfold t; rw [hs] |
| 125 | have hn : 0≤M*t := mul_nonneg hM.le (temp_nonneg _) |
| 126 | have hh : Parcel 0 (location S) a n (fun z => tape.symm (Rows.input x A F (autoShell q (B*t) (pulse x V z) Y))) |
| 127 | (M*t) := by |
| 128 | rintro ⟨i,j⟩ |
| 129 | simp_rw [tape_read,Rows.input]; split |
| 130 | · split |
| 131 | next hk => rw [hp]; exact (hh S F A V Y ⟨_,hk⟩).color j |
| 132 | next hk => exact Point.zero hn |
| 133 | exact Point.zero hn |
| 134 | have hb := Parcel.mono (hp.symm ▸ hx S T hs he hF F A V hv k) (min_le_right a d) le_rfl |
| 135 | have hu := (hh.deliver hn (ht S T hs hF he A F V hv k) hQ.le ha.le hm.1 hm.2).mono (min_le_left a d) le_rfl |
| 136 | simp_rw [f0_split _ _ _ _ _ _ he] |
| 137 | exact (hb.add hu).mono le_rfl (le_of_eq (by ring)) |
| 138 | end costing |
| 139 | end YM.AnalyticBridge.SectorAffine.Offset |