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.Matching.Twirls |
| 2 | import YM.MultipleContact.Fields |
| 3 | |
| 4 | /-! Transfer of the unselected pair bounds to all fixed compact exterior configurations and physical labels. -/ |
| 5 | set_option autoImplicit false |
| 6 | set_option quotPrecheck false |
| 7 | noncomputable section |
| 8 | namespace YM.MultipleContact.Local |
| 9 | open Filter Function MeasureTheory Analysis Extraction Table Ward MergeProof Acme Ribbons Around Cells Wilson Lattice Climb Set Metric |
| 10 | open Matching |
| 11 | open scoped Topology Matrix.Norms.Frobenius BigOperators Classical ContDiff |
| 12 | variable {G:Gauge}{C:Family G}{S:Table C.book}{F:Extraction.Order}{W:DiffPlan S} {D:ℕ} |
| 13 | variable {ι:Type*}[Fintype ι]{n:ι→ℕ} |
| 14 | variable {X:S.Rotation} |
| 15 | private def lit (R:Ortho)(q:C.book.Token):C.book.Token:=expose (X.label R (S.classTokens q)) |
| 16 | private lemma lit_apply {X:S.Rotation} (R:Ortho)(q:C.book.Token):S.classTokens (lit (X:=X) R q)=X.label R (S.classTokens q):=by |
| 17 | dsimp only [lit,expose,Rotation.label,classTokens]; congr 1;exact (S.rep ..) |
| 18 | omit [Fintype ι] in |
| 19 | private lemma continuous_move_val (R:Ortho)(u:ι):Continuous (fun z:Points (n u) => Points.move R z):=by |
| 20 | unfold Points.move points |
| 21 | exact (PiLp.continuous_toLp _ _).comp (continuous_pi fun i=> (Ortho.motion R).continuous.comp (show Continuous (fun x:Points _=>x i) from by fun_prop)) |
| 22 | private def repack (R:Ortho)(z:∀i,Points (n i)):=fun i=>Points.move R (z i) |
| 23 | private lemma continuous_repack (R:Ortho) : Continuous (repack (n:=n) R):=continuous_pi fun i=> (continuous_move_val R i).comp (continuous_apply i) |
| 24 | omit [Fintype ι] in |
| 25 | lemma carries {n':ℕ}(R:Ortho)(y:E4)(z:Points n'):Points.move R (Points.cons y z)=Points.cons (Ortho.move R y) (Points.move R z):=by ext1 i; exact Fin.cases rfl (fun j=>rfl) i |
| 26 | |
| 27 | variable (ρ:S.RealSpin)(hx:X.Laws W ρ)(hO:X.Oriented S) |
| 28 | include hO |
| 29 | omit [Fintype ι] in |
| 30 | lemma rot_once {n':ℕ}(R:Ortho)(v:S.Tag)(q:Fin n'→ C.book.Token)(z:Points n')(he:Points.cons 0 z∈conf _): once q v z=once (lit (X:=X) R∘q) (X.label R v) (Points.move R z):=by |
| 31 | have hx:= hO _ (Fin.cons (α:=fun _=>S.Tag) v (S.classTokens∘q)) (Points.cons 0 z) he R |
| 32 | rw [carries,show R.move 0=0 from (R.motion).map_zero,Work.A01.comp_cons] at hx |
| 33 | unfold once disc; rw [hx.symm] |
| 34 | congr 2 |
| 35 | ext1 j |
| 36 | exact (lit_apply ..).symm |
| 37 | |
| 38 | omit [Fintype ι] in |
| 39 | lemma rot_pair {n':ℕ}(R:Ortho)(V B:S.Tag)(q:Fin n'→ C.book.Token)(y:E4)(z:Points n')(he:Points.cons y (Points.cons 0 z)∈conf _): twice q V B y z=twice (lit (X:=X) R∘q) (X.label R V) (X.label R B) (R.move y) (Points.move R z):=by |
| 40 | have hx:= hO _ (Fin.cons (α:=fun _=>S.Tag) V (Fin.cons B (S.classTokens∘q))) _ he R |
| 41 | rw [carries,carries,show R.move 0=0 from R.motion.map_zero,Work.A01.comp_cons,Work.A01.comp_cons] at hx |
| 42 | unfold twice disc; rw [hx.symm]; congr 1; funext i; refine Fin.cases rfl (fun j=>Fin.cases rfl (fun k=>(lit_apply ..).symm) j) i |
| 43 | |
| 44 | omit hO |
| 45 | variable (q:∀i:ι,Fin (n i)→ C.book.Token)(V B:S.Tag)(o:Option ℕ)(ε:ℝ) |
| 46 | private def ok (S:Table C.book) (z:∀i,Points (n i)) (c:ι→ℂ):Prop:=match o with | none=> True | some n=> silent q S n z c |
| 47 | private def power :ℝ:= -(B.1:ℝ)-V.1 + match o with | none => -ε | some n => (n+1/64) |
| 48 | variable (K:Set ((i:ι)→Points (n i)))(hK:IsCompact K)(hsafe:∀x∈K,∀i, Points.cons 0 (x i) ∈ conf (n i+1)) |
| 49 | variable (hT:Acme.Aroma C)(hh:Matching C) |
| 50 | variable (hm:W.Derivatives S)(hc:S.Hierarchy)(hp:F.PointLimits C S)(hq:Cells.CellHyp C F)(hC:C.Makes)(hG:G.Simple) |
| 51 | include hK hsafe hO |
| 52 | private lemma supportT {u:ℝ}(R:Ortho) |
| 53 | (he:predicate ((repack R)''K) (fun i=>lit (X:=X) R ∘ q i) (X.label R V) (X.label R B) (ok (fun i=>lit (X:=X) R∘q i) o S) (power (X.label R V) (X.label R B) o ε)): |
| 54 | predicate K q V B (ok q o S) (power V B o ε):=by |
| 55 | let K':= repack R ''K |
| 56 | obtain ⟨r,hr,hyo⟩:=he; obtain ⟨δ,hδ,hgap⟩:=gapK K hK hsafe |
| 57 | refine ⟨min δ r,lt_min hδ hr,fun z hz c hm hy y hy' hq=>?_⟩ |
| 58 | have hc(i):Points.cons y (Points.cons 0 (z i))∈conf _ :=by |
| 59 | have hf:(min δ r)≤ δ:=min_le_left .. |
| 60 | have he' (j:Fin (n i+1)): y ≠ Points.cons 0 (z i) j:=by |
| 61 | intro hne |
| 62 | refine Fin.cases (?_) (fun j he=>?_) j hne |
| 63 | · intro hne; change y=0 at hne; rw [hne,norm_zero] at hy'; linarith |
| 64 | have ht:= hgap z hz i j.succ 0 (Fin.succ_ne_zero _); refine hq.not_ge (?_); suffices hv:δ < ‖y‖ from hv.le.trans' hf; change _ < ‖Points.cons 0 (z i) j.succ-(Points.cons 0 (z i) 0)‖ at ht; rw [← he,show Points.cons 0 (z i) 0=0 from rfl,sub_zero] at ht; simpa using ht -- reverse |
| 65 | show Injective _;intro j k |
| 66 | refine Fin.cases (?_) (fun x=>?_) j |
| 67 | · exact Fin.cases (fun _=>rfl) (fun _ h=>(he' _ h).elim) k |
| 68 | exact Fin.cases (fun h=>(he' x h.symm).elim) (fun l h=>congr_arg Fin.succ (hsafe z hz i h)) k |
| 69 | |
| 70 | |
| 71 | let u:= R.move y; have hu : ‖u‖=‖y‖:= R.move_norm _ |
| 72 | have hZ : ok (fun i=>lit (X:=X) R∘q i) o S (repack R z) c:= by |
| 73 | cases o with |
| 74 | | none=>trivial |
| 75 | | some D => intro v |
| 76 | have hv: v = X.act D R ((X.act D R).symm v) := ((X.act D R).apply_symm_apply _).symm |
| 77 | have hs:=hy ((X.act D R).symm v) |
| 78 | rw [hv];exact Eq.trans (Finset.sum_congr rfl fun i _=> congr_arg (c i * ·) (Eq.symm (rot_once hO R ⟨D,_⟩ (q i) (z i) (hsafe z hz i)))) hs |
| 79 | have h := hyo (repack R z) ⟨z,hz,rfl⟩ c hm hZ u (hu ▸ hy') ((lt_of_le_of_lt hu.le hq).trans_le (min_le_right ..)) |
| 80 | rw [hu] at h |
| 81 | change _ ≤ ‖y‖^power V B o ε at h |
| 82 | exact (congr_arg (‖·‖) (Finset.sum_congr rfl fun i (_:i∈(Finset.univ:Finset ι))=>congr_arg (c i * ·) (rot_pair hO R V B (q i) y (z i) (hc i)))).le.trans h |
| 83 | |
| 84 | include hm hc hp hq hC hG hT hh |
| 85 | private lemma pocket (hε:0<ε)(z:((i:ι)→Points (n i))) (hz:z∈K):∃ U∈𝓝 z,predicate (K∩ U) q V B (ok q o S) (power V B o ε):=by |
| 86 | obtain ⟨δ,hδ,hp'⟩:=gapK K hK hsafe |
| 87 | obtain ⟨p,hh'⟩ := (((C.S.shrinks.const_mul 4).eventually (gt_mem_nhds (show 4*(0:ℝ)<δ by rwa [mul_zero]))).exists) |
| 88 | obtain ⟨R,ℓ,hR⟩:=safe_rotation z C p |
| 89 | let s:=C.S.a p; have ht':0<s:=C.S.a_pos _ |
| 90 | have hA : ∃ ε> (0:ℝ), ∀ i,Locations C p ε (ℓ i) (Points.move R (z i)):=by |
| 91 | have hp (i)(k:Fin (n i))(j:Axis):∀ᶠ ε in 𝓝 (0:ℝ), |Points.move R (z i) k j - C.S.gridPoint p (ℓ i k) j| < s/2-ε :=by |
| 92 | set w:= |Points.move R (z i) k j - C.S.gridPoint p (ℓ i k) j| |
| 93 | have hw:=hR i k j; change w<s/2-0 at hw; exact (filter_mono_lt hw) |
| 94 | exact ((show ∀ᶠ ε:ℝ in 𝓝[>] (0:ℝ),0<ε from self_mem_nhdsWithin).and ((eventually_all.mpr fun i=>eventually_all.mpr fun k=>eventually_all.mpr fun j=>hp i k j).filter_mono nhdsWithin_le_nhds)).exists |
| 95 | obtain ⟨δ',hδ',hQ⟩:= hA |
| 96 | let xg(i) := Points.move R (Points.cons 0 (z i)) |
| 97 | let yg(i):=Fin.cons (α:=fun _=>Cover) 0 (ℓ i) |
| 98 | have he₀(i):xg i = Points.cons 0 (Points.move R (z i)):= (carries ..).trans (congr_arg (Points.cons · _) (R.motion.map_zero)) |
| 99 | have he (i)(j:Fin (n i+1))(a:Axis):|xg i j a-C.S.gridPoint p (yg i j) a|<s/2:= (by |
| 100 | rw [he₀] |
| 101 | exact Fin.cases (by simpa [Points.cons,yg,Schedule.gridPoint] using (half_pos ht')) (fun j=>(hQ i j a).trans (by dsimp [s]; linarith only [hδ'])) j) |
| 102 | have hInd(i):Injective (yg i):=by |
| 103 | intro j k hy; by_contra h₀ |
| 104 | obtain ⟨a,ha⟩:=above_coord s (xg i k-xg i j) ((show 4*s <δ from hh').trans (by |
| 105 | change δ < ‖R.motion _-R.motion _‖; rw [← map_sub,R.motion.norm_map]; exact hp' z hz i k j (Ne.symm h₀))) |
| 106 | change s < |xg i k a-xg i j a| at ha; have h₁:=he i j a; rw [hy] at h₁; exact ha.not_gt ((abs_sub_lt_iff).mpr (by rcases abs_sub_lt_iff.mp h₁ with ⟨h1,h2⟩; rcases abs_sub_lt_iff.mp (he i k a) with ⟨h3,h4⟩; constructor <;> linarith only [h1,h2,h3,h4])) |
| 107 | let f(x) := repack (n:=n) R x |
| 108 | have hw(i k a):∀ᶠ x in 𝓝 z, |f x i k a - C.S.gridPoint p (ℓ i k) a| < s/2-δ' :=((show Continuous (fun x=>f x i k a) from by unfold f repack; have := continuous_move_val (n:=n) R i |>.comp (continuous_apply (A:=fun i=> Points (n i)) i); exact ((show Continuous (fun x:Points (n i)=>x k a) from by fun_prop).comp this)) |>.sub continuous_const |>.abs |>.tendsto z).eventually (gt_mem_nhds (hQ ..)) |
| 109 | obtain ⟨c,hc',H⟩:=Metric.mem_nhds_iff.mp (show ∀ᶠ x' in 𝓝 z, ∀i k a, |f x' i k a - C.S.gridPoint p (ℓ i k) a| < s/2 - δ' from eventually_all.mpr fun i=>eventually_all.mpr fun k=> eventually_all.mpr fun a=>hw i k a) |
| 110 | let A:=K ∩ closedBall z (c/2) |
| 111 | let K' : Set ((i:ι)→Points (n i)):= f '' A |
| 112 | have hL: IsCompact A:=hK.of_isClosed_subset (hK.isClosed.inter Metric.isClosed_closedBall) Set.inter_subset_left |
| 113 | have hL':IsCompact K':=hL.image (continuous_repack ..) |
| 114 | have he(z')(hz:z'∈A):∀i,Locations C p δ' (ℓ i) (f z' i):= H (closedBall_subset_ball (half_lt_self hc') hz.2) |
| 115 | have hh' : ∀ z∈K',∀i, Points.cons 0 (z i)∈conf (n i+1):=by |
| 116 | rintro z' ⟨y,hy,rfl⟩ i |
| 117 | rw [show Points.cons 0 (f y i)=Points.move R (Points.cons 0 (y i)) from ((carries R ..).trans (congr_arg (Points.cons · _) R.motion.map_zero)).symm] |
| 118 | exact Points.move_in R (hsafe _ hy.1 i) |
| 119 | let q' (i) := lit (X:=X) R∘q i |
| 120 | have hq' : ∀ z∈K',∀i, Locations C p δ' (ℓ i) (z i):=by rintro i ⟨y,hy,eq⟩; rw [← eq]; exact he y hy |
| 121 | refine ⟨closedBall z (c/2), closedBall_mem_nhds _ (half_pos hc'), ?_⟩ |
| 122 | apply supportT (u:=ε) hO q V B o ε A hL (fun z hz i=>hsafe _ hz.1 i) R |
| 123 | rcases o with _|D |
| 124 | · refine Eq.mp (show predicate K' q' (X.label R V) (X.label R B) _ _ = predicate K' q' (X.label R V) (X.label R B) (fun x y=>True) (power (X.label R V) (X.label R B) none ε) from congr_arg (predicate K' q' (X.label R V) (X.label R B) (fun x y=>True)) (show _=_ from ?_)) (unconditionedNear hG K' hL' hh' hT hh q' (X.label R V) (X.label R B) hc hp hq hC hm ℓ hInd hq' hδ' ε hε) |
| 125 | unfold power; ring |
| 126 | refine Eq.mp ?_ (signedNear hG K' hL' hh' hT hh q' (X.label R V) (X.label R B) hc hp hq hC hm ℓ hInd hq' hδ' D) |
| 127 | change predicate _ _ _ _ _ _ = predicate K' q' (X.label R V) (X.label R B) (silent q' S D) _ |
| 128 | apply congr_arg (predicate K' q' (X.label R V) (X.label R B) (silent q' S D)); unfold power; simp only [Rotation.label]; ring |
| 129 | where |
| 130 | filter_mono_lt {w r : ℝ}(hw:w<r-0):∀ᶠ δ in 𝓝 (0:ℝ), w<r-δ:=by |
| 131 | filter_upwards [gt_mem_nhds (show 0<r-w from by linarith)] with δ h |
| 132 | linarith only [h] |
| 133 | |
| 134 | private lemma enclose (hε:0<ε) : predicate K q V B (ok q o S) (power V B o ε):=by |
| 135 | classical |
| 136 | let P:=ok q o S; let p:=power V B o ε |
| 137 | have he:= pocket hO q V B o ε K hK hsafe hT hh hm hc hp hq hC hG hε |
| 138 | choose U hU hg using he |
| 139 | obtain ⟨t,ht⟩:= hK.elim_nhds_subcover' _ hU |
| 140 | let W (x:t):=U x.val x.val.property |
| 141 | have hpr(i:t):∃r:ℝ,0<r∧ ∀z∈K ∩ W i,∀c:ι→ℂ,(∑ i:ι,‖c i‖)≤1→P z c→∀y:E4,0<‖y‖→‖y‖ < r → ‖combo q V B c z y‖≤‖y‖^p:=by let x:=i.val; change ∃ r:ℝ,_; exact hg (x:K) x.property -- maybe casts |
| 142 | choose b hb hbound using hpr |
| 143 | obtain ⟨r,hr,hb'⟩:=(show ∀ᶠ v:ℝ in 𝓝[>] (0:ℝ),0<v ∧∀i,v<b i from (show ∀ᶠv:ℝ in 𝓝[>] (0:ℝ),0<v from self_mem_nhdsWithin).and ((eventually_all.mpr fun i=>gt_mem_nhds (hb i)).filter_mono nhdsWithin_le_nhds)).exists |
| 144 | refine ⟨r,hr,fun z hz c hc Hp y hy hy' =>?_⟩ |
| 145 | obtain ⟨x,s,hm⟩:= Set.mem_iUnion₂.mp (ht hz) |
| 146 | let i:t:=⟨x,s⟩ |
| 147 | exact hbound i z (Set.mem_inter hz hm) c hc Hp y hy (lt_trans hy' (hb' i)) |
| 148 | |
| 149 | /-! Anchor-first pair estimates on the same unselected Table. -/ |
| 150 | lemma pairSigned (D:ℕ):predicate K q V B (silent q S D) (-(B.1:ℝ)-V.1+D+1/64):=Eq.mp (show predicate K q V B (ok q (some D) S) (power V B (some D) 1) = _ from congr_arg (predicate K q V B (silent q S D)) (by unfold power; ring)) (enclose hO q V B (some D) 1 K hK hsafe hT hh hm hc hp hq hC hG one_pos) |
| 151 | lemma pairOrdinary (hε:0<ε):predicate K q V B (fun _ _=>True) (-(B.1:ℝ)-V.1-ε):=Eq.mp (show predicate K q V B (ok q none S) (power V B none ε)=predicate K q V B (fun _ _=>True) ((-(B.1:ℝ))-V.1-ε) from congr_arg (predicate K q V B ((ok q none S))) (by unfold power; ring)) (enclose hO q V B none ε K hK hsafe hT hh hm hc hp hq hC hG hε) |
| 152 | |
| 153 | end YM.MultipleContact.Local |