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.TraceExtension.Perfect.GaugeFoot |
| 2 | |
| 3 | /-! |
| 4 | # Room for all curvature coordinates at marginal gain |
| 5 | -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.Trace.Perfect |
| 9 | open Function Matrix Lattice Precision Laurent Stationary Bloch Next.Free Exterior Finset |
| 10 | open scoped BigOperators Topology ContDiff |
| 11 | variable {f c:Side} |
| 12 | abbrev roof (x:Site c) {α:Type}(i:Co c α):= separation x i.1 |
| 13 | private lemma close_walk (v : Cover)(o : Site f): separation o (wrap f v+o)≤size v:=by rw [separation_comm,separation, add_sub_cancel_right]; exact within_size .. |
| 14 | |
| 15 | lemma ambient_size (x : Site f): size (lift x)≤ 4*pdist x:= by unfold Laurent.size; calc |
| 16 | _ ≤ ∑ _i:Axis,pdist x:= sum_le_sum fun i _=> component_le x i |
| 17 | _=_:=by simp [Axis] |
| 18 | lemma component_cost (o x: Site f)(i): |(lift (x-o) i:ℝ)|≤separation x o:=by exact_mod_cast (by have := component_le (x-o) i; rw [abs_le]; omega : |lift (x-o) i| ≤ (pdist (x-o):ℤ)) |
| 19 | |
| 20 | def bloom (g:Ratio c f)(W:Cross g.count (TypeFace 1) (TypeFace 1))(x:Site f)(i:Body 1 f): Body 1 c→ℝ:= lin (cab g W x i.2) (lift (i.1-x)) |
| 21 | def hingeQ (g:Ratio c f)(W:Cross g.count (TypeFace 1) (TypeFace 1))(x:Site f)(i:Body 1 f): Body 1 c→ℝ:= quad (cab g W x i.2) (lift (i.1-x)) |
| 22 | |
| 23 | theorem peg (α η E T:ℝ)(t:ℕ)(ha:0 ≤ α)(hp:α<η)(he:0 ≤ E)(hT:0≤T): |
| 24 | ∃ C :ℝ,0 ≤ C ∧ ∀ (c f:Side)(g:Ratio c f)(W:Cross g.count (TypeFace 1) (TypeFace 1)), Odd g.count.val→ |
| 25 | (∀ l:List Axis,l.length ≤ 3→ (advanceC _ W l).strip η (E/(g.count.val:ℝ)^(1+l.length)))→ |
| 26 | 8*(g.count.val+1)+4 ≤ f.val → ∀ (v:Site c)(x:Site f), (separation (g.embed v) x:ℝ) ≤ T*g.count.val → |
| 27 | Settle (roof v) (fun j:Body 1 f => separation j.1 x) (fleece (installed g W) (g.count.val+1) x) (bloom g W x) (hingeQ g W x) α t g.count.val C :=by |
| 28 | obtain ⟨D,hD,hd⟩:= shelter_paid (t:=t) ha hp |
| 29 | let F:= (D* Real.exp (η*(4+T)))* (Real.exp η*(Fintype.card (TypeFace 1)*E)); let C:=100*F; have hF:0 ≤ F:=by unfold F; positivity |
| 30 | refine ⟨C,by unfold C; positivity,fun c f g W ho hw hn v x hx=>?_⟩ |
| 31 | rw [mul_comm T] at hx |
| 32 | let L:ℝ:= g.count.val; let b:= g.count.val+1; let Q:=cab g W x; let A:= installed g W; let R (q:Body 1 c):=roof v q; have hη := lt_of_le_of_lt ha hp; have hL : 0<L:= side_pos _ |
| 33 | have hf(l:List Axis)(ht:l.length ≤ 3):=(hw l ht) |
| 34 | have hm(l:List Axis)(ht:l.length ≤ 3): Whole (advanceC _ W l):= ⟨_,_,hη,hf l ht⟩ |
| 35 | have hP(l:List Axis)(h:l.length≤ 3)(z:Site f)(r:ℝ)(hi:(separation x z:ℝ)≤L*(4+r))(i:TypeFace 1): sh R α t r (installed g (advanceC _ W l) (z,i))≤F/L^(1+l.length):=by |
| 36 | refine (odometer g v x T 4 r z hi hx (by norm_num) hT (hf l h) ha hp hD hd _).trans_eq ?_; unfold F L; ring |
| 37 | have hX(z:Site f)(r:ℝ)(h:(separation x z:ℝ) ≤ L*(4+r))(i:TypeFace 1): sh R α t r (A (z,i)) ≤ F/L:=by |
| 38 | simpa only [A,advanceC,List.length_nil,add_zero,pow_one] using hP [] (by simp) z r h i |
| 39 | have hu (i a w s): move (move (move (Q s) i) a) w=cab g (advanceC _ W [w,a,i]) x s:=by |
| 40 | unfold Q; erw [cab_move _ _ _ _ _ ho (hm [] (by simp)), cab_move _ _ _ _ _ ho (hm [i] (by simp)), cab_move _ _ _ _ _ ho (hm [a,i] (by simp))]; rfl |
| 41 | have h' (i a s): move (move (Q s) i) a=cab g (advanceC _ W [a,i]) x s:=by |
| 42 | unfold Q; erw [cab_move _ _ _ _ _ ho (hm [] (by simp)),cab_move _ _ _ _ _ ho (hm [i] (by simp))]; rfl |
| 43 | have he' (s : TypeFace 1)(z: Cover)(i:Axis)(hz:(size z:ℝ) ≤ 4*L): sh R α t 0 (move (Q s) i z) ≤ F/L^2:=by |
| 44 | unfold Q; erw [cab_move _ _ _ _ _ ho (hm [] (by simp))]; apply hP [i] (by simp) (wrap f z+x) 0 ?_ s |
| 45 | rw [add_zero,mul_comm]; exact (Nat.cast_le.mpr (close_walk z x)).trans hz |
| 46 | have hf0(u:Site f)(i)(h:(separation u x:ℝ)≤L): fleece A b x (u,i)=Q i (lift (u-x))-Q i 0:=by |
| 47 | obtain ⟨j,hj⟩:= axisEquiv.surjective i; subst i; change fleece A b x (u,coord j)=_; rw [fleece_card _ _ _ _ _ (show separation u x < b from Nat.lt_succ_of_le (Nat.cast_le (α:=ℝ)|>.mp h)), beam_alive x u b hn (show separation u x < b from Nat.lt_succ_of_le (Nat.cast_le (α:=ℝ)|>.mp h))] |
| 48 | simp [Q,b,cab,A] |
| 49 | refine ⟨fun i=>?_,fun i=>?_,fun i=>?_,fun i hi=>?_⟩ |
| 50 | · rcases i with ⟨k,u⟩ |
| 51 | let r:=separation k x; let z := lift (k-x) |
| 52 | change sh R α t ((r:ℝ)/L) (fleece A b x (k,u)) ≤ C*_ ; by_cases h : (r:ℝ) ≤ L |
| 53 | · rw [hf0 _ _ h]; apply (sh_anti R α t 0 _ _ ha (by positivity : 0 ≤ (r:ℝ)/L)).trans |
| 54 | have ht:(size z:ℝ) ≤ 4*r:=by exact_mod_cast ambient_size (k-x) |
| 55 | have hv:=walk_tiny (Q u) (F/L^2) (fun y hy a=> he' _ _ _ ((Nat.cast_le.mpr hy).trans (ht.trans (by gcongr)))) z le_rfl |
| 56 | have hR:(r:ℝ)/L≤ min 1 ((1+r)/L):= le_min ((div_le_one hL).mpr h) (div_le_div_of_nonneg_right (by linarith only) hL.le) |
| 57 | calc |
| 58 | _ ≤ 4*r*(F/L^2) := hv.trans (mul_le_mul_of_nonneg_right ht (by positivity)) |
| 59 | _ = 4*F*(L⁻¹*((r:ℝ)/L)) := by ring |
| 60 | _ ≤ C*(L⁻¹*min 1 ((1+r)/L)):= by unfold C; gcongr; linarith only [hF] |
| 61 | _ = _:=rfl |
| 62 | have hh: L < (r:ℝ):= lt_of_not_ge h |
| 63 | rw [show rush L r=L⁻¹ from by unfold rush; rw [min_eq_left ((one_le_div hL).mpr (by linarith)),mul_one]] |
| 64 | obtain ⟨i,hi⟩:=axisEquiv.surjective u; subst u; change sh R α t _ (fleece A _ _ (k,coord i)) ≤ _*L⁻¹ |
| 65 | rw [scalar_lift,sub_eq_add_neg]; apply (sh_add ..).trans |
| 66 | rw [sh_neg]; let U:= R |
| 67 | have ht : (r:ℝ)≤L*(4+(r:ℝ)/L):= by field_simp; nlinarith only[hL] |
| 68 | have hw:= hX k ((r:ℝ)/L) (by rw [separation_comm]; exact ht) (coord i) |
| 69 | refine (add_le_add hw ((sh_sum ..).trans (Finset.sum_le_sum (s:=Finset.univ) (g:=fun _=>2*(F/L)) (fun j _=>?_)))).trans ?_ |
| 70 | · rw [sh_scale]; refine mul_le_mul (wrap_pad _ _ _ _ _ hn) (hX x ((r:ℝ)/L) ?_ _) (sh_nn ..) (by norm_num) |
| 71 | rw [separation_self, Nat.cast_zero]; positivity |
| 72 | unfold C; simp only [Finset.sum_const,Finset.card_univ,nsmul_eq_mul,Fintype.card_fin,Axis]; field_simp; norm_num; nlinarith only [hF] |
| 73 | · let r:= separation i.1 x; let a:= Q i.2; let z:= lift (i.1-x); unfold bloom lin; apply (sh_sum ..).trans |
| 74 | refine (sum_le_sum (s:=univ) (g:=fun _=> (r:ℝ)*(F/L^2)) (fun j _=>?_)).trans ?_ |
| 75 | · rw [sh_scale]; exact mul_le_mul (component_cost x i.1 j) (he' i.2 0 j (by simp [Laurent.size]; positivity)) (sh_nn ..) (Nat.cast_nonneg _) |
| 76 | simp only [Finset.sum_const,nsmul_eq_mul,Finset.card_univ,Fintype.card_fin,Axis]; unfold C; push_cast |
| 77 | change 4*((r:ℝ)*(F/L^2)) ≤ 100*F*((1+(r:ℝ))/L^2) |
| 78 | field_simp; nlinarith only [hF,mul_nonneg hF (Nat.cast_nonneg (α:=ℝ) r)] |
| 79 | · let r:= separation i.1 x; let a:= Q i.2; let z:=lift (i.1-x); let D':ℝ:=1+r; have h0 : 0<D':=by unfold D'; positivity |
| 80 | change sh R α t 0 (quad a z) ≤ _ ; unfold quad; apply (sh_sum ..).trans |
| 81 | apply le_trans (sum_le_sum (g:=fun _=>∑ _y:Axis,(1+(r:ℝ))^2*(F/L^3)) (s:=univ) (fun j _=>?_)) |
| 82 | · unfold C; change _≤100*F*((1+(r:ℝ))^2/L^3); simp [Axis]; field_simp; nlinarith only [hF] |
| 83 | apply (sh_sum ..).trans; apply sum_le_sum; intro k _; rw [sh_scale]; have hr : sh R α t 0 (move (move a j) k 0) ≤ F/L^3 := by |
| 84 | unfold a; rw [h']; apply hP [k,j] (by simp) ((wrap f 0)+x) 0 ?_ i.2; rw [map_zero,zero_add,separation_self,Nat.cast_zero]; positivity |
| 85 | have hy(a): |(z a:ℝ)| ≤ r:= component_cost x i.1 a |
| 86 | have hv : |(if j=k then (z j:ℝ) else 0)|≤r := by split_ifs; exact hy j; simp |
| 87 | have hg : |quadT j k z| ≤ (1+(r:ℝ))^2:=by |
| 88 | unfold quadT; rw [abs_div, abs_of_pos (by norm_num : (0:ℝ)<2),div_le_iff₀ (by norm_num : (0:ℝ)<2)] |
| 89 | apply (abs_sub .. |>.trans ?_); rw [abs_mul]; nlinarith only [mul_le_mul (hy j) (hy k) (abs_nonneg _) (Nat.cast_nonneg (α:=ℝ) _),hv,Nat.cast_nonneg (α:=ℝ) r, sq_nonneg (r:ℝ)] |
| 90 | exact mul_le_mul hg hr (sh_nn ..) (sq_nonneg _) |
| 91 | rcases i with ⟨z,i⟩; rw [hf0 z _ hi] |
| 92 | let r:= separation z x; let y:=lift (z-x); have ht : (size y:ℝ) ≤ 4*r:=by exact_mod_cast ambient_size (z-x) |
| 93 | change sh R α t 0 (Q i y-Q i 0- lin (Q i) y-quad (Q i) y) ≤ _ |
| 94 | apply (second_tiny (Q i) (R:=size y) (F/L^4) ?_ (by positivity) y le_rfl).trans |
| 95 | · refine (mul_le_mul_of_nonneg_right (pow_le_pow_left₀ (Nat.cast_nonneg _) ht 3) (by positivity : 0 ≤ F/L^4)).trans ?_; unfold C |
| 96 | change _≤ 100*F*((1+(r:ℝ))^3/L^4); field_simp |
| 97 | have hf : (r:ℝ)^3 ≤ (1+(r:ℝ))^3:= by gcongr; linarith only |
| 98 | nlinarith only [mul_le_mul_of_nonneg_left hf hF,mul_nonneg hF (show 0 ≤ (r:ℝ)^3 by positivity)] |
| 99 | intro w hh j k q; rw [hu]; apply hP [q,k,j] (by simp) (wrap f w+x) 0 ?_ i |
| 100 | rw [add_zero,mul_comm]; refine ((Nat.cast_le.mpr (close_walk w x)).trans (Nat.cast_le.mpr hh)).trans (ht.trans ?_); gcongr |
| 101 | end YM.Trace.Perfect |