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.Rows |
| 2 | |
| 3 | /-! E replacing FDkin and resetting the coefficient of the *clipped* base. |
| 4 | Hard indicators on these quadratic atoms include the kept-row test halo. |
| 5 | Rows kept where an indicator fails still require an attachment, paid on |
| 6 | the true paths; the relaxation rate enters the soft quote. -/ |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | namespace YM.AnalyticBridge.VerifiedReset |
| 10 | open Function Filter Set Lattice Wilson RG UVNext.PricedKernels Next.Scheduling Work.F03 WilsonStartup |
| 11 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators Classical |
| 12 | attribute [local instance] Gauge.frobInner |
| 13 | variable {G : Gauge} {n : Side} {p : BudgetPoint} |
| 14 | |
| 15 | def faceCost (G : Gauge) (p : BudgetPoint) := |
| 16 | (G.colorScale ^ 2 * 2)⁻¹ * (pairingCost G.Mat p.order * feeWalk G 4 p.power p.order ^ 2) |
| 17 | lemma face_price (o : Site n) (a : PlaqAxes) (p : BudgetPoint) {Z} |
| 18 | (hz : ∀ U : Config G n,Z U → G.chord (faceValue U (o,a)) ≤ p.threshold) : |
| 19 | Bill p o Z (faceCost G p*p.threshold^2) fun U : Config G n => G.price (faceValue U (o,a)) := by |
| 20 | let l := square a.val.1 a.val.2 |
| 21 | have hl : l.length=4 := rfl |
| 22 | have he := word_fund o l p Z hz |
| 23 | let c := (G.colorScale^2*2)⁻¹; have h := G.colorScale_pos |
| 24 | have hC : 0 ≤ c := by dsimp [c]; positivity |
| 25 | have hp U : G.price (faceValue U (o,a)) = c * inner ℝ (wordStamp o l U) (wordStamp o l U (G:=G)) := by |
| 26 | rw [real_inner_self_eq_norm_sq] |
| 27 | have he := G.chord_price (faceValue U (o,a)) |
| 28 | change (‖wordStamp o l U (G:=G)‖ / G.colorScale)^2 = _ at he |
| 29 | unfold c; field_simp at he ⊢; linarith |
| 30 | rw [funext hp]; refine Bill.le (Bill.mul_left c (Bill.pair he he)) ?_ |
| 31 | unfold faceCost; rw [abs_of_nonneg hC,hl]; unfold c; apply le_of_eq; ring |
| 32 | |
| 33 | lemma slot_line_limit (s : Slot) (o : Site n) (v : Dir G n) : |
| 34 | Tendsto (fun t : ℝ => t⁻¹ • s.atSite (line v t) o) (𝓝[≠] 0) |
| 35 | (𝓝 (Exterior.linkSum v (slotFace s o).1 (square s.plaq.val.1 s.plaq.val.2))) := by |
| 36 | let u : Exterior.fieldDir G n 1 := fun i => v (i.1,Exterior.axisEquiv.symm i.2) |
| 37 | have he : Exterior.collect G u = v := funext fun i => congrArg (fun j => v (i.1,j)) (Exterior.axisEquiv.left_inv i.2) |
| 38 | simpa only [Precision.represent, show ∀ t : ℝ, Exterior.collect G (t • u) = t • v from |
| 39 | fun t => (show Exterior.collect G (t • u) = t • Exterior.collect G u from rfl).trans (congrArg _ he), faceCurl,← Exterior.fundamental,he,slotFace,line] using slot_limit s o u |
| 40 | |
| 41 | lemma slot_affine_limit (s : Slot) (o : Site n) (v : LinearJet G) (hx : 10*separation (slotFace s o).1 o < n.val) (hn : 4 ≤ n.val) : |
| 42 | Tendsto (fun t : ℝ => t⁻¹ • s.atSite (line (v.field o) t) o) (𝓝[≠] 0) (𝓝 (v.positive s.plaq)) := by |
| 43 | simpa only [Square.cochain_square,v.field_step hx hn,add_sub_cancel_left, LinearJet.curl,LinearJet.positive] using slot_line_limit s o (v.field o) |
| 44 | |
| 45 | def rowCost (G : Gauge) (p : BudgetPoint) (l : ℕ) := (2:ℝ)⁻¹ * (pairingCost G.Color p.order * Wages.slotCost G p.power p.order l ^ 2) |
| 46 | def lowCost (G : Gauge) (p : BudgetPoint) (l : ℕ) := (2:ℝ)⁻¹*pairBill G p + (faceCost G p + rowCost G p l) |
| 47 | lemma faceCost_nonneg (G : Gauge) (p : BudgetPoint) : 0 ≤ faceCost G p := by unfold faceCost; have := pairing_nonneg G.Mat p.order; positivity |
| 48 | lemma row_nonneg (G : Gauge) (p : BudgetPoint) (l : ℕ) : 0 ≤ rowCost G p l := by unfold rowCost; have := pairing_nonneg G.Color p.order; positivity |
| 49 | lemma low_nonneg (G : Gauge) (p : BudgetPoint) (l : ℕ) : 0 ≤ lowCost G p l := by |
| 50 | unfold lowCost; have := pair_nonneg G p; have := faceCost_nonneg G p; have := row_nonneg G p l; positivity |
| 51 | |
| 52 | def shapeLoss (p : BudgetPoint) (c : Clip) (G : Gauge) (α Δ : ℝ) (l : ℕ) := |
| 53 | (|α+Δ| * (2*p.threshold) + |Δ| * (2:ℝ)⁻¹ * pairBill G p * p.threshold^2) * Real.exp ((l:ℝ)/c.relaxation) |
| 54 | |
| 55 | namespace Low |
| 56 | variable (R : PathData G) (c : Clip) (d : Low) (o : Site n) |
| 57 | |
| 58 | def fresh (Δ : ℝ) : Pot G n := fun U => (Δ * d.mark R c) * (d.proxy R o U - d.plain R o U) |
| 59 | def maskedPlain (p : BudgetPoint) : Pot G n := masked p.threshold (d.home R p o) fun U => d.mark R c * d.plain R o U |
| 60 | |
| 61 | def loan (p : BudgetPoint) (α Δ : ℝ) (U : Config G n) : ℝ := if Healthy p.threshold (d.home R p o) U then 0 else |
| 62 | (α+Δ)*d.live R c p o U - if Healthy p.threshold {o} U then Δ*d.mark R c*d.proxy R o U else 0 |
| 63 | |
| 64 | lemma plain_bill (h : Decent c p) : Bill p o (Healthy p.threshold (d.home R p o)) |
| 65 | ((faceCost G p + rowCost G p (d.length R))*p.threshold^2) (d.plain R o) := by |
| 66 | cases hj : d.2 with |
| 67 | | inl _ => |
| 68 | unfold plain; rw [hj]; simp only [Sum.elim_inl]; refine Bill.le (face_price o d.1 p fun U hU => kept_small _ _ _ _ |
| 69 | (kept_small_halo h (healthy_mono (d.halo_home ..) hU))) ?_ |
| 70 | nlinarith only [mul_nonneg (row_nonneg G p (d.length R)) (sq_nonneg p.threshold)] |
| 71 | | inr j => |
| 72 | let u := d.home R p o |
| 73 | have hs (s : Slot) (h : s.length ≤ d.length R) (he : Wages.walkCuts s o ⊆ u) : |
| 74 | Bill p o (Healthy p.threshold u) (Wages.slotCost G p.power p.order (d.length R) * p.threshold) fun U : Config G n => s.atSite U o := by |
| 75 | have h := Wages.slotPays s s.stencil (Finset.Subset.refl _) _ h o (G:=G) p |
| 76 | exact ⟨h.smooth, h.nonneg,fun l hl hd U hU => h.bound l hl hd U (healthy_mono he hU)⟩ |
| 77 | obtain ⟨hl,hr⟩ := walk_home R d p o hj |
| 78 | have he := Bill.mul_left 2⁻¹ (Bill.pair (hs (left R d j) ?_ hl) (hs (right R d j) ?_ hr)) |
| 79 | · unfold plain; rw [hj]; dsimp only [Sum.elim_inr]; simp_rw [div_eq_inv_mul]; refine Bill.le he ?_ |
| 80 | rw [abs_of_pos (by norm_num)]; unfold rowCost |
| 81 | nlinarith only [mul_nonneg (faceCost_nonneg G p) (sq_nonneg p.threshold)] |
| 82 | · simp [Low.length,hj] |
| 83 | simp [Low.length,hj] |
| 84 | |
| 85 | lemma proxy_bill (p : BudgetPoint) : Bill p o (Healthy p.threshold {o}) |
| 86 | ((2:ℝ)⁻¹ * (pairBill G p * p.threshold^2)) (proxy R d o) := by |
| 87 | have h (a b : PlaqAxes) := Bill.mul_left 2⁻¹ (pair_paid (G:=G) p o a b) |
| 88 | unfold proxy analogue; cases hj : d.2 <;> dsimp only [Sum.elim_inl,Sum.elim_inr] <;> |
| 89 | simpa only [div_eq_inv_mul,abs_of_pos (show (0:ℝ)<2⁻¹ by norm_num)] using h _ _ |
| 90 | lemma fresh_bill (h : Decent c p) (Δ : ℝ) : Bill p o (Healthy p.threshold (d.home R p o)) |
| 91 | (|Δ| * p.threshold^2 * (|d.mark R c| * lowCost G p (d.length R))) (fresh R c d o Δ) := by |
| 92 | have h' := proxy_bill R d o p |
| 93 | have hp : Bill p o (Healthy p.threshold (d.home R p o)) ((2:ℝ)⁻¹ * (pairBill G p * p.threshold^2)) (d.proxy R o) := |
| 94 | ⟨h'.smooth,h'.nonneg,fun l hl hd U hU => h'.bound l hl hd U (healthy_mono (Finset.singleton_subset_iff.mpr (d.small_home ..)) hU)⟩ |
| 95 | exact Bill.le (Bill.mul_left (Δ * d.mark R c) (Bill.sub hp (d.plain_bill R c o h))) (by rw [abs_mul]; unfold lowCost; apply le_of_eq; ring) |
| 96 | lemma fresh_regular (h : Decent c p) (Δ : ℝ) : p.Regular (d.home R p o) (fresh R c d o Δ) := |
| 97 | reg_bill (fresh_bill R c d o h Δ) (continuous_const.mul ((proxy_cont ..).sub (plain_cont ..)) |>.measurable) |
| 98 | (fun U V hU => by rw [fresh, fresh,d.plain_local R p h.radius o U V hU, d.proxy_local R o U V (agrees_mono hU (Finset.coe_subset.mpr (d.clover_home R h.radius o)))]) |
| 99 | (fun k U => by simp only [fresh, proxy_gauge R d o k U,plain_gauge R d o k U]) |
| 100 | @[simp] lemma fresh_one (Δ : ℝ) : d.fresh R c o Δ 1 = 0 := by |
| 101 | simp [fresh,plain,proxy,analogue,atSite_path,face_one,G.price_one,G.curvature_unit] |
| 102 | |
| 103 | lemma plain_limit (h : Nonwrapping (d.home R p o) o) (hn : 4 ≤ n.val) (v : LinearJet G) : |
| 104 | Tendsto (fun t : ℝ => d.plain R o (line (v.field o) t) / t^2) (𝓝[≠] 0) (𝓝 (d.analogue R v.positive)) := by |
| 105 | cases hj : d.2 with |
| 106 | | inl _ => |
| 107 | have he : Exterior.linkSum (v.field o) o (square d.1.val.1 d.1.val.2) = v.positive d.1 := by |
| 108 | rw [Square.cochain_square, v.field_step (h _ (d.small_home R p o)) hn,v.field_step (h _ (d.small_home R p o)) hn]; simp [LinearJet.positive,LinearJet.curl] |
| 109 | simp only [plain,analogue,hj,Sum.elim_inl,real_inner_self_eq_norm_sq,← he] |
| 110 | exact price_limit (V:=fun t => faceValue (line (v.field o) t) (o,d.1)) (by simp [face_one]) (Square.word_deriv o _ _) |
| 111 | | inr j => |
| 112 | have hs (s : Slot) (hS : Wages.walkCuts s o ⊆ d.home R p o) := slot_affine_limit s o v (h _ (hS (offset_inside ..))) hn |
| 113 | have ⟨h',h''⟩ := walk_home R d p o hj |
| 114 | rw [analogue,hj,Sum.elim_inr] |
| 115 | exact ((pair_limit (hs _ h') (hs _ h'')).div_const 2).congr (fun t => by simp only [plain,hj,Sum.elim_inr]; ring) |
| 116 | lemma fresh_vanish (hG : G.Simple) (h : Decent c p) (hx : Nonwrapping (d.home R p o) o) (hn : 20 < n.val) (Δ : ℝ) : ∀ x y, |
| 117 | IsAffineDirection o x → IsAffineDirection o y → logHessian (fresh R c d o Δ) x y = 0 := by |
| 118 | apply affine_zero (fresh_regular R c d o h Δ); intro v |
| 119 | have hP : Tendsto (fun t => d.proxy R o (line (v.field o) t) / t^2) (𝓝[≠] 0) (𝓝 (d.analogue R v.positive)) := by |
| 120 | cases hj : d.2 <;> simp only [proxy,analogue,hj,Sum.elim_inr, Sum.elim_inl] <;> |
| 121 | exact ((pair_limit (petals_limit _ o hn v) (petals_limit _ o hn v)).div_const 2).congr (fun t => by ring) |
| 122 | have he := (hP.sub (plain_limit R d o hx (by omega) v)).const_mul (Δ*d.mark R c) |
| 123 | simp only [sub_self,mul_zero] at he |
| 124 | simp only [← sub_div,← mul_div_assoc] at he |
| 125 | have := tendsto_nhds_unique he (hessian_limit hG (d.fresh_regular R c o h Δ) (fresh_one ..) (v.field o)); linarith |
| 126 | lemma visits (p : BudgetPoint) (α Δ U) (he : d.loan R c o p α Δ U ≠ 0) : ¬Healthy p.threshold (d.home R p o) U := fun h => he (if_pos h) |
| 127 | lemma loan_gauge (p : BudgetPoint) (α Δ) : GaugeInvariant (d.loan R c o p α Δ) := by |
| 128 | intro k U; simp only [loan, Healthy, gauge_flags, live_gauge R c d o k U,proxy_gauge R d o k U]; congr! |
| 129 | lemma loan_meas (p : BudgetPoint) (α Δ) : Measurable (d.loan R c o p α Δ) := |
| 130 | Measurable.ite (healthy_closed ..).measurableSet measurable_const <| |
| 131 | (measurable_const.mul (live_meas ..)).sub (Measurable.ite (healthy_closed ..).measurableSet |
| 132 | (measurable_const.mul (proxy_cont ..).measurable) measurable_const) |
| 133 | lemma loan_reads (h : Decent c p) (α Δ) : UsesFinal p.threshold (d.home R p o) (d.loan R c o p α Δ) := by |
| 134 | intro U V he hh |
| 135 | simp only [loan, healthy_reads _ _ _ (Finset.Subset.refl _) U V he hh, healthy_reads _ {o} _ (Finset.singleton_subset_iff.mpr |
| 136 | (d.small_home R p o)) U V he hh,d.live_local R c h o U V he, d.proxy_local R o U V (agrees_mono he (Finset.coe_subset.mpr (d.clover_home R h.radius o)))] |
| 137 | lemma loan_bound (p : BudgetPoint) (α Δ U) : ‖d.loan R c o p α Δ U‖ ≤ shapeLoss p c G α Δ (d.length R)* |d.mark R c| := by |
| 138 | have hp := p.threshold_pos; have hc := c.radius_pos; have hb := pair_nonneg G p |
| 139 | let e := Real.exp ((d.length R : ℝ)/c.relaxation) |
| 140 | have he : 1 ≤ e := Real.one_le_exp (by exact div_nonneg (Nat.cast_nonneg _) hc.le) |
| 141 | have hpos : 0 ≤ shapeLoss p c G α Δ (d.length R) := by unfold shapeLoss; positivity |
| 142 | unfold loan; split |
| 143 | · rw [norm_zero]; exact mul_nonneg hpos (abs_nonneg _) |
| 144 | refine (norm_sub_le ..).trans ?_ |
| 145 | rw [norm_mul,Real.norm_eq_abs] |
| 146 | let C := (2:ℝ)⁻¹ * pairBill G p * p.threshold^2 |
| 147 | refine (add_le_add (mul_le_mul_of_nonneg_left (d.shapeBound R c o U) (abs_nonneg (α+Δ))) |
| 148 | (show ‖(if Healthy p.threshold {o} U then Δ*d.mark R c*d.proxy R o U else (0:ℝ))‖ ≤ (|Δ| * |d.mark R c|) * (C*e) from ?_)).trans_eq ?_ |
| 149 | · have hn : 0 ≤ C := by unfold C; positivity |
| 150 | split |
| 151 | next h => |
| 152 | rw [Real.norm_eq_abs, abs_mul,abs_mul]; gcongr |
| 153 | exact ((Bill.norm (d.proxy_bill R o p) (l:=[]) (by simp) (by simp) h).trans_eq (by dsimp [C]; ring)).trans |
| 154 | (le_mul_of_one_le_right hn he) |
| 155 | rw [norm_zero]; exact mul_nonneg (by positivity) (mul_nonneg hn (zero_le_one.trans he)) |
| 156 | unfold shapeLoss C e; ring |
| 157 | lemma loans_identity (h : Decent c p) (α Δ : ℝ) (U) : |
| 158 | (α+Δ)*d.live R c p o U + masked p.threshold (d.home R p o) (d.fresh R c o Δ) U = |
| 159 | α*d.maskedPlain R c o p U + Δ*d.mark R c*masked p.threshold {o} (d.proxy R o) U + d.loan R c o p α Δ U := by |
| 160 | unfold loan maskedPlain; split |
| 161 | next he => rw [masked_eq _ _ _ _ he,masked_eq _ _ _ _ he,masked_eq _ _ _ _ (healthy_mono (Finset.singleton_subset_iff.mpr |
| 162 | (d.small_home ..)) he), live_plain R c d h o he]; unfold fresh; ring |
| 163 | next he => rw [masked_ne _ _ _ _ he,masked_ne _ _ _ _ he]; split <;> rename_i hb |
| 164 | · rw [masked_eq _ _ _ _ hb]; ring |
| 165 | rw [masked_ne _ _ _ _ hb]; ring |
| 166 | lemma loan_sub (p : BudgetPoint) (α Δ α' Δ' U) : |
| 167 | d.loan R c o p α Δ U - d.loan R c o p α' Δ' U = d.loan R c o p (α-α') (Δ-Δ') U := by |
| 168 | unfold loan; split_ifs <;> ring |
| 169 | lemma fresh_sub (Δ Δ') : d.fresh R c o Δ - d.fresh R c o Δ' = d.fresh R c o (Δ-Δ') := by funext U; simp [fresh]; ring |
| 170 | end Low |
| 171 | end YM.AnalyticBridge.VerifiedReset |