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.Broad |
| 2 | import YM.MergeProof.West.News |
| 3 | |
| 4 | /-! Separation with offsets lying away from every face of the centered tiling. Unlike `Ribbons.acorns` the exterior alignment need not be coarser than the tiling. -/ |
| 5 | set_option autoImplicit false |
| 6 | set_option quotPrecheck false |
| 7 | noncomputable section |
| 8 | namespace YM.MultipleContact.Local |
| 9 | open YM.MergeProof YM.MergeProof.Ribbons |
| 10 | open Function Filter Lattice RG Pressure Wilson Finset MeasureTheory |
| 11 | open Push Marker Source Accent Ribbon Local Menu Extra.Histories Motion Merge PhysicalNext.Repeat Lotus |
| 12 | open Extra.Multi GridApprox.Nil Next.Rank |
| 13 | open Extra.Trajectories MergeProof.Float Station Next.Rank.Spindle Cells |
| 14 | open scoped Topology BigOperators Classical |
| 15 | open Relay Exponential Extraction Bid PhysicalNext.Repeat.Legato.Bandage YM.Next.UVStress |
| 16 | open YM.Extraction.Around |
| 17 | variable {G:Gauge}(C:Family G){F:Extraction.Order}{d l D J K N m p:ℕ} |
| 18 | variable {n:ℕ}(q:Fin n → C.book.Token) |
| 19 | -- the first input is matched at origin here; the second one is also held in the same cell by the cutoff lemma. |
| 20 | def Locations (p:ℕ)(r:ℝ) (ℓ:Fin n→ Cover)(z:Points n) : Prop:=∀ (k:Fin n)(i:Axis), |z k i - C.S.gridPoint p (ℓ k) i| < C.S.a p/2-r -- replace |
| 21 | lemma d0 {p J:ℕ}: location C.S J J p (0:Cover)=0:=(Next.UVStress.location_origin ..) |
| 22 | private lemma seamRel (ℓ x:Cover)(K:ℕ) {r:ℝ} (hJ:J≤N){t:ℕ}(h:t ≤ N)(hR:∀ a:Axis, |C.S.gridPoint t x a - C.S.gridPoint J ℓ a| < C.S.a J/2-r) (hx:(K+2:ℝ)*C.S.a N ≤ r): |
| 23 | location C.S t N p x ∈ (center C.S p hJ 0).margin ((wrap (C.S.side J p)) ℓ) K:=by |
| 24 | let T:= center C.S p hJ 0; let size:= (C.S.toDepth h p).count.val |
| 25 | let ys :=(location C.S t N p x); let b:ℕ:=T.side.val/2; let v:=wrap (C.S.side J p) ℓ |
| 26 | have he₁:C.S.a N*T.side.val=C.S.a J:= C.S.embeds_scale (C.S.toDepth hJ p) |
| 27 | have he₂:C.S.a N*size=C.S.a t:= C.S.embeds_scale (C.S.toDepth h p) |
| 28 | have hf:C.S.a N*((T.side.val:ℝ)/2-r/C.S.a N)=C.S.a J/2-r:= by rw [mul_sub, ← mul_div_assoc,he₁,mul_div_cancel₀ _ (C.S.a_pos _).ne'] |
| 29 | let off i :ℤ:=((size:ℤ)*(x i))-((T.side.val:ℤ)*ℓ i) |
| 30 | have h₃(i): |(off i:ℝ)| < (T.side.val:ℝ)/2-r/C.S.a N := (mul_lt_mul_iff_right₀ (C.S.a_pos N)).1 (by -- use field_simp? replace |
| 31 | have hh:= hR i |
| 32 | have hx' := C.S.a_pos N |
| 33 | rw [hf,← abs_of_pos hx', ← abs_mul]; unfold off; push_cast only [Int.cast_sub,Int.cast_mul,Int.cast_natCast,Nat.cast_ofNat]; rw [mul_sub,← mul_assoc, ← mul_assoc,he₁,he₂]; exact hh) |
| 34 | have hK':r/C.S.a N ≥ (K+2:ℝ):= (le_div_iff₀ (C.S.a_pos N)).2 hx |
| 35 | have hw i:= lt_of_lt_of_le (h₃ i) (sub_le_sub_left hK' ((T.side.val:ℝ)/2)) |
| 36 | have hb':(T.side.val:ℝ)/2-1 ≤ b ∧ (b:ℝ)≤(T.side.val:ℝ)/2:= by constructor; refine sub_le_iff_le_add.mpr ((div_le_iff₀ zero_lt_two).mpr ?_); refine le_trans ?_ (le_of_lt (by linarith : (b:ℝ)*2+1<(b+1)*2)); exact_mod_cast (show T.side.val≤b*2+1 by unfold b; omega); apply le_div_iff₀ zero_lt_two |>.2; exact_mod_cast (show b*2≤T.side.val by unfold b; omega) |
| 37 | let u i :ℤ := off i+b |
| 38 | have hu(i): (K:ℤ) < u i ∧ u i + (K:ℤ) < (T.side.val:ℤ) :=by |
| 39 | obtain ⟨h₁,h₂⟩ := abs_lt.mp (hw i) |
| 40 | suffices h:(K:ℝ) < (u i) ∧ (u i:ℝ)+K < (T.side.val:ℝ) from by exact_mod_cast h |
| 41 | unfold u; push_cast; constructor <;> linarith only [hb'.1,hb'.2,h₁,h₂] |
| 42 | have he (i): T.coordinated v ys i = (u i).toNat:=by |
| 43 | let S:= C.S.side N p |
| 44 | have hA : T.units.root v =wrap _ (T.side.val • ℓ):=by change T.units.embed (wrap _ ℓ)=_; exact T.units.embed_wrap _ |
| 45 | have hB : ys =wrap _ (size • x):= by unfold ys Cells.location; rw [dif_pos h,(C.S.toDepth h p).embed_wrap] |
| 46 | unfold Tiling.coordinated; rw [← ZMod.val_natCast_of_lt (a:= (u i).toNat) (?_)] -- inspect names |
| 47 | · apply congr_arg ZMod.val |
| 48 | rw [← Int.cast_natCast,Int.toNat_of_nonneg (le_trans (by positivity) (hu i).1.le)] |
| 49 | unfold Tiling.starts; rw [Pi.add_apply,hA,hB] |
| 50 | change ((↑(size • x i:ℤ):Per S)-((0:Per S)-↑b+↑(T.side.val • ℓ i:ℤ))) = _ |
| 51 | unfold u off |
| 52 | simp only [Int.cast_add, Int.cast_mul, Int.cast_sub, Int.cast_natCast, nsmul_eq_mul]; ring |
| 53 | have hi:=hu i; have hi':(u i).toNat < T.side.val:=(by omega); exact Nat.lt_trans hi' T.narrow |
| 54 | constructor |
| 55 | · intro i; change T.coordinated v ys i < T.side.val; rw [he]; have hi:=hu i; omega |
| 56 | intro i; change _ ∧ T.coordinated v ys i + K + 1 ≤ T.side.val; rw [he]; have hi:=hu i; omega |
| 57 | -- holds uniformly for sequence of Watches (same tokens); period lateness inside each Watch. No field cutoff label assumed. |
| 58 | def Acorn (I:Watch C) (J:ℕ) (A:ℝ) : Prop:=∀ᶠ i : ℕ×ℕ in F.fuse, ∃ hN : J+1 ≤ i.1, ∀ f : Config G (C.side i.1 i.2) → ℂ, let T := center C.S i.2 ((Nat.le_succ J).trans hN) 0; Interior (T.chamber 0) f → ‖moment (C.beta i.1 i.2) (fun x => f x * I.plot i.1 i.2 x)‖ ≤ T.rootTest (C.beta i.1 i.2) f * A |
| 59 | lemma acornsS (hp:C.Makes)(h:CellHyp C F) (J:ℕ)(ℓ:Fin n→ Cover) (he: Function.Injective (Fin.cons (α:=fun _=>Cover) 0 ℓ)){r:ℝ}(hr:0<r): |
| 60 | ∃A:ℝ,0≤A∧∀ (x) (t:ℕ) (hw:Extraction.Order.grid C t (Fin.cons 0 x) ∈ generic _) (hR:∀ j a, |C.S.gridPoint t (x j) a - C.S.gridPoint J (ℓ j) a| < C.S.a J/2-r), Acorn C (F:=F) {n:=n,t:=t,q:=q,x:=x,wild:=hw} J A:=by |
| 61 | obtain ⟨j,⟨⟨A,hA,H⟩,hJ⟩,hj⟩ := (((YM.Next.UVStress.grows h q).and (eventually_ge_atTop (J+1))).and ((C.S.shrinks.const_mul (3:ℝ)).eventually (gt_mem_nhds (show (3*(0:ℝ))<r/2 by rw [mul_zero]; positivity)))).exists -- grows namespace |
| 62 | refine ⟨A^n,pow_nonneg hA _,fun x t hw hR=>?_⟩ |
| 63 | let z:=Fin.cons (α:=fun _=>Cover) 0 ℓ |
| 64 | have hD : ∀ᶠ i:ℕ×ℕ in F.fuse, Injective ((wrap (C.S.side J i.2)) ∘ z):=by |
| 65 | rw [Extraction.Order.fused,Extraction.Order.late]; exact (F.per.cofinal.eventually (sparse C.S J z he)).mono fun _ he=> Eventually.of_forall fun _=>he |
| 66 | have hQ:∀ᶠ v':ℕ×ℕ in F.fuse, (3*C.S.a j + 2*C.S.a v'.1:ℝ) ≤ r:= by |
| 67 | obtain ⟨j',hj'⟩:= eventually_atTop.mp ((C.S.shrinks.const_mul 2).eventually (gt_mem_nhds (show (2*(0:ℝ))< r/2 from by rw [mul_zero]; positivity))) |
| 68 | filter_upwards [large_mesh F j'] with i hi; change _ ≤ _; specialize hj' _ hi; change 3*C.S.a j < r/2 at hj; linarith |
| 69 | have hH : ∀ᶠ i in F.fuse,Around.imageBudget q A j i.1 i.2 := H -- check dq |
| 70 | filter_upwards [hD,hQ,hH,large_mesh F t] with i hi hQ hm hv |
| 71 | let N:=i.1; let p:=i.2; let I:Watch C:={t:=t,n:=n,x:=x,q:=q,wild:=hw} |
| 72 | have hn : j≤N:= hm.1; have h':J≤N:=(by omega); let T:=center C.S p h' 0; have ht':t≤ N:=hv |
| 73 | let g (s:Fin (I.n+1)) : T.Cell:=wrap (C.S.side J p) (z s); let d:=3*Cells.span C.S hn p |
| 74 | have hS (s:Fin n): I.among N p s ∈ T.margin (g s.succ) d := by |
| 75 | apply seamRel (C:=C) (r:=r) _ _ _ h' ht' (hR s); dsimp only [d]; push_cast; change (3* ((C.S.toDepth hn p).count.val:ℝ) + 2)* C.S.a N ≤ _ |
| 76 | rw [add_mul,mul_assoc,mul_comm (↑_) (C.S.a N),C.S.embeds_scale]; exact hQ |
| 77 | choose U hU hU' hX using fun s:Fin I.n=> Lease.alive (T:=T) hp s (I.among N p s) hm hn (inherits (by omega : J≤j) hn) (hS s) -- shadow error p' |
| 78 | refine ⟨hJ.trans hn,fun f hf=>?_⟩; let D : Fin (I.n+1) → Config G (C.side N p) → ℂ := Fin.cons f U |
| 79 | have hi' : ∀ (i : Fin (I.n+1)), Interior (T.chamber 0) (D i) := Fin.cases hf hU' |
| 80 | have hw (x) : (∏ i : Fin (I.n+1), T.copy (g i) (D i) x)= f x * I.plot N p x := by |
| 81 | have h0 : g 0=0 := by dsimp [g,z]; exact map_zero _ -- fix if simp solved |
| 82 | rw [Fin.prod_univ_succ,h0,T.copy_zero]; congr 1 |
| 83 | exact Finset.prod_congr rfl fun j _ => congr_fun (hU j) x |
| 84 | have hx:=T.planted (h.all _ _) g hi D hi' |
| 85 | simp_rw [hw] at hx; apply hx.trans; rw [Fin.prod_univ_succ]; refine mul_le_mul_of_nonneg_left ?_ (T.root_nonneg (C.beta N p) f) |
| 86 | refine (Finset.prod_le_prod (fun _ _=> T.root_nonneg _ _) (fun _ _=> hX _)).trans_eq (by simp only [Finset.prod_const,Finset.card_univ,Fintype.card_fin]; rfl) |
| 87 | end YM.MultipleContact.Local |