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.Next.EXTRACTION.Detector |
| 2 | import YM.Next.FOUNDATIONS.Reorient |
| 3 | import YM.Next.FOUNDATIONS.Split |
| 4 | import YM.Next.FOUNDATIONS.TestBounds |
| 5 | import YM.Push.LOCAL_SPLITTING.Orientation |
| 6 | import YM.Work.G08 |
| 7 | |
| 8 | /-! |
| 9 | # Canonical extraction at an anchor before indicator compensation |
| 10 | |
| 11 | One read (including on products), independent of the norm parameters. True left |
| 12 | jets on the original good domain. Signed pull, ordinary conjugation, linearity |
| 13 | on regular input families. Finite tested-direction sufficient estimates on the |
| 14 | weighted coordinates, to permit sharper estimates on the coordinate than are |
| 15 | needed on the bulk regular terms. No extraction from a masked Taylor fit. |
| 16 | -/ |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.Push.Local |
| 20 | open Function Filter Lattice Wilson RG Source Labels Next.Foundations Work.G08 |
| 21 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff |
| 22 | |
| 23 | variable {G : Gauge} {n : Side} {d : ℕ} |
| 24 | section Size |
| 25 | variable (F : Labels.Frame G d) |
| 26 | |
| 27 | theorem norm_le_size (x : F.Coeff) : ‖x‖ ≤ F.coeffSize x := |
| 28 | (pi_norm_le_iff_of_nonneg (size_nonneg F x)).mpr fun i => Finset.single_le_sum (fun j _ => norm_nonneg (x j)) (Finset.mem_univ i) |
| 29 | |
| 30 | theorem size_le_norm (x : F.Coeff) : F.coeffSize x ≤ (F.extra+1:ℕ)*‖x‖ := by |
| 31 | simpa only [Labels.Frame.coeffSize,nsmul_eq_mul,Fintype.card_fin] using Pi.sum_norm_apply_le_norm (G:=fun _ : F.Index => ℂ) x |
| 32 | |
| 33 | theorem core_split (v : F.Coeff) : v = v 0 • F.e0 + F.core v := by |
| 34 | funext i; by_cases he : i=0 <;> simp [Labels.Frame.e0, Labels.Frame.core,Function.update, he] |
| 35 | |
| 36 | theorem core_star (v : F.Coeff) : F.core (star v) = star (F.core v) := by |
| 37 | funext i; by_cases he : i=0 <;> simp [Labels.Frame.core,Function.update,he] |
| 38 | |
| 39 | @[simp] theorem act_e0 (s : Ortho) : F.act s F.e0 = F.e0 := by |
| 40 | rw [← F.coords_unit, F.act_coords]; congr 1; exact Subtype.ext (map_one (rotated s (G:=G))) |
| 41 | |
| 42 | theorem act_at_zero (s : Ortho) (v : F.Coeff) : F.act s v 0 = v 0 := by |
| 43 | have he (i : F.Index) (hi : i ≠ 0) : F.act s (F.coords (F.basis i)) 0 = 0 := by |
| 44 | rw [F.act_coords]; apply F.power_coefficient _ (m:=F.grades i) (fun he => ?_) |
| 45 | · have ht := gradePart_mem (F.grades i) (tensor s (F.basis i)) |
| 46 | rwa [gradePart_turn, gradePart_self _ _ (F.pure i)] at ht |
| 47 | rw [F.zero_degree] at he |
| 48 | have h := F.factors_pos i hi; simp [he] at h |
| 49 | obtain ⟨p,rfl⟩ := F.coords.surjective v |
| 50 | rw [← F.basis.sum_repr p, map_sum,map_sum, Finset.sum_apply,Finset.sum_apply]; simp only [map_smul,Pi.smul_apply] |
| 51 | refine Finset.sum_congr rfl fun i _ => ?_ |
| 52 | rcases eq_or_ne i 0 with h|h |
| 53 | · rw [h,F.starts_unit,F.coords_unit, act_e0] |
| 54 | rw [he i h,F.coords_basis i,Pi.single_eq_of_ne h.symm] |
| 55 | |
| 56 | theorem core_act (s : Ortho) (v : F.Coeff) : F.act s (F.core v) = F.core (F.act s v) := by |
| 57 | have h := congr_arg (F.act s) (core_split F v) |
| 58 | rw [map_add,map_smul,act_e0] at h |
| 59 | exact add_left_cancel ((h.symm.trans (core_split F _)).trans (by rw [act_at_zero])) |
| 60 | |
| 61 | theorem scaled_star (t : ℝ) (v : F.Coeff) : F.scaled t (star v) = star (F.scaled t v) := by |
| 62 | ext i; simp [mul_comm] |
| 63 | end Size |
| 64 | |
| 65 | section Projection |
| 66 | variable {A : Hol G} {o : Site n} {X : Support n} {f g : Config G n → ℂ} {B : BudgetPoint} |
| 67 | |
| 68 | open scoped Classical in |
| 69 | /-- Totalized `Π_o`; statements on it will ensure existence (even on wrapping |
| 70 | supports with the specified constant test). No budget parameter or implicit torus |
| 71 | side change in the choice. -/ |
| 72 | def project (A : Hol G) (o : Site n) (X : Support n) (f : Config G n → ℂ) (d : ℕ) : Label G d := |
| 73 | if h : ∃ p : Label G d, Reads A o X p f then h.choose else 0 |
| 74 | |
| 75 | theorem project_eq {p : Label G d} (h : Reads A o X p f) : project A o X f d = p := by |
| 76 | classical |
| 77 | have he : ∃ q : Label G d, Reads A o X q f := ⟨p,h⟩ |
| 78 | rw [project,dif_pos he]; exact Reads.unique he.choose_spec h |
| 79 | |
| 80 | theorem project_reads (A : Hol G) (o : Site n) (h : B.Regular X f) (hk : d ≤ B.order) : |
| 81 | Reads A o X (project A o X f d) f := by |
| 82 | obtain ⟨p,hp,_⟩ := exists_read A d o B hk h |
| 83 | rwa [project_eq hp] |
| 84 | |
| 85 | @[simp] theorem project_zero (A : Hol G) (o : Site n) (X : Support n) (d : ℕ) : project A o X 0 d = 0 := by |
| 86 | apply project_eq |
| 87 | rw [reads_null_iff]; exact ⟨rfl,fun _ _ => ⟨contDiffAt_const,fun k _ => by simp⟩⟩ |
| 88 | |
| 89 | theorem project_add (A : Hol G) (o : Site n) (h : B.Regular X f) (hg : B.Regular X g) (hk : d ≤ B.order) : |
| 90 | project A o X (f+g) d = project A o X f d + project A o X g d := by |
| 91 | have he := reads_sub (project_reads A o (regular_add h hg) hk) (project_reads A o hg hk) |
| 92 | simp only [add_sub_cancel_right] at he |
| 93 | exact eq_add_of_sub_eq (Reads.unique he (project_reads A o h hk)) |
| 94 | |
| 95 | theorem project_smul (A : Hol G) (o : Site n) (z : ℂ) (h : B.Regular X f) (hk : d ≤ B.order) : |
| 96 | project A o X (z • f) d = z • project A o X f d := by |
| 97 | apply project_eq |
| 98 | have he := project_reads A o h hk |
| 99 | unfold Reads at * |
| 100 | split at he <;> rename_i hX |
| 101 | · rw [if_pos hX] |
| 102 | intro J; simp only [Pi.smul_apply,SetLike.val_smul,map_smul] |
| 103 | have ht := he J |
| 104 | refine ⟨ht.1.const_smul _, ht.2.1.const_smul _, fun k hk => ?_⟩ |
| 105 | rw [iteratedDeriv_fun_const_smul (ht.1.of_le (Nat.cast_le.mpr hk)),iteratedDeriv_fun_const_smul (ht.2.1.of_le (Nat.cast_le.mpr hk)),ht.2.2 k hk] |
| 106 | simp only [if_neg hX, he,Pi.smul_apply,smul_smul,smul_eq_mul] |
| 107 | |
| 108 | |
| 109 | |
| 110 | variable {F : Labels.Frame G d} |
| 111 | |
| 112 | def weighted (A : Hol G) (F : Labels.Frame G d) (o : Site n) (X : Support n) (t : ℝ) (f : Config G n → ℂ) := |
| 113 | F.scaled t (F.coords (project A o X f d)) |
| 114 | |
| 115 | theorem weighted_pull (A : Hol G) (F : Labels.Frame G d) (o b : Site n) (s : Signed) (t : ℝ) (h : B.Regular X f) (hk : d ≤ B.order) (hn : 2 ≤ n.val) : |
| 116 | weighted A F (turnSites s b o) (X.image (turnSites s b)) t (f ∘ pull s b) = F.act s.ortho (weighted A F o X t f) := by |
| 117 | unfold weighted |
| 118 | rw [show ⇑(turnSites s b) = affine s b from rfl, project_eq (reads_pull (b:=b) (project_reads A o h hk) h.sites hn s),← F.act_coords,F.scaling] |
| 119 | |
| 120 | theorem weighted_star (A : Hol G) (F : Labels.Frame G d) (o : Site n) (t : ℝ) (h : B.Regular X f) (hk : d ≤ B.order) : |
| 121 | weighted A F o X t (star f) = star (weighted A F o X t f) := by |
| 122 | unfold weighted; rw [project_eq (reads_bar (project_reads A o h hk))] |
| 123 | let v := F.coords (project A o X f d) |
| 124 | rw [← scaled_star] |
| 125 | apply congr_arg; convert funext (F.conj_basis v) using 2 |
| 126 | · rw [LinearEquiv.symm_apply_apply] |
| 127 | · rfl |
| 128 | |
| 129 | def readPrice (A : Hol G) (F : Labels.Frame G d) := (price_of_readout A F).choose |
| 130 | |
| 131 | theorem readPrice_pos (A : Hol G) (F : Labels.Frame G d) : 1 ≤ readPrice A F := (price_of_readout A F).choose_spec.1 |
| 132 | |
| 133 | theorem weighted_bound (A : Hol G) (F : Labels.Frame G d) (o : Site n) {c : ℝ} (h : B.Regular X f) (hk : d ≤ B.order) (hP : d ≤ B.power) (hc : B.supBounds o X f c) : |
| 134 | F.coeffSize (weighted A F o X B.threshold f) ≤ readPrice A F * c := |
| 135 | (price_of_readout A F).choose_spec.2 n o X B f c hk hP h hc _ (project_reads A o h hk) |
| 136 | end Projection |
| 137 | |
| 138 | section Detector |
| 139 | variable (F : Labels.Frame G d) |
| 140 | |
| 141 | abbrev Probe (G : Gauge) (d : ℕ) := Jet G × Fin (d+1) |
| 142 | def runProbe (i : Probe G d) : F.Coeff →L[ℂ] ℂ := |
| 143 | (((i.2.val.factorial : ℂ) • ((read i.1).toLinearMap ∘ₗ (tier i.2.val) ∘ₗ (localFields G d).subtype ∘ₗ F.coords.symm.toLinearMap)) : F.Coeff →ₗ[ℂ] ℂ).toContinuousLinearMap |
| 144 | |
| 145 | theorem runProbe_eq (i : Probe G d) (v : F.Coeff) : |
| 146 | runProbe F i v = iteratedDeriv i.2.val (fun t => read (scaleJet i.1 t) (F.coords.symm v).val) 0 := by |
| 147 | rw [deriv_read,Complex.real_smul]; change (i.2.val.factorial : ℂ) • read i.1 _ = _; simp |
| 148 | |
| 149 | open scoped Classical in |
| 150 | def sample (H : Hol G) (o : Site n) (X : Support n) (θ : ℝ) (f : Config G n → ℂ) (i : Probe G d) := |
| 151 | if Nonwrapping X o then iteratedDeriv i.2.val (f ∘ H.testLinks d o (θ • i.1)) 0 |
| 152 | else if i.2.val = 0 then f 1 else 0 |
| 153 | |
| 154 | theorem sample_eq (H : Hol G) (o : Site n) {B : BudgetPoint} {X : Support n} (θ : ℝ) {f : Config G n → ℂ} (h : B.Regular X f) (hk : d ≤ B.order) (i : Probe G d) : |
| 155 | sample H o X θ f i = runProbe F i (weighted H F o X θ f) := by |
| 156 | have hp := project_reads H o h hk |
| 157 | rw [runProbe_eq]; simp_rw [weighted,read_frame_scaled, LinearEquiv.symm_apply_apply] |
| 158 | unfold sample; split <;> rename_i hx |
| 159 | · rw [Reads,if_pos hx] at hp |
| 160 | rw [show (fun t : ℝ => read (θ • scaleJet i.1 t) (project H o X f d).val) = fun t => read (scaleJet (θ • i.1) t) (project H o X f d).val from funext fun t => by |
| 161 | rw [show θ • scaleJet i.1 t = scaleJet (θ • i.1) t from funext fun j => smul_comm θ (t^(j+2)) (i.1 j)]] |
| 162 | exact (hp (θ • i.1)).2.2 _ (Nat.le_of_lt_succ i.2.isLt) |
| 163 | rw [project_eq (by simp only [Reads,if_neg hx] : Reads H o X (f 1 • unit G d) f)] |
| 164 | simp [unit,iteratedDeriv_const] |
| 165 | |
| 166 | theorem probe_budget : ∃ (S : Finset (Probe G d)) (C : ℝ), 1 ≤ C ∧ ∀ (x : F.Coeff) (c : ℝ), 0 ≤ c → |
| 167 | (∀ i∈S, ‖runProbe F i x‖ ≤ c) → F.coeffSize x ≤ C*c := by |
| 168 | classical |
| 169 | let U (i : Probe G d × ℕ) := {x : F.Coeff | ‖x‖ < (i.2 : ℝ)*‖runProbe F i.1 x‖} |
| 170 | have ho (i) : IsOpen (U i) := isOpen_lt (by fun_prop) (by fun_prop) |
| 171 | have he {x : F.Coeff} (hx : x ≠ 0) : ∃ i : Probe G d, runProbe F i x ≠ 0 := by |
| 172 | contrapose! hx |
| 173 | apply F.coords.symm.injective |
| 174 | refine jet_test_ext _ _ fun J k hk => ?_ |
| 175 | rw [← show ((J,⟨k,Nat.lt_succ_of_le hk⟩) : Probe G d).2.val = k from rfl, ← runProbe_eq, ← runProbe_eq, hx,map_zero] |
| 176 | have hS : Metric.sphere (0 : F.Coeff) 1 ⊆ ⋃ i, U i := by |
| 177 | intro x hx |
| 178 | have hne : x ≠ 0 := by intro ha; simp [ha] at hx |
| 179 | obtain ⟨i,hi⟩ := he hne |
| 180 | obtain ⟨m,hm⟩ := exists_nat_gt (‖x‖ / ‖runProbe F i x‖) |
| 181 | exact Set.mem_iUnion.mpr ⟨(i,m), (div_lt_iff₀ (norm_pos_iff.mpr hi)).mp hm⟩ |
| 182 | obtain ⟨T,hT⟩ := (isCompact_sphere (0 : F.Coeff) 1).elim_finite_subcover U ho hS |
| 183 | let C := T.sup Prod.snd |
| 184 | refine ⟨T.image Prod.fst, 1+(F.extra+1:ℕ)*(C:ℝ), le_add_of_nonneg_right (by positivity),fun x c hc ht => ?_⟩ |
| 185 | apply (size_le_norm F x).trans |
| 186 | have H : ‖x‖ ≤ (C:ℝ)*c := by |
| 187 | by_cases hx : x = 0 |
| 188 | · rw [hx,norm_zero]; positivity |
| 189 | let r : ℂ := ((‖x‖⁻¹ : ℝ) : ℂ) |
| 190 | have hr : r • x ∈ Metric.sphere (0 : F.Coeff) 1 := by simp [norm_smul,r,hx] |
| 191 | obtain ⟨i,hi,hx'⟩ := Set.mem_iUnion₂.mp (hT hr) |
| 192 | change ‖r • x‖ < _ at hx' |
| 193 | simp only [norm_smul,map_smul] at hx' |
| 194 | apply (lt_of_mul_lt_mul_left (a:=‖r‖) (hx'.trans_eq (mul_left_comm ..)) (norm_nonneg _)).le.trans |
| 195 | exact mul_le_mul (by exact_mod_cast Finset.le_sup (f:=Prod.snd) hi) (ht _ (Finset.mem_image_of_mem _ hi)) (norm_nonneg _) (by positivity) |
| 196 | rw [add_mul,one_mul,mul_assoc] |
| 197 | exact le_trans (mul_le_mul_of_nonneg_left H (by positivity)) (le_add_of_nonneg_left hc) |
| 198 | end Detector |
| 199 | end YM.Push.Local |