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.Bid.Drops |
| 2 | import YM.Next.FREE_KERNELS.Lifts |
| 3 | import YM.Ovens.Coffee |
| 4 | import YM.UVNext.PRICED_KERNELS.Annuity |
| 5 | import YM.Work.C06 |
| 6 | |
| 7 | |
| 8 | set_option warningAsError false |
| 9 | |
| 10 | |
| 11 | set_option linter.unusedSectionVars false |
| 12 | set_option linter.unnecessarySeqFocus false |
| 13 | |
| 14 | /-! |
| 15 | # Pre-L rooted probe/tree invoices (real periodic) |
| 16 | |
| 17 | No multiplying by number of frame outcomes or translations. Formula read |
| 18 | on actual physical sites even arbitrary sizes on issued clock. `fixRoot` and |
| 19 | `probe` of Station frame & conditional derivative take averages of complete |
| 20 | route integrals. Pay at the *scaled* rate here O(1/L) in fine site units. |
| 21 | True cost of these LINEAR rows and of given forest hiker. Includes support |
| 22 | per-anchor and later reverse asks (where produced, charge L^4 etc). Sym |
| 23 | labels & phase matching require other work. Compare . The clamped same-level rows in nonlinear tasks at a rate in |
| 24 | native fine units instead must be costed separately. |
| 25 | -/ |
| 26 | set_option autoImplicit false |
| 27 | noncomputable section |
| 28 | namespace YM.UVNext.PricedKernels |
| 29 | open Filter Set Function Lattice RG Precision Pressure Bloch Laurent Matrix Exterior Tree |
| 30 | open Next.Free |
| 31 | open scoped Topology Matrix.Norms.Frobenius BigOperators |
| 32 | variable {G : Gauge} {c f : Side} {S : StepData c f} {L : Side} |
| 33 | |
| 34 | lemma oneStep_le (x : Site f) (b : Step) : separation x (x+b.vec) ≤ 1 := by |
| 35 | rw [separation_comm,separation,add_comm,add_sub_cancel_right,Step.vec]; split |
| 36 | · rw [pdist_neg]; exact pdist_step _ |
| 37 | exact pdist_step _ |
| 38 | |
| 39 | /-- Keep sign and corner shifts of `used`. -/ |
| 40 | lemma walk_receipt (t : ℝ) (ht : 0 ≤ t) (v : form 1 f) (y : Site f) |
| 41 | (he : ∀ i : Body 1 f, |v i| ≤ gained t y i.1) (x : Site f) (w : Walk) : |
| 42 | |integralLink x w v| ≤ (w.length:ℝ) * Real.exp (t*((separation y x:ℝ)+w.length)) := by |
| 43 | induction w generalizing x with |
| 44 | | nil => simp [integralLink,linkSum] |
| 45 | | cons b w ih => |
| 46 | let e := b.used x; let u := (e.1,coord e.2) |
| 47 | have h (i j : Site f) (h : separation i j ≤ 1) : (separation y j:ℝ) ≤ (separation y i:ℝ)+1 := by |
| 48 | exact_mod_cast ((separation_triangle y i j).trans (Nat.add_le_add_left h _) : separation y j ≤ separation y i+1) |
| 49 | have hL := h _ _ (oneStep_le x b) |
| 50 | have hU : (separation y e.1:ℝ) ≤ (separation y x:ℝ)+1 := by |
| 51 | apply h; unfold e Step.used; split |
| 52 | next hb => simpa [Step.vec,hb, sub_eq_add_neg] using oneStep_le x b |
| 53 | simp |
| 54 | let A := Real.exp (t*((separation y x:ℝ)+(w.length+1:ℝ))) |
| 55 | change |(if b.neg then -v u else v u)+integralLink (x+b.vec) w v| ≤ _ |
| 56 | have hh : |if b.neg then -v u else v u| = |v u| := by split_ifs <;> simp |
| 57 | have hv : |v u| ≤ A := (he u).trans (Real.exp_monotone (mul_le_mul_of_nonneg_left |
| 58 | (le_trans hU (by linarith only [Nat.cast_nonneg (α:=ℝ) w.length])) ht)) |
| 59 | simp only [List.length_cons,Nat.cast_add,Nat.cast_one] |
| 60 | have hw := ih (x+b.vec) |
| 61 | change _ ≤ (w.length+1:ℝ)*A |
| 62 | refine (abs_add_le ..).trans ?_ |
| 63 | rw [hh]; refine (add_le_add hv (hw.trans (mul_le_mul_of_nonneg_left (Real.exp_monotone |
| 64 | (mul_le_mul_of_nonneg_left ?_ ht)) (Nat.cast_nonneg _)))).trans_eq (show A + (w.length:ℝ)*A = _ by ring) |
| 65 | linarith only [hL] |
| 66 | |
| 67 | -- bounds in radius, following UV_STRESS.Insides proof idea |
| 68 | lemma effort (P : Patch) (x y : P.Points) (i : Lattice.Order) : |
| 69 | (route x.val y.val i).length ≤ 8*P.radius := by |
| 70 | have he j : (straight j (y.val j-x.val j)).length ≤ 2*P.radius := by |
| 71 | have h₁ := (box_test.mp x.property).1 j; have h₂ := (box_test.mp x.property).2 j |
| 72 | have h₃ := (box_test.mp y.property).1 j; have h₄ := (box_test.mp y.property).2 j |
| 73 | rw [straight,List.length_replicate]; omega |
| 74 | have hv (w : List Axis) : (axisRoute x.val y.val w).length ≤ w.length*(2*P.radius) := by |
| 75 | induction w with |
| 76 | | nil => simp [axisRoute] |
| 77 | | cons j w h => |
| 78 | rw [show axisRoute x.val y.val (j::w)=_ ++ axisRoute x.val y.val w from rfl,List.length_append] |
| 79 | exact (Nat.add_le_add (he j) h).trans (by simp only [List.length_cons, add_mul,one_mul]; omega) |
| 80 | exact (hv (allAxes i)).trans (by simp [allAxes]; omega) |
| 81 | |
| 82 | lemma start_effort (S : StepData c f) (i : Site c) (x : S.patch.Points) : |
| 83 | separation (S.ratio.embed i) (atPoint S i x) ≤ 4*S.patch.radius := by |
| 84 | rw [separation_comm,separation,Precision.atPoint, add_sub_cancel_right] |
| 85 | apply (within_size ..).trans |
| 86 | unfold size |
| 87 | have h k : (x.val k).natAbs ≤ S.patch.radius := by |
| 88 | have h₁ := (box_test.mp x.property).1 k; have h₂ := (box_test.mp x.property).2 k; omega |
| 89 | exact (Finset.sum_le_sum fun k (_ : k ∈ Finset.univ) => h k).trans (by simp [Axis]) |
| 90 | |
| 91 | section patch |
| 92 | variable (S : StepData c f) (s : ℝ) (hs : 0 ≤ s) |
| 93 | |
| 94 | abbrev tollFine (S : StepData c f) (s : ℝ) := s / S.patch.L.val |
| 95 | |
| 96 | def stepC (J : ℕ) (s : ℝ) := (8:ℝ)*((J:ℝ)+3)*Real.exp (s*(12*((J:ℝ)+3))) |
| 97 | |
| 98 | lemma stepC_pos (J : ℕ) (s : ℝ) : 0 < stepC J s := by unfold stepC; positivity |
| 99 | |
| 100 | include hs |
| 101 | lemma through_patch (v : form 1 f) (x : Site c) (he : ∀ i : Body 1 f, |v i| ≤ gained (tollFine S s) (S.ratio.embed x) i.1) |
| 102 | (b : S.patch.Points) (w : Walk) (hL : w.length ≤ 8*S.patch.radius) : |
| 103 | |integralLink (atPoint S x b) w v| ≤ (S.patch.L.val:ℝ)*stepC S.patch.J s := by |
| 104 | let L := (S.patch.L.val:ℝ); let j:ℝ := S.patch.J |
| 105 | let t := tollFine S s; have h : 0<L := side_pos _ |
| 106 | have hh := walk_receipt t (div_nonneg hs h.le) v (S.ratio.embed x) he (atPoint S x b) w |
| 107 | let X := ((8:ℕ)*S.patch.radius:ℕ) |
| 108 | have hX : (w.length:ℝ) ≤ (X:ℝ) := Nat.cast_le.mpr hL |
| 109 | have ht : (separation (S.ratio.embed x) (atPoint S x b):ℝ) ≤ ((4*S.patch.radius:ℕ):ℝ) := Nat.cast_le.mpr (start_effort ..) |
| 110 | refine hh.trans ((mul_le_mul hX (Real.exp_monotone (b:=t*(((4*S.patch.radius:ℕ):ℝ)+(X:ℝ))) |
| 111 | (mul_le_mul_of_nonneg_left (add_le_add ht hX) (div_nonneg hs h.le))) (Real.exp_pos _).le (by positivity)).trans_eq ?_) |
| 112 | unfold X Patch.radius t tollFine stepC |
| 113 | push_cast |
| 114 | rw [show s/(S.patch.L.val:ℝ) * (4*(((S.patch.J :ℝ)+3)* (S.patch.L.val:ℝ)) + 8*(((S.patch.J:ℝ)+3)* (S.patch.L.val:ℝ))) = s*(12*((S.patch.J:ℝ)+3)) by field_simp; ring] -- assoc |
| 115 | ring |
| 116 | |
| 117 | lemma tau_cost (x : Body 0 c) (v : form 1 f) (he : ∀ i,|v i| ≤ gained (tollFine S s) (S.ratio.embed x.1) i.1) (b : S.patch.Points) : |
| 118 | |tau S x.1 b v| ≤ (S.patch.L.val:ℝ)*stepC S.patch.J s := by |
| 119 | have ht (d : S.patch.Points) (k : Lattice.Order) := through_patch S s hs v x.1 he b (route b.val d.val k) (effort _ b d k) |
| 120 | let p := S.patch.L.val; let F := (p:ℝ)*stepC S.patch.J s |
| 121 | have h₁ : 0 < (Fintype.card S.patch.Points:ℝ) := by exact_mod_cast Fintype.card_pos |
| 122 | have h₂ : 0 < (Fintype.card Lattice.Order:ℝ) := by exact_mod_cast Fintype.card_pos |
| 123 | have hM (d : S.patch.Points) : |(Fintype.card Lattice.Order:ℝ)⁻¹ * ∑ k : Lattice.Order, integralLink (atPoint S x.1 b) (route b.val d.val k) v| ≤ F := by |
| 124 | rw [abs_mul,abs_of_pos (inv_pos.mpr h₂)] |
| 125 | refine (mul_le_mul_of_nonneg_left (Finset.abs_sum_le_sum_abs _ _) (inv_nonneg.mpr h₂.le)).trans ?_ |
| 126 | refine (mul_le_mul_of_nonneg_left (Finset.sum_le_sum fun k (_ : k∈Finset.univ) => ht d k) (inv_nonneg.mpr h₂.le)).trans_eq ?_ |
| 127 | simp only [Finset.sum_const, Finset.card_univ,nsmul_eq_mul, inv_mul_cancel_left₀ h₂.ne']; rfl |
| 128 | unfold tau; simp only [LinearMap.neg_apply,LinearMap.smul_apply,LinearMap.sum_apply,smul_eq_mul,abs_neg] |
| 129 | rw [abs_mul,abs_of_pos (inv_pos.mpr h₁)] |
| 130 | refine (mul_le_mul_of_nonneg_left (Finset.abs_sum_le_sum_abs _ _) (inv_nonneg.mpr h₁.le)).trans ?_ |
| 131 | refine (mul_le_mul_of_nonneg_left (Finset.sum_le_sum fun k (_ : k∈Finset.univ) => hM k) (inv_nonneg.mpr h₁.le)).trans_eq ?_ |
| 132 | simp only [Finset.sum_const, Finset.card_univ,nsmul_eq_mul, inv_mul_cancel_left₀ h₁.ne']; rfl |
| 133 | |
| 134 | lemma fix_price : Annuity (parent S.ratio _) (site f _) (fixRoot S) (tollFine S s) |
| 135 | (S.patch.L.val * (2*stepC S.patch.J s)) := by |
| 136 | apply Annuity.earned; intro i v hv |
| 137 | rw [fixRoot, LinearMap.toMatrix'_mulVec]; change |_ - ((∑ _, _ ) : form 1 f →ₗ[ℝ] ℝ) v| ≤ _ -- simplify |
| 138 | simp only [LinearMap.sum_apply, LinearMap.smul_apply, smul_eq_mul] |
| 139 | have ht b := tau_cost S s hs i v hv b |
| 140 | refine (abs_sub ..).trans ?_ |
| 141 | refine (add_le_add (ht _) ((Finset.abs_sum_le_sum_abs _ _).trans (Finset.sum_le_sum (g:=fun b => S.patch.weight b * |
| 142 | ((S.patch.L.val:ℝ)*stepC S.patch.J s)) (fun b _ => ?_)))).trans_eq ?_ |
| 143 | · rw [abs_mul, abs_of_nonneg (S.patch.weight_nonneg _)] |
| 144 | exact mul_le_mul_of_nonneg_left (ht _) (S.patch.weight_nonneg _) |
| 145 | rw [← Finset.sum_mul,S.patch.weight_sum]; ring |
| 146 | |
| 147 | |
| 148 | end patch |
| 149 | end YM.UVNext.PricedKernels |