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.Lines |
| 2 | import YM.Next.FREE_KERNELS.Amend |
| 3 | import YM.Push.STRESS_FLUX.Orbits |
| 4 | |
| 5 | |
| 6 | /-! E:eq:qiFi. Actual operations on each HRGv term and support including |
| 7 | failed indicator discrepancy; no flat subtraction through a `K` boundary. -/ |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | namespace YM.AnalyticBridge.VerifiedReset |
| 11 | open Function Filter Set Lattice Wilson RG StressFlux UVNext.PricedKernels Next.Scheduling |
| 12 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators Classical |
| 13 | variable {G : Gauge} {n : Side} {p : BudgetPoint} {X Y : Support n} |
| 14 | |
| 15 | lemma healthy_image (s : Signed) (b : Site n) (t : ℝ) (U : Config G n) : |
| 16 | Healthy t (X.image (affine s b)) U ↔ Healthy t X (pull s b U) := by |
| 17 | unfold Healthy; rw [← Work.H03.flags_send s b t U]; exact Finset.disjoint_image (f:=affine s b) (fun _ _ h => s.act_injective (add_right_cancel h)) |
| 18 | lemma healthy_mono (h : X ⊆ Y) {t : ℝ} {U : Config G n} (hh : Healthy t Y U) : Healthy t X U := Finset.disjoint_of_subset_left h hh |
| 19 | lemma healthy_reads (t : ℝ) (X Y : Support n) (h : X ⊆ Y) : UsesFinal t Y (Healthy t X (G:=G)) := |
| 20 | Work.H03.reads_larger h (fun _ _ _ he => by rw [Healthy, Healthy, Finset.disjoint_iff_inter_eq_empty, he,Finset.disjoint_iff_inter_eq_empty]) |
| 21 | lemma uses_of_regular {f : Pot G n} (h : p.Regular X f) : UsesFinal p.threshold X f := fun U V ha _ => h.sites U V ha |
| 22 | lemma pull_one_field (s : Signed) (b : Site n) : pull s b (1:Config G n) = 1 := by funext i; simp [pull,Step.read] |
| 23 | |
| 24 | namespace Residual |
| 25 | variable (d : RegularAddress n) (f : Pot G n) (t : ℝ) |
| 26 | |
| 27 | def payout := counter (projection d f) d.site (G:=G) |
| 28 | def rebate : Pot G n := (f - fun _ => f 1) - payout d f |
| 29 | def fault (U : Config G n) : ℝ := if Healthy t (expand d) U then 0 else |
| 30 | f 1 + (if Healthy t {d.site} U then payout d f U else 0) - if Healthy t d.support U then f U else 0 |
| 31 | |
| 32 | def multiplier (G : Gauge) (p : BudgetPoint) := (2:ℝ)⁻¹ * Fintype.card PlaqAxes * Fintype.card PlaqAxes * (3 * pairBill G p) |
| 33 | lemma multiplier_nonneg (G : Gauge) (p : BudgetPoint) : 0 ≤ multiplier G p := by unfold multiplier; have := pair_nonneg G p; positivity |
| 34 | |
| 35 | def resetLoss (G : Gauge) (p : BudgetPoint) := 2 + multiplier G p |
| 36 | lemma loss_pos (G : Gauge) (p : BudgetPoint) : 0 < resetLoss G p := by unfold resetLoss; linarith [multiplier_nonneg G p] |
| 37 | |
| 38 | section |
| 39 | variable {f} (hG : G.Simple) (hf : p.Regular d.support f) |
| 40 | include hf |
| 41 | set_option linter.unusedSectionVars false in |
| 42 | lemma payout_regular : p.Regular (expand d) (payout d f) := reg_larger (counter_regular _ _ _) Finset.subset_union_right |
| 43 | include hG in |
| 44 | lemma payout_bill {c : ℝ} (h : p.supBounds d.site d.support f c) : Bill p d.site (Healthy p.threshold {d.site}) (multiplier G p*c) |
| 45 | (payout d f) := by |
| 46 | refine Bill.le (counter_bill d.site _ p) ?_ |
| 47 | have he (a b : PlaqAxes) : |projection d f a b| * (pairBill G p*p.threshold^2) ≤ 3*c * pairBill G p := by |
| 48 | linarith only [mul_le_mul_of_nonneg_right (projection_bound d hG hf h a b) (pair_nonneg G p)] |
| 49 | apply le_trans (mul_le_mul_of_nonneg_left (Finset.sum_le_sum fun a (_ : a∈Finset.univ) => |
| 50 | Finset.sum_le_sum fun b (_ : b∈Finset.univ) => he a b) (by norm_num)); simp [multiplier]; apply le_of_eq; ring |
| 51 | lemma rebate_regular : p.Regular (expand d) (rebate d f) := |
| 52 | reg_sub (reg_sub (reg_larger hf Finset.subset_union_left) (reg_const _)) (payout_regular d hf) |
| 53 | omit hf in |
| 54 | @[simp] lemma rebate_one : rebate d f 1 = 0 := by simp [rebate,payout,counter,quad] |
| 55 | include hG in |
| 56 | lemma rebate_vanish (h : Nonwrapping (expand d) d.site) (hn : 20 < n.val) : ∀ x y, IsAffineDirection d.site x → |
| 57 | IsAffineDirection d.site y → logHessian (rebate d f) x y = 0 := by |
| 58 | apply affine_zero (rebate_regular d hf); intro v |
| 59 | unfold rebate |
| 60 | have hl := LinearJet.hessian_curl hG hf (o:=d.site) (fun x hx => h x (Finset.mem_union_left _ hx)) (by omega : 4 ≤ n.val) |
| 61 | (positive_primitive v.positive) (positive_primitive v.positive) |
| 62 | rw [hessian_sub (reg_sub (reg_larger hf Finset.subset_union_left) (reg_const _)) (payout_regular d hf), |
| 63 | hessian_sub hf (reg_const _),hessian_zero,sub_zero,payout,counter_diag hG p d.site hn,projection_eq hG hf h,hl,sub_self] |
| 64 | |
| 65 | include hG in |
| 66 | lemma rebate_sup {c : ℝ} (h : p.supBounds d.site d.support f c) : p.supBounds d.site (expand d) (rebate d f) (resetLoss G p*c) := by |
| 67 | have he : |f 1| ≤ c := h.2 1 (flat_ok ..) [] (by simp) (by simp) |
| 68 | refine sup_le (sup_sub (reg_sub (reg_larger hf Finset.subset_union_left) (reg_const _)) (payout_regular d hf) |
| 69 | (sup_larger (sup_sub hf (reg_const _) h (sup_const _)) Finset.subset_union_left) |
| 70 | (Bill.sup (payout_bill d hG hf h) (fun _ => healthy_mono (Finset.singleton_subset_iff.mpr (Finset.mem_union_left _ d.anchor))))) ?_ |
| 71 | unfold resetLoss; linarith |
| 72 | |
| 73 | omit hf in |
| 74 | lemma visits {U : Config G n} (h : fault d f t U ≠ 0) : ¬ Healthy t (expand d) U := fun he => h (if_pos he) |
| 75 | lemma fault_meas : Measurable (fault d f t) := |
| 76 | Measurable.ite (healthy_closed ..).measurableSet measurable_const ((measurable_const.add (Measurable.ite (healthy_closed ..).measurableSet |
| 77 | (payout_regular d hf).borel measurable_const)).sub (Measurable.ite (healthy_closed ..).measurableSet hf.borel measurable_const)) |
| 78 | lemma fault_gauge : GaugeInvariant (fault d f t) := by |
| 79 | intro k U; rw [fault,fault]; simp only [Healthy,gauge_flags,(payout_regular d hf).symmetry k U, hf.symmetry k U] |
| 80 | congr! |
| 81 | lemma fault_reads : UsesFinal t (expand d) (fault d f t) := by |
| 82 | intro U V ha he |
| 83 | have h := healthy_reads (G:=G) t _ _ (Finset.singleton_subset_iff.mpr (Finset.mem_union_left (halo 2 {d.site}) d.anchor)) U V ha he |
| 84 | rw [fault,fault,healthy_reads t _ _ (Finset.Subset.refl _) U V ha he,healthy_reads t _ _ Finset.subset_union_left U V ha he, h, |
| 85 | (payout_regular d hf).sites U V ha,hf.sites U V (agrees_mono ha (Finset.coe_subset.mpr Finset.subset_union_left))] |
| 86 | |
| 87 | lemma counter_moves {s : Signed} {b : Site n} (hn : 4 ≤ n.val) {e : RegularAddress n} (hm : e.support = d.support.image (affine s b)) |
| 88 | (h : e.site = affine s b d.site) {g : Pot G n} (hG : G.Simple) (hg : p.Regular e.support g) (he : g = f ∘ pull s b) (U : Config G n) : |
| 89 | payout e g U = payout d f (pull s b U) := by |
| 90 | unfold payout counter; rw [petals_moves,quad_moves _ _ hn hm h hG hf hg he,h] |
| 91 | lemma label_moves {s : Signed} {b : Site n} (hn : 4 ≤ n.val) {e : RegularAddress n} (hm : e.support = d.support.image (affine s b)) |
| 92 | (h : e.site = affine s b d.site) {g : Pot G n} (hG : G.Simple) (hg : p.Regular e.support g) (he : g = f ∘ pull s b) (U : Config G n) : |
| 93 | rebate e g U = rebate d f (pull s b U) ∧ fault e g t U = fault d f t (pull s b U) := by |
| 94 | have ht := counter_moves d hf hn hm h hG hg he U |
| 95 | have hv : Healthy t {e.site} U ↔ Healthy t {d.site} (pull s b U) := by |
| 96 | rw [h,← Finset.image_singleton]; exact healthy_image .. |
| 97 | simp only [rebate,Pi.sub_apply,fault,expand_moves d e _ _ hm h,hm,healthy_image,hv,ht] |
| 98 | simp only [he,comp_apply,pull_one_field,and_self] |
| 99 | |
| 100 | include hG in |
| 101 | lemma fault_sup {c : ℝ} (h : p.supBounds d.site d.support f c) (U) : ‖fault d f p.threshold U‖ ≤ resetLoss G p*c := by |
| 102 | have he := h.2 1 (flat_ok ..) [] (by simp) (by simp) |
| 103 | have hQ := payout_bill d hG hf h |
| 104 | unfold fault; split |
| 105 | · rw [norm_zero]; exact mul_nonneg (loss_pos ..).le h.1 |
| 106 | refine (norm_sub_le ..).trans ((add_le_add (b:=c+multiplier G p*c) (d:=c) ((norm_add_le ..).trans (add_le_add he ?_)) ?_).trans_eq (by unfold resetLoss; ring)) |
| 107 | · split |
| 108 | next h => exact Bill.norm hQ (l:=[]) (by simp) (by simp) h |
| 109 | rw [norm_zero]; exact hQ.nonneg |
| 110 | split |
| 111 | next he => exact h.2 U he [] (by simp) (by simp) |
| 112 | rw [norm_zero]; exact h.1 |
| 113 | end |
| 114 | lemma splits (U : Config G n) : f 1 + masked t {d.site} (payout d f) U - fault d f t U + masked t (expand d) (rebate d f) U = |
| 115 | masked t d.support f U := by |
| 116 | by_cases hh : Healthy t (expand d) U |
| 117 | · have h := healthy_mono (Finset.subset_union_left (s₂:=halo 2 {d.site})) hh; rw [masked_eq _ _ _ _ hh,masked_eq _ _ _ _ h, |
| 118 | masked_eq _ _ _ _ (healthy_mono (Finset.singleton_subset_iff.mpr d.anchor) h), fault,if_pos hh]; dsimp only [rebate,Pi.sub_apply]; abel |
| 119 | rw [fault,if_neg hh,masked_ne _ _ _ _ hh]; split_ifs with h h' h' <;> |
| 120 | simp [masked_eq,masked_ne,h,h'] |
| 121 | lemma label_sub (g : Pot G n) (p : BudgetPoint) (h : p.Regular d.support f) (h' : p.Regular d.support g) : |
| 122 | rebate d (f-g) = rebate d f - rebate d g ∧ fault d (f-g) t = fault d f t - fault d g t := by |
| 123 | have he : projection d (f-g) = projection d f - projection d g := funext fun i => funext (projection_sub d h h' i) |
| 124 | have hL : payout d (f-g) = payout d f - payout d g := by rw [payout,he,← counter_sub]; rfl |
| 125 | refine ⟨funext fun U => ?_,funext fun U => ?_⟩ <;> simp only [rebate,fault,Pi.sub_apply,hL]; swap |
| 126 | · split_ifs <;> abel |
| 127 | abel |
| 128 | end Residual |
| 129 | end YM.AnalyticBridge.VerifiedReset |