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.Estimates |
| 2 | import YM.Work.A15 |
| 3 | |
| 4 | /-! Discrete seam avoidance by the actual orthogonal covariance, not presumed for cutoff data. -/ |
| 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 Matrix |
| 10 | open Matching |
| 11 | open scoped Topology Matrix Matrix.Norms.Frobenius BigOperators Classical |
| 12 | open YM.Next.UVStress |
| 13 | attribute [local instance] YM.Work.A15.compact_ortho |
| 14 | set_option linter.unusedSimpArgs false |
| 15 | private def swing (j k:Axis)(t:ℝ):M4:=fun a b=>if b=j then (if a=j then Real.cos t else if a=k then Real.sin t else 0) else if b=k then (if a=k then Real.cos t else if a=j then -Real.sin t else 0) else if a=b then 1 else 0 |
| 16 | variable {j k N:Axis} (h:j≠k) |
| 17 | include h |
| 18 | private lemma first (b:Axis)(t:ℝ) : swing j k t b j=(if b=j then Real.cos t else 0)+(if b=k then Real.sin t else 0):=by |
| 19 | unfold swing; by_cases he:b=j <;> simp [he,h] |
| 20 | |
| 21 | private lemma second (b:Axis)(t:ℝ) : swing j k t b k=(if b=k then Real.cos t else 0)+(if b=j then -Real.sin t else 0):=by |
| 22 | unfold swing; by_cases he:b=k <;> simp [he,Ne.symm h] |
| 23 | private lemma twirls (t:ℝ):star (swing j k t)*swing j k t=1 :=by |
| 24 | ext i n; simp only [mul_apply,star_eq_conjTranspose,conjTranspose_apply,star_trivial,one_apply] |
| 25 | have h':k≠j:= Ne.symm h |
| 26 | by_cases h1:i=j |
| 27 | · subst i |
| 28 | simp only [first h,add_mul,Finset.sum_add_distrib,ite_mul,zero_mul,Finset.sum_ite_eq',Finset.mem_univ, ↓reduceIte] |
| 29 | simp only [swing] |
| 30 | split_ifs <;> (try subst n) <;> try (linarith only [Real.cos_sq_add_sin_sq t]) |
| 31 | all_goals contradiction |
| 32 | by_cases h2:i=k |
| 33 | · subst i; simp only [second h,add_mul,Finset.sum_add_distrib,ite_mul, zero_mul, Finset.sum_ite_eq',Finset.mem_univ, ↓reduceIte] |
| 34 | simp only [swing] |
| 35 | split_ifs <;> (try subst n) <;> try (linarith only [Real.cos_sq_add_sin_sq t]) |
| 36 | all_goals contradiction |
| 37 | simp only [swing,h1,h2, ↓reduceIte, ite_mul,zero_mul, Finset.sum_ite_eq',Finset.mem_univ, one_mul] |
| 38 | split_ifs <;> aesop |
| 39 | variable (x:E4)(a:ℝ) |
| 40 | include h |
| 41 | lemma noSphere (ha:a≠0): Dense ({R:Ortho| a≠Ortho.move R x j}) :=by |
| 42 | rw [dense_iff_inter_open] |
| 43 | rintro U hU ⟨R,hR⟩ |
| 44 | let f(t:ℝ):Ortho:=⟨swing j k t,Matrix.mem_unitaryGroup_iff'.2 (twirls h t)⟩ |
| 45 | have hf:f 0=1:=by |
| 46 | apply Subtype.ext |
| 47 | change swing j k 0=(1:M4) |
| 48 | ext i l; unfold swing; rw [one_apply,Real.cos_zero,Real.sin_zero]; split_ifs <;> subst_vars <;> first| contradiction|rfl|simp |
| 49 | have ht: Continuous f:=Continuous.subtype_mk (continuous_pi fun i=> continuous_pi fun l=>(by |
| 50 | change Continuous (fun t=>if l=j then (if i=j then Real.cos t else if i=k then Real.sin t else 0) else if l=k then (if i=k then Real.cos t else if i=j then -Real.sin t else 0) else if i=l then 1 else 0); split_ifs <;> fun_prop)) _ |
| 51 | obtain ⟨δ,hδ,hg⟩:=Metric.mem_nhds_iff.mp (show ∀ᶠ t in 𝓝 (0:ℝ), f t * R∈U from (ht.mul continuous_const).continuousAt.eventually (hU.mem_nhds (by simpa only [Pi.mul_apply,hf,one_mul] using hR))) |
| 52 | let t:=min (δ/2) 1; have ht0:0<t:= lt_min (half_pos hδ) zero_lt_one |
| 53 | have htδ:t < δ:=(min_le_left ..).trans_lt (half_lt_self hδ) |
| 54 | have hu(t) : Ortho.move (f t) (Ortho.move R x) j=Real.cos t*(Ortho.move R x j)-Real.sin t* (Ortho.move R x k) :=by |
| 55 | let y:=Ortho.move R x |
| 56 | have h':k≠j:=Ne.symm h |
| 57 | unfold Ortho.move; rw [M4.at_coord] |
| 58 | change ∑ i, swing j k t j i*_ = _ |
| 59 | have hv(i): swing j k t j i = (if i=j then Real.cos t else 0) + if i=k then -Real.sin t else 0 := by |
| 60 | unfold swing; by_cases he:i=j |
| 61 | · simp [he,h] |
| 62 | simp only [he,Ne.symm he,h',h,if_true,if_false,zero_add] |
| 63 | simp only [hv, add_mul, Finset.sum_add_distrib, ite_mul,zero_mul,Finset.sum_ite_eq',Finset.mem_univ,if_true, neg_mul] |
| 64 | rfl |
| 65 | classical |
| 66 | by_contra hC |
| 67 | rw [Set.not_nonempty_iff_eq_empty] at hC |
| 68 | have hh(t:ℝ)(ht:|t|<δ): a=Ortho.move (f t*R) x j:=not_ne_iff.mp (fun hh=> Set.Nonempty.ne_empty (s:=U ∩ {R:Ortho|a ≠ Ortho.move R x j}) ⟨_,hg (Metric.mem_ball.mpr (by rwa [dist_zero_right,Real.norm_eq_abs])),hh⟩ hC) -- fix h' |
| 69 | have h0:=hh 0 (by rw [abs_zero];exact hδ) |
| 70 | rw [hf,one_mul] at h0 |
| 71 | have hq:Real.cos t≠1:=fun h=> (Real.cos_eq_one_iff_of_lt_of_lt (by linarith [Real.pi_pos]) (by linarith [Real.pi_gt_three,min_le_right (δ/2) (1:ℝ)])).1 h |>.symm.not_lt ht0 |
| 72 | have h'₁:=hh t (by rw [abs_of_pos ht0];exact htδ); have h'₂:=hh (-t) (by rw [abs_neg, abs_of_pos ht0];exact htδ) |
| 73 | rw [Ortho.move_mul,hu] at h'₁ h'₂; rw [Real.cos_neg,Real.sin_neg] at h'₂ |
| 74 | apply ha; rw [h0] |
| 75 | exact eq_zero_of_ne_zero_of_mul_left_eq_zero (sub_ne_zero.mpr hq) (by nlinarith only [h0,h'₁,h'₂]) |
| 76 | -- now all cells (only need one p, all exterior coords per pack). |
| 77 | omit h |
| 78 | variable {ι:Type*}[Finite ι]{n:ι→ℕ} |
| 79 | open scoped NNReal |
| 80 | lemma safe_rotation {G:Gauge}(x:∀i,Points (n i))(C:Family G)(p:ℕ):∃ (R:Ortho) (ℓ:∀i,Fin (n i)→ Cover),∀ i,Locations C p 0 (ℓ i) (Points.move R (x i)):=by |
| 81 | let v:=C.S.a p |
| 82 | letI:= Fintype.ofFinite ι |
| 83 | have hv:= C.S.a_pos p |
| 84 | have ht : v≠0:=hv.ne' |
| 85 | let f(i:ι) (j:Fin (n i)) (k:Axis) (m:ℤ):Set Ortho:={R:Ortho|v*(m+1/2:ℝ)≠ (Ortho.move R (x i j) k)} |
| 86 | have hMove (v:E4)(k:Axis):Continuous (fun R:Ortho=> Ortho.move R v k):=by |
| 87 | unfold Ortho.move; simp_rw [M4.at_coord]; apply continuous_finsetSum _ (fun j _=>(by |
| 88 | apply Continuous.mul _ continuous_const |
| 89 | let a:Ortho→Axis→Axis→ℝ:=Subtype.val |
| 90 | have ha:Continuous a:= continuous_subtype_val (p:=(·∈Matrix.unitaryGroup Axis ℝ)) |
| 91 | exact (continuous_apply (A:=fun _:Axis=>ℝ) j).comp ((continuous_apply k).comp ha))) |
| 92 | have ho(i j k m):IsOpen (f i j k m):=isOpen_ne_fun continuous_const (hMove ..) |
| 93 | have h'(k m) : Dense (⋂ i,⋂ (j:Fin (n i)), f i j k m):=by |
| 94 | refine dense_iInter_of_isOpen (fun i=>isOpen_iInter_of_finite fun j=>ho i j k m) (fun i=> dense_iInter_of_isOpen (fun j=>ho i j k m) fun j=>?_) |
| 95 | obtain ⟨l,hL⟩:=exists_ne k |
| 96 | apply noSphere (Ne.symm hL) (x i j) _ (mul_ne_zero ht ?_) |
| 97 | have hμ:m ≤ 0 ∨ 0 < m:= le_or_gt _ _ |
| 98 | by_cases hm:m=0; simp [hm] |
| 99 | rcases hμ with h₁|h₂ |
| 100 | · have h₁:(m:ℝ)≤ -1:=by exact_mod_cast (show m≤ -1 by omega) |
| 101 | linarith |
| 102 | exact ne_of_gt (by have he:(0:ℝ) < m:=(by exact_mod_cast h₂); positivity) |
| 103 | obtain ⟨R,hR⟩ :=(dense_iInter_of_isOpen (ι:=Axis×ℤ) (f:=fun k=> ⋂ i, ⋂ j:Fin (n i), f i j k.1 k.2) (fun b=>isOpen_iInter_of_finite fun i=>isOpen_iInter_of_finite fun j=>ho i j b.1 b.2) (fun b=>h' b.1 b.2)).nonempty -- cannot show open over m; reorder |
| 104 | have hA {w:ℝ}(hw:∀m:ℤ, v*(m+1/2)≠w) : ∃a:ℤ,|w-v*a|<v/2:=by |
| 105 | let q:=w/v+1/2; let a:=⌊q⌋; refine ⟨a, abs_lt.mpr (?_)⟩ |
| 106 | have hf := Int.floor_le q |
| 107 | have hf':=Int.lt_floor_add_one q |
| 108 | have he:q*v=w+1/2*v:=by dsimp [q];rw [add_mul,div_mul_cancel₀ _ ht] |
| 109 | have hTop := mul_le_mul_of_nonneg_right hf hv.le |
| 110 | have hBottom:=mul_lt_mul_of_pos_right hf' hv |
| 111 | have hh:=hw (a-1) |
| 112 | constructor; swap |
| 113 | · change w-v*a < v/2; change q*v < (a+1:ℝ)*v at hBottom; nlinarith only [hBottom,he] |
| 114 | change -(v/2) < w-v*a |
| 115 | push_cast at hh; change (a:ℝ)*v ≤ q*v at hTop; apply lt_of_le_of_ne (by nlinarith only [hTop,he]) (fun heq=>hh (by nlinarith only [heq])) |
| 116 | choose a ha using fun i j k=> hA (w:=Ortho.move R (x i j) k) fun m=> mem_iInter.mp (mem_iInter.mp ((mem_iInter.mp hR) (k,m)) i) j |
| 117 | exact ⟨R,fun i j k=>a i j k,fun i j k=> by exact lt_of_lt_of_le (ha i j k) (sub_zero _|>.symm.le)⟩ |
| 118 | end YM.MultipleContact.Local |