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.Euclid.Window |
| 2 | import YM.Org.Input |
| 3 | |
| 4 | /-! |
| 5 | # Shell comparisons on the all-spectator quotient (A01): tools |
| 6 | |
| 7 | `flux` contracts J with a position-dependent vector, allowing us to treat |
| 8 | both the translation and the angular shell, always at the actual points. We |
| 9 | use it with smooth V. `term_integrable`: even for continuous multiplier, |
| 10 | with window support, these are genuine integrals. No comparison/regularity |
| 11 | of readouts off configuration space is needed. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Work.A01 |
| 17 | open Table Analysis Function Set Filter MeasureTheory |
| 18 | open scoped Topology ContDiff BigOperators |
| 19 | |
| 20 | variable {G : Gauge} {L : Register G} {S : Table L} {d n : ℕ} |
| 21 | |
| 22 | theorem exists_window (x : Points (n+1)) (hx : x ∈ conf _) : ∃ χ, Window x χ := by |
| 23 | let F : Fin n → E4 := fun i => x i.succ |
| 24 | have hx' : x 0 ∈ (range F)ᶜ := by |
| 25 | rintro ⟨i, he⟩ |
| 26 | exact Fin.succ_ne_zero i ((show Injective x.ofLp from hx) he) |
| 27 | have hu := (finite_range F).isClosed.isOpen_compl.mem_nhds hx' |
| 28 | obtain ⟨r, hr, hs⟩ := Metric.nhds_basis_closedBall.mem_iff.mp hu |
| 29 | let B : ContDiffBump (x 0) := ⟨r/2,r,by positivity,by linarith⟩ |
| 30 | refine ⟨B, B.contDiff, B.hasCompactSupport, B.eventuallyEq_one, ?_⟩ |
| 31 | intro i |
| 32 | rw [B.tsupport_eq] |
| 33 | exact fun hi => hs hi ⟨i,rfl⟩ |
| 34 | |
| 35 | theorem conf_cons {x : Points n} (hx : x ∈ conf n) {y : E4} (h : ∀ i, y ≠ x i) : |
| 36 | Points.cons y x ∈ conf _ := by |
| 37 | intro i j |
| 38 | refine Fin.cases ?_ (fun i => ?_) i |
| 39 | · refine Fin.cases (fun _ => rfl) (fun j => ?_) j |
| 40 | simp [Points.cons,h] |
| 41 | · refine Fin.cases ?_ (fun j => ?_) j |
| 42 | · simp [Points.cons, Ne.symm (h i)] |
| 43 | · simp only [Points.cons, points_apply, Fin.cons_succ] |
| 44 | exact fun he => congr_arg Fin.succ ((show Injective x.ofLp from hx) he) |
| 45 | |
| 46 | /-- The closed gradient-support also avoids all points, including the center. -/ |
| 47 | theorem window_separated {x : Points (n+1)} (hx : x ∈ conf _) {χ : E4 → ℝ} (w : Window x χ) |
| 48 | {y : E4} (hy : y ∈ tsupport (fderiv ℝ χ)) : Points.cons y x ∈ conf _ := by |
| 49 | refine conf_cons hx fun i => Fin.cases ?_ (fun j => ?_) i |
| 50 | · rintro rfl |
| 51 | apply (show x 0 ∉ tsupport (fderiv ℝ χ) from ?_) hy |
| 52 | apply notMem_tsupport_iff_eventuallyEq.mpr |
| 53 | filter_upwards [w.2.2.1.fderiv (𝕜 := ℝ)] with z hz |
| 54 | simp [hz] |
| 55 | · rintro rfl |
| 56 | exact w.2.2.2 j (tsupport_fderiv_subset ℝ hy) |
| 57 | |
| 58 | theorem separated_of_D {x : Points (n+1)} (hx : x ∈ conf _) {χ : E4 → ℝ} (w : Window x χ) |
| 59 | {y : E4} {a : Axis} (h : D (basis a) χ y ≠ 0) : Points.cons y x ∈ conf _ := by |
| 60 | apply window_separated hx w |
| 61 | apply subset_closure |
| 62 | change fderiv ℝ χ y ≠ 0 |
| 63 | exact fun he => h (by simp [D, he]) |
| 64 | |
| 65 | /-- First-slot quotient readout at fixed all-spectator word. -/ |
| 66 | def frontRead (q : Fin n → S.Tag) (x : Points (n+1)) (d : ℕ) : S.Field d →ₗ[ℂ] ℂ := |
| 67 | Ward.here (Fin.cons ⟨d,(0:S.Field d)⟩ q) x 0 d |
| 68 | |
| 69 | theorem front_eval (q : Fin n → S.Tag) (x) (d) (p : S.Field d) : |
| 70 | frontRead q x d p = S.useAt S x (Fin.cons ⟨d,p⟩ q) := by |
| 71 | unfold frontRead |
| 72 | rw [Ward.takes, Fin.update_cons_zero]; rfl |
| 73 | |
| 74 | theorem comp_cons {I M : Type*} (f : I → M) (p : I) (q : Fin n → I) : |
| 75 | f ∘ (Fin.cons (α := fun _ : Fin (n+1) => I) p q) = Fin.cons (f p) (f ∘ q) := by |
| 76 | funext i; refine Fin.cases ?_ (fun j => ?_) i <;> simp |
| 77 | |
| 78 | def exchangeFirst (n : ℕ) := Equiv.swap (0 : Fin (n+2)) (0 : Fin (n+1)).succ |
| 79 | |
| 80 | theorem exchange_use {x : Points (n+2)} (hp : S.Symmetric) (hx : x ∈ conf _) (A B : S.Tag) |
| 81 | (q : Fin n → S.Tag) : S.useAt S x (Fin.cons A (Fin.cons B q)) = |
| 82 | S.useAt S (Points.rearrange (exchangeFirst n) x) (Fin.cons B (Fin.cons A q)) := by |
| 83 | conv_lhs => rw [← S.class_perm S hp (exchangeFirst n) hx] |
| 84 | congr 1 |
| 85 | funext i |
| 86 | refine Fin.cases ?_ (fun j => ?_) i |
| 87 | · simp [exchangeFirst] |
| 88 | · refine Fin.cases ?_ (fun k => ?_) j |
| 89 | · simp [exchangeFirst] |
| 90 | · rw [Function.comp_apply, exchangeFirst, Equiv.swap_apply_of_ne_of_ne |
| 91 | (Fin.succ_ne_zero k.succ) (Fin.succ_injective _ |>.ne (Fin.succ_ne_zero k))] |
| 92 | simp |
| 93 | |
| 94 | theorem exchange_positions (x : Points (n+1)) (y : E4) : |
| 95 | Points.tail (Points.rearrange (exchangeFirst n) (Points.cons y x)) = Points.cons y (Points.tail x) := by |
| 96 | ext1 i |
| 97 | refine Fin.cases ?_ (fun k => ?_) i |
| 98 | · simp [Points.tail, exchangeFirst, Points.cons] |
| 99 | · simp only [Points.tail, points_apply, Points.rearrange_at] |
| 100 | rw [exchangeFirst, Equiv.swap_apply_of_ne_of_ne (Fin.succ_ne_zero k.succ) |
| 101 | (Fin.succ_injective _ |>.ne (Fin.succ_ne_zero k))] |
| 102 | simp [Points.cons] |
| 103 | |
| 104 | section Flux |
| 105 | variable (J : S.Stress) (χ : E4 → ℝ) (V : E4 → E4) (x : Points (n+1)) |
| 106 | variable (q : Fin n → S.Tag) (B : S.Field d) |
| 107 | |
| 108 | def term (a b : Axis) (y : E4) := |
| 109 | ((D (basis a) χ y * V y b : ℝ) : ℂ) * |
| 110 | S.useAt S (Points.cons y x) (Fin.cons ⟨4,J a b⟩ (Fin.cons ⟨d,B⟩ q)) |
| 111 | |
| 112 | def flux := - ∑ a : Axis, ∑ b : Axis, ∫ y : E4, term J χ V x q B a b y |
| 113 | |
| 114 | theorem term_integrable (h : S.Smooth) (hx : x ∈ conf _) (hw : Window x χ) (a b : Axis) |
| 115 | (hV : Continuous fun y => V y b) : Integrable (term J χ V x q B a b) := by |
| 116 | have hp : Continuous fun y => ((V y b : ℝ) : ℂ) := Complex.continuous_ofReal.comp hV |
| 117 | change Integrable (fun y => term J χ V x q B a b y) |
| 118 | simpa only [term, Complex.ofReal_mul] using integrableShell hx hw h |
| 119 | (Fin.cons ⟨4,J a b⟩ (Fin.cons ⟨d,B⟩ q)) a (fun y => ((V y b : ℝ) : ℂ)) hp |
| 120 | |
| 121 | theorem flux_translation (c : Axis) : |
| 122 | flux J χ (fun _ => basis c) x q B = shellGrad S J χ c x q B := by |
| 123 | unfold flux shellGrad |
| 124 | apply congr_arg Neg.neg |
| 125 | apply Finset.sum_congr rfl |
| 126 | intro a _ |
| 127 | rw [Finset.sum_eq_single_of_mem c (Finset.mem_univ c)] |
| 128 | · simp [term] |
| 129 | · intro b _ hb; simp [term,basis_eq,hb] |
| 130 | |
| 131 | theorem flux_spin (u : Ortho.Skew) : |
| 132 | flux J χ (fun y => M4.move u.val (y - x 0)) x q B = shellSpin S J χ u x q B := rfl |
| 133 | |
| 134 | theorem flux_scale (c : ℝ) : |
| 135 | flux J χ (fun y => c • V y) x q B = (c:ℂ) * flux J χ V x q B := by |
| 136 | have H (a b : Axis) (y : E4) : term J χ (fun y => c • V y) x q B a b y = |
| 137 | (c:ℂ) * term J χ V x q B a b y := by |
| 138 | simp only [term, Complex.ofReal_mul, PiLp.smul_apply, smul_eq_mul] |
| 139 | ring |
| 140 | simp_rw [flux, H, integral_const_mul, mul_neg, Finset.mul_sum] |
| 141 | |
| 142 | end Flux |
| 143 | |
| 144 | /-- Inclusion tested also below the stress slot; uses `useAt` only on Conf. -/ |
| 145 | theorem flux_inclusion {x : Points (n+1)} (hp : S.Symmetric) (hx : x ∈ conf _) (W : DiffPlan S) |
| 146 | (hi : W.Inclusions S) (J : S.Stress) {χ : E4 → ℝ} (hw : Window x χ) (V : E4 → E4) |
| 147 | (B : S.Field d) (q : Fin n → S.Tag) {e : ℕ} (he : d ≤ e) : |
| 148 | flux J χ V x q (W.rise he B) = flux J χ V x q B := by |
| 149 | have ht (a b : Axis) (y : E4) : term J χ V x q (W.rise he B) a b y = term J χ V x q B a b y := by |
| 150 | by_cases hz : D (basis a) χ y = 0 |
| 151 | · simp [term, hz] |
| 152 | unfold term |
| 153 | have hy := separated_of_D hx hw hz |
| 154 | rw [exchange_use hp hy, hi.kernels he B (Points.rearrange_in _ hy), exchange_use hp hy] |
| 155 | simp_rw [flux, ht] |
| 156 | |
| 157 | end YM.Work.A01 |