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.Ac.Tree |
| 2 | import YM.Corona.Fit |
| 3 | import YM.Next.EXTRACTION.Tails |
| 4 | import YM.Next.FOUNDATIONS.Regular |
| 5 | import YM.Next.FOUNDATIONS.SU2 |
| 6 | |
| 7 | |
| 8 | /-! |
| 9 | # Full product and reanchoring bounds on the actual regular jets |
| 10 | |
| 11 | One total output left-derivative order, not that order spent separately on |
| 12 | moving every factor. Allows coincident/overlapping or repeated factors, and |
| 13 | complex coefficients. Use on the common GOOD set including equality; nothing |
| 14 | is claimed about derivatives of the indicator. Prices below are for the |
| 15 | nonfactorial sup-norm version. Helper chart argument uses the actual local |
| 16 | log/exp analysis as for Next.FOUNDATIONS.Regular. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | noncomputable section |
| 21 | namespace YM.Extra.Multi.Germs |
| 22 | open Function Filter Wilson RG Lattice MeasureTheory Finset |
| 23 | open scoped Topology BigOperators Matrix.Norms.Frobenius ContDiff Classical |
| 24 | |
| 25 | variable {ι : Type*} {n : Side} {G : Gauge} (s : Finset ι) |
| 26 | |
| 27 | private lemma near {f : Config G n → ℂ} {U : Config G n} {k : ℕ} |
| 28 | (h : ContDiffAt ℝ (↑k) (f ∘ increment U) 0) (A : Directions G n) : |
| 29 | ∀ᶠ t : ℝ in 𝓝 0, ContDiffAt ℝ (↑k) (f ∘ increment (increment U (t • A))) 0 := by |
| 30 | let H (p : ℝ × Directions G n) e := G.lieExp (p.2 e) * G.lieExp (p.1 • A e) |
| 31 | have ht (e) : Tendsto (H · e) (𝓝 0) (𝓝 1) := by |
| 32 | rw [← show H 0 e=1 by simp [H]]; exact (show Continuous (H · e) by unfold H; fun_prop).tendsto _ |
| 33 | have he (e) : ContDiff ℝ ω (fun q => G.mat (H q e)) := by |
| 34 | apply (G.exp_jet.comp ?_).mul (G.exp_jet.comp ?_) <;> fun_prop |
| 35 | let J (p : ℝ × Directions G n) : Directions G n := fun e => G.plog (G.mat (H p e)) |
| 36 | have hg : ContDiffAt ℝ ω J 0 := contDiffAt_pi.mpr fun i => |
| 37 | ContDiffAt.comp (g:=G.plog) (f:=fun q => G.mat (H q i)) _ (by simp [H,G.plog_diff]) (he i).contDiffAt |
| 38 | have hJ : J 0=0 := by ext; simp [J,H] |
| 39 | have h' : ContDiffAt ℝ (↑k) (fun p : ℝ × Directions G n => f (increment (increment U (p.1 • A)) p.2)) 0 := by |
| 40 | apply ((hJ.symm ▸ h : ContDiffAt _ (↑k:WithTop ℕ∞) _ (J 0)).comp 0 (hg.of_le le_top)).congr_of_eventuallyEq |
| 41 | filter_upwards [Filter.eventually_all.mpr (fun i => (ht i).eventually G.plog_right)] with p hp |
| 42 | apply congr_arg f; ext1 e |
| 43 | change G.lieExp _ * (G.lieExp _ * U e) = G.lieExp (J p e) * U e |
| 44 | rw [← mul_assoc,show G.lieExp (J p e)=_ from hp e]; rfl |
| 45 | have h0 : Tendsto (fun x : ℝ => (x,(0:Directions G n))) (𝓝 0) (𝓝 0) := continuous_id.continuousAt.prodMk continuousAt_const |
| 46 | filter_upwards [h0.eventually (h'.eventually (by simp))] with x hx |
| 47 | exact hx.comp 0 (f:=fun v => (x,v)) (contDiffAt_const.prodMk contDiffAt_id) |
| 48 | |
| 49 | section Assignment |
| 50 | variable {E : Type*} |
| 51 | |
| 52 | def push (a : E) (j : ι) (q : ι → List E) := Function.update q j (a :: q j) |
| 53 | |
| 54 | private lemma push_has (a : E) (i : ι) (hi : i∈s) {L : E → Prop} {l : ℕ} (v : ι → List E) |
| 55 | (hv : ∀ i∈s,∀ a∈v i,L a) (hz : ∑ i∈s, (v i).length = l) (ha : L a) : |
| 56 | (∀ j∈s,∀ b∈push a i v j,L b) ∧ ∑ j∈s,(push a i v j).length=l+1 := by |
| 57 | constructor |
| 58 | · intro j hj b hb; unfold push at hb |
| 59 | by_cases h : j=i |
| 60 | · subst j; rw [update_self,List.mem_cons] at hb; rcases hb with rfl|hb; exact ha; exact hv i hi b hb |
| 61 | rw [update_of_ne h] at hb; exact hv j hj b hb |
| 62 | rw [← sum_erase_add _ _ hi] at hz ⊢ |
| 63 | have he j (hj : j∈s.erase i) : push a i v j = v j := Function.update_of_ne (ne_of_mem_erase hj) .. |
| 64 | rw [sum_congr rfl fun j hj => congr_arg List.length (he j hj),push,update_self,List.length_cons,← hz]; omega |
| 65 | |
| 66 | /-- Sum over assignments of directions in a list to ordered sublists at the |
| 67 | factors, in original order on each factor. No permutation law on left jets. -/ |
| 68 | def assign : List E → ((ι → List E) → ℂ) → ℂ |
| 69 | | [], H => H fun _ => [] |
| 70 | | a::l,H => assign l (fun q => ∑ j∈s, H (push a j q)) |
| 71 | |
| 72 | private lemma assign_has (l : List E) (A : (ι→List E) → ℝ → ℂ) (A' : (ι→List E) → ℂ) |
| 73 | (h : ∀ q, (∀ j∈s,(q j).length ≤ l.length) → HasDerivAt (A q) (A' q) 0) : HasDerivAt |
| 74 | (fun t => assign s l (fun q => A q t)) (assign s l A') 0 := by |
| 75 | induction l generalizing A A' with |
| 76 | | nil => exact h _ fun _ _ => le_rfl |
| 77 | | cons a l ih => |
| 78 | refine ih _ _ (fun q hq => HasDerivAt.fun_sum fun i _ => h _ (fun j hj => ?_)) |
| 79 | dsimp only [push]; by_cases he : j=i |
| 80 | · subst j; simpa only [update_self, List.length_cons, Nat.add_le_add_iff_right] using hq _ hj |
| 81 | rw [update_of_ne he]; simpa only [List.length_cons] using (hq _ hj).trans (Nat.le_succ _) |
| 82 | |
| 83 | private lemma assign_push (a : E) (l : List E) (H : (ι→List E) → ℂ) : assign s (a::l) H = |
| 84 | assign s l (fun q => ∑ i∈s, H (push a i q)) := rfl |
| 85 | |
| 86 | lemma assignment_norm {L : E → Prop} (l : List E) (F : (ι → List E) → ℂ) (c : ℝ) (hl : ∀ i∈l,L i) |
| 87 | (hf : ∀ q, (∀ i∈s, ∀ v ∈ q i,L v) → (∑ i∈s, (q i).length)=l.length → ‖F q‖ ≤ c) : |
| 88 | ‖assign s l F‖ ≤ (s.card:ℝ)^l.length * c := by |
| 89 | induction l generalizing F c with |
| 90 | | nil => simpa [assign] using hf (fun _ => []) (by simp) (by simp) |
| 91 | | cons a l ih => |
| 92 | simp only [assign,List.length_cons,pow_succ,mul_assoc]; apply ih _ _ (fun i hi => hl i (List.mem_cons_of_mem _ hi)) |
| 93 | intro q hq hz; have hp i (hi : i∈s) := push_has s a i hi q hq hz (hl a List.mem_cons_self) |
| 94 | refine (norm_sum_le ..).trans ?_ |
| 95 | simpa using sum_le_sum (fun i hi => hf _ (hp i hi).1 (hp i hi).2) |
| 96 | end Assignment |
| 97 | |
| 98 | variable {P : BudgetPoint} {X : Support n} {U : Config G n} |
| 99 | |
| 100 | lemma leibniz (f : ι→Config G n → ℂ) {k : ℕ} (h : ∀ i∈s,ContDiffAt ℝ (↑k) (f i ∘ increment U) 0) |
| 101 | (l : List (Directions G n)) (hl : l.length ≤ k) : |
| 102 | leftDerivs (fun u => ∏ i∈s, f i u) l U = assign s l (fun q => ∏ i∈s,leftDerivs (f i) (q i) U) := by |
| 103 | induction l generalizing U with |
| 104 | | nil => rfl |
| 105 | | cons a l ih => |
| 106 | have he : l.length < k := hl |
| 107 | let F (q : ι → List (Directions G n)) (t : ℝ) := ∏ i∈s, leftDerivs (f i) (q i) (increment U (t • a)) |
| 108 | let F' (q : ι → List (Directions G n)) := ∑ i∈s, ∏ j∈s, leftDerivs (f j) (push a i q j) U |
| 109 | rw [leftDerivs,assign_push]; apply HasDerivAt.deriv |
| 110 | refine (assign_has s l F F' (fun q hq => ?_)).congr_of_eventuallyEq ?_ |
| 111 | · have H := HasDerivAt.fun_finsetProd fun i hi => Next.Foundations.left_has a ((hq i hi).trans_lt he) (h i hi) |
| 112 | simp only [zero_smul,show increment U 0=U by ext1 i; simp [increment]] at H |
| 113 | convert H using 1 |
| 114 | any_goals rfl |
| 115 | apply sum_congr rfl; intro i hi |
| 116 | rw [← prod_erase_mul _ _ hi] |
| 117 | dsimp only [push]; rw [update_self,smul_eq_mul]; congr 1 |
| 118 | exact prod_congr rfl fun j hj => by rw [update_of_ne (ne_of_mem_erase hj)] |
| 119 | · filter_upwards [eventually_all_finset _ |>.mpr fun i hi => near (h i hi) a] with t ht using ih ht he.le |
| 120 | |
| 121 | lemma smoothProd {Y : ι→Support n} {F : ι → Config G n → ℂ} |
| 122 | (h : ∀ i∈s, P.Regular (Y i) (F i)) : P.Regular (s.biUnion Y) (fun U => ∏ i∈s, F i U) := by |
| 123 | have he (U : Config G n) (hu : Healthy P.threshold (s.biUnion Y) U) : ContDiffAt ℝ (↑P.order) |
| 124 | ((fun U => ∏ i∈s,F i U) ∘ increment U) 0 := by |
| 125 | refine contDiffAt_prod (fun i hi => (h i hi).smooth U (Finset.disjoint_of_subset_left ?_ hu)) |
| 126 | exact subset_biUnion_of_mem Y hi |
| 127 | refine ⟨fun U V hV => prod_congr rfl fun i hi => (h i hi).sites U V (agrees_mono hV fun _ hx => |
| 128 | mem_biUnion.mpr ⟨i,hi,hx⟩), Finset.measurable_fun_prod _ (fun i hi => (h i hi).borel), |
| 129 | fun t U => prod_congr rfl fun i hi => (h i hi).symmetry ..,he,fun U hu a l hl => Next.Foundations.left_has a hl (he U hu)⟩ |
| 130 | |
| 131 | /-- Only a COMMON dilation is needed. True totalized derivatives, even when |
| 132 | called at places where they return junk. -/ |
| 133 | lemma dilation (f : Config G n → ℂ) (l : List (Directions G n)) (c : ℝ) : |
| 134 | leftDerivs f (l.map (c • ·)) U = c^l.length • leftDerivs f l U := by |
| 135 | induction l generalizing U with |
| 136 | | nil => simp [leftDerivs] |
| 137 | | cons a l ih => |
| 138 | simp_rw [List.map_cons,leftDerivs, ih,smul_smul,mul_comm _ c] |
| 139 | rw [deriv_fun_const_smul_field,show deriv (fun t => leftDerivs f l (increment U ((c*t) • a))) 0 = _ from |
| 140 | deriv_comp_mul_left c (fun t => leftDerivs f l (increment U (t • a))) 0,mul_zero,smul_smul,List.length_cons,pow_succ] |
| 141 | |
| 142 | lemma relocate_dir {o y : Site n} {b : ℝ} {a : Directions G n} (hb : (1+(separation o y:ℝ)) ≤ b) |
| 143 | (h : P.dirBound y a) : P.dirBound o (b⁻¹^P.power • a) := by |
| 144 | have hB : 0 < b := lt_of_lt_of_le (by positivity) hb |
| 145 | intro e; rw [Pi.smul_apply, norm_smul,Real.norm_of_nonneg (by positivity), inv_pow] |
| 146 | apply (mul_le_mul_of_nonneg_left (h e) (by positivity)).trans |
| 147 | have h' : (separation e.1 y:ℝ) ≤ separation e.1 o + (separation o y : ℝ) := by exact_mod_cast separation_triangle e.1 o y |
| 148 | rw [inv_mul_eq_div,div_le_iff₀ (by positivity), mul_assoc,← mul_pow]; have := P.threshold_pos; gcongr |
| 149 | nlinarith [show (0:ℝ) ≤ separation e.1 o by positivity] |
| 150 | |
| 151 | lemma relocated_bound {o y : Site n} {b c : ℝ} {f : Config G n → ℂ} |
| 152 | (h : (1+(separation o y:ℝ)) ≤ b) (hf : P.supBounds o X f c) (hu : Healthy P.threshold X U) |
| 153 | (l : List (Directions G n)) (hl : l.length ≤ P.order) (hr : ∀ a∈l,P.dirBound y a) : |
| 154 | ‖leftDerivs f l U‖ ≤ (b^P.power)^l.length*c := by |
| 155 | have hB : 0 < b := lt_of_lt_of_le (by positivity) h |
| 156 | have hg := hf.2 U hu (l.map ((b⁻¹^P.power:ℝ) • ·)) (by simpa) fun a ha => (by obtain ⟨v,hv,rfl⟩ := List.mem_map.mp ha; exact relocate_dir h (hr _ hv)) |
| 157 | rw [dilation,norm_smul,Real.norm_of_nonneg (by positivity),inv_pow,inv_pow,inv_mul_eq_div,div_le_iff₀ (by positivity),mul_comm c] at hg |
| 158 | exact hg |
| 159 | |
| 160 | variable {Y : ι → Support n} {F : ι → Config G n → ℂ} {o : ι → Site n} {c : ι → ℝ} |
| 161 | |
| 162 | /-- Ordered multi-factor version of (reamx), nonfactorial convention. One `y` |
| 163 | common for the OUTPUT, may be used for every marker root. Full direction |
| 164 | weights moved from each `o i` to y. Each loss is paid per slot, not per slot |
| 165 | per occurrence. `b` is any bound for 1+distance. -/ |
| 166 | lemma multibound (y : Site n) {b : ℝ} |
| 167 | (h : ∀ i∈s, P.Regular (Y i) (F i)) (he : ∀ i∈s,P.supBounds (o i) (Y i) (F i) (c i)) |
| 168 | (hr : ∀ i∈s, (1+(separation (o i) y:ℝ)) ≤ b) (hu : Healthy P.threshold (s.biUnion Y) U) |
| 169 | (l : List (Directions G n)) (hl : l.length ≤ P.order) (hd : ∀ a∈l,P.dirBound y a) : |
| 170 | ‖leftDerivs (fun U => ∏ i∈s,F i U) l U‖ ≤ ((s.card:ℝ)*b^P.power)^l.length*∏ i∈s,c i := by |
| 171 | have hx i (hi : i∈s) := Finset.disjoint_of_subset_left (subset_biUnion_of_mem Y hi) hu |
| 172 | rw [leibniz s F (fun i hi => (h i hi).smooth U (hx i hi)) l hl,mul_pow,mul_assoc] |
| 173 | apply assignment_norm s l _ _ hd; intro q hq hh; rw [norm_prod,←hh, ← prod_pow_eq_pow_sum, ← prod_mul_distrib] |
| 174 | apply prod_le_prod (fun i _ => norm_nonneg _); intro i hi |
| 175 | have H := (single_le_sum (fun j (_ : j∈s) => Nat.zero_le (q j).length) hi).trans_eq hh |
| 176 | exact relocated_bound (hr i hi) (he i hi) (hx i hi) (q i) (H.trans hl) (hq i hi) |
| 177 | |
| 178 | /-- The repeated-variable cost as sum of the ACTUAL connected-cover costs |
| 179 | . Element type permits any number of repeated fields and multiple |
| 180 | addresses meeting a root. -/ |
| 181 | def occurrences (M : ℕ) (Y : ι → Support n) := ∑ i∈s,coverNumber M (Y i) |
| 182 | |
| 183 | def pay (P : BudgetPoint) := ((4*P.B+2:ℝ)^P.power)^P.order |
| 184 | |
| 185 | theorem reanchored (y : Site n) (h : ∀ i∈s, P.Regular (Y i) (F i)) (he : ∀ i∈s, P.supBounds (o i) (Y i) (F i) (c i)) |
| 186 | (hS : Ac.Spark Y s) (ho : ∀ i∈s,o i∈Y i) (hy : y∈s.biUnion Y) : |
| 187 | P.supBounds y (s.biUnion Y) (fun U => ∏ i∈s,F i U) |
| 188 | (pay P * (1+(occurrences s P.B Y : ℝ))^((P.power+1)*P.order)*∏ i∈s,c i) := by |
| 189 | let w := occurrences s P.B Y |
| 190 | let b := (4*(P.B:ℝ)+2)*(1+w) |
| 191 | have hf := prod_nonneg (fun i hi => (he i hi).1) |
| 192 | have hb i (hi : i∈s) : 1+(separation (o i) y : ℝ) ≤ b := by |
| 193 | have h : (separation (o i) y:ℝ) ≤ w*(4*P.B+2)+(2*(P.B:ℝ)) := by |
| 194 | exact_mod_cast (Corona.extent _ P.B (mem_biUnion.mpr ⟨i,hi,ho i hi⟩) hy).trans |
| 195 | (Nat.add_le_add_right (Nat.mul_le_mul_right _ (Ac.cover Y P.B hS)) _) |
| 196 | unfold b; linarith |
| 197 | have h1 : 1 ≤ b := by |
| 198 | unfold b; have hw : (0:ℝ)≤w := by positivity |
| 199 | have hB : (0:ℝ) ≤ P.B := by positivity |
| 200 | nlinarith |
| 201 | have hw : 1 ≤ (s.card :ℝ) := by exact_mod_cast (card_pos.mpr hS.1) |
| 202 | have hx : (s.card:ℝ) ≤ (1+w:ℝ) := by |
| 203 | have hc i (hi : i∈s) : 1 ≤ coverNumber P.B (Y i) := by |
| 204 | have := card_pos.mpr (show (Y i).Nonempty from ⟨_,ho i hi⟩) |
| 205 | have he := Corona.pays (Y i) P.B |
| 206 | by_contra! h; rw [Nat.lt_one_iff.mp h,zero_mul] at he; omega |
| 207 | exact le_trans (b:=(w:ℝ)) (by unfold w; exact_mod_cast (show s.card ≤ w by simpa [w,occurrences] using sum_le_sum hc)) (le_add_of_nonneg_left zero_le_one) |
| 208 | refine ⟨by unfold pay; positivity, fun U hU l hl hd => ?_⟩ |
| 209 | refine (multibound s y h he hb hU l hl hd).trans (mul_le_mul_of_nonneg_right ?_ hf) |
| 210 | rw [show pay P*(1+(occurrences s P.B Y:ℝ))^((P.power+1)*P.order)=((1+w)*b^P.power)^P.order by |
| 211 | unfold b pay; change _*(1+(w:ℝ))^_=_; rw [pow_mul,pow_succ]; simp only [mul_pow]; ring] |
| 212 | apply le_trans (b:=((1+(w:ℝ))*b^P.power)^l.length) _ (pow_le_pow_right₀ (by nlinarith [one_le_pow₀ (n:=P.power) h1]) hl) |
| 213 | gcongr |
| 214 | |
| 215 | |
| 216 | |
| 217 | end YM.Extra.Multi.Germs |