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.Pert.Fourier.Image |
| 2 | /-! Fundamental momentum cells. Difference between continuous and discrete (top) frequency integrals. -/ |
| 3 | set_option autoImplicit false |
| 4 | noncomputable section |
| 5 | namespace YM.Pert.Cellular |
| 6 | open Topology Lattice Filter Function Set Metric MeasureTheory YM.Next.Rank.Radian |
| 7 | open scoped BigOperators RealInnerProductSpace Classical |
| 8 | open Band (turn) |
| 9 | variable {n : Side} |
| 10 | def cells := {x:E4 | ∀ i, |x i| ≤ 1/2} |
| 11 | def dtype (v : E4) : ℝ := Full.delta (Band.turn • v) |
| 12 | def clock (a : Cover) (q : E4) := Real.cos (Full.corner a (Band.turn • q)) |
| 13 | def trace (a : Cover) (q : E4) := (dtype q)⁻¹ * clock a q |
| 14 | lemma cells_closed : IsClosed cells := by simp only [cells,show {x : E4 | ∀ i, |x i| ≤ 1/2}= ⋂ i,{x : E4 | |x i| ≤ 1/2} by ext; simp]; exact isClosed_iInter fun i => isClosed_le (by fun_prop) continuous_const |
| 15 | lemma cells_cube (x : E4) : x∈cells ↔ (Band.turn : ℝ) • x ∈ Full.cube := by |
| 16 | unfold cells Full.cube; simp only [mem_setOf_eq,PiLp.smul_apply,smul_eq_mul,abs_mul,abs_of_nonneg (by positivity : 0≤Band.turn)] |
| 17 | apply forall_congr' fun i => ?_; rw [show Real.pi=Band.turn*(1/2) from by ring] |
| 18 | have hp := Real.pi_pos |
| 19 | constructor <;> (intro h; nlinarith only [h,hp]) |
| 20 | lemma cells_bd {x:E4} (hx : x∈cells): ‖x‖ ≤ 1 := by |
| 21 | obtain ⟨i,hi⟩ := Band.max_coord x |
| 22 | exact hi.trans (by have hh : |x i|≤1/2 := hx i; linarith) |
| 23 | lemma cells_ball : cells ⊆ closedBall (0:E4) 1 := by |
| 24 | intro x hx; change dist x 0≤1; rw [dist_zero_right]; exact cells_bd hx -- adjust |
| 25 | lemma cells_compact : IsCompact cells := (isCompact_closedBall (0:E4) 1).of_isClosed_subset cells_closed cells_ball |
| 26 | |
| 27 | def visit (n : Side) (q : E4) := addr n (mark n q) |
| 28 | lemma visit_eps (n : Side) (q : E4) : ‖visit n q - q‖ ≤ 4*(n.val:ℝ)⁻¹ := by rw [← dist_eq_norm]; apply rock |
| 29 | lemma visit_floor (n : Side) (q : E4) (hq : visit n q≠0) : (n.val:ℝ)⁻¹ ≤ ‖visit n q‖ := by |
| 30 | obtain ⟨i,hi⟩ : ∃ i, visit n q i ≠ 0 := by by_contra! ht; exact hq (by ext i; exact ht i) |
| 31 | have hx := Band.reads_wrap n (mark n q) i |
| 32 | have hv : mark n q i ≠ 0 := by |
| 33 | change ((addr n (mark n q)):E4) i ≠0 at hi |
| 34 | contrapose hi; simp_all |
| 35 | calc _ ≤ |visit n q i| := by |
| 36 | change _ ≤ |addr n (mark n q) i|; rw [hx, abs_div,abs_of_nonneg (Full.val_pos n).le,← one_div]; apply div_le_div_of_nonneg_right _ (Full.val_pos n).le |
| 37 | have ht : |mark n q i| ≥ 1 := by have := abs_pos.mpr hv; omega |
| 38 | rw [← Int.cast_abs]; exact_mod_cast ht |
| 39 | _ ≤ _ := Band.coordinate_le .. |
| 40 | lemma cell_AE : ∀ᵐ q : E4,∀ s : Axis,q s ≠ -(1/2) ∧ q s ≠ 1/2 := by |
| 41 | apply ae_all_iff.mpr; intro s |
| 42 | have he (a : ℝ) : ∀ᵐ q : E4, q s≠a := by |
| 43 | apply ae_iff.mpr; rw [show {q |¬q s≠a} = (WithLp.ofLp:E4→Axis→ℝ) ⁻¹' {u|u s=a} from by ext; simp]; rw [(PiLp.volume_preserving_ofLp Axis).measure_preimage (MeasurableSet.nullMeasurableSet (by apply measurableSet_eq_fun;fun_prop;fun_prop))]; exact Measure.pi_hyperplane (fun _ => volume) _ _ |
| 44 | exact (he (-(1/2:ℝ))).and (he (1/2)) |
| 45 | lemma marked_cell (n : Side) (hn : Even n.val) {q : E4} (ht : ∀ s : Axis,q s≠ -(1/2) ∧ q s ≠ 1/2) : |
| 46 | q∈cells ↔ ((mark n q)∈Set.range (Lattice.lift (n:=n))) := by |
| 47 | have hp := Full.val_pos n |
| 48 | obtain ⟨A,hA⟩ := hn |
| 49 | let k:=mark n q |
| 50 | have h1 (s : Axis) : mark n q s = ⌈n.val * q s⌉ := by unfold mark; congr 1; field_simp |
| 51 | constructor |
| 52 | · intro H; refine ⟨wrap n k,lift_eq_iff.mpr ⟨rfl,fun i=>?_⟩⟩ |
| 53 | rw [h1]; have he : -(A:ℤ) < ⌈n.val * q i⌉ := Int.lt_ceil.mpr (by |
| 54 | obtain ⟨ha,hb⟩ := abs_le.mp (H i) |
| 55 | rw [hA] at hp ⊢; push_cast at hp ⊢; nlinarith only [mul_pos hp (show 0<q i + (1/2) from by linarith only [lt_of_le_of_ne ha (Ne.symm (ht i).1)])]) |
| 56 | have he' : ⌈n.val*q i⌉ ≤ (A:ℤ) := Int.ceil_le.mpr (by have hi := (abs_le.mp (H i)).2; have ht := mul_le_mul_of_nonneg_left hi hp.le; rw [hA] at ht ⊢; push_cast at ht ⊢; linarith only [ht]) |
| 57 | omega |
| 58 | rintro ⟨u,hu⟩ i |
| 59 | obtain ⟨ha,hb⟩ := hu ▸ lift_centers u i |
| 60 | rw [h1] at ha hb; have hh : ↑(A+A:ℕ)= (A:ℤ)+A := by simp |
| 61 | rw [hA,hh] at ha hb |
| 62 | have hm₁ : -(A:ℤ)< ⌈(↑(A+A:ℕ):ℝ)*q i⌉ := by omega |
| 63 | have hm₂ : ⌈(↑(A+A:ℕ):ℝ)*q i⌉ ≤ (A:ℤ) := by omega |
| 64 | rw [Int.lt_ceil] at hm₁; rw [Int.ceil_le] at hm₂; rw [hA] at hp; push_cast at * |
| 65 | exact abs_le.mpr ⟨by nlinarith only [hm₁,hp],by nlinarith only [hp,hm₂]⟩ |
| 66 | |
| 67 | lemma integrate_visit (n : Side) (hn : Even n.val) (g : E4→ℝ) : Integrable (cells.indicator (fun x=>g (visit n x))) ∧ (∫ x, cells.indicator (fun x=>g (visit n x)) x) = (n.val:ℝ)⁻¹^4 * ∑ k:Site n, g (addr n (Lattice.lift k)) := by |
| 68 | let A (k : Site n):= ((tileP n (Lattice.lift k)).indicator fun _ => g (addr n (Lattice.lift k))) |
| 69 | have he : ∀ᵐ x:E4, cells.indicator (fun x=> g (visit n x)) x = ∑ k:Site n, A k x := by |
| 70 | filter_upwards [cell_AE] with x hx |
| 71 | have hq:= marked_cell n hn hx |
| 72 | by_cases h:x∈cells |
| 73 | · rw [indicator_of_mem h]; obtain ⟨u:Site n,hu⟩ := hq.mp h |
| 74 | rw [Finset.sum_eq_single u] |
| 75 | · exact Eq.symm (by rw [show A u x=g (addr n (Lattice.lift u)) from indicator_of_mem (show x∈tileP n _ from hu.symm) _,hu]; rfl) |
| 76 | · intro j _ hi; apply indicator_of_notMem; intro hj; exact hi (by rw [←wrap_lift u,←wrap_lift j,hu,(hj:mark n x=lift j)]) |
| 77 | · simp |
| 78 | rw [indicator_of_notMem h]; symm |
| 79 | exact Finset.sum_eq_zero fun k _=> indicator_of_notMem (by intro (hh: x∈tileP n _); exact h (hq.mpr ⟨k,(show mark n x=lift k from hh).symm⟩)) _ |
| 80 | have hints k : Integrable (A k) := (integrable_indicator_iff (tiles n _).1).2 (integrableOn_const (μ:=volume) (by |
| 81 | intro hz |
| 82 | have h:(0:ℝ)<volume.real (tileP n (Lattice.lift k)) := (tiles n _).2.symm ▸ (pow_pos (YM.Next.Rank.Radian.positive _) _) |
| 83 | rw [Measure.real,hz] at h; simp at h)) |
| 84 | refine ⟨(integrable_finsetSum Finset.univ (fun i _ => hints i)).congr (Filter.EventuallyEq.symm he),?_⟩ |
| 85 | simp_rw [integral_congr_ae (f:=fun x=>_) he, integral_finsetSum _ (fun i _=> hints i)]; dsimp only [A]; simp_rw [integral_indicator (tiles n _).1, setIntegral_const, (tiles n _).2,smul_eq_mul,Finset.mul_sum] |
| 86 | lemma visit_defensive (n : Side) (p : Site n) : Band.turn • addr n (Lattice.lift p) = Full.moment p := by ext i; simp only [PiLp.smul_apply,smul_eq_mul,Band.reads_wrap, Full.moment_apply]; unfold Full.mesh; field_simp |
| 87 | end YM.Pert.Cellular |