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.VERIFIED_RESET_STEP.Trays |
| 2 | |
| 3 | /-! All-position fees for the gathering at an output. r*H enters the |
| 4 | regular class with a pre-L multiplier only (no hidden t/radius sizes). |
| 5 | Post-L clipping/hit and higher-order prices explicit. Not paying these |
| 6 | fees just because labels/operations on another prescription were paid. -/ |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | namespace YM.AnalyticBridge.VerifiedReset.Collection |
| 10 | open Function Filter Set Lattice Wilson RG Ovens Quotes Residual WilsonStartup UVNext.PricedKernels Averaging Geo Progress.DirectedRecipe Extra.Iteration |
| 11 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators Classical |
| 12 | variable {G : Gauge} {n : Side} {R : PathData G} {c : Clip} {p : BudgetPoint} {σ C Λ H w α Δ : ℝ} |
| 13 | {X : Listing G n} {v : Source G n} |
| 14 | |
| 15 | def turnFee (p : BudgetPoint) := Push.Local.turnCost p.order p.power |
| 16 | lemma turnFee_pos (p : BudgetPoint) : 0 < turnFee p := by unfold turnFee Push.Local.turnCost; positivity |
| 17 | |
| 18 | -- unrotated expenses from sums, rotated jets cost turnFee; loosen factor≤1 |
| 19 | -- to permit a simpler presentation. These coefficients before multiplies by |
| 20 | -- H are pre-L; α does NOT pay the 2nd order residual part. |
| 21 | def regularNeed (G : Gauge) (p : BudgetPoint) (c : Clip) (σ C α H : ℝ) := resetFee G p*H + |
| 22 | turnFee p*(H * lowBase G c p σ C + (|α| * p.threshold^3+H)*highBase G p σ C) |
| 23 | def hitPower (p : BudgetPoint) (G : Gauge) (α Δ : ℝ) := |
| 24 | |α+Δ| * (2*p.threshold) + |Δ| * (2:ℝ)⁻¹ * pairBill G p * p.threshold^2 |
| 25 | def hitNeed (p : BudgetPoint) (G : Gauge) (α H : ℝ) := |
| 26 | (|α|+H/p.threshold^2) * (2*p.threshold) + H * (2:ℝ)⁻¹ * pairBill G p |
| 27 | def softNeed (G : Gauge) (p : BudgetPoint) (c : Clip) (σ C α H : ℝ) := softReset G p H + hitNeed p G α H * lowHard p c σ C |
| 28 | |
| 29 | lemma budget_pos (p : BudgetPoint) (G : Gauge) (c : Clip) {σ C : ℝ} (hs : 0 < σ) (hc : 0 ≤ C) : |
| 30 | 0 ≤ lowBase G c p σ C ∧ 0 ≤ highBase G p σ C ∧ 0 ≤ lowHard p c σ C := by |
| 31 | have := lowFee_nonneg G p hs |
| 32 | have := c.quadratic_pos |
| 33 | have := both_pos G p hs |
| 34 | have h : 0 ≤ (1-Real.exp (-(σ/4)))⁻¹ := inv_nonneg.mpr (sub_nonneg.mpr (Real.exp_le_one_iff.mpr (by linarith))) |
| 35 | unfold lowBase highBase lowHard anchoredFee lowerSize Push.AbsoluteSums.Footprint.payment Push.AbsoluteSums.Footprint.degreeIncome |
| 36 | exact ⟨by positivity, by positivity,by positivity⟩ |
| 37 | |
| 38 | lemma fresh_allow (hΔ : p.threshold^2 * |Δ| ≤ H) : |α+Δ| * p.threshold^3 ≤ |α| * p.threshold^3 + H := by |
| 39 | have h := abs_add_le α Δ |
| 40 | have ht := p.threshold_pos; have hk := p.threshold_le |
| 41 | linarith only [mul_le_mul_of_nonneg_right h (pow_nonneg ht.le 3),mul_le_mul_of_nonneg_right hk (mul_nonneg (abs_nonneg Δ) (sq_nonneg p.threshold)),hΔ] |
| 42 | lemma hitPower_pos (p : BudgetPoint) (G : Gauge) (α Δ : ℝ) : 0 ≤ hitPower p G α Δ := by |
| 43 | unfold hitPower; have := pair_nonneg G p; have := p.threshold_pos; positivity |
| 44 | lemma hit_allow (hΔ : p.threshold^2 * |Δ| ≤ H) : hitPower p G α Δ ≤ hitNeed p G α H := by |
| 45 | have ht := p.threshold_pos; have hk := (le_div_iff₀ (sq_pos_of_pos ht)).mpr ((mul_comm |Δ| _).trans_le hΔ) |
| 46 | unfold hitPower hitNeed; linarith only [mul_le_mul_of_nonneg_right ((abs_add_le α Δ).trans (add_le_add_right hk _)) (show 0 ≤ 2*p.threshold by linarith),mul_le_mul_of_nonneg_right hΔ (pair_nonneg G p)] |
| 47 | |
| 48 | -- Definition includes only *numbers*. Must check all before calling RG. |
| 49 | structure Fees (G : Gauge) (p : BudgetPoint) (c : Clip) (σ C α H w δ γ : ℝ) : Prop where |
| 50 | regular : regularNeed G p c σ C α H ≤ δ |
| 51 | hard : ∃ m κ, softNeed G p c σ C α H ≤ m ∧ Payments.Rates p.B γ w m κ |
| 52 | |
| 53 | def quoteE (R : PathData G) (p : BudgetPoint) (c : Clip) (α Δ : ℝ) (u : ℕ → ℝ) : EKey n → ℝ := Sum.elim (fun i => resetLoss G p * u i) |
| 54 | (Sum.elim (fun i => turnFee p * (|Δ| *p.threshold^2) * (|i.2.mark R c| * lowCost G p (i.2.length R))) |
| 55 | fun i => turnFee p * (|α+Δ| * p.threshold^3) * i.2.price R p) |
| 56 | def quoteL (R : PathData G) (p : BudgetPoint) (c : Clip) (α Δ : ℝ) (u : ℕ → ℝ) : LKey n → ℝ := Sum.elim (fun i => resetLoss G p * u i) |
| 57 | fun i => hitPower p G α Δ * (Real.exp ((i.2.length R:ℝ)/c.relaxation) * |i.2.mark R c|) |
| 58 | namespace Local |
| 59 | variable (g : G.Simple) (h : Local X p v H w) (hx : R.Bounds c σ C Λ) (hc : Decent c p) (hw : Width p c σ) (α Δ : ℝ) |
| 60 | {u : ℕ → ℝ} |
| 61 | (h1 : ∀ i, p.supBounds (X.reg i).site (X.reg i).support (v.logRead i) (u i)) |
| 62 | variable (hs : ∀ i, p.Regular (X.reg i).support (v.logRead i)) |
| 63 | include g hs h1 |
| 64 | |
| 65 | include hx hc in |
| 66 | lemma quote_regular (i : EKey n) : p.supBounds (incoming X R p i).site (incoming X R p i).support |
| 67 | (archive X R c v α Δ i) (quoteE R p c α Δ u i) := by |
| 68 | rcases i with i|⟨a,d⟩|⟨a,d⟩ |
| 69 | · exact rebate_sup _ g (hs i) (h1 i) |
| 70 | · refine sup_le (a.sup (d.fresh_regular R c _ hc (factor*Δ)) (Bill.sup (d.fresh_bill R c _ hc _) (fun _ h => h))) ?_ |
| 71 | change turnFee p * (|factor*Δ| * p.threshold^2 * (|d.mark R c| * lowCost G p (d.length R))) ≤ |
| 72 | turnFee p * (|Δ| * p.threshold^2) * (|d.mark R c| * lowCost G p (d.length R)) |
| 73 | rw [mul_assoc (turnFee p),abs_mul,abs_of_pos factor_pos]; gcongr |
| 74 | · exact turnFee_pos p |>.le |
| 75 | · exact mul_nonneg (abs_nonneg _) (low_nonneg ..) |
| 76 | exact mul_le_of_le_one_left (abs_nonneg _) factor_le |
| 77 | refine sup_le (a.sup (d.fresh_regular R _ hx p (factor*α) (factor*Δ)) (Bill.sup (d.fresh_bill ..) (fun _ he => he))) ?_ |
| 78 | change turnFee p * (|factor*α+factor*Δ| * (d.price R p*p.threshold^3)) ≤ turnFee p * (|α+Δ| * p.threshold^3) * d.price R p |
| 79 | rw [mul_assoc (turnFee p), mul_assoc, mul_comm (_^3:ℝ),← mul_add,abs_mul, abs_of_pos factor_pos]; gcongr |
| 80 | · exact turnFee_pos p |>.le |
| 81 | · exact mul_nonneg (High.price_nn ..) (pow_nonneg p.threshold_pos.le _) |
| 82 | exact mul_le_of_le_one_left (abs_nonneg _) factor_le |
| 83 | |
| 84 | lemma quote_soft (i : LKey n) (U : Config G n) : ‖loses X R c p v α Δ i U‖ ≤ quoteL R p c α Δ u i := by |
| 85 | rcases i with i|⟨a,d⟩ |
| 86 | · exact fault_sup _ g (hs i) (h1 i) U |
| 87 | refine (Low.loan_bound R c d 0 p (factor*α) (factor*Δ) _).trans ?_ |
| 88 | change shapeLoss _ _ _ _ _ _ * |d.mark R c| ≤ hitPower p G α Δ * (Real.exp _ * |d.mark R c|) |
| 89 | rw [shapeLoss, ← mul_assoc (hitPower ..), ← mul_add, abs_mul factor, abs_mul factor, abs_of_pos factor_pos]; unfold hitPower |
| 90 | have he (x : ℝ) := mul_le_of_le_one_left (abs_nonneg x) factor_le |
| 91 | have hb := pair_nonneg G p; have hp := p.threshold_pos; gcongr <;> exact he _ |
| 92 | |
| 93 | include hw hx hc in |
| 94 | omit g hs in |
| 95 | lemma quote_family (hu : Quotes.early p X.reg u H) (hΔ : p.threshold^2* |Δ| ≤ H) : |
| 96 | anchored p (incoming X R p) (quoteE R p c α Δ u) (regularNeed G p c σ C α H) ∧ |
| 97 | Ac.Hit (soft X R p) p.B (quoteL R p c α Δ u) (p.supportExponent+1) (softNeed G p c σ C α H) := by |
| 98 | have hC := Cost.nonneg hx.three |
| 99 | have ⟨he,hk⟩ := enlarging G X.reg hc.radius (fun i => (h1 i).1) hu |
| 100 | obtain ⟨ha,hb,hl⟩ := rows (n:=n) G R c p hx hw |
| 101 | obtain ⟨hL,hH,hD⟩ := budget_pos p G c hx.width hC |
| 102 | have ht := turnFee_pos p |
| 103 | have hp := p.threshold_pos |
| 104 | refine ⟨fun o => Cost.enlarge (Cost.sum (he o) (Cost.sum |
| 105 | (anchored_scale (r:=turnFee p*(|Δ| * p.threshold^2)) (by positivity) ha o) |
| 106 | (anchored_scale (r:=turnFee p*(|α+Δ| * p.threshold^3)) (by positivity) hb o))) ?_, fun x => ?_⟩ |
| 107 | · unfold regularNeed; linarith only [mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right hΔ hL) ht.le, |
| 108 | mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right (fresh_allow hΔ (α:=α)) hH) ht.le] |
| 109 | refine Cost.enlarge (Cost.sum (hk x) ((hit_scale (hitPower_pos p G α Δ) hl) x)) ?_ |
| 110 | unfold softNeed; exact add_le_add_right (mul_le_mul_of_nonneg_right (hit_allow hΔ) hD) _ |
| 111 | |
| 112 | omit hs h1 in |
| 113 | include h in |
| 114 | include hw hx hc in |
| 115 | theorem renew {δ γ : ℝ} (hn : 20 < n.val) (hF : Fees G p c σ C α H w δ γ) : Ingredients (shelves X R p) |
| 116 | (fill X R c p v α (delta (X.read v))) p δ γ := by |
| 117 | let Δ := delta (X.read v); let Y := shelves X R p; let d := fill X R c p v α Δ |
| 118 | have hΔ := delta_bound g h.projects |
| 119 | obtain ⟨u,hu,hb⟩ := h.cheap |
| 120 | obtain ⟨k,hk,hK⟩ := h.expensive |
| 121 | obtain ⟨he,hL⟩ := quote_family hx hc hw α _ hu hb hΔ |
| 122 | obtain ⟨m,κ,hm,hR⟩ := hF.hard |
| 123 | have hQ (i : ℕ) := quote_soft (R:=R) (c:=c) g α Δ hu h.smooth (numbering _ i) |
| 124 | exact Payments.tender (h.fittings g hx hc hn α Δ) |
| 125 | (show (Y.pours d).EBound p δ from ⟨_,fun i => quote_regular g hx hc α Δ hu h.smooth (numbering _ i),fun x => |
| 126 | Cost.equiv (numbering _) (Cost.enlarge (he x) hF.regular)⟩) |
| 127 | (show Payments.hardCost p Y k w from ⟨fun i => (hk i).1,hK⟩) ⟨fun i => (norm_nonneg _).trans (hQ i 1),fun x => |
| 128 | Cost.equiv (numbering _) (Cost.enlarge (hL x) hm)⟩ (fun i U => ⟨(hk i).2 U,hQ i U⟩) hR |
| 129 | |
| 130 | end Local |
| 131 | end YM.AnalyticBridge.VerifiedReset.Collection |