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.MultipleContact.FieldBound |
| 2 | import YM.MultipleContact.Tests |
| 3 | |
| 4 | /-! Taylor prescription at total collapse starting from a function on the puncture (e.g. any comparable pair). |
| 5 | Existence interface includes arbitrary normal tests. Partial diagonals need additional recursive constructions beyond this estimate. -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.MultipleContact.Power |
| 9 | open Function Filter MeasureTheory Set TopologicalSpace Metric Table Direct Analysis Extraction |
| 10 | open scoped Topology BigOperators ContDiff Distributions Classical |
| 11 | variable {E : Type*} [NormedAddCommGroup E][InnerProductSpace ℝ E] |
| 12 | [MeasureSpace E] [BorelSpace E] [FiniteDimensional ℝ E] [(volume : Measure E).IsAddHaarMeasure] |
| 13 | variable {G : Gauge} {L:Register G} {S:Table L} {P:DiffPlan S} |
| 14 | |
| 15 | variable (B:Splitting P) (D:∀ h,Detector S h) |
| 16 | variable {R:ℝ} {σ Hmax k:ℕ} {A:Set (Target L)} |
| 17 | |
| 18 | def critical (σ:ℕ) (E:Type*)[AddCommMonoid E][Module ℝ E] : ℕ:=σ-Module.finrank ℝ E |
| 19 | |
| 20 | def piece (Y:Target L→E→ℂ)(k i:ℕ) : Target L→E→ℂ:= centerRead i (fun y=>B.part i k (readField D Y k y)) |
| 21 | |
| 22 | def primary (R s:ℝ)(m:Option ℕ)(Y:Target L→E→ℂ)(f:E→ℂ)(t:Target L) :ℂ:=term R s m (Y t) f |
| 23 | /-- Exact power counting at total collapse in dimension `Module.finrank ℝ E`. -/ |
| 24 | def rule (R s:ℝ)(σ:ℕ)(Y:Target L→E→ℂ)(t:Target L)(f:E→ℂ):ℂ:= |
| 25 | if Module.finrank ℝ E ≤ σ then primary R s none (miss D (critical σ E) Y) f t + |
| 26 | ∑ i:Fin (critical σ E+1), primary R s (some (critical σ E-i.val)) (piece B D Y (critical σ E) i.val) f t |
| 27 | else primary R s none Y f t |
| 28 | |
| 29 | structure Admitted (A:Set (Target L)) (R:ℝ) (m:Option ℕ) (Z:Target L→E→ℂ) where |
| 30 | power : ℝ |
| 31 | cost : ℝ |
| 32 | live : -(Module.finrank ℝ E:ℝ)< power + price m |
| 33 | estimates t : t∈A→ Kas R power cost (Z t) |
| 34 | |
| 35 | variable {B D} {Y:Target L→E→ℂ} (H:Estimates P D σ Hmax R Y A) |
| 36 | include H |
| 37 | lemma pieceAdmitted (hk:k=critical σ E)(hK:Module.finrank ℝ E ≤ σ)(h:k≤Hmax)(i:Fin (k+1)): |
| 38 | Nonempty (Admitted A R (some (k-i.val)) (piece B D Y k i.val)) :=by |
| 39 | obtain ⟨c,γ,hγ,_,he⟩:=piecePrice H B i.val (Nat.le_of_lt_succ i.isLt) h |
| 40 | obtain ⟨c,hc,hc'⟩:= centerPrice H (by omega : i.val ≤ Hmax) he |
| 41 | refine ⟨_,_,?_,hc'⟩ |
| 42 | unfold price; push_cast [Nat.cast_sub (R:=ℝ) (show i.val≤k by exact Nat.le_of_lt_succ i.isLt)]; unfold critical at hk |
| 43 | have hm:= congr_arg (fun n:ℕ => (n:ℝ)) hk; rw [Nat.cast_sub (R:=ℝ) hK] at hm; linarith |
| 44 | lemma signedAdmitted {k:ℕ} (hk:σ≤Module.finrank ℝ E+k)(h:k≤Hmax): Nonempty (Admitted A R none (miss D k Y)):=by |
| 45 | obtain ⟨c,γ,hγ,he⟩:= H.signed k h |
| 46 | exact ⟨_,_,by unfold price; push_cast; exact (by linarith [show (σ:ℝ)≤Module.finrank ℝ E+k from by exact_mod_cast hk]),he⟩ |
| 47 | lemma basicAdmitted (hk:σ<Module.finrank ℝ E):Nonempty (Admitted A R none Y):=by |
| 48 | obtain ⟨c,he⟩:= H.grow (1/2) (by norm_num) |
| 49 | exact ⟨_,_,by simp only [price,Nat.cast_zero]; exact (by linarith [show (σ:ℝ)+1 ≤ Module.finrank ℝ E from by exact_mod_cast hk]),he⟩ |
| 50 | variable (hd:1≤ Module.finrank ℝ E) |
| 51 | namespace Admitted |
| 52 | open TestFunction |
| 53 | variable {V:Target L→ E→ℂ} {m:Option ℕ} (v:Admitted A R m V) |
| 54 | include hd v in |
| 55 | omit H in |
| 56 | lemma valid (s:ℝ)(hs:0<s) (t:Target L)(ht:t∈A) (f:E→ℂ)(hf:ContDiff ℝ ∞ f)(hc:∃C,JetBounds (price m) f C): |
| 57 | IntegrableOn (fun x=>diff s m f x • V t x) (ball 0 R):=(localPair hd (v.estimates t ht) hf hc.choose_spec hs v.live).1 |
| 58 | |
| 59 | omit H in |
| 60 | def dist (s:ℝ)(hs:0<s)(t:Target L)(ht:t∈A) (U:Opens E) : 𝓓(U,ℂ)→L[ℂ]ℂ:= Direct.functional hd (v.estimates t ht) s hs m v.live |
| 61 | omit H in |
| 62 | lemma activate (s:ℝ)(hs:0<s)(t:Target L)(ht:t∈A) (U:Opens E)(f:𝓓(U,ℂ)):dist hd v s hs t ht U f = primary R s m V f t :=rfl |
| 63 | end Admitted |
| 64 | |
| 65 | def patch {s:ℝ} (hs:0<s)(hw:critical σ E≤Hmax)(t:Target L)(ht:t∈A) (U:Opens E):𝓓(U,ℂ)→L[ℂ]ℂ :=if hk : σ≥Module.finrank ℝ E then |
| 66 | let n:= critical σ E |
| 67 | let v : Admitted A R none (miss D n Y):= (signedAdmitted H (by change σ≤Module.finrank ℝ E+critical σ E; unfold critical; omega) hw).some |
| 68 | let w (i:Fin (n+1)) : Admitted A R (some (n-i.val)) (piece B D Y n i.val) := (pieceAdmitted H rfl hk hw i).some |
| 69 | v.dist hd s hs t ht U + ∑ i:Fin (n+1), (w i).dist hd s hs t ht U |
| 70 | else (basicAdmitted H (by omega)).some.dist hd s hs t ht U |
| 71 | lemma patch_on {s:ℝ} (hs:0<s)(hw:critical σ E≤Hmax)(t:Target L)(ht:t∈A) (U:Opens E)(f:𝓓(U,ℂ)):patch (B:=B) H hd hs hw t ht U f= rule B D R s σ Y t f:=by |
| 72 | rw [patch,rule]; split_ifs |
| 73 | · dsimp only |
| 74 | simp [add_apply, sum_apply,Admitted.activate] |
| 75 | exact Admitted.activate .. |
| 76 | omit H in |
| 77 | private lemma jets_off {f:E→ℂ} (hf:0∉tsupport f)(m:Option ℕ)(s:ℝ):diff s m f=f:=by |
| 78 | cases m with |
| 79 | | none=>rfl |
| 80 | | some m=> |
| 81 | have he(i:ℕ):iteratedFDeriv ℝ i f 0=0 := notMem_support.mp (show (0:E)∉Function.support (iteratedFDeriv ℝ i f) from fun hd=>hf (support_iteratedFDeriv_subset i hd)) |
| 82 | ext1 x; simp [diff,polyJet,coeff,he] |
| 83 | |
| 84 | include H in |
| 85 | lemma extend_eq {s:ℝ} (hs:0<s)(hw:critical σ E≤Hmax)(t:Target L)(ht:t∈A) (U:Opens E)(f:𝓓(U,ℂ)) (h0:0∉tsupport f)(hR:tsupport f⊆ball 0 R): |
| 86 | patch (B:=B) H hd hs hw t ht U f=∫ x:E, f x * Y t x:= by |
| 87 | rw [patch_on]; let k:=critical σ E; unfold rule; split_ifs with he |
| 88 | · obtain ⟨v⟩:=signedAdmitted H (by change σ≤Module.finrank ℝ E + k; unfold k critical; omega) hw |
| 89 | let w(i:Fin (k+1)) := (pieceAdmitted (B:=B) H rfl he hw i).some |
| 90 | have hv:= v.valid hd s hs t ht f f.contDiff (has_bound f _) |
| 91 | have hW(i) := (w i).valid hd s hs t ht f f.contDiff (has_bound f _) |
| 92 | simp_rw [jets_off h0] at hW; change IntegrableOn (fun x:E=>f x • _) _ at hv |
| 93 | suffices h':primary R s none (miss D k Y) f t + ∑ i:Fin (k+1),primary R s _ _ f t=∫ x in ball 0 R,f x * Y t x by rw [h',setIntegral_eq_integral_of_forall_compl_eq_zero (fun x hx=> ?_)]; exact mul_eq_zero_of_left (notMem_support.mp (fun hp=>hx (hR (subset_tsupport _ hp)))) _ |
| 94 | change _= |
| 95 | ∫ x in ball 0 R,f x • Y t x |
| 96 | unfold primary; simp_rw [term,jets_off h0]; rw [← integral_finsetSum _ (fun i _=>hW i)]; rw [← integral_add hv (integrable_finsetSum _ fun i _=>hW i)] |
| 97 | apply setIntegral_congr_fun isOpen_ball.measurableSet |
| 98 | intro x hx |
| 99 | simp_rw [← Finset.smul_sum,← smul_add]; apply congr_arg (f x • ·) |
| 100 | let z:= readField D Y k x |
| 101 | have hh : (∑ i:Fin (k+1), piece B D Y k i.val t x)=response t.1 k t.2 z := by |
| 102 | rw [← B.recombine H.symmetric H.respects k z,map_sum] |
| 103 | apply Finset.sum_congr rfl; intro i _ |
| 104 | exact (H.inherit t ht i.val k _ _).symm |
| 105 | rw [show miss D k Y t x=Y t x - response t.1 k t.2 (z) from rfl,hh,sub_add_cancel] |
| 106 | change (∫ x in ball 0 R,f x* Y t x)=_; rw [setIntegral_eq_integral_of_forall_compl_eq_zero]; exact fun x hx=> mul_eq_zero_of_left (notMem_support.mp (fun hp=>hx (hR (subset_tsupport _ hp)))) _ |
| 107 | end YM.MultipleContact.Power |