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.RG08.Gaussian.Turning |
| 2 | import YM.RG08.Flat.KLimit |
| 3 | |
| 4 | /-! # Pre-block Gaussian ledger on the Wilson Chain -/ |
| 5 | set_option autoImplicit false |
| 6 | noncomputable section |
| 7 | namespace YM.RG08 |
| 8 | open Function Filter Lattice Wilson RG Precision Exterior Bloch Matrix Laurent |
| 9 | open Next.Free Work.F08 Tree Stationary |
| 10 | open scoped Topology BigOperators Classical |
| 11 | |
| 12 | variable {G : Gauge} {X : Chain} |
| 13 | namespace Chain |
| 14 | |
| 15 | def trees (X : Chain) (i : ℕ) := Repeated.axisRule (X.patch i).L (X.patch i).odd_side |
| 16 | |
| 17 | def Wake (G : Gauge) (X : Chain) := ∀ i,(X.patch i).Branches X.kernel G |
| 18 | lemma wake_actual (a : Levels G) : Wake G (actual a) := fun i => (a.blocks i 0).branches |
| 19 | |
| 20 | -- p implicit for some joins; set patch type fixed here |
| 21 | |
| 22 | def curve (G : Gauge) (X : Chain) (N i : ℕ) := conditionalCov G (P:=X.patch i) |
| 23 | (X.trees i) X.kernel (X.history N (i+1)) |
| 24 | |
| 25 | def predict (G : Gauge) (X : Chain) (N i : ℕ) := coarseMean G (P:=X.patch i) |
| 26 | (X.trees i) X.kernel (X.history N (i+1)) |
| 27 | lemma predict_truth (G : Gauge) (h : Wake G X) (N i : ℕ) (hp : i<N) (c f : Side) |
| 28 | (ht : f.val=c.val*(X.S.block i).val) : |
| 29 | let S:=X.pair i c f ht; let F := (X.trees i).forest S.ratio |
| 30 | installed S.ratio (predict G X N i)=patron G (extracted S F (installed S.ratio (X.A₀ N i))) := by |
| 31 | intro S F |
| 32 | have hv : (predict G X N i).acts c=repackM (unitSplit G S 1) (Equiv.refl _) (patron G (extracted S F (installed S.ratio (X.A₀ N i)))) := |
| 33 | ((slice_compute (P:=X.patch i) (k:=X.kernel) (X.trees i) (X.history N (i+1)) (h _) c f ht).2.2.2.2 _ _ |
| 34 | (X.canonical _ _ hp ht)) |
| 35 | ext x y |
| 36 | rw [installed, Matrix.submatrix_apply]; erw [hv] |
| 37 | simp only [repackM,id_eq,Matrix.submatrix_apply,Equiv.refl_symm,Equiv.refl_apply,unitSplit,Equiv.symm_apply_apply] |
| 38 | end Chain |
| 39 | |
| 40 | lemma strip_flip {α β : Type} {A B : Row α β} {s C : ℝ} (h : (A-B).strip s C) : |
| 41 | (B-A).strip s C := by |
| 42 | intro i j; simpa only [Width,Pi.sub_apply,norm_sub_rev] using h i j |
| 43 | |
| 44 | /-- Post prices at these *pre* widths. Caller to choose extra decreases, |
| 45 | ensure block lower thresholds for σ crossing from K history. |
| 46 | Coarse-width indexing. -/ |
| 47 | structure Lending (G : Gauge) (K : KernelChoices) where |
| 48 | w : ℕ→ℝ |
| 49 | wpos : ∀ i, 0 < w i |
| 50 | bill : ℕ→Patch→ℝ |
| 51 | solvent : ∀ i p, 0≤bill i p |
| 52 | serves (i : ℕ) (P : Patch) (ha : i=P.J ∨ i+1=P.J) (hP : P.Branches K G) |
| 53 | (u v : Train P.J) : |
| 54 | let X := Repeated.axisRule P.L P.odd_side |
| 55 | let C := bill i P; let σ := w i |
| 56 | (conditionalCov G (P:=P) X K u).strip σ C ∧ (coarseMean G X K u).strip σ C ∧ |
| 57 | ∀ η B : ℝ, 0≤B → σ≤P.L.val*η → |
| 58 | (hessian (pink K.penalty u)-hessian (pink K.penalty v)).strip η B → |
| 59 | (conditionalCov G X K u-conditionalCov G X K v).strip σ (C*B) ∧ |
| 60 | (coarseMean G X K u-coarseMean G X K v).strip σ (C*B) |
| 61 | |
| 62 | lemma lenders (G : Gauge) (K : KernelChoices) : Nonempty (Lending G K) := by |
| 63 | have hr (j : ℕ) : ∃ σ : ℝ, 0<σ ∧ ∀ (P : Patch), P.J=j → P.Branches K G → |
| 64 | ∃ M : ℝ, 0 ≤ M ∧ ∀ w : Train P.J, |
| 65 | (conditionalCov G (P:=P) (Repeated.axisRule P.L P.odd_side) K w).strip σ M := by |
| 66 | by_cases h : 4 ≤ j |
| 67 | · obtain ⟨b,hb,H⟩ := conditional_funds G K j h |
| 68 | exact ⟨b,hb,fun p hj hh => H p hj hh _⟩ |
| 69 | exact ⟨1,one_pos,fun P hp _ => (h (P.order_cut.trans_eq hp)).elim⟩ |
| 70 | choose b hb H using hr |
| 71 | let w (j) := min (b j) (b (j+1)) |
| 72 | have hw j : 0<w j := lt_min (hb j) (hb (j+1)) |
| 73 | have hg (i : ℕ) (P : Patch) : |
| 74 | let X := Repeated.axisRule P.L P.odd_side |
| 75 | let σ := w i |
| 76 | ∃ C : ℝ, 0≤C ∧ ((i=P.J ∨ i+1=P.J) → P.Branches K G → ∀ u v : Train P.J, |
| 77 | (conditionalCov G (P:=P) X K u).strip σ C ∧ (coarseMean G X K u).strip σ C ∧ |
| 78 | ∀ η B : ℝ, 0≤B → σ≤P.L.val*η → |
| 79 | (hessian (pink K.penalty u)-hessian (pink K.penalty v)).strip η B → |
| 80 | (conditionalCov G X K u-conditionalCov G X K v).strip σ (C*B) ∧ |
| 81 | (coarseMean G X K u-coarseMean G X K v).strip σ (C*B)) := by |
| 82 | intro X σ |
| 83 | have hs : 0<σ := hw i |
| 84 | by_cases hX : (i=P.J ∨ i+1=P.J) ∧ P.Branches K G |
| 85 | · obtain ⟨D,hD,Hd⟩ := H P.J P rfl hX.2 |
| 86 | obtain ⟨M,hM,Hm⟩ := probe_budget G P K σ hs |
| 87 | let n := (Fintype.card (Co P.L (Loc G 1)):ℝ) |
| 88 | let E:= n*n*D*Real.exp (4*σ)*D |
| 89 | let V:= ‖K.penalty‖*n*M |
| 90 | have he : 0≤E := by unfold E n; positivity |
| 91 | have hv : 0≤V := by unfold V n; positivity |
| 92 | let C:= max (max D (V*D)) (max E (V*E)) |
| 93 | have hG (u) : (conditionalCov G X K u).strip σ D := |
| 94 | strip_mono (Hd u) (by |
| 95 | rcases hX.1 with hl|hl <;> rw [← hl]; exact min_le_left ..; exact min_le_right ..) le_rfl |
| 96 | have h₁ : V*D≤C := le_trans (le_max_right ..) (le_max_left ..) |
| 97 | have h₂ : D ≤ C := le_trans (le_max_left ..) (le_max_left ..) |
| 98 | refine ⟨C,hD.trans h₂,fun _ hK u v => ⟨strip_mono (hG _) le_rfl h₂, ?_,fun η B hp ht h => ?_⟩⟩ |
| 99 | · apply strip_mono (mean_budget _ _ _ (hG _) Hm hs.le) le_rfl; refine le_trans (le_of_eq ?_) h₁ |
| 100 | unfold V n; ring |
| 101 | have hhV : (minusRows (conditionalCov G X K u) (conditionalCov G X K v)).strip σ (E*B) := by |
| 102 | refine strip_mono (covariance_moves X hK (hG _) (hG _) (σ:=η) (C:=B) (strip_flip (α:=TypeFace 1) h) hs ht) le_rfl (le_of_eq ?_) |
| 103 | unfold E n; ring |
| 104 | constructor |
| 105 | · exact strip_mono hhV le_rfl (mul_le_mul_of_nonneg_right ((le_max_left ..).trans (le_max_right ..)) hp) |
| 106 | apply strip_mono (coarseMean_movement X hhV Hm hs) le_rfl |
| 107 | apply Eq.trans_le _ (mul_le_mul_of_nonneg_right (show V*E≤C from (le_max_right ..).trans (le_max_right ..)) hp) |
| 108 | unfold V n; ring |
| 109 | exact ⟨0,le_rfl, fun hp hB => (hX ⟨hp,hB⟩).elim⟩ |
| 110 | dsimp only at hg |
| 111 | choose v hv hh using hg |
| 112 | exact ⟨⟨w,hw,v,hv,fun j P => hh j P⟩⟩ |
| 113 | |
| 114 | variable (K : KernelChoices) |
| 115 | |
| 116 | lemma crossing {K : KernelChoices} {P : KPrices K} (g : KGate P) (Y : Lending G K) : |
| 117 | ∃ b : ℕ→ℕ, ∀ i j, j=i ∨ j+1=i → ∀ L : Side, b i ≤ L.val → Y.w j≤L.val*g.w i := by |
| 118 | choose h hh using fun i j : ℕ => exists_nat_gt (Y.w j/g.w i) |
| 119 | refine ⟨fun i => max (h i i) (h i (i-1)),fun i j hj L hp => (div_le_iff₀ (g.pos _)).mp ?_⟩ |
| 120 | apply le_trans (hh i j).le |
| 121 | rcases hj with hx|hx <;> subst i |
| 122 | · exact_mod_cast ((le_max_left ..).trans hp : h j j≤L.val) |
| 123 | dsimp only at hp; rw [Nat.add_sub_cancel] at hp |
| 124 | exact_mod_cast ((le_max_right ..).trans hp : h (j+1) j≤L.val) |
| 125 | |
| 126 | /-- `Wake` is patch branches for the gauge; exact specialization to any |
| 127 | actual Levels. Stipulate the widths before imposing sized stage gates. -/ |
| 128 | structure Clear (P : KPrices X.kernel) (g : KGate P) (Y : Lending G X.kernel) (ℓ : ℕ) : Prop where |
| 129 | booked : KAllowed g ℓ |
| 130 | large i : ℓ ≤ i → Y.w (X.J i) ≤ (X.S.block i).val * g.w (X.J (i+1)) |
| 131 | trueStep : X.Wake G |
| 132 | |
| 133 | open Chain |
| 134 | |
| 135 | lemma report_funding {G : Gauge} (X : Chain) (h : X.Wake G) (Y : Lending G X.kernel) |
| 136 | (i : ℕ) (N : ℕ) : |
| 137 | (curve G X N i).strip (Y.w (X.J i)) (Y.bill (X.J i) (X.patch i)) ∧ |
| 138 | (predict G X N i).strip (Y.w (X.J i)) (Y.bill (X.J i) (X.patch i)) := by |
| 139 | have he : X.J i=(X.patch i).J ∨ X.J i+1=(X.patch i).J := by |
| 140 | change X.J i=X.J (i+1) ∨ X.J i+1=X.J (i+1); have h := X.mono i; have hp := X.slow i; omega |
| 141 | have hv := Y.serves _ _ he (h i) (X.history N (i+1)) (X.history N (i+1)) |
| 142 | exact ⟨hv.1,hv.2.1⟩ |
| 143 | |
| 144 | theorem overlap (A B : ℝ) (ha : 0≤A) (hb : 0≤B) (p q : ℕ) : |
| 145 | ∃ c : ℝ, 0 ≤ c ∧ ∀ (G : Gauge) (X : Chain) (P : KPrices X.kernel) (g : KGate P) |
| 146 | (Y : Lending G X.kernel) (k ℓ : ℕ) (Z : ℝ), 0≤Z → |
| 147 | Clear P g Y ℓ → |
| 148 | (let a := age X.S Z k |
| 149 | (∀ i, ℓ ≤ i → P.bill (X.J i) ≤ A*a i^p) → |
| 150 | (∀ i, ℓ ≤ i → Y.bill (X.J i) (X.patch i) ≤ B*a (i+1)^q) → |
| 151 | ∀ i N N', ℓ ≤ i → i<N → N≤N' → |
| 152 | let C:= c*a (i+1)^(p+q)*gain X.S (1/4) (i+1) N |
| 153 | (curve G X N i-curve G X N' i).strip (Y.w (X.J i)) C ∧ |
| 154 | (predict G X N i-predict G X N' i).strip (Y.w (X.J i)) C) := by |
| 155 | obtain ⟨D,hD,H⟩ := k_cauchy A ha p; refine ⟨B*D,mul_nonneg hb hD,?_⟩ |
| 156 | intro G X P g Y k ℓ Z hz hc a hf hF i N N' he hp hN C |
| 157 | let b := D*a (i+1)^p*gain X.S (1/4) (i+1) N |
| 158 | have hr : 1 ≤ a (i+1) := age_one (S:=X.S) hz k _ |
| 159 | have hb : 0 ≤ b := by unfold b; have hx:=gain_pos X.S (1/4) (i+1) N; positivity |
| 160 | have hh : (X.K₀ N (i+1)-X.K₀ N' (i+1)).strip (g.w (X.J (i+1))) b := H _ _ _ Z hz ℓ k hc.booked hf _ _ _ (he.trans (Nat.le_succ _)) hp hN |
| 161 | have hw : X.J i=(X.patch i).J ∨ X.J i+1=(X.patch i).J := by |
| 162 | change X.J i=X.J (i+1) ∨ X.J i+1=X.J (i+1); have h := X.mono i; have hp := X.slow i; omega |
| 163 | have ht := (Y.serves _ _ hw (hc.trueStep i) (X.history N (i+1)) (X.history N' (i+1))).2.2 _ _ hb (hc.large i he) hh |
| 164 | have hy : (Y.bill _ _) * b≤ C := (mul_le_mul_of_nonneg_right (hF i he) hb).trans_eq (by unfold C b; rw [pow_add]; ring) |
| 165 | exact ⟨strip_mono ht.1 le_rfl hy, strip_mono ht.2 le_rfl hy⟩ |
| 166 | end YM.RG08 |