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.Progress.DIRECTED_RECIPE.EvalBounds |
| 2 | |
| 3 | /-! |
| 4 | # Don't assume the evaluation continuous on a baked Curve |
| 5 | |
| 6 | Prove the parameter variation, in sup norm across all fields despite |
| 7 | hard tests. Here still at one period/configuration size. Does not evaluate |
| 8 | new families or solve β reset. Does not require global continuity of E or |
| 9 | K across fields (though the whole eval of a surviving history will turn out |
| 10 | to have nice properties separately). This continuity uses actual `Lives` |
| 11 | identity path and Clip channels. Even using subsequences in later estimates, |
| 12 | it is on this SAME family's field density and tag distributions. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.Progress.DirectedRecipe |
| 18 | open Function Set RG Wilson Lattice RG.Shoot MeasureTheory Filter |
| 19 | open scoped Topology BigOperators Matrix.Norms.Frobenius |
| 20 | |
| 21 | /-- A uniform fixed-point parameter notion across all V. -/ |
| 22 | def Varies {U : Type*} (f : ℝ → U → ℝ) (x : ℝ) (T : Set ℝ) := |
| 23 | ∀ ε : ℝ, 0<ε → ∀ᶠ y in 𝓝[T] x, ∀ v, ‖f x v - f y v‖ ≤ ε |
| 24 | |
| 25 | section var |
| 26 | variable {U : Type*} {f g : ℝ → U → ℝ} {x : ℝ} {T : Set ℝ} |
| 27 | namespace Varies |
| 28 | lemma pure {a : ℝ → ℝ} (h : ContinuousWithinAt a T x) : Varies (fun y (_ : U) => a y) x T := by |
| 29 | intro ε he; filter_upwards [Metric.tendsto_nhds.mp h ε he] with y hy u |
| 30 | rw [dist_comm, dist_eq_norm] at hy; exact hy.le |
| 31 | |
| 32 | lemma fixed (F : U → ℝ) : Varies (fun _ => F) x T := fun _ he => Eventually.of_forall fun y v => by simp [he.le] |
| 33 | |
| 34 | lemma add (h : Varies f x T) (hp : Varies g x T) : Varies (fun x u => f x u + g x u) x T := by |
| 35 | intro ε he; filter_upwards [h (ε/2) (half_pos he),hp (ε/2) (half_pos he)] with y hy hy' u |
| 36 | calc |
| 37 | _ = ‖(f x u-f y u)+(g x u-g y u)‖ := by ring_nf |
| 38 | _ ≤ ε/2+ε/2 := (norm_add_le ..).trans (add_le_add (hy u) (hy' u)) |
| 39 | _ = ε := by ring |
| 40 | |
| 41 | lemma neg (h : Varies f x T) : Varies (fun x u => -f x u) x T := by |
| 42 | intro ε he; filter_upwards [h ε he] with y hy u |
| 43 | rw [neg_sub_neg,norm_sub_rev]; exact hy u |
| 44 | lemma sub (h : Varies f x T) (hp : Varies g x T) : Varies (fun x u => f x u-g x u) x T := by |
| 45 | simp only [sub_eq_add_neg]; exact h.add hp.neg |
| 46 | |
| 47 | variable [Nonempty U] |
| 48 | lemma product (h : Varies f x T) (hp : Varies g x T) {C D : ℝ} |
| 49 | (hc : ∀ v, ‖f x v‖ ≤ C) (hd : ∀ v, ‖g x v‖ ≤ D) : Varies (fun x u => f x u * g x u) x T := by |
| 50 | intro ε he |
| 51 | have hzD := (norm_nonneg _).trans (hd (Classical.arbitrary U)) |
| 52 | have hzC := (norm_nonneg _).trans (hc (Classical.arbitrary U)) |
| 53 | let A := C+(1+D) |
| 54 | have ha : 0<A := by unfold A; linarith |
| 55 | let z := min 1 (ε/A) |
| 56 | have hz : 0<z := lt_min zero_lt_one (div_pos he ha) |
| 57 | filter_upwards [h z hz, hp z hz] with y hy hv u |
| 58 | have hx : ‖g y u‖ ≤ 1+D := calc |
| 59 | _ ≤ ‖g x u - g y u‖+‖g x u‖ := by |
| 60 | rw [norm_sub_rev]; simpa only [sub_add_cancel] using norm_add_le (g y u - g x u) (g x u) |
| 61 | _ ≤ _ := add_le_add ((hv _).trans (min_le_left ..)) (hd u) |
| 62 | calc |
| 63 | _ = ‖f x u*(g x u-g y u)+(f x u-f y u)*g y u‖ := by ring_nf |
| 64 | _ ≤ ‖f x u*(g x u-g y u)‖ + ‖(f x u-f y u)*g y u‖ := norm_add_le .. |
| 65 | _ ≤ C*z + z*(1+D) := by |
| 66 | rw [norm_mul,norm_mul]; exact add_le_add |
| 67 | (mul_le_mul (hc u) (hv u) (norm_nonneg _) hzC) (mul_le_mul (hy _) hx (norm_nonneg _) hz.le) |
| 68 | _ = z*A := by unfold A; ring |
| 69 | _ ≤ _ := (le_div_iff₀ ha).mp (min_le_right ..) |
| 70 | |
| 71 | omit [Nonempty U] in |
| 72 | lemma exp (h : Varies f x T) {C : ℝ} (hc : ∀ v, Real.exp (f x v) ≤ C) (hC : 0<C) : |
| 73 | Varies (fun x u => Real.exp (f x u)) x T := by |
| 74 | intro ε he |
| 75 | let z := min (ε/(2*C)) 1 |
| 76 | have hz : 0<z := lt_min (by positivity) zero_lt_one |
| 77 | filter_upwards [h z hz] with y hy u |
| 78 | have hu : |f y u - f x u| ≤ z := by |
| 79 | rw [abs_sub_comm]; exact hy _ |
| 80 | calc |
| 81 | _ = ‖(Real.exp (f y u-f x u)-1) * Real.exp (f x u)‖ := by |
| 82 | rw [norm_sub_rev, sub_mul, ← Real.exp_add, sub_add_cancel, one_mul] |
| 83 | _ ≤ 2*z*C := by |
| 84 | rw [norm_mul]; exact mul_le_mul ((Real.abs_exp_sub_one_le (hu.trans (min_le_right ..))).trans |
| 85 | (mul_le_mul_of_nonneg_left hu (by norm_num))) ((Real.norm_of_nonneg (Real.exp_pos _).le).trans_le (hc u)) |
| 86 | (norm_nonneg _) (by positivity) |
| 87 | _ = z*(2*C) := by ring |
| 88 | _ ≤ ε := (le_div_iff₀ (by positivity : (0:ℝ)<2*C)).mp (min_le_left ..) |
| 89 | |
| 90 | omit [Nonempty U] in |
| 91 | lemma on_domain (h : Varies f x T) (hx : x∈T) (he : EqOn g f T) : Varies g x T := by |
| 92 | intro ε hp; filter_upwards [self_mem_nhdsWithin, h ε hp] with y hy ht u |
| 93 | rw [he hx,he hy]; exact ht u |
| 94 | end Varies |
| 95 | end var |
| 96 | |
| 97 | variable {G : Gauge} {n : Side} {P : BudgetPoint} |
| 98 | lemma activities_motion {T : Set ℝ} {x : ℝ} (hx : x∈T) {Q : ℝ → Rep G n} (H : Curve P Q T) |
| 99 | {δ w : ℝ} (hv : ∀ y∈T, (Q y).activities.Valid P δ w) : |
| 100 | Varies (fun y => (Q y).activities.additive P) x T ∧ Varies (fun y => (Q y).activities.gas P) x T := by |
| 101 | let A y := (Q y).activities |
| 102 | obtain ⟨b,hb,hp⟩ := Activities.K_total (hv x hx).boundK |
| 103 | let C := ∑' j, b j |
| 104 | have ht : SumBudget b C := ⟨fun j => (hp j).1,hb,le_rfl⟩ |
| 105 | have he ε (he : 0<ε) : ∀ᶠ y in 𝓝[T] x, ∀ U, ‖(A x).additive P U-(A y).additive P U‖ ≤ ε ∧ |
| 106 | ‖(A x).gas P U-(A y).gas P U‖ ≤ Real.exp C*(Real.exp ε-1) := by |
| 107 | filter_upwards [self_mem_nhdsWithin,H.continuous ε he x hx] with y hy hw U |
| 108 | exact Payment.rep_perturb (hv x hx) (hv y hy) (H.reg x hx y hy) (H.forced x hx y hy) ht |
| 109 | (fun i => (hp i).2) hw U |
| 110 | refine ⟨fun ε hx => (he ε hx).mono fun y hy u => (hy u).1,?_⟩ |
| 111 | intro ε hε |
| 112 | let D := Real.exp C |
| 113 | have hf : 0<D := Real.exp_pos _ |
| 114 | let z := min (ε/(2*D)) 1 |
| 115 | have hz : 0<z := lt_min (by positivity) zero_lt_one |
| 116 | filter_upwards [he z hz] with y hy u |
| 117 | apply (hy u).2.trans |
| 118 | have hm := Real.abs_exp_sub_one_le (x:=z) (by rw [abs_of_pos hz]; exact min_le_right ..) |
| 119 | rw [abs_of_pos hz] at hm |
| 120 | calc |
| 121 | _ ≤ D * (2*z) := mul_le_mul_of_nonneg_left ((le_abs_self _).trans hm) hf.le |
| 122 | _ = z * (2*D) := by ring |
| 123 | _ ≤ ε := (le_div_iff₀ (by positivity : 0 < 2*D)).mp (min_le_left ..) |
| 124 | |
| 125 | private lemma channels_linear (W : PathData G) (b : Clip) (P : BudgetPoint) (β : ℝ) (U : Config G n) : |
| 126 | W.inChannels b P β U = β * (W.inChannels b P 1 U-W.inChannels b P 0 U) + W.inChannels b P 0 U := by |
| 127 | have ht (i : Config G n) := (show W.principal b P β i = β*(W.principal b P 1 i-W.principal b P 0 i)+W.principal b P 0 i by |
| 128 | unfold PathData.principal; ring) |
| 129 | unfold PathData.inChannels |
| 130 | rw [show (∑ s : Signed, W.principal b P β (pull s 0 U)) = |
| 131 | ∑ s : Signed, (β*(W.principal b P 1 (pull s 0 U)-W.principal b P 0 (pull s 0 U))+W.principal b P 0 (pull s 0 U)) from |
| 132 | Finset.sum_congr rfl fun _ _ => ht _, Finset.sum_add_distrib, ← Finset.mul_sum, Finset.sum_sub_distrib]; ring |
| 133 | |
| 134 | /-- Fixed volume, no inverse-gas uniformity throughout the campaign. -/ |
| 135 | lemma eval_varies {T : Set ℝ} {x : ℝ} (hx : x∈T) {Q : ℝ → Rep G n} (H : Curve P Q T) |
| 136 | {δ w m u v} {W : PathData G} {c : Clip} (Hv : ∀ y∈T, (Q y).Lawful m u v δ w) |
| 137 | (Hb : ∀ y∈T, (Q y).p = P) (Hc : ∀ y∈T, (Q y).clip=c) (Hw : ∀ y∈T, (Q y).path=W) : |
| 138 | Varies (fun y => (Q y).eval) x T := by |
| 139 | have Hp y (hy : y∈T) : (Q y).activities.Valid P δ w := Hb y hy ▸ (Hv y hy).labels |
| 140 | obtain ⟨hA,hK⟩ := activities_motion hx H Hp |
| 141 | have hW : W.Bounds c m u v := by |
| 142 | have hz := (Hv x hx).paths; rwa [Hc x hx,Hw x hx] at hz |
| 143 | let f := fun y (U : Config G n) => (Q y).beta * (W.inChannels c P 1 U-W.inChannels c P 0 U) + W.inChannels c P 0 U |
| 144 | have hf : Varies f x T := by |
| 145 | obtain ⟨C,hC⟩ := (PathData.channels_env (n:=n) hW P 1).cost |
| 146 | obtain ⟨D,hD⟩ := (PathData.channels_env (n:=n) hW P 0).cost |
| 147 | have ht := Varies.pure (U:=Config G n) (H.beta x hx) |
| 148 | refine Varies.add (Varies.product (U:=Config G n) ht (Varies.fixed (U:=Config G n) _) |
| 149 | (C:=‖(Q x).beta‖) (fun _ => le_rfl) (D:=C+D) ?_) (Varies.fixed (W.inChannels c P 0)) |
| 150 | exact fun i => (norm_sub_le ..).trans (add_le_add (hC _) (hD i)) |
| 151 | have ht : Varies (fun y => (Q y).exponent) x T := by |
| 152 | have hm : Varies (fun y (_ : Config G n) => (Q y).v * Fintype.card (Site n)) x T := |
| 153 | Varies.pure ((H.v x hx).mul_const _) |
| 154 | refine Varies.on_domain ((hm.sub hf).sub hA) hx (fun y hy => ?_) |
| 155 | funext U; unfold Rep.exponent; simp only [Hb y hy,Hc y hy,Hw y hy] |
| 156 | -- targeted at the varies hypothesis, same mask in both orientations |
| 157 | rw [channels_linear] |
| 158 | let gx (y : ℝ) (U : Config G n) := Real.exp ((Q y).exponent U) |
| 159 | obtain ⟨C,hC⟩ := ((Q x).exponentEnv (Hv x hx)).exp.cost |
| 160 | have hc : 0 < C := lt_of_lt_of_le (norm_pos_iff.mpr (Real.exp_pos _).ne') (hC 1) |
| 161 | have hs : Varies gx x T := Varies.exp ht (fun i => (Real.norm_of_nonneg (Real.exp_pos _).le).ge.trans (hC i)) hc |
| 162 | obtain ⟨D,hD⟩ := (Activities.gasSeries (Hv x hx).labels).bound |
| 163 | have H : Varies (fun i U => gx i U * (Q i).activities.gas P U) x T := |
| 164 | hs.product hK hC (D:=D) (fun i => by rw [← Hb x hx]; exact hD i) |
| 165 | refine H.on_domain hx ?_ |
| 166 | intro y hy; funext U; simp only [Rep.eval,gx,Hb y hy] |
| 167 | end YM.Progress.DirectedRecipe |