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.FullVolume.Discrete |
| 2 | import YM.Extra.WEAK_SCALING_ACTLAW.Analysis |
| 3 | |
| 4 | /-! Paths of unit steps inside coordinate boxes. Gives also Lipschitz |
| 5 | slope bounds INSIDE a ball around one grid endpoint. -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.FullVolume |
| 9 | open Function Set Filter Metric MeasureTheory Lattice RG Wilson Extraction Extraction.Lease Difference Gaps Cells |
| 10 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff |
| 11 | variable {n:ℕ} |
| 12 | |
| 13 | abbrev Dir (a:MotionIndex n): Points n:= Points.direction a.1 a.2 |
| 14 | lemma tagged (t:ℝ)(a:MotionIndex n)(x:Positions n): |
| 15 | tag t (x+drive a)=tag t x + t • Dir a := by |
| 16 | ext i j |
| 17 | change t*((↑((x+drive a) i j : ℤ)):ℝ)=tag t x i j+t * Dir a i j |
| 18 | dsimp only [Dir,tag]; by_cases h:i=a.1 <;> by_cases he:j=a.2 <;> |
| 19 | simp [drive,h,he,Points.direction,basis] <;> ring |
| 20 | lemma taggedN (t:ℝ)(a:MotionIndex n)(x:Positions n)(k:ℕ): |
| 21 | tag t (x+k • drive a)= tag t x + (k*t) • Dir a:=by |
| 22 | induction k with |
| 23 | | zero=> simp |
| 24 | | succ k ih=> rw [succ_nsmul,←add_assoc,tagged,ih]; push_cast; rw [add_mul,add_smul,one_mul]; abel |
| 25 | lemma paidDist (x:Positions n)(t:ℝ) (ht:0<t)(a:MotionIndex n)(k:ℕ): |
| 26 | dist (tag t (x+k • drive a)) (tag t x) = k*t:=by |
| 27 | have hv: x+k • drive a=advance x a.1 a.2 k:=by ext j:1; by_cases h:j=a.1 <;> simp [drive,h,advance] |
| 28 | exact (congrArg (fun y=>dist (tag t y) (tag t x)) hv).trans ((extent _ _ _ _ _ ht).trans (mul_comm ..)) |
| 29 | private def distance (x y : Positions n) := ∑ i:MotionIndex n, (y i.1 i.2-x i.1 i.2).natAbs |
| 30 | private theorem norm_tag {m : ℕ} (x y : Positions m) (t : ℝ) : |
| 31 | dist (tag t x) (tag t y) ^ 2 = ∑ i : Fin m × Axis, (t * (x i.1 i.2 - y i.1 i.2 : ℤ))^2 := by |
| 32 | rw [dist_eq_norm,← Points.flatten.norm_map,EuclideanSpace.real_norm_sq_eq]; simp only [map_sub,PiLp.sub_apply] |
| 33 | refine Finset.sum_congr rfl fun i _ => ?_; change (_ * _ - _ * _) ^ 2 = _ |
| 34 | simp only [Int.cast_sub,mul_sub] |
| 35 | |
| 36 | private lemma priced (t:ℝ)(ht:0<t)(x y:Positions n):t*distance x y ≤ (Fintype.card (MotionIndex n):ℝ)*dist (tag t y) (tag t x):=by |
| 37 | unfold distance; push_cast; rw [Finset.mul_sum]; refine le_trans (Finset.sum_le_sum (g:=fun _=> dist (tag t y) (tag t x)) (fun i _=>?_)) (by simp) |
| 38 | apply (sq_le_sq₀ (by positivity) dist_nonneg).mp |
| 39 | rw [norm_tag] |
| 40 | refine le_trans ?_ (Finset.single_le_sum (fun j (_:j∈Finset.univ)=> sq_nonneg (t*((↑(y j.1 j.2-x j.1 j.2 : ℤ)):ℝ))) (Finset.mem_univ i)) |
| 41 | apply le_of_eq; rw [mul_pow,mul_pow] |
| 42 | let X:= y i.1 i.2-x i.1 i.2; congr 1 |
| 43 | change (X.natAbs:ℝ)^2=(X:ℝ)^2 |
| 44 | rw [← Int.cast_natCast (R:=ℝ),Int.natCast_natAbs,Int.cast_abs,sq_abs] |
| 45 | |
| 46 | private lemma drive_at (a i:MotionIndex n) : drive a i.1 i.2= if i=a then 1 else 0:=by |
| 47 | obtain ⟨i,j⟩:=i; obtain ⟨u,v⟩:=a |
| 48 | by_cases h:i=u <;> by_cases hp:j=v <;> simp [drive,h,hp,Ne.symm] |
| 49 | |
| 50 | private lemma closerTag (x y:Positions n) (a:MotionIndex n) (t:ℝ) (u:Positions n) |
| 51 | (he : (u a.1 a.2-x a.1 a.2).natAbs+1=(y a.1 a.2-x a.1 a.2).natAbs) |
| 52 | (h : ∀ i:MotionIndex n,i≠a → u i.1 i.2=y i.1 i.2) : distance x u+1=distance x y ∧ dist (tag t u) (tag t x) ≤ dist (tag t y) (tag t x):=by |
| 53 | let P (z:Positions n)(a:MotionIndex n):= (z a.1 a.2-x a.1 a.2).natAbs |
| 54 | constructor |
| 55 | · unfold distance; change (∑ i,P u i)+1=∑ i,P y i |
| 56 | rw [← Finset.add_sum_erase _ _ (Finset.mem_univ a), ← Finset.add_sum_erase _ (P y) (Finset.mem_univ a),add_right_comm, show P u a+1=P y a from he] |
| 57 | apply congr_arg; exact Finset.sum_congr rfl fun i hi=>by unfold P; rw [h i (Finset.ne_of_mem_erase hi)] |
| 58 | refine (sq_le_sq₀ dist_nonneg dist_nonneg).mp ?_; rw [norm_tag,norm_tag]; apply Finset.sum_le_sum |
| 59 | intro i hi; by_cases hk:i=a |
| 60 | · subst i; rw [sq_le_sq,abs_mul,abs_mul]; apply mul_le_mul_of_nonneg_left _ (abs_nonneg _) |
| 61 | exact_mod_cast (show |(u a.1 a.2-x a.1 a.2 : ℤ)|≤ |(y a.1 a.2-x a.1 a.2 : ℤ)| by |
| 62 | rw [← Int.natCast_natAbs,← Int.natCast_natAbs]; exact_mod_cast Nat.le_of_succ_le he.le) |
| 63 | rw [h i hk] |
| 64 | |
| 65 | lemma stroll {t:ℝ}(ht:0<t)(f:Positions n→ℂ)(x y:Positions n)(R L:ℝ)(hL:0≤L)(hx:dist (tag t y) (tag t x) ≤ R) |
| 66 | (h:∀ (u:Positions n)(s:MotionIndex n),dist (tag t u) (tag t x) ≤ R → dist (f (u+drive s)) (f u) ≤ t*L): |
| 67 | dist (f y) (f x) ≤ L*Fintype.card (MotionIndex n)*dist (tag t y) (tag t x) := by |
| 68 | suffices hv : dist (f y) (f x) ≤ L*(t*distance x y) by |
| 69 | exact hv.trans ((mul_le_mul_of_nonneg_left (priced _ ht x y) hL).trans_eq (by ring)) |
| 70 | generalize hh: distance x y=k; induction k using Nat.strong_induction_on generalizing y with |
| 71 | | h k ih => |
| 72 | by_cases hp:y=x |
| 73 | · rw [hp,dist_self]; positivity |
| 74 | obtain ⟨i,hi⟩:= Function.ne_iff.mp hp; obtain ⟨j,hj⟩:= Function.ne_iff.mp hi |
| 75 | let a:MotionIndex n:= (i,j) |
| 76 | have hv (z:Positions n) (ht:distance x z+1=k) (hg:dist (tag t z) (tag t x) ≤ R) (h:dist (f y) (f z)≤ t*L): dist (f y) (f x) ≤ L*(t*k):= by |
| 77 | have hE:= ih _ (Nat.lt_of_add_one_le ht.le) z hg rfl |
| 78 | apply (dist_triangle _ (f z) _).trans ((add_le_add h hE).trans_eq ?_); rw [←ht]; push_cast; ring |
| 79 | rcases lt_or_gt_of_ne hj with hz|hz |
| 80 | · let z:= y+drive a |
| 81 | have he: (z i j-y i j)=1:=by simp [z,drive,a] |
| 82 | obtain ⟨hd,hB⟩:= closerTag x y a t z (show (z i j-x i j).natAbs+1=(y i j-x i j).natAbs by omega) (fun i hi=> by simp only [z,Pi.add_apply,drive_at a i,if_neg hi,add_zero]) |
| 83 | exact hv _ (hd.trans hh) (hB.trans hx) (dist_comm .. |>.trans_le (h y a hx)) |
| 84 | let z:= y-drive a |
| 85 | have he:z i j=y i j-1:=by simp [z,drive,a] |
| 86 | obtain ⟨hd,hB⟩:= closerTag x y a t z (show (z i j-x i j).natAbs+1=(y i j-x i j).natAbs by omega) (fun i hi=> by simp only [z,Pi.sub_apply,drive_at a i,if_neg hi,sub_zero]) |
| 87 | have hW:=hB.trans hx |
| 88 | apply hv _ (hd.trans hh) hW; nth_rw 1 [← show z+drive a =y from sub_add_cancel ..]; exact h z a hW |
| 89 | |
| 90 | lemma unique_units (f:Positions n→ℂ) {t:ℝ}(ht:0<t)(a:MotionIndex n)(x:Positions n): |
| 91 | f (x+drive a)-f x=t • delta (drive a) t f x:=by |
| 92 | rw [delta_at,Complex.real_smul,← mul_assoc,mul_inv_cancel₀ (Complex.ofReal_ne_zero.mpr ht.ne'),one_mul] |
| 93 | |
| 94 | end YM.FullVolume |