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.Next.SCHEDULE.Melt |
| 2 | import YM.UVNext.PRICED_KERNELS.Bridge |
| 3 | import YM.UVNext.PRICED_KERNELS.Tori |
| 4 | import YM.UVNext.PRICED_KERNELS.Trees |
| 5 | |
| 6 | |
| 7 | |
| 8 | set_option warningAsError false |
| 9 | |
| 10 | |
| 11 | set_option linter.unusedSectionVars false |
| 12 | set_option linter.unnecessarySeqFocus false |
| 13 | |
| 14 | /-! |
| 15 | # Spend the pre-L function on Phi / A0 / emitted stationary directions |
| 16 | |
| 17 | Suffices(-K) and ANY physical tests from Wired. Includes curvature-column |
| 18 | release (`d A0` vs curvature of its input, needed etc without |
| 19 | paying a link-gauge amplitude). Keep H and A0 and T and path choices; these |
| 20 | are estimates on the real linear operators (covers columns and equilibrium |
| 21 | counting case by acting on any periodic data such as requested by φ). |
| 22 | Stay at the correct scaled/native rate. Can thus buy as after width asks |
| 23 | (e.g. `Loads` and `.wish`) before any L. Also buy ν₁ in its actual color |
| 24 | and tree slice field, independent of sample & including N-i arbitrary. |
| 25 | |
| 26 | Further transfer estimates of paths attached to these operators or their |
| 27 | Taylor coefficients aren't given—don't produce any cubic or loop hypotheses |
| 28 | from these. No Γ error results. Not heating a nonlinear kernel. |
| 29 | -/ |
| 30 | set_option autoImplicit false |
| 31 | noncomputable section |
| 32 | namespace YM.UVNext.PricedKernels |
| 33 | open Filter Set Function Lattice Wilson RG RG.Supply Precision Pressure Laurent Exterior Bloch Matrix Tree Bid |
| 34 | open Push.PriceCompiler |
| 35 | open scoped Topology Matrix.Norms.Frobenius BigOperators InnerProductSpace ContDiff |
| 36 | |
| 37 | variable {G : Gauge} |
| 38 | section kernel |
| 39 | |
| 40 | def stackFee (α A : ℝ) (ι : Type*) [Fintype ι] : ℝ := Real.exp α * (Fintype.card ι * A) |
| 41 | lemma stackFee_nonneg (s : ℝ) {A : ℝ} (ι : Type*) [Fintype ι] (hA : 0 ≤ A) : 0 ≤ stackFee s A ι := by unfold stackFee; positivity |
| 42 | |
| 43 | def trFee (j : ℕ) (s A : ℝ) : ℝ := (1+dC 0 s*hikeC j s) * stackFee s A (TypeFace 1) |
| 44 | lemma trFee_nonneg (j : ℕ) (s : ℝ) {A : ℝ} (hA : 0 ≤ A) : 0 ≤ trFee j s A := by |
| 45 | unfold trFee; have := dC_nonneg 0 s; have := hikeC_pos j s; have := stackFee_nonneg s (TypeFace 1) hA; positivity |
| 46 | |
| 47 | def curlFee (s A B : ℝ) := ((Fintype.card (TypeFace 2):ℝ)*A) * stackFee s A (TypeFace 2) * ((Fintype.card (TypeFace 2):ℝ)*B) |
| 48 | |
| 49 | variable {P : Before} {a : Levels G} {X : MapPrices} {B V : Horizon a} {l} (h : Wired P a X l B V) |
| 50 | {m N : ℕ} (hm : m < N) (c f : Side) (hf : f.val=c.val*(a.S.block m).val) |
| 51 | include hm h |
| 52 | |
| 53 | /-- The `ϑ` rate is `P.frozen G`, itself determined just by direct and Catalog |
| 54 | FlatBill, NOT any of these path or Φ applications. External |
| 55 | `s` for even widths narrowed there. `U` is any prechosen Forest on this Side; |
| 56 | no dependence on other periods' tree choices. |
| 57 | -/ |
| 58 | theorem directions (U : Forest (again a m c f hf).ratio) (s : ℝ) (hs : 0 ≤ s) : |
| 59 | let K := P.frozen G; let j := a.clock.J (m+1); let α := K.α j; let A := K.Ω j |
| 60 | let S := again a m c f hf; let g := S.ratio; let L : ℝ := S.patch.L.val |
| 61 | let R := V.towers N m |
| 62 | let F := installed g R.A0 |
| 63 | s ≤ α → |
| 64 | Annuity (site f _) (parent g _) F (s/L) (stackFee s A (TypeFace 1)/L) ∧ |
| 65 | Annuity (parent g _) (site f _) F.transpose (s/L) (L^3*stackFee s A (TypeFace 1)) ∧ |
| 66 | Annuity (site f _) (parent g _) (installed g R.T) (s/L) (stackFee s A (TypeFace 2)/L^2) ∧ |
| 67 | Annuity (parent g _) (site f _) (installed g R.T).transpose (s/L) (L^2*stackFee s A (TypeFace 2)) ∧ |
| 68 | Annuity (site f _) (parent g _) (extracted S U F) (s/L) (trFee j s A) := by |
| 69 | intro K j α A S g L R F he |
| 70 | have ht := h.finalCosts.costs N m hm |
| 71 | obtain ⟨hR,hB⟩ := ht.2.2.2 [] (Nat.zero_le _) |
| 72 | have hh : 0 < L := Nat.cast_pos.mpr S.patch.L.property |
| 73 | have hA : 0 < A := (P.active_plan G).2.2.2.2.2.positive j |
| 74 | have hF : R.A0.strip s (A/L) := by |
| 75 | have H := Work.F08.strip_mono (show R.A0.strip α (A/L^(1+List.length ([]:List Axis))) from hR) he le_rfl |
| 76 | simpa using H |
| 77 | have hV : R.T.strip s (A/L^2) := by |
| 78 | exact Work.F08.strip_mono (show R.T.strip α (A/L^2) from hB) he le_rfl |
| 79 | have hp : Annuity (site f _) (parent g _) F (s/L) (stackFee s A (TypeFace 1)/L) := by |
| 80 | exact (Annuity.paid_cross (g:=g) hF hs).cut le_rfl (le_of_eq (by unfold stackFee; ring)) |
| 81 | refine ⟨hp,(Annuity.paid_cross_reverse (g:=g) hF hs).cut le_rfl (le_of_eq ?_), |
| 82 | (Annuity.paid_cross (g:=g) hV hs).cut le_rfl (le_of_eq ?_), |
| 83 | (Annuity.paid_cross_reverse (g:=g) hV hs).cut le_rfl (le_of_eq ?_), |
| 84 | extract_price S s hs U F _ (stackFee_nonneg _ _ hA.le) hp⟩ |
| 85 | · unfold stackFee; change Real.exp s*(L^4*(_*(A/L)))=_; field_simp |
| 86 | · unfold stackFee; ring |
| 87 | unfold stackFee; change Real.exp s*(L^4*(_*(A/L^2)))=_; field_simp |
| 88 | |
| 89 | /-- dA₀ released with L⁻² price on full curvature input, `Z := tildeH_f^{-1} T H'...` |
| 90 | on THIS horizon's diagonal T, at any volume. Does not need ψ credit from another |
| 91 | retained stack. Also release at the maximal collapsed ϑ (`K.α` fine), not an |
| 92 | L-dependent coarse width tending to zero on surrounding stages. -/ |
| 93 | theorem d_release (hl : ∀ i, 0 ≤ l i) : |
| 94 | let K := P.frozen G; let j := a.clock.J (m+1); let i := a.clock.J m |
| 95 | let α := K.α j; let A := K.Ω j; let H := K.Ω i |
| 96 | let S := again a m c f hf; let g := S.ratio; let L : ℝ := S.patch.L.val |
| 97 | let R := V.towers N m |
| 98 | let Z := (V.H N (m+1)).inverse.acts f * installed g R.T * (V.H N m).metric.acts c |
| 99 | Annuity (site f _) (parent g _) Z (α/L) (curlFee α A H/L^2) ∧ |
| 100 | Z * d 1 c = d 1 f * installed g R.A0 := by |
| 101 | intro K j i α A H S g L R Z |
| 102 | have hf := h.finalCosts.all N (m+1) hm f |
| 103 | have hc := h.finalCosts.all N m hm.le c |
| 104 | have hM := universal_diagonal a h.sameTrain hm (hl _) (hl _) c f ‹_› |
| 105 | let X := V.H N (m+1); let Y := V.H N m |
| 106 | let T := installed g R.T |
| 107 | have he : T*Y.metric.acts c*d 1 c=X.metric.acts f*d 1 f*installed g R.A0 := by |
| 108 | change _ = _ * _ |
| 109 | calc |
| 110 | _ = T*(Y.metric.acts c*d 1 c) := Matrix.mul_assoc .. |
| 111 | _ = T*Y.diagonal.acts c*d 1 c := by rw [hc.same,Matrix.mul_assoc] |
| 112 | _ = X.diagonal.acts f*d 1 f*installed g R.A0 := hM.stays |
| 113 | _ = _ := by rw [← hf.same] |
| 114 | have hp := K.alpha_pos j |
| 115 | have hh := K.alpha_pos i |
| 116 | have h₁ := Annuity.paid_site (h.finalCosts.rows N (m+1) hm).2.2.1 hp.le f |
| 117 | have hL : 1 ≤ L := Nat.one_le_cast.mpr S.patch.L.property |
| 118 | have hL' := zero_lt_one.trans_le hL |
| 119 | have hg := Annuity.cut h₁ (div_le_self hp.le hL) le_rfl |
| 120 | have hA := (P.active_plan G).2.2.2.2.2.positive j |
| 121 | have hH := (P.active_plan G).2.2.2.2.2.positive i |
| 122 | have hu : α ≤ K.α i := (P.active_plan G).2.2.2.2.2.width (step_paid a m).1 |
| 123 | have ht := h.finalCosts.costs N m hm |
| 124 | have hV : R.T.strip α (A/L^2) := (ht.2.2.2 [] (Nat.zero_le _)).2 |
| 125 | have hw := Annuity.paid_cross (g:=g) hV hp.le |
| 126 | have hx := Annuity.cut (Annuity.paid_parent g (h.finalCosts.rows N m hm.le).2.1 hh.le) |
| 127 | (div_le_div_of_nonneg_right hu hL'.le) le_rfl |
| 128 | have hp' : 0 ≤ α/L := div_nonneg hp.le hL'.le |
| 129 | have ht : 0 ≤ Real.exp α*((Fintype.card (TypeFace 2):ℝ)*(A/L^2)) := by have : 0 < A := hA; positivity |
| 130 | have hi : 0 ≤ Fintype.card (TypeFace 2) * H := by have : 0 < H := hH; positivity |
| 131 | refine ⟨((hg.times hw hp' ht).times hx hp' hi).cut le_rfl (le_of_eq ?_),?_⟩ |
| 132 | · unfold curlFee stackFee; ring |
| 133 | change (X.inverse.acts f*T*Y.metric.acts c) * d 1 c = _ |
| 134 | rw [Matrix.mul_assoc, Matrix.mul_assoc,← Matrix.mul_assoc T, he] |
| 135 | simp only [← Matrix.mul_assoc, show X.inverse.acts f*X.metric.acts f = 1 from mul_eq_one_comm.mp hf.inverse,Matrix.one_mul] |
| 136 | end kernel |
| 137 | |
| 138 | section radiation |
| 139 | variable {P : Before} {a : Levels G} {X : MapPrices} {B V : Horizon a} {l} |
| 140 | (h : Wired P a X l B V) {m N : ℕ} (hm : m < N) {c f : Side} (hf : f.val=c.val*(a.S.block m).val) |
| 141 | |
| 142 | lemma gather {κ ι : Type*} {n : Side} [Fintype κ] {p : Foot n ι} {q : Foot n κ} {A : Matrix ι κ ℝ} {C s : ℝ} |
| 143 | (ha : Annuity p q A s C) (i : ι) {v : κ → ℝ} {b : ℝ} (hb : 0 ≤ b) |
| 144 | (he : ∀ j, |v j| ≤ b*gained s (p i) (q j)) : |(A*ᵥv) i| ≤ C*b := by |
| 145 | rw [Matrix.mulVec,dotProduct]; refine le_trans (Finset.abs_sum_le_sum_abs _ _) ?_ |
| 146 | refine le_trans (Finset.sum_le_sum (g:=fun j => gained s (p i) (q j)*|A i j| * b) (fun j _ => ?_)) ?_ |
| 147 | · rw [abs_mul]; exact (mul_le_mul_of_nonneg_left (he j) (abs_nonneg _)).trans_eq (by ring) |
| 148 | rw [← Finset.sum_mul]; exact mul_le_mul_of_nonneg_right (ha i) hb |
| 149 | |
| 150 | lemma color_component (x : G.Color) (i : G.ColorIndex) : |x i| ≤ ‖x‖ := calc |
| 151 | _ = |inner ℝ (EuclideanSpace.basisFun G.ColorIndex ℝ i) x| := by simp only [EuclideanSpace.basisFun_inner] |
| 152 | _ ≤ _ := (abs_real_inner_le_norm _ _).trans_eq (by rw [OrthonormalBasis.norm_eq_one,one_mul]) |
| 153 | |
| 154 | lemma color_count {u : ℝ} (hu : 0 ≤ u) (x : G.Color) (h : ∀ i : G.ColorIndex, |x i| ≤ u) : |
| 155 | ‖x‖ ≤ Fintype.card G.ColorIndex * u := by |
| 156 | rcases Nat.eq_zero_or_pos (Fintype.card G.ColorIndex) with hi|hi |
| 157 | · haveI : IsEmpty G.ColorIndex := (Fintype.card_eq_zero_iff).mp hi |
| 158 | have he : x=0 := by ext i; exact isEmptyElim i |
| 159 | rw [he,norm_zero]; positivity |
| 160 | let k : ℝ := Fintype.card G.ColorIndex |
| 161 | have hk : 1 ≤ k := Nat.one_le_cast.mpr hi |
| 162 | have he : ‖x‖^2 ≤ k*u^2 := by |
| 163 | rw [EuclideanSpace.real_norm_sq_eq] |
| 164 | refine (Finset.sum_le_sum (g:=fun _ => u^2) (fun i _ => ?_)).trans_eq (by simp [k]) |
| 165 | rw [← sq_abs]; exact pow_le_pow_left₀ (abs_nonneg _) (h _) _ |
| 166 | have hh : 0≤k*u := mul_nonneg (by positivity : 0 ≤ (Fintype.card G.ColorIndex:ℝ)) hu |
| 167 | refine le_of_sq_le_sq ?_ hh |
| 168 | rw [mul_pow]; exact he.trans (mul_le_mul_of_nonneg_right (show k ≤ k^2 by nlinarith) (sq_nonneg _)) |
| 169 | |
| 170 | lemma relative_price {S : StepData c f} (U : Forest S.ratio) -- implicit S need variable or autoImplicit |
| 171 | (R : Matrix (Body 1 f) (Body 1 c) ℝ) {s C : ℝ} (hs : 0 ≤ s) (hC : 0 ≤ C) |
| 172 | (h : Annuity (site f _) (parent S.ratio _) (extracted S U R) (tollFine S s) C) |
| 173 | (i : U.Free) (Q : Dir G c) {b : ℝ} (hb : 0 ≤ b) |
| 174 | (he : ∀ j : Body 1 c, ‖Q j‖ ≤ b*gained (tollFine S s) i.val.1 (parent S.ratio _ j)) : |
| 175 | ‖relative U R Q i‖ ≤ Fintype.card G.ColorIndex * ((C+Real.exp s)*b) := by |
| 176 | have hg k (j : Body 1 c) : |(parts G 1 Q k) j| ≤ b*gained (tollFine S s) i.val.1 (parent S.ratio _ j) := |
| 177 | (color_component (Q j) k).trans (he j) |
| 178 | have hR k := gather h (i.val.1,coord i.val.2) hb (hg k) |
| 179 | have hp : 0 ≤ (C+Real.exp s)*b := by positivity |
| 180 | refine color_count hp _ fun k => (abs_sub _ _).trans (le_trans (add_le_add (hR k) (show |(linearCopy S.ratio (collect G Q) i) k| ≤ Real.exp s*b from ?_)) (le_of_eq ?_)) |
| 181 | -- fix hR k |
| 182 | · unfold linearCopy; split_ifs |
| 183 | · exact (abs_zero.trans_le (mul_nonneg (Real.exp_pos _).le hb)) |
| 184 | let L := (S.patch.L.val:ℝ) |
| 185 | let j : Body 1 c := (S.ratio.parent i.val.1,coord i.val.2) |
| 186 | apply (hg k j).trans; rw [mul_comm (Real.exp s)]; apply mul_le_mul_of_nonneg_left _ hb |
| 187 | apply Real.exp_monotone |
| 188 | have hh : 0<L := Nat.cast_pos.mpr S.patch.L.property |
| 189 | exact (mul_le_mul_of_nonneg_left (embed_parent S.ratio i.val.1) (div_nonneg hs hh.le)).trans |
| 190 | (le_of_eq (div_mul_cancel₀ s hh.ne')) |
| 191 | ring |
| 192 | |
| 193 | include h hm in |
| 194 | /-- pre-L bound on the actual linear stationary solution in *relative* |
| 195 | color/tangent coordinates. Forest arbitrary and L do not enter the price. |
| 196 | Direction costs e.g. at any exponential width up to α in coarse units. |
| 197 | Thus a Γ buyer can use this separately without assuming ν_1 supports. -/ |
| 198 | theorem guessed_cost (U : Forest (again a m c f hf).ratio) (s : ℝ) (hs : 0 ≤ s) : |
| 199 | let K := P.frozen G; let j := a.clock.J (m+1) |
| 200 | let g := (again a m c f hf).ratio; let F := installed g (V.towers N m).A0 |
| 201 | ∀ (ρ : Dir G c → AxisChart G U), Guessed U F ρ → s ≤ K.α j → ∀ (Q : Dir G c) (i : U.Free) (b : ℝ), 0 ≤ b → |
| 202 | (∀ e : Body 1 c, ‖Q e‖ ≤ b * gained (s/(a.S.block m).val) i.val.1 (parent g _ e)) → |
| 203 | ‖(deriv (fun t : ℝ => ρ (t • Q)) 0) i‖ ≤ Fintype.card G.ColorIndex * ((trFee j s (K.Ω j)+Real.exp s)*b) := by |
| 204 | intro K j g R ρ hρ he Q i b hb hQ |
| 205 | rw [(hρ Q).deriv]; exact relative_price (S:=again a m c f hf) U R hs (trFee_nonneg _ _ ((P.active_plan G).2.2.2.2.2.positive j).le) |
| 206 | ((directions h hm c f hf U s hs he).2.2.2.2) i Q hb hQ |
| 207 | |
| 208 | include h hm in |
| 209 | /-- E linear curvature release, no harmonic omitted. -/ |
| 210 | theorem curl_cost (hl : ∀ i,0 ≤ l i) (Q : Dir G c) : |
| 211 | let s := again a m c f hf; let L : ℝ := (a.S.block m).val |
| 212 | let T := V.towers N m |
| 213 | let A := installed s.ratio T.A0 |
| 214 | let F : Dir G f := fun i => WithLp.toLp 2 (fun j : G.ColorIndex => (A*ᵥ parts G 1 Q j) i) |
| 215 | let K := P.frozen G; let j := a.clock.J (m+1); let k := a.clock.J m |
| 216 | let C := curlFee (K.α j) (K.Ω j) (K.Ω k) |
| 217 | ∀ (i : Body 2 f) (b : ℝ), 0 ≤ b → (∀ v : Body 2 c, ‖dColor G c 1 Q v‖ ≤ b*gained (K.α j/L) i.1 (parent s.ratio _ v)) → |
| 218 | ‖dColor G f 1 F i‖ ≤ (Fintype.card G.ColorIndex)*((C/L^2)*b) := by |
| 219 | intro S L T A F K j k C i b hb he |
| 220 | obtain ⟨hZ,hI⟩ := d_release h hm c f hf hl |
| 221 | let Z := (V.H N (m+1)).inverse.acts f * installed S.ratio T.T * (V.H N m).metric.acts c |
| 222 | have hg (i : ℕ) : 0 < K.Ω i := (P.active_plan G).2.2.2.2.2.positive i |
| 223 | have hC : 0 ≤ C := by |
| 224 | have h₁ := stackFee_nonneg (K.α j) (TypeFace 2) (hg j).le |
| 225 | have ht := hg j; have hm := hg k; unfold C curlFee; positivity |
| 226 | refine color_count (by positivity) _ fun r => ?_ |
| 227 | have hp (p : Body 1 f) : parts G 1 F r p=(A*ᵥ parts G 1 Q r) p := rfl |
| 228 | change |(d 1 f *ᵥ parts G 1 F r) i| ≤ _ |
| 229 | rw [funext hp, Matrix.mulVec_mulVec, ← show Z*d 1 c=d 1 f*A from hI,← Matrix.mulVec_mulVec] |
| 230 | exact gather hZ i hb fun v => (color_component (dColor G c 1 Q v) r).trans (he v) |
| 231 | |
| 232 | end radiation |
| 233 | end YM.UVNext.PricedKernels |