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.Align.Recoil |
| 2 | import YM.Push.FINITE_DETECTION.Signed |
| 3 | /-! |
| 4 | # Bilinear coordinate calculus for open-leg stencils |
| 5 | -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.Pert.Align |
| 9 | open Maxwell Function Atom Filter Topology RingHom YM.Next.Rank.Radian Tensor |
| 10 | open scoped BigOperators Classical |
| 11 | variable {j k : ℕ} {G : Gauge} |
| 12 | abbrev Pad (G : Gauge) (j : ℕ) := Module.Dual ℝ (YM.Pert.Bare.Response G j) |
| 13 | structure Spot (G : Gauge) (j : ℕ) where |
| 14 | slash : Axis |
| 15 | via : Axis |
| 16 | γ : Fin j→Axis |
| 17 | color : G.ColorIndex |
| 18 | deriving DecidableEq, Fintype |
| 19 | namespace Spot |
| 20 | def atom (v : Spot G j) (s : Signed) : Atom j := ⟨s,v.γ,v.slash,v.via⟩ |
| 21 | def meter (v : Spot G j) : Pad G j := probes (unitColor G v.color) (v.atom 1) |
| 22 | def impulse (v : Spot G j) (f g : Axis) (p : Fin j→Axis) : G.Color := if v.slash=f ∧ v.via=g ∧ v.γ=p then Maxwell.unitColor G v.color else 0 |
| 23 | def freeze (v : Spot G j) : Extended G j := Maxwell.fromF G (basis ∘ v.γ) v.color v.slash v.via |
| 24 | lemma meter_atom (v : Spot G j) (s : Signed) : v.meter = probes (unitColor G v.color) (v.atom s) := rfl |
| 25 | lemma impulse_read (v : Spot G j) (f g : Axis) (p : Fin j→Axis) (c : G.ColorIndex) : v.impulse f g p c = if v=(⟨f,g,p,c⟩:Spot G j) then 1 else 0 := by |
| 26 | cases v with | mk a b t d => by_cases h : a=f∧b=g∧t=p; · obtain ⟨rfl,rfl,rfl⟩ := h; simp [impulse,unitPaint]; split_ifs <;> simp_all |
| 27 | dsimp [impulse]; rw [if_neg h, if_neg (by contrapose! h; simp_all)];rfl |
| 28 | end Spot |
| 29 | lemma meter_full (a : YM.Pert.Bare.Response G j): a = ∑ v : Spot G j, (v.meter a) • v.impulse := by |
| 30 | classical |
| 31 | dsimp only [Spot.meter] |
| 32 | funext i l p; ext c |
| 33 | rw [Finset.sum_apply,Finset.sum_apply,Finset.sum_apply] |
| 34 | change _=((∑ v:Spot G j, (probes _ _ a : ℝ) • v.impulse i l p):G.Color) c |
| 35 | simp [WithLp.ofLp_sum, Spot.impulse_read] |
| 36 | rw [←to_color (a i l p) c]; change inner ℝ (a i l p) (unitColor G c) = inner ℝ (unitColor G c) (a i l p); exact real_inner_comm .. |
| 37 | -- was rw simp |
| 38 | lemma pad_full (A : Pad G j) : A = ∑ v : Spot G j, A v.impulse • v.meter := by |
| 39 | apply LinearMap.ext; intro f |
| 40 | rw [LinearMap.sum_apply, (congrArg A (meter_full f)), map_sum] |
| 41 | apply Finset.sum_congr rfl; intro v _; rw [A.map_smul]; exact mul_comm _ _ |
| 42 | variable {E F I K : Type*} [AddCommGroup E] [AddCommGroup F] [AddCommGroup I] [AddCommGroup K] [Module ℝ E] [Module ℝ F] [Module ℝ I] [Module ℝ K] |
| 43 | abbrev Biform E F [AddCommGroup E] [AddCommGroup F] [Module ℝ E] [Module ℝ F] := E →ₗ[ℝ] F →ₗ[ℝ] ℝ |
| 44 | def under (B : Biform E F) (t : I →ₗ[ℝ] E) (s:K →ₗ[ℝ] F) : Biform I K := (B.compl₂ s).comp t |
| 45 | @[simp] lemma under_at (B : Biform E F) (t : I→ₗ[ℝ] E) (s:K→ₗ[ℝ] F) (a b) : under B t s a b = B (t a) (s b) := rfl |
| 46 | def covMap (B : Biform E F) (t : I →ₗ[ℝ] E) (s:K→ₗ[ℝ] F) := under B t s |
| 47 | lemma cost_free (B : Biform E F) (a b c d) : B (a-b) (c-d) = B a c - B a d - (B b c - B b d) := by rw [B.map_sub,LinearMap.sub_apply,map_sub,map_sub] |
| 48 | def pickDual (t : E →ₗ[ℝ] I) : Module.Dual ℝ I →ₗ[ℝ] Module.Dual ℝ E where |
| 49 | toFun a := a.comp t |
| 50 | map_add' a b := by ext z; rfl |
| 51 | map_smul' a b := by ext z; rfl |
| 52 | @[simp] lemma pickDual_apply (t : E→ₗ[ℝ] I) (a) : pickDual t a = a.comp t := rfl |
| 53 | lemma upgrade {I K : Type*} [Fintype I] [Fintype K] (p : I→E) (z : I→ℝ) (q : K→F) (r : K → ℝ) (A B : ℕ→Biform E F) |
| 54 | (H : ∀ i j, Tendsto (fun t=> A t (p i) (q j)-B t (p i) (q j)) atTop (𝓝 (0:ℝ))) : Tendsto (fun t => |
| 55 | (A t (∑ i:I,z i • p i) (∑ j:K,r j • q j) - B t (∑ i:I,z i • p i) (∑ j:K,r j • q j))) atTop (𝓝 0) := by |
| 56 | have e (i) (j) := ((H i j).const_mul (r j)).const_mul (z i) |
| 57 | -- function rewriting equality under congr |
| 58 | simp only [map_sum,map_smul, ←Finset.sum_sub_distrib,LinearMap.sum_apply,LinearMap.smul_apply,smul_eq_mul] at * |
| 59 | have H := tendsto_finsetSum Finset.univ fun i (_:i∈Finset.univ) => tendsto_finsetSum Finset.univ fun j (_:j∈Finset.univ) => e i j |
| 60 | simp only [mul_zero,Finset.sum_const_zero] at H; apply H.congr; intro t |
| 61 | simp_rw [Finset.mul_sum,←Finset.sum_sub_distrib] |
| 62 | -- normalize double sum order |
| 63 | nth_rw 2 [Finset.sum_comm] |
| 64 | apply Finset.sum_congr rfl; intro a _; apply Finset.sum_congr rfl; intro b _; ring |
| 65 | lemma surge (A B : ℕ→Biform (Pad G j) (Pad G k)) (h : ∀ v w, Tendsto (fun i => A i (Spot.meter v) (Spot.meter w) - B i (Spot.meter v) (Spot.meter w)) atTop (𝓝 (0:ℝ))) (Q : Pad G j) (S : Pad G k) : |
| 66 | Tendsto (fun t=>A t Q S - B t Q S) atTop (𝓝 0) := by |
| 67 | have e (B : Pad G j → Pad G k → ℝ) : B Q S = B (∑ v : Spot G j, Q v.impulse • v.meter) (∑ v : Spot G k,S v.impulse • v.meter) := congrArg₂ B (pad_full Q) (pad_full S) |
| 68 | -- q unused |
| 69 | simp_rw [show ∀ t, A t Q S = A t (∑ v : Spot G j,Q v.impulse • v.meter) (∑ v : Spot G k,S v.impulse•v.meter) from fun t=>e (fun i j=>A t i j), show ∀ t, B t Q S = _ from fun t=> (e fun i j=> B t i j)]; apply upgrade _ _ _ _ A B h |
| 70 | end YM.Pert.Align |