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.Labels.Grading |
| 2 | |
| 3 | /-! Choose real, filtered coefficient frames. -/ |
| 4 | set_option autoImplicit false |
| 5 | noncomputable section |
| 6 | namespace YM.Labels |
| 7 | open Submodule Function Set |
| 8 | open scoped BigOperators ComplexConjugate |
| 9 | |
| 10 | variable {G : Gauge} {d : ℕ} |
| 11 | |
| 12 | /-- Real and living in one bidegree. -/ |
| 13 | def pureReal (G : Gauge) (d : ℕ) := |
| 14 | {v : Label G d | realBar v = v ∧ ∃ m : ℕ × ℕ, m.1 ≤ d ∧ v ∈ Grade m} |
| 15 | |
| 16 | lemma pure_real_span : ⊤ ≤ span ℂ (pureReal G d) := by |
| 17 | intro x _ |
| 18 | rw [← decompose x] |
| 19 | refine sum_mem fun i hi ↦ sum_mem fun j _ ↦ ?_ |
| 20 | let y := gradePart (i,j) x |
| 21 | have hh : y ∈ Grade (i,j) := gradePart_mem .. |
| 22 | have hb : realBar y ∈ Grade (i,j) := by unfold y; rw [← gradePart_bar]; exact gradePart_mem .. |
| 23 | have h' : (i,j).1 ≤ d := Nat.le_of_lt_succ <| Finset.mem_range.mp hi |
| 24 | have hp : y + realBar y ∈ span ℂ (pureReal G d) := subset_span (by |
| 25 | refine ⟨by simp [add_comm], (i,j), h', add_mem hh hb⟩) |
| 26 | have hq : Complex.I • (y - realBar y) ∈ span ℂ (pureReal G d) := subset_span (by |
| 27 | refine ⟨?_, (i,j), h', smul_mem _ _ (sub_mem hh hb)⟩ |
| 28 | rw [realBar.map_smulₛₗ, map_sub, twice]; simp [smul_sub]; abel) |
| 29 | have e : (1/2 : ℂ) • ((y + realBar y) + (-Complex.I) • (Complex.I • (y - realBar y))) = y := by |
| 30 | rw [smul_smul, neg_mul, Complex.I_mul_I, neg_neg, one_smul, show |
| 31 | y + realBar y + (y - realBar y) = (2:ℂ) • y by rw [two_smul]; abel] |
| 32 | rw [smul_smul, div_mul_cancel₀ _ (by norm_num), one_smul] |
| 33 | change y ∈ _; exact e ▸ smul_mem _ _ (add_mem hp (smul_mem _ _ hq)) |
| 34 | |
| 35 | lemma unit_grade (d : ℕ) : unit G d ∈ Grade (0,0) := |
| 36 | MvPolynomial.isWeightedHomogeneous_one ℂ bidegree |
| 37 | |
| 38 | @[simp] theorem unit_real (d : ℕ) : realBar (unit G d) = unit G d := |
| 39 | Subtype.ext (show conjPol _ = _ from map_one _) |
| 40 | |
| 41 | theorem unit_not_zero : unit G d ≠ 0 := fun h => |
| 42 | one_ne_zero (congr_arg (fun x : Label G d => x.val) h) |
| 43 | |
| 44 | theorem pure_unique {u : Label G d} (h : u ≠ 0) (a b : ℕ × ℕ) (ha : u ∈ Grade a) (hb : u ∈ Grade b) : a=b := by |
| 45 | by_contra hx |
| 46 | exact h ((gradePart_self u a ha).symm.trans (gradePart_zero u a b hx hb)) |
| 47 | |
| 48 | lemma pure_unit : unit G d ∈ pureReal G d := ⟨unit_real _,(0,0), Nat.zero_le _, unit_grade d⟩ |
| 49 | |
| 50 | structure Frame (G : Gauge) (d : ℕ) where |
| 51 | extra : ℕ |
| 52 | basis : Module.Basis (Fin (extra+1)) ℂ (Label G d) |
| 53 | starts_unit : basis 0 = unit G d |
| 54 | grades : Fin (extra+1) → ℕ × ℕ |
| 55 | realForm (i : Fin (extra+1)) : realBar (basis i) = basis i |
| 56 | bound (i : Fin (extra+1)) : (grades i).1 ≤ d |
| 57 | pure (i : Fin (extra+1)) : basis i ∈ Grade (grades i) |
| 58 | |
| 59 | lemma extend_subset {P : Set (Label G d)} (H : LinearIndepOn ℂ id P) (hP : P ⊆ pureReal G d) (he : unit G d ∈ P) : |
| 60 | ∃ b : Frame G d, P ⊆ Set.range b.basis := by |
| 61 | classical |
| 62 | obtain ⟨s, hs, hPs, Hs, Hli⟩ := exists_linearIndepOn_id_extension H hP |
| 63 | have Hsp := (pure_real_span (G := G) (d := d)).trans (span_le.mpr Hs) |
| 64 | let b1 : Module.Basis s ℂ (Label G d) := Module.Basis.mk (show LinearIndependent ℂ (Subtype.val : s → _) from |
| 65 | Hli.linearIndependent_restrict) (by simpa using Hsp) |
| 66 | haveI : Finite s := Module.Finite.finite_basis b1 |
| 67 | letI := Fintype.ofFinite s |
| 68 | let si : s := ⟨unit G d,hPs he⟩ |
| 69 | have hm : Nonempty s := ⟨si⟩ |
| 70 | let n := Fintype.card s - 1 |
| 71 | have hk : Fintype.card s = n+1 := by dsimp [n]; have := Fintype.card_pos_iff.mpr hm; omega |
| 72 | let f : s ≃ Fin (n+1) := (Fintype.equivFin s).trans (finCongr hk) |
| 73 | let j := f.trans (Equiv.swap (f si) 0) |
| 74 | let B := b1.reindex j |
| 75 | have hu (x : s) : b1 x = x.val := by simp [b1] |
| 76 | have ha (x : s) : B (j x) = x.val := by simp [B, hu] |
| 77 | have hv (i) : B i ∈ pureReal G d := by obtain ⟨x,rfl⟩ := j.surjective i; rw [ha]; exact hs x.property |
| 78 | choose p hb hh using fun k : Fin (n+1) => (hv k).2 |
| 79 | have hed : j si = 0 := by simp [j] |
| 80 | refine ⟨⟨n,B,hed ▸ ha si,p,fun i ↦ (hv i).1,hb,hh⟩,fun x hx ↦ ?_⟩ |
| 81 | exact ⟨j ⟨x,hPs hx⟩, ha _⟩ |
| 82 | |
| 83 | theorem frame_exists (G : Gauge) (d) : Nonempty (Frame G d) := by |
| 84 | obtain ⟨X,-⟩ := extend_subset (P := ({unit G d})) |
| 85 | ((linearIndepOn_singleton_iff ..).mpr unit_not_zero) (Set.singleton_subset_iff.mpr pure_unit) (by simp) |
| 86 | exact ⟨X⟩ |
| 87 | |
| 88 | lemma extend_frame (X : Frame G d) : ∃ Y : Frame G (d+1), |
| 89 | range ((raiseLabel G d.le_succ) ∘ X.basis) ⊆ range Y.basis := by |
| 90 | let v : Fin (X.extra+1) → Label G (d+1) := (raiseLabel G d.le_succ) ∘ X.basis |
| 91 | apply extend_subset (P := range v) |
| 92 | · have e : LinearIndependent ℂ v := LinearIndependent.map' X.basis.linearIndependent _ |
| 93 | (LinearMap.ker_eq_bot.mpr (Submodule.inclusion_injective _)) |
| 94 | exact e.linearIndepOn_id |
| 95 | · rintro x ⟨m, hm⟩ |
| 96 | subst x |
| 97 | refine ⟨Subtype.ext ?_, X.grades m, (X.bound m).trans d.le_succ, ?_⟩ |
| 98 | · exact congr_arg (fun x : Label G d => x.val) (X.realForm m) |
| 99 | exact X.pure m |
| 100 | exact ⟨0,by simp [v, X.starts_unit]; rfl⟩ |
| 101 | |
| 102 | structure Frames (G : Gauge) where |
| 103 | level (d : ℕ) : Frame G d |
| 104 | coherent d : range ((raiseLabel G d.le_succ) ∘ (level d).basis) ⊆ range (level (d+1)).basis |
| 105 | |
| 106 | /-- Choice of coherent system; users can supply any one, the same at all cutoffs. -/ |
| 107 | def frames (G : Gauge) : Frames G := |
| 108 | let u := Nat.rec (motive := fun d => Frame G d) (Classical.choice (frame_exists G 0)) |
| 109 | (fun _ m => (extend_frame m).choose) |
| 110 | { level := u |
| 111 | coherent := fun d => (extend_frame (u d)).choose_spec } |
| 112 | end YM.Labels |