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.ANNULUS_RATIO_INSERTIONS.Guard |
| 2 | import YM.SectorNext.GAUSSIAN_SECTOR_CHANGE.Ledger |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Ancillary overhead paid in this interface |
| 7 | |
| 8 | Haar Jacobians relative to scale, active broad cuts, and **missing** |
| 9 | frozen-link scalars from Fsct. Do *not* bound the whole product cost by |
| 10 | a single-link cost . Explicit local conventions. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.AnalyticBridge.AnnulusRatioInsertions |
| 15 | open Function Filter Lattice Wilson RG RG.Patch Precision Exterior Tree MeasureTheory Metric Matrix Bloch |
| 16 | open Next.SectorChange Next.SectorChange.Motion Next.SectorChange.Rows Next.SectorChange.Gaussian |
| 17 | open Pressure Pressure.Tube Pressure.Stores Bid Push.SectorMeasure Push.SectorMeasure.Oriented |
| 18 | open SectorNext.Remainder.Affine Harvest |
| 19 | open scoped Topology BigOperators Classical ContDiff Matrix.Norms.Frobenius Push.SectorMeasure |
| 20 | variable {G : Gauge} {c f : Side} {S : StepData c f} |
| 21 | |
| 22 | /-- Coarse volume for local prices. Need not be connected. -/ |
| 23 | def elbow (l : ℕ) := 4*(l+l+1)^4 |
| 24 | lemma elbow_room (O : Stores S) (R l B : ℕ) (hl : R≤l*B) : |
| 25 | (O.dome R).card ≤ elbow l * (B+1)^4 * O.shares := by |
| 26 | have hi := Corona.halo_size O.place R |
| 27 | apply hi.trans |
| 28 | have hh : R+R+1 ≤ (l+l+1)*(B+1) := by rw [Nat.mul_add,Nat.add_mul,Nat.add_mul]; omega |
| 29 | calc |
| 30 | _ ≤ 4*O.shares*((l+l+1)*(B+1))^4 := Nat.mul_le_mul (Work.E01.place_card _) (Nat.pow_le_pow_left hh 4) |
| 31 | _ = _ := by unfold elbow; ring |
| 32 | |
| 33 | def vans (L : Side) (l : ℕ) := L.val^4*(Fintype.card Axis)*elbow l |
| 34 | |
| 35 | /-- Count fine positions (no injectivity of covers into torus needed). -/ |
| 36 | lemma berth (O : Stores S) (R l B : ℕ) (hl : R≤l*B) (s : Finset (Bond f)) |
| 37 | (h : ∀ i∈s,S.ratio.parent i.1∈O.dome R) : |
| 38 | s.card ≤ vans S.patch.L l * (B+1)^4 * O.shares := by |
| 39 | let g := S.ratio |
| 40 | let home : Bond f ≃ ((Site c × Site g.count) × Axis) := Equiv.prodCongr g.splitSites (Equiv.refl _) |
| 41 | let t := s.map home.toEmbedding |
| 42 | let H := O.dome R |
| 43 | have hs : t ⊆ (H ×ˢ (Finset.univ : Support g.count)) ×ˢ (Finset.univ : Finset Axis) := by |
| 44 | intro i hi |
| 45 | obtain ⟨j,hj,rfl⟩ := Finset.mem_map.mp hi |
| 46 | exact Finset.mem_product.mpr ⟨Finset.mem_product.mpr ⟨h j hj, Finset.mem_univ _⟩,Finset.mem_univ _⟩ |
| 47 | have hi := Finset.card_le_card hs |
| 48 | simp only [t,Finset.card_map,Finset.card_product,Finset.card_univ,site_card] at hi |
| 49 | have hH := elbow_room O _ _ _ hl |
| 50 | calc |
| 51 | _ ≤ (elbow l * (B+1)^4 * O.shares)*S.patch.L.val^4*Fintype.card Axis := hi.trans (Nat.mul_le_mul_right _ (Nat.mul_le_mul_right _ hH)) |
| 52 | _ = _ := by unfold vans; ring |
| 53 | |
| 54 | lemma requests (O A : Stores S) (F : Forest S.ratio) (x : ℝ) (R l : ℕ) (h : R≤l*radiusB x) : |
| 55 | (localDoors O A F x R).card ≤ vans S.patch.L l * (radiusB x+1)^4 * O.shares := by |
| 56 | let e : Active A x F ↪ Bond f := |
| 57 | ⟨fun i => i.val.val, fun _ _ h => Subtype.ext (Subtype.ext h)⟩ |
| 58 | rw [← Finset.card_map (s:=localDoors O A F x R) e] |
| 59 | apply berth O _ _ _ h |
| 60 | intro i hi; obtain ⟨j,hj,rfl⟩ := Finset.mem_map.mp hi |
| 61 | exact (Finset.mem_filter.mp hj).2 |
| 62 | |
| 63 | /-- Held links attributed to this owner (and no others for disjoint |
| 64 | owners at these radii; see consumer). Includes the phase-space scalar |
| 65 | for every such link, even if autoShell is zero. -/ |
| 66 | def missing (O A : Stores S) (F : Forest S.ratio) (x : ℝ) := (Finset.univ : Finset (Frozen A x F)).filter |
| 67 | fun i => S.ratio.parent i.val.val.1∈O.dome (10*radiusB x) ∨ |
| 68 | S.ratio.parent (i.val.val.1+Lattice.step i.val.val.2)∈O.dome (10*radiusB x) |
| 69 | |
| 70 | |
| 71 | |
| 72 | lemma missing_berth (O A : Stores S) (F : Forest S.ratio) (x : ℝ) (hx : 1≤radiusB x) : |
| 73 | (missing O A F x).card ≤ vans S.patch.L 11 * (radiusB x+1)^4 * O.shares := by |
| 74 | let e : Frozen A x F ↪ Bond f := |
| 75 | ⟨fun i => i.val.val,fun i j h => Subtype.ext (Subtype.ext h)⟩ |
| 76 | rw [← Finset.card_map (s:=missing O A F x) e] |
| 77 | apply berth O (11*radiusB x) _ _ (le_refl _) |
| 78 | intro i hi |
| 79 | obtain ⟨j,hj,rfl⟩ := Finset.mem_map.mp hi |
| 80 | rcases (Finset.mem_filter.mp hj).2 with h|h |
| 81 | · exact Corona.halo_mono (by omega) (fun _ hi => hi) h |
| 82 | obtain ⟨k,hk,hl⟩ := halo_spec.mp h |
| 83 | rw [Stores.dome,halo_spec] |
| 84 | refine ⟨k,hk,?_⟩ |
| 85 | have hh := separation_triangle k (S.ratio.parent (j.val.val.1+Lattice.step j.val.val.2)) (S.ratio.parent j.val.val.1) |
| 86 | have ht := Work.E03.parent_step S j.val.val.1 j.val.val.2 |
| 87 | rw [separation_comm] at ht |
| 88 | change separation k (S.ratio.parent j.val.val.1) ≤ _ |
| 89 | omega |
| 90 | |
| 91 | variable (O A : Stores S) (F : Forest S.ratio) (x : ℝ) (V : Config G c) |
| 92 | variable (Y : LinkArray G (Frozen A x F)) (q : Chi) (d : ℝ) (J : ChartRatio G) (a : Prices G (Active A x F)) |
| 93 | |
| 94 | def patchBudget (R : ℕ) := ∏ i ∈ localDoors O A F x R, extended q J d (tape a i) |
| 95 | |
| 96 | def rentals (R : ℕ) := border O A F x R q d a * patchBudget O A F x q d J a R |
| 97 | |
| 98 | lemma border_range (R : ℕ) : border O A F x R q d a ∈ Set.Icc (0:ℝ) 1 := by |
| 99 | let H := localDoors O A F x R |
| 100 | let f := fun i : Active A x F => broad q d (tape a i) |
| 101 | have he i : f i ∈ Set.Icc (0:ℝ) 1 := broad_range .. |
| 102 | change (∏ i∈H, f i) ∈ _ |
| 103 | exact ⟨Finset.prod_nonneg fun i _ => (he i).1,(Finset.prod_le_prod (fun i (_:i∈H) => (he i).1) (fun i _ => (he i).2)).trans (by simp)⟩ |
| 104 | |
| 105 | lemma rental_border (R : ℕ) (h : rentals O A F x q d J a R ≠ 0) : border O A F x R q d a ≠0 := left_ne_zero_of_mul h |
| 106 | |
| 107 | lemma rental_nn (R : ℕ) : 0 ≤ rentals O A F x q d J a R := |
| 108 | mul_nonneg (border_range ..).1 (Finset.prod_nonneg fun _ _ => (extended_pos ..).le) |
| 109 | |
| 110 | lemma rental_price (R l : ℕ) (h : R≤l*radiusB x) {E : ℝ} (hd : 0<d) |
| 111 | (hp : ∀ u : G.Color, ‖u‖ ≤ 4*d → |Real.log (J.J u)| ≤ E*‖u‖^2) (he : 0 ≤ E) : |
| 112 | ‖rentals O A F x q d J a R‖ ≤ Real.exp (((vans S.patch.L l : ℕ):ℝ) * |
| 113 | ((radiusB x:ℝ)+1)^4 * O.shares * (E*(4*d)^2)) := by |
| 114 | let B i := extended q J d (tape a i) |
| 115 | let P := E*(4*d)^2 |
| 116 | have hP : 0≤P := mul_nonneg he (sq_nonneg _) |
| 117 | have hb (i : Active A x F) : Real.log (B i) ≤ P := (le_abs_self _).trans ((price_extended q hd hp he (tape a i)).trans |
| 118 | (mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (le_min (norm_nonneg _) (by positivity)) (min_le_right ..) 2) he)) |
| 119 | have hc := Nat.cast_le (α:=ℝ).mpr (requests O A F x R l h) |
| 120 | push_cast at hc |
| 121 | rw [Real.norm_of_nonneg (rental_nn ..)]; unfold rentals |
| 122 | apply (mul_le_of_le_one_left (Finset.prod_nonneg fun _ _ => (extended_pos ..).le) ((border_range ..).2)).trans |
| 123 | calc |
| 124 | _ ≤ ∏ _i∈localDoors O A F x R, Real.exp P := by |
| 125 | refine Finset.prod_le_prod (fun _ _ => (extended_pos ..).le) (fun i _ => ?_) |
| 126 | exact (Real.exp_log (extended_pos q J d _)).symm.trans_le (Real.exp_monotone (hb i)) |
| 127 | _ ≤ _ := by rw [← Real.exp_sum]; apply Real.exp_monotone; rw [Finset.sum_const,nsmul_eq_mul]; gcongr |
| 128 | |
| 129 | lemma rental_meas (R : ℕ) : Measurable (fun a' : Prices G (Active A x F) => border O A F x R q d a') ∧ |
| 130 | (LocalRatio J → 0<d → 4*d < J.radius → Measurable (fun a' : Prices G (Active A x F) => rentals O A F x q d J a' R)) := by |
| 131 | have hm (i : Active A x F) : Measurable (fun a' : Prices G (Active A x F) => tape a' i) := (measurable_pi_apply _).comp tape.measurable |
| 132 | have h : Measurable (fun a' : Prices G (Active A x F) => border O A F x R q d a') := |
| 133 | Finset.measurable_fun_prod _ fun i _ => (broad_smooth q d).continuous.measurable.comp (hm i) |
| 134 | refine ⟨h,fun hi hd he => h.mul (Finset.measurable_fun_prod _ fun i _ => |
| 135 | (extended_smooth q hi hd he).continuous.measurable.comp (hm i))⟩ |
| 136 | |
| 137 | def shortfall (β : ℝ) := Real.exp (-((missing O A F x).card:ℝ)*Real.log (spare J β)) |
| 138 | |
| 139 | lemma missing_price (hx : 1≤radiusB x) {β : ℝ} {C : ℝ} (hc : - Real.log (spare J β) ≤ C) (hh : 0≤C) : |
| 140 | shortfall O A F x J β ≤ Real.exp (((vans S.patch.L 11 : ℕ):ℝ) * |
| 141 | ((radiusB x:ℝ)+1)^4 * O.shares*C) := by |
| 142 | have hi := Nat.cast_le (α:=ℝ).mpr (missing_berth O A F x hx) |
| 143 | push_cast at hi |
| 144 | apply Real.exp_monotone; rw [neg_mul,← mul_neg]; exact le_trans (mul_le_mul_of_nonneg_left hc (Nat.cast_nonneg _)) (mul_le_mul_of_nonneg_right hi hh) |
| 145 | |
| 146 | variable {β : ℝ} |
| 147 | /-- Fixed hardware loss for the missing $s_g$, retaining all color |
| 148 | components and the ChartRatio scale. Log of β_hat_f = y here. |
| 149 | No O(#all links) put on the packet. |
| 150 | -/ |
| 151 | lemma slots {L : Side} (hJ : LocalRatio J) : |
| 152 | ∃ C : ℝ, 0 < C ∧ ∀ (x β : ℝ), 1≤SectorNext.Remainder.Scales.y G L x → 0<β → β ≤ 2*SectorNext.Remainder.Scales.y G L x → |
| 153 | -Real.log (spare J β) ≤ C*(1+Real.log (SectorNext.Remainder.Scales.y G L x)) := by |
| 154 | let N := (Fintype.card G.ColorIndex:ℝ) |
| 155 | let a := Real.log (Real.sqrt (2*Real.pi)) |
| 156 | let M := |Real.log J.scale| |
| 157 | let C := 1 + N*(|a|+Real.log 2+1) + M |
| 158 | have hN : 0 ≤ N := Nat.cast_nonneg _ |
| 159 | have hs := Real.log_nonneg (show (1:ℝ)≤2 by norm_num) |
| 160 | have hM : 0≤M := abs_nonneg _ |
| 161 | have ha : 0≤|a| := abs_nonneg _ |
| 162 | refine ⟨C,?_,?_⟩ |
| 163 | · unfold C; positivity |
| 164 | intro x β hy hβ he |
| 165 | let Y := SectorNext.Remainder.Scales.y G L x |
| 166 | have hv : 0 ≤ Real.log Y := Real.log_nonneg hy |
| 167 | have hc := Real.log_le_log hβ he |
| 168 | change _ ≤ Real.log (2*Y) at hc |
| 169 | rw [Real.log_mul two_ne_zero ((by change 0<SectorNext.Remainder.Scales.y G L x; linarith):0<Y).ne'] at hc |
| 170 | let g := coupling β |
| 171 | have hg : 0<g := coupling_pos hβ |
| 172 | have hP : 0<(2*Real.pi) := mul_pos (by norm_num) Real.pi_pos |
| 173 | have hP' := Real.sqrt_pos.mpr hP |
| 174 | unfold spare |
| 175 | rw [Real.sqrt_mul hP.le, Real.sqrt_sq hg.le, Real.log_mul (pow_pos (mul_pos hP' hg) _).ne' hJ.scale.ne',Real.log_pow, |
| 176 | Real.log_mul hP'.ne' hg.ne']; unfold g coupling; rw [Real.log_inv,Real.log_sqrt hβ.le] |
| 177 | change -(N*(a+- (Real.log β / 2)) + _) ≤ C*(1+Real.log Y) |
| 178 | have h1 : -a ≤ |a| := neg_le_abs _ |
| 179 | have h2 : -(N*(a+- (Real.log β / 2))) ≤ N*(|a|+Real.log 2+Real.log Y) := by nlinarith only [mul_le_mul_of_nonneg_left (show -(a+- (Real.log β / 2)) ≤ |a|+Real.log 2+Real.log Y by linarith) hN] |
| 180 | have h3 : -Real.log J.scale ≤ M := neg_le_abs _ |
| 181 | unfold C; nlinarith only [h2,h3,hN,hM,mul_nonneg |
| 182 | (mul_nonneg hN (add_nonneg ha hs)) hv,mul_nonneg (add_nonneg zero_le_one hM) hv] |
| 183 | |
| 184 | /-- Bound local broad, actual Haar ratio, and frozen $s_g$ deficit |
| 185 | by one incidence-priced expenditure from Ledger. Can buy extra `e'` |
| 186 | for caller's other factors (NOT claiming all fit!). -/ |
| 187 | def tally (C E : ℝ) (L : Side) (l : ℕ) := 16*E*(vans L l:ℝ)+C*(vans L 11:ℝ) |
| 188 | lemma local_salary {β C E : ℝ} (R l : ℕ) (h : R ≤ l*radiusB x) (n : ℕ) (hnt : 4≤n) (hx : 1≤radiusB x) |
| 189 | (hd : 0<d) (hd' : d≤1) (hP : ∀ u : G.Color, ‖u‖ ≤ 4*d → |Real.log (J.J u)| ≤ E*‖u‖^2) (hE : 0 ≤ E) (hC : 0≤C) |
| 190 | (hy : 1 ≤ SectorNext.Remainder.Scales.y G S.patch.L x) |
| 191 | (he : -Real.log (spare J β) ≤ C*(1+Real.log (SectorNext.Remainder.Scales.y G S.patch.L x))) {H e' : ℝ} |
| 192 | (hK : AnnulusRatioInsertions.tally C E S.patch.L l + e' ≤ H) : |
| 193 | let Z c := SectorNext.Remainder.coin G S.patch.L c n x * O.shares |
| 194 | Real.exp (Z e') * (shortfall O A F x J β * ‖rentals O A F x q d J a R‖) ≤ Real.exp (Z H) := by |
| 195 | intro Z |
| 196 | let B := SectorNext.Remainder.Scales.b x |
| 197 | have hB : (radiusB x:ℝ) + 1=B := add_comm .. |
| 198 | let L := 1+Real.log (SectorNext.Remainder.Scales.y G S.patch.L x) |
| 199 | have hL : 1≤L := by have := Real.log_nonneg hy; unfold L; linarith |
| 200 | have hb : 1≤B := SectorNext.Remainder.Scales.size x |
| 201 | have hm' : 0≤(O.shares:ℝ) := Nat.cast_nonneg _ |
| 202 | apply (mul_le_mul_of_nonneg_left (mul_le_mul (missing_price O A F x J hx he (mul_nonneg hC (zero_le_one.trans hL))) |
| 203 | (rental_price O A F x q d J a R l h hd hP hE) (norm_nonneg _) (Real.exp_pos _).le) (Real.exp_pos _).le).trans |
| 204 | rw [← Real.exp_add,← Real.exp_add,hB]; apply Real.exp_monotone |
| 205 | let u := (vans S.patch.L l:ℝ); let v := (vans S.patch.L 11:ℝ) |
| 206 | have hu : 0 ≤ u := Nat.cast_nonneg _; have hv : 0 ≤ v := Nat.cast_nonneg _ |
| 207 | have hh : B^4 ≤ B^n := pow_le_pow_right₀ hb hnt |
| 208 | have ht : E*(4*d)^2 ≤ 16*E*L := by apply (mul_le_mul_of_nonneg_left (show (4*d)^2 ≤ 16 by nlinarith) hE).trans; nlinarith |
| 209 | change Z e'+(v*B^4*_* (C * L) + u*B^4*(O.shares:ℝ)*(E*(4*d)^2)) ≤ _ |
| 210 | have h1 : v*B^4*(O.shares:ℝ)*(C*L) ≤ C*v*B^n*L*(O.shares:ℝ) := by calc |
| 211 | _ ≤ v*B^n*(O.shares:ℝ)*(C*L) := by gcongr |
| 212 | _ = _ := by ring |
| 213 | have h2 : u*B^4*(O.shares:ℝ)*(E*(4*d)^2) ≤ 16*E*u*B^n*L*(O.shares:ℝ) := by calc |
| 214 | _ ≤ u*B^n*(O.shares:ℝ)*(16*E*L) := by gcongr |
| 215 | _ = _ := by ring |
| 216 | have hK' := mul_le_mul_of_nonneg_right hK (show 0≤B^n*L*(O.shares:ℝ) by positivity) |
| 217 | change e'*B^n*L*↑O.shares+_ ≤ H*B^n*L*↑O.shares |
| 218 | change (16*E*u+C*v+e')*_ ≤ _ at hK' |
| 219 | nlinarith only [h1,h2,hK'] |
| 220 | |
| 221 | end YM.AnalyticBridge.AnnulusRatioInsertions |