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 Mathlib.Analysis.Complex.ExponentialBounds |
| 2 | import YM.Push.BETA_TRANSPORT.Comparisons |
| 3 | import YM.Push.BETA_TRANSPORT.Separation |
| 4 | import YM.Push.PRICE_COMPILER.Suppression |
| 5 | |
| 6 | |
| 7 | |
| 8 | set_option warningAsError false |
| 9 | |
| 10 | |
| 11 | set_option linter.unusedSectionVars false |
| 12 | set_option linter.unnecessarySeqFocus false |
| 13 | |
| 14 | /-! |
| 15 | # Uniform two-test separation with the true clipped action (eq:ved) |
| 16 | |
| 17 | Strengthening the separation of BETA_TRANSPORT for reset *estimates*: at |
| 18 | some common unflagged finite amplitude the coefficient of beta has size at |
| 19 | least `sites * η * threshold^2` with η>0 already fixed stagewise, not |
| 20 | period-dependent. A transverse alternating line test works on EVERY even |
| 21 | side (as in the calendar). The signs/averages need not preserve this field, |
| 22 | only the summed direct plaquette charge. No small-field truncation of the |
| 23 | cubic & quartic coefficients and no assumption of contractibility on the |
| 24 | whole torus. This doesn't show that any loop/log or activity estimates at |
| 25 | the separating tests have the accuracy needed for a reset. |
| 26 | -/ |
| 27 | |
| 28 | set_option autoImplicit false |
| 29 | noncomputable section |
| 30 | namespace YM.UVNext.CouplingReset |
| 31 | open Push.BetaTransport Lattice Wilson RG Filter Function Set |
| 32 | open scoped Matrix.Norms.Frobenius Topology BigOperators ContDiff |
| 33 | |
| 34 | variable {G : Gauge} {n : Side} |
| 35 | |
| 36 | /-- Per-site normalization in `Rep.exponent`. -/ |
| 37 | def sites (n : Side) : ℝ := Fintype.card (Site n) |
| 38 | lemma sites_pos (n : Side) : 0 < sites n := Nat.cast_pos.mpr Fintype.card_pos |
| 39 | |
| 40 | lemma reachable_chord (G : Gauge) [Nontrivial G.Color] : |
| 41 | ∃ ε : ℝ, 0 < ε ∧ ∀ h ∈ Icc (0:ℝ) ε, ∃ u : G.El, G.chord u = h := by |
| 42 | obtain ⟨c,hc⟩ := exists_ne (0:G.Color) |
| 43 | let γ (t : ℝ) := G.lieExp (t • c) |
| 44 | obtain ⟨t,ht⟩ : ∃ t : ℝ, 0 < G.chord (γ t) := by |
| 45 | by_contra! ha |
| 46 | have hz : (fun t => G.curvature (γ t)) = fun _ => 0 := funext fun t => norm_le_zero_iff.mp <| |
| 47 | (G.curvature_norm _).trans (ha t) |
| 48 | have hd : HasDerivAt (fun t => G.curvature (γ t)) c 0 := G.leading_curvature c |
| 49 | rw [hz] at hd |
| 50 | exact hc (hd.unique (hasDerivAt_const _ _)) |
| 51 | have hg : Continuous (fun t => G.chord (γ t)) := G.continuous_chord.comp (G.lieExp_cont.comp (by fun_prop)) |
| 52 | refine ⟨_,ht,fun h hh => ?_⟩ |
| 53 | obtain ⟨x,hx⟩ := intermediate_value_univ 0 t hg (show h ∈ Icc (G.chord (γ 0)) _ by simpa [γ] using hh) |
| 54 | exact ⟨γ x,hx⟩ |
| 55 | |
| 56 | private def stripe (u : G.El) (he : 2 ∣ n.val) : Config G n := |
| 57 | fun i => if i.2 = 0 ∧ ZMod.castHom he (ZMod 2) (i.1 1) = 0 then u else 1 |
| 58 | |
| 59 | private def plane : PlaqAxes := ⟨(0,1), by decide⟩ |
| 60 | |
| 61 | private lemma stripe_plane (u : G.El) (he : 2 ∣ n.val) (x : Site n) : |
| 62 | G.chord (faceValue (stripe u he) (x,plane)) = G.chord u := by |
| 63 | let v := ZMod.castHom he (ZMod 2) (x 1) |
| 64 | have hy : ∀ v : ZMod 2, v ≠ 0 → v+1=0 := by decide |
| 65 | have h1 : ZMod.cast (1:ZMod n.val) = (1:ZMod 2) := map_one (ZMod.castHom he _) |
| 66 | by_cases hv : v = 0 |
| 67 | · simp [faceValue, square, plane, travel,stripe,map_add, h1, show (ZMod.cast (x 1) : ZMod 2) = 0 from hv] |
| 68 | simp [faceValue, square, plane, travel,stripe,map_add,h1,show (ZMod.cast (x 1) : ZMod 2) ≠ 0 from hv, show ZMod.cast (x 1)+1 = (0:ZMod 2) from hy v hv,G.chord_inv] |
| 69 | |
| 70 | private lemma direct_probe (D : PathData G) (A : Clip) (P : BudgetPoint) (u : G.El) (he : 2 ∣ n.val) |
| 71 | (hf : ∀ p, G.chord (faceValue (stripe u he) p) ≤ P.threshold) (s : Signed) : |
| 72 | sites n * (A.direct * G.chord u ^ 2 / 2) ≤ ∑ p, D.baseTerm A P (pull s 0 (stripe u he)) p := by |
| 73 | let F (U : Config G n) p := A.direct * G.chord (faceValue U p) ^ 2 / 2 |
| 74 | let U := stripe u he |
| 75 | let V := pull s 0 U |
| 76 | let σ := Equiv.ofBijective (Face.send s (0:Site n)) ⟨Face.injective_send s _, |
| 77 | Finite.injective_iff_surjective.mp (Face.injective_send s _)⟩ |
| 78 | have hp p : G.chord (faceValue V p) = G.chord (faceValue U (σ p)) := |
| 79 | Face.send_price U _ _ _ G.chord G.chord_inv (fun k g => G.chord_conj g k) |
| 80 | have hA := A.quadratic_pos |
| 81 | calc |
| 82 | sites n * _ = ∑ x : Site n, F U (x,plane) := by simp [F,U,stripe_plane,sites] |
| 83 | _ ≤ ∑ p, F U p := by |
| 84 | rw [Fintype.sum_prod_type]; exact Finset.sum_le_sum fun x _ => Finset.single_le_sum |
| 85 | (f := fun p => F U (x,p)) (fun p _ => by dsimp [F]; positivity) (Finset.mem_univ plane) |
| 86 | _ = ∑ p, F V p := (Fintype.sum_equiv σ (F V) (F U) (fun p => by simp [F,hp])).symm |
| 87 | _ ≤ _ := Finset.sum_le_sum fun p _ => base_lower (D:=D) A p ((hp p).trans_le (hf _)) |
| 88 | |
| 89 | /-- What a stage-wise separation constant buys. Depends on the |
| 90 | precommitted path caps, *not* their periodizations, beta or loop estimates. |
| 91 | The probe can be reused at all input/output couplings at this step. -/ |
| 92 | def Sensor (G : Gauge) (A : Clip) (C η : ℝ) := 0 < η ∧ |
| 93 | ∀ (n : Side), 2 ∣ n.val → ∀ (D : PathData G) (P : BudgetPoint) (σ Λ : ℝ), D.Bounds A σ C Λ → |
| 94 | ∃ U : Config G n, flags P.threshold U = ∅ ∧ sites n * (η*P.threshold^2) ≤ kinetic D A P U |
| 95 | |
| 96 | theorem sensor (G : Gauge) [Nontrivial G.Color] (A : Clip) (C : ℝ) (hC : 0 ≤ C) : ∃ η, Sensor G A C η := by |
| 97 | obtain ⟨ε,hε,hg⟩ := reachable_chord G |
| 98 | let t := min (min ε (1/4)) (A.direct/(512*(1+C))) |
| 99 | have hA := A.quadratic_pos |
| 100 | have htp : 0 < t := lt_min (lt_min hε (by norm_num)) (by positivity) |
| 101 | refine ⟨A.direct*t^2/4,by positivity,fun n he D P σ Λ hD => ?_⟩ |
| 102 | let h := t * P.threshold |
| 103 | have hP := P.threshold_pos |
| 104 | have hh : 0 ≤ h := (mul_pos htp hP).le |
| 105 | have hh' : h ≤ t := mul_le_of_le_one_right htp.le P.threshold_le |
| 106 | obtain ⟨u,hu⟩ := hg _ ⟨hh,hh'.trans ((min_le_left ..).trans (min_le_left ..))⟩ |
| 107 | let U := stripe u he |
| 108 | have hf p : G.chord (faceValue U p) ≤ 4*h := by |
| 109 | have hb (i) : G.chord (U i) ≤ h := by unfold U stripe; split <;> simp [*] |
| 110 | simpa [faceValue,square] using Next.Fluctuations.travel_chord U (square p.2.val.1 p.2.val.2) p.1 h hb |
| 111 | have hz : 4*h ≤ P.threshold := by |
| 112 | have hle := mul_le_mul_of_nonneg_right (show t ≤ 1/4 from (min_le_left ..).trans (min_le_right ..)) hP.le |
| 113 | dsimp [h]; linarith |
| 114 | refine ⟨U, flags_empty (fun p => (hf p).trans hz), ?_⟩ |
| 115 | let T := A.direct * t^2 / 4 * P.threshold^2 |
| 116 | let N := sites n |
| 117 | change N * T ≤ _ |
| 118 | rw [kinetic, le_inv_mul_iff₀ (by exact_mod_cast (Fintype.card_pos (α:=Signed)))] |
| 119 | have H (s : Signed) : N*T ≤ (∑ p, D.baseTerm A P (pull s 0 U) p) + ∑ x : Site n, |
| 120 | (PathData.atomSeries D.cubic P (pull s 0 U) x + PathData.atomSeries D.quartic P (pull s 0 U) x) := by |
| 121 | have hm p : G.chord (faceValue (pull s 0 U) p) ≤ 4*h := |
| 122 | (Face.send_price U _ _ _ G.chord G.chord_inv (fun k g => G.chord_conj g k)).trans_le (hf _) |
| 123 | have hx := direct_probe D A P u he (fun p => (hf p).trans hz) s |
| 124 | rw [hu] at hx |
| 125 | have h₄ : 0 ≤ 4*h := by positivity |
| 126 | have hsmall : C*(4*h)^3+C*(4*h)^4 ≤ A.direct*h^2/4 := calc |
| 127 | _ ≤ C*(4*h)^3 + C*(4*h)^3 := by |
| 128 | exact add_le_add_right (mul_le_mul_of_nonneg_left (pow_le_pow_of_le_one h₄ (hz.trans P.threshold_le) |
| 129 | (by decide : (3:ℕ) ≤ 4)) hC) _ |
| 130 | _ = ((512*C)*h)*h^2/4 := by ring |
| 131 | _ ≤ _ := by |
| 132 | have hb := (le_div_iff₀ (show (0:ℝ) < 512*(1+C) by positivity)).mp (show t ≤ A.direct / _ from min_le_right ..) |
| 133 | have hcost : 512*C*h ≤ A.direct := by nlinarith |
| 134 | gcongr |
| 135 | have hterm (x : Site n) : -(A.direct*h^2/4) ≤ PathData.atomSeries D.cubic P (pull s 0 U) x + |
| 136 | PathData.atomSeries D.quartic P (pull s 0 U) x := by |
| 137 | have h1 := neg_le_of_abs_le (atomSeries_chord (P:=P) hD.width hD.three h₄ hm x) |
| 138 | have h2 := neg_le_of_abs_le (atomSeries_chord (P:=P) hD.width hD.four h₄ hm x) |
| 139 | linarith only [h1,h2,hsmall] |
| 140 | have hb := add_le_add hx (Finset.sum_le_sum (s:=Finset.univ) fun x _ => hterm x) |
| 141 | exact le_trans (le_of_eq (by simp [Finset.sum_const,N,sites,h,T]; ring)) hb |
| 142 | simpa using Finset.sum_le_sum (s:=Finset.univ) (fun s _ => H s) |
| 143 | |
| 144 | lemma flags_one (P : BudgetPoint) : flags P.threshold (1 : Config G n) = ∅ := |
| 145 | flags_empty fun p => by simp [faceValue,square,travel,P.threshold_pos.le] |
| 146 | |
| 147 | lemma loop_one (D : PathData G) (A : Clip) (P : BudgetPoint) : D.inChannels A P 0 (1 : Config G n) = 0 := by |
| 148 | have he (s : Signed) : pull s 0 (1:Config G n) = 1 := by funext e; unfold pull Step.read; split <;> simp |
| 149 | have hu (b : Face (Per n)) : faceValue (1:Config G n) b = 1 := by simp [faceValue,travel,square] |
| 150 | have ht (x : Site n) (l : Slot) : l.atSite (1:Config G n) x = 0 := by rw [Work.F03.atSite_path,hu,G.curvature_unit,map_zero] |
| 151 | have ha (x : Site n) (i : ℕ) : (D.loop i).placed P (1:Config G n) x = 0 := by |
| 152 | unfold Atom.placed |
| 153 | by_cases hh : Healthy P.threshold ((D.loop i).footprint x) (1:Config G n) |
| 154 | · rw [masked_eq _ _ _ _ hh]; simp [Atom.unmasked,Atom.poly,ht] |
| 155 | exact masked_ne _ _ _ _ hh |
| 156 | simp [PathData.inChannels,PathData.principal,PathData.atomSeries,he,ha] |
| 157 | |
| 158 | open Activities |
| 159 | variable {S : Activities G n} {P : BudgetPoint} |
| 160 | |
| 161 | lemma additive_one (h : ∀ i, S.E i 1 = 0) : S.additive P 1 = 0 := by |
| 162 | have h₀ i : S.regularOccurrence P i 1 = 0 := by |
| 163 | unfold regularOccurrence; by_cases hh : Healthy P.threshold (S.reg i).support (1:Config G n) |
| 164 | · rw [masked_eq _ _ _ _ hh,h] |
| 165 | rw [masked_ne _ _ _ _ hh] |
| 166 | simp [additive,h₀] |
| 167 | |
| 168 | end YM.UVNext.CouplingReset |