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.AnalyticNext.QUARTIC_MATCH.Cells.Detect |
| 2 | |
| 3 | /-! |
| 4 | # Universal entry extraction |
| 5 | |
| 6 | Every bill is per translation (anchored one argument, may project root first). |
| 7 | `Weave.enough` doesn't require ANY upper bound on repeats to enter. Smaller |
| 8 | pointwise estimates can be earned on the schedule itself and transfer to TRUE |
| 9 | universal arrays if constructed at a fixed, possibly worse, rate on auxiliaries. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.AnalyticNext.QuarticMatch.BoxChain |
| 14 | open Lattice Exterior Function Finset Topology Laurent Filter Sheets |
| 15 | open scoped Topology BigOperators ContDiff |
| 16 | |
| 17 | variable {V : Type} [NormedAddCommGroup V] {I : Type} [Fintype I] (i : I) {σ C : ℝ} |
| 18 | |
| 19 | abbrev Bills (I V : Type) := (c : Side) → ArrayC I (Per c) V |
| 20 | |
| 21 | /-- Don't require evidence at smaller/coarser sides not covered by actual definitions. -/ |
| 22 | structure Weave (L : ℕ) (F : Bills I V) : Prop where |
| 23 | same {c : Side} : L ≤ c.val → Cohere (F c) |
| 24 | periods (c d : Side) : L ≤ c.val → L ≤ d.val → ∀ h : c.val∣d.val, ∀ X : I → Cell ℤ, |
| 25 | F c (tor c ∘ X) = ∑' w : ↥(upperDeck i h), F d (sway w.val (tor d ∘ X)) |
| 26 | |
| 27 | /-- Literal finite positions. Can use the lift even on antipodal ties. -/ |
| 28 | structure Spatial {c : Side} (F : ArrayC I (Per c) V) (σ C : ℝ) : Prop where |
| 29 | rate : 0 < σ |
| 30 | cap : 0 ≤ C |
| 31 | low (X : I → Cell (Per c)) (i j : I) : |
| 32 | ‖F X‖ ≤ C * Real.exp (-σ*size (lift ((X i).1-(X j).1))) |
| 33 | |
| 34 | lemma Spatial.real {d : Side} {F : ArrayC I (Per d) V} (h : Spatial F σ C) (X : I → Cell ℤ) |
| 35 | {Y : I → Cell (Per d)} (_e : Y=tor d ∘ X) |
| 36 | (hy : ∀ j, lift ((Y j).1-(Y i).1)=(X j).1-(X i).1) : |
| 37 | ‖F Y‖ ≤ C * Real.exp (-shiftRate I σ * loads (fun j => (X j).1-(X i).1)) := by |
| 38 | classical |
| 39 | haveI : Nonempty I := ⟨i⟩ |
| 40 | let f j := size ((X j).1-(X i).1) |
| 41 | obtain ⟨j,hj,hb⟩ := Finset.exists_max_image Finset.univ f univ_nonempty |
| 42 | have hz := h.low Y j i; rw [hy] at hz; apply hz.trans |
| 43 | apply mul_le_mul_of_nonneg_left (Real.exp_monotone ?_) h.cap |
| 44 | have hm : ∑ i : I, f i ≤ Fintype.card I * f j := by |
| 45 | convert! Finset.sum_le_sum (s:=Finset.univ) (fun i h => hb i h) using 1; simp |
| 46 | change -σ*(f j:ℝ) ≤ -(σ/(Fintype.card I:ℝ))* ↑(∑ x,f x) |
| 47 | have hg : ((∑ x,f x):ℝ) ≤ Fintype.card I*(f j:ℝ) := by exact_mod_cast hm |
| 48 | have hf := div_mul_cancel₀ σ (show (Fintype.card I:ℝ)≠0 by positivity) |
| 49 | rw [show -σ*↑(f j)= -(σ/(Fintype.card I:ℝ))*(Fintype.card I*(f j:ℝ)) by rw [← mul_assoc,neg_mul (σ/↑(Fintype.card I)),hf]] |
| 50 | rw [Nat.cast_sum]; exact mul_le_mul_of_nonpos_left hg (neg_nonpos.mpr (positive_rate h.rate i).le) |
| 51 | |
| 52 | variable {L : ℕ} {F : Bills I V} {n : ℕ → Side} |
| 53 | section coordinates |
| 54 | |
| 55 | variable {A : ArrayC I ℤ V} |
| 56 | |
| 57 | omit [Fintype I] in |
| 58 | lemma rates (hn : Tendsto (fun i => (n i).val) atTop atTop) (hF : ∀ᶠ m in atTop, Spatial (F (n m)) σ C) |
| 59 | (he : ∀ X : I→Cell ℤ, Tendsto (fun j => F (n j) (tor (n j) ∘ X)) atTop (𝓝 (A X))) (hh : Cohere A) : |
| 60 | Pricing A σ C := by |
| 61 | obtain ⟨m,hm⟩ := hF.exists |
| 62 | refine ⟨hh,hm.rate,hm.cap,fun X i j => ?_⟩ |
| 63 | apply le_of_tendsto ((he X).norm) |
| 64 | filter_upwards [hF, Next.Free.eventually_unfold n hn ((X i).1-(X j).1)] with m hm hy |
| 65 | have hw (k : I) : (tor (n m) ∘ X) k=tor _ _ := rfl |
| 66 | have H := hm.low (tor (n m) ∘ X) i j |
| 67 | simp only [Function.comp_apply, tor, ← map_sub, hy] at H |
| 68 | exact H |
| 69 | |
| 70 | omit [Fintype I] in |
| 71 | lemma Weave.unrolled (h : Weave i L F) (X : I → Cell ℤ) {c d : Side} (hc : L≤c.val) (hd : L≤d.val) (he : c.val∣d.val) : |
| 72 | F c (tor c ∘ X) = ∑' w : ↥(sheets c i), ({w : sheets c i | short i c d X w}: Set _).indicator |
| 73 | (fun w : sheets c i => F d (tor d ∘ sway w.val X)) w := by |
| 74 | classical |
| 75 | rw [← tsum_subtype (s:={w|short i c d X w}), h.periods c d hc hd he X] |
| 76 | change _ = ∑' x : {v : sheets c i // short i c d X v}, F d (tor d ∘ sway x.val.val X) |
| 77 | rw [← Equiv.tsum_eq (signpost i he X) |
| 78 | (fun w : {w : sheets c i // short i c d X w} => F d (tor d ∘ sway w.val.val X))] |
| 79 | apply tsum_congr; intro w; congr 1 |
| 80 | funext j; change _=tor d (move _ (X j)); rw [tor_move, show wrap d ((signpost i he X w).val.val j)=w.val j from ones i he X w j] |
| 81 | rfl |
| 82 | |
| 83 | variable [CompleteSpace V] |
| 84 | |
| 85 | /-- Uniformity here can depend on the step, not on the tested period upstairs. -/ |
| 86 | lemma Weave.limit (h : Weave i L F) (hn : Tendsto (fun i => (n i).val) atTop atTop) (hp : Pricing A σ C) |
| 87 | (hF : ∀ᶠ m in atTop, Spatial (F (n m)) σ C) |
| 88 | (he : ∀ X : I→Cell ℤ, Tendsto (fun j => F (n j) (tor (n j) ∘ X)) atTop (𝓝 (A X))) |
| 89 | (c : Side) (hc : L≤c.val) (ht : ∀ᶠ m in atTop, c.val∣(n m).val) (Y : I→Cell (Per c)) : |
| 90 | F c Y = scene c i A Y := by |
| 91 | classical |
| 92 | let X := rise c ∘ Y |
| 93 | let D j w := ({w:sheets c i| short i c (n j) X w} : Set _).indicator |
| 94 | (fun w : sheets c i => F (n j) (tor _ ∘ sway w.val X)) w |
| 95 | have hD : (fun j => ∑' w : sheets c i,D j w) =ᶠ[atTop] fun _ => F c Y := by |
| 96 | filter_upwards [ht,hn.eventually (eventually_ge_atTop L)] with j hj hy |
| 97 | have hx : Y=tor c ∘ X := funext fun i => (to_ground ..).symm |
| 98 | exact (h.unrolled i X hc hy hj).symm.trans (congr_arg (F c) hx.symm) |
| 99 | let B (w : sheets c i) := C * Real.exp (-shiftRate I σ * loads (distanceL i X w)) |
| 100 | have hb : Summable B := |
| 101 | ((pays_all (I:=I) (positive_rate hp.rate i)).2.1.mul_left C).comp_injective (distanceI i X) |
| 102 | have hx (w : ↥(sheets c i)) : ∀ᶠ j : ℕ in atTop, short i c (n j) X w := |
| 103 | eventually_all.mpr (fun j : I => Next.Free.eventually_unfold n hn (distanceL i X w j)) |
| 104 | have hw (w : sheets c i) : Tendsto (fun j => D j w) atTop (𝓝 (A (sway w.val X))) := by |
| 105 | refine (he _).congr' ?_; filter_upwards [hx w] with j hj |
| 106 | unfold D; rw [Set.indicator_of_mem hj] |
| 107 | have hW : ∀ᶠ m in atTop, ∀ w, ‖D m w‖ ≤ B w := by |
| 108 | filter_upwards [hF] with m hm w |
| 109 | unfold D; by_cases hy : short i c (n m) X w |
| 110 | · rw [Set.indicator_of_mem hy] |
| 111 | have he (j : I) := hy j |
| 112 | unfold B; rw [show distanceL i X w=(fun j => (sway w.val X j).1-(sway w.val X i).1) by |
| 113 | ext1 j; rw [distanceS i]] |
| 114 | apply hm.real i _ rfl ?_ |
| 115 | intro j; simp only [Function.comp_apply,tor, ← map_sub, distanceS i, he] |
| 116 | rw [Set.indicator_of_notMem hy,norm_zero]; exact mul_nonneg hp.cap (Real.exp_pos _).le |
| 117 | exact tendsto_nhds_unique_of_eventuallyEq tendsto_const_nhds (tendsto_tsum_of_dominated_convergence hb hw hW) hD.symm |
| 118 | end coordinates |
| 119 | |
| 120 | section extraction |
| 121 | variable [NormedSpace ℝ V] [FiniteDimensional ℝ V] |
| 122 | |
| 123 | /-- Make a sampling *device*, internal to the finite coefficient proof. No |
| 124 | assumptions on or claims about coincidence with any continuum extraction. -/ |
| 125 | private def march (L m : ℕ) : Side := ⟨Nat.factorial (m+L+1), Nat.factorial_pos _⟩ |
| 126 | private lemma march_le (L m : ℕ) : m+L+1 ≤ (march L m).val := by |
| 127 | unfold march; dsimp; rw [Nat.factorial_succ] |
| 128 | exact Nat.le_mul_of_pos_right _ (Nat.factorial_pos _) |
| 129 | private lemma march_out : Tendsto (fun m => (march L m).val) atTop atTop := by |
| 130 | apply tendsto_atTop_mono _ tendsto_id; intro m; exact Nat.le_trans (by change m ≤ m+L+1; omega) (march_le ..) |
| 131 | private lemma march_dvd (L : ℕ) (c : Side) : ∀ᶠ m in atTop, c.val∣(march L m).val := by |
| 132 | filter_upwards [eventually_ge_atTop c.val] with m hm; exact Nat.dvd_factorial c.property (by omega) |
| 133 | |
| 134 | theorem Weave.enough (h : Weave i L F) (hk : ∀ (c : Side), L ≤ c.val → Spatial (F c) σ C) : |
| 135 | ∃ A, Pricing A σ C ∧ ∀ (c : Side), L≤c.val → F c=scene c i A := by |
| 136 | let n m := march L m |
| 137 | have hc (m : ℕ) : L≤(n m).val := (by omega : L≤m+L+1) |>.trans (march_le ..) |
| 138 | have ht m := hk (n m) (hc m) |
| 139 | have hx m X : F (n m) X ∈ Metric.closedBall (0:V) C := by |
| 140 | have hg := (ht m).low X i i |
| 141 | simpa [lift,Laurent.size] using hg |
| 142 | let f (m : ℕ) := fun X : I→Cell ℤ => F (n m) (tor (n m) ∘ X) |
| 143 | have hn : Tendsto (fun j => (n j).val) atTop atTop := march_out |
| 144 | obtain ⟨A,-,s,hs,H⟩ := (isCompact_pi_infinite (fun _ : I→Cell ℤ => isCompact_closedBall (0:V) C)).tendsto_subseq |
| 145 | (x:=f) (fun _ _ => hx _ _) |
| 146 | have he (X : I→Cell ℤ) : Tendsto (fun j => F (n (s j)) (tor (n (s j)) ∘ X)) atTop (𝓝 (A X)) := |
| 147 | tendsto_pi_nhds.mp H X |
| 148 | have hg : Cohere A := fun b X => by |
| 149 | apply tendsto_nhds_unique (he (move b ∘ X)) |
| 150 | refine (he X).congr' (Eventually.of_forall ?_); intro i |
| 151 | let y := n (s i) |
| 152 | change F y (tor y ∘ X)=F y (tor y ∘ move b ∘ X) |
| 153 | rw [show tor y ∘ move b ∘ X=move (wrap y b) ∘ (tor y ∘ X) from funext (fun i => tor_move ..), |
| 154 | h.same (hc _)] |
| 155 | have HN := hs.tendsto_atTop |
| 156 | have ha := rates (A:=A) (F:=F) (n:=n ∘ s) (hn.comp HN) (Eventually.of_forall fun i => ht _) he hg |
| 157 | exact ⟨A,ha, fun c hd => funext (h.limit i (n:=n ∘ s) (hn.comp HN) ha (Eventually.of_forall fun i => ht _) he c hd (HN.eventually (march_dvd L c)))⟩ |
| 158 | end extraction |
| 159 | end YM.AnalyticNext.QuarticMatch.BoxChain |