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.Basis |
| 2 | |
| 3 | /-! Reference vs polynomial labels. |
| 4 | Coordinate spaces use sup top/norm by default; size in estimate below is ℓ¹. |
| 5 | The weighted diagonal commuting with O(4) is an actual identity. Do not |
| 6 | identify O(4) action after the physical all-spectator quotient by simply |
| 7 | descending the whole of the polynomial one. -/ |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.Labels.Frame |
| 12 | open Function Set |
| 13 | open scoped Topology BigOperators |
| 14 | |
| 15 | variable {G : Gauge} {d : ℕ} (F : Frame G d) |
| 16 | |
| 17 | abbrev Index := Fin (F.extra+1) |
| 18 | abbrev Coeff := F.Index → ℂ |
| 19 | |
| 20 | def coords : Label G d ≃ₗ[ℂ] F.Coeff := F.basis.equivFun |
| 21 | |
| 22 | @[simp] theorem coords_basis (i : F.Index) : F.coords (F.basis i) = Pi.single i 1 := by |
| 23 | ext1 j |
| 24 | change F.basis.repr (F.basis i) j = _ |
| 25 | rw [Module.Basis.repr_self] |
| 26 | simp [Finsupp.single_apply, Pi.single_apply, eq_comm] |
| 27 | |
| 28 | def e0 : F.Coeff := Pi.single 0 1 |
| 29 | @[simp] theorem coords_unit : F.coords (unit G d) = F.e0 := F.starts_unit ▸ F.coords_basis 0 |
| 30 | |
| 31 | theorem power_coefficient (i : F.Index) {v : Label G d} {m} (h : m ≠ F.grades i) (hv : v ∈ Grade m) : |
| 32 | F.coords v i = 0 := by |
| 33 | let B := F.basis |
| 34 | have ha : gradePart m v = v := gradePart_self v m hv |
| 35 | have hx : v = ∑ j : F.Index, gradePart m (B.repr v j • B j) := calc |
| 36 | v = gradePart m v := ha.symm |
| 37 | _ = gradePart m (∑ j : F.Index, B.repr v j • B j) := congr_arg _ (B.sum_repr _).symm |
| 38 | _ = _ := map_sum .. |
| 39 | have hz (j : F.Index) : F.coords (gradePart m (B.repr v j • B j)) i = 0 := by |
| 40 | rcases eq_or_ne (F.grades j) m with he|he |
| 41 | · rw [map_smul, ← he, gradePart_self (F.basis j) _ (F.pure j), map_smul, F.coords_basis j, |
| 42 | Pi.smul_apply, Pi.single_eq_of_ne, smul_zero] |
| 43 | exact fun w ↦ h (w ▸ he.symm) |
| 44 | · rw [map_smul, gradePart_zero (F.basis j) m _ he.symm (F.pure j)]; simp |
| 45 | conv_lhs => rw [hx] |
| 46 | rw [map_sum, Finset.sum_apply]; simp_rw [hz]; exact Finset.sum_const_zero |
| 47 | |
| 48 | theorem zero_degree : F.grades 0 = (0,0) := by |
| 49 | refine pure_unique (u := unit G d) unit_not_zero _ _ ?_ (unit_grade _) |
| 50 | rw [← F.starts_unit]; exact F.pure _ |
| 51 | |
| 52 | theorem factors_pos (i : F.Index) (hi : i ≠ 0) : 0 < (F.grades i).2 := by |
| 53 | by_contra! hy |
| 54 | obtain ⟨k,hk⟩ := scalar_grade (v := F.basis i) (F.grades i).1 (by rw [← Nat.eq_zero_of_le_zero hy]; exact F.pure _) |
| 55 | have h : F.coords (F.basis i) i = 0 := by rw [hk, map_smul, F.coords_unit]; simp [e0,Pi.single_eq_of_ne hi] |
| 56 | rw [coords_basis] at h; simp at h |
| 57 | |
| 58 | def scaled (t : ℝ) : F.Coeff →ₗ[ℂ] F.Coeff where |
| 59 | toFun x j := ((t^(F.grades j).2 : ℝ) : ℂ) * x j |
| 60 | map_add' x y := by ext1; simp [mul_add] |
| 61 | map_smul' z x := by ext1; simp; ring |
| 62 | |
| 63 | @[simp] theorem scaled_apply (t : ℝ) (x : F.Coeff) (i : F.Index) : |
| 64 | F.scaled t x i = ((t^(F.grades i).2 : ℝ) : ℂ) * x i := rfl |
| 65 | |
| 66 | @[simp] theorem scaled_inv {t : ℝ} (h : t ≠ 0) (x : F.Coeff) : F.scaled t (F.scaled t⁻¹ x) = x := by |
| 67 | funext i |
| 68 | simp only [scaled_apply, inv_pow, Complex.ofReal_inv, ← mul_assoc, |
| 69 | mul_inv_cancel₀ (show ((t ^ (F.grades i).2 : ℝ) : ℂ) ≠ 0 by exact_mod_cast pow_ne_zero _ h), one_mul] |
| 70 | |
| 71 | theorem scaled_pure (t : ℝ) (m : ℕ × ℕ) {x : Label G d} (h : x ∈ Grade m) : |
| 72 | F.scaled t (F.coords x) = ((t^m.2 : ℝ) : ℂ) • F.coords x := by |
| 73 | funext i |
| 74 | by_cases he : m = F.grades i |
| 75 | · rw [he]; rfl |
| 76 | simp [F.power_coefficient i he h] |
| 77 | |
| 78 | @[simp] theorem scaled_unit (t : ℝ) : F.scaled t F.e0 = F.e0 := by |
| 79 | rw [← F.coords_unit, F.scaled_pure t (0,0) (unit_grade d)]; simp |
| 80 | |
| 81 | /-- Real unrenormalized orthogonal action on reference labels. After |
| 82 | renormalization only H (signed-permutation) is supplied automatically. -/ |
| 83 | def act (s : Ortho) : F.Coeff →ₗ[ℂ] F.Coeff := |
| 84 | F.coords.toLinearMap.comp ((tensor s).comp F.coords.symm.toLinearMap) |
| 85 | |
| 86 | @[simp] theorem act_coords (s : Ortho) (x : Label G d) : F.act s (F.coords x) = F.coords (tensor s x) := by |
| 87 | simp [act] |
| 88 | |
| 89 | @[simp] theorem act_mul (u v : Ortho) (x : F.Coeff) : F.act (u*v) x = F.act u (F.act v x) := by |
| 90 | obtain ⟨x,rfl⟩ := F.coords.surjective x |
| 91 | simp |
| 92 | @[simp] theorem act_one (x : F.Coeff) : F.act 1 x = x := by |
| 93 | obtain ⟨x,rfl⟩ := F.coords.surjective x |
| 94 | simp |
| 95 | |
| 96 | theorem scaling (t : ℝ) (s : Ortho) (c : F.Coeff) : |
| 97 | F.scaled t (F.act s c) = F.act s (F.scaled t c) := by |
| 98 | have H : (F.scaled t ∘ₗ F.act s ∘ₗ F.coords.toLinearMap) = |
| 99 | (F.act s ∘ₗ F.scaled t ∘ₗ F.coords.toLinearMap) := by |
| 100 | refine F.basis.ext fun i ↦ ?_ |
| 101 | let B := F.basis i |
| 102 | have h := F.pure i |
| 103 | have e : tensor s B ∈ Grade (F.grades i) := by |
| 104 | have hv := gradePart_mem (F.grades i) (tensor s B) |
| 105 | rw [gradePart_turn, gradePart_self B _ h] at hv; exact hv |
| 106 | change F.scaled t (F.act s (F.coords B)) = F.act s (F.scaled t (F.coords B)) |
| 107 | rw [act_coords, F.scaled_pure t _ e, F.scaled_pure t _ (show B ∈ _ from h), map_smul, act_coords] |
| 108 | obtain ⟨x,rfl⟩ := F.coords.surjective c |
| 109 | exact LinearMap.congr_fun H x |
| 110 | |
| 111 | theorem conj_basis (v : F.Coeff) (i : F.Index) : F.coords (realBar (F.coords.symm v)) i = star (v i) := by |
| 112 | let f := F.coords.symm v |
| 113 | change F.coords (realBar f) i = _ |
| 114 | have e : realBar f = ∑ j, star (F.basis.repr f j) • F.basis j := calc |
| 115 | _ = realBar (∑ j, F.basis.repr f j • F.basis j) := congr_arg _ (F.basis.sum_repr f).symm |
| 116 | _ = _ := by rw [_root_.map_sum]; simp [F.realForm] |
| 117 | rw [e, map_sum, Finset.sum_apply] |
| 118 | simp_rw [map_smul, coords_basis, Pi.smul_apply] |
| 119 | simp only [Pi.single_apply, smul_eq_mul, mul_ite, mul_one, mul_zero, |
| 120 | Finset.sum_ite_eq, Finset.mem_univ, ↓reduceIte] |
| 121 | change star (F.coords f i) = _; simp [f] |
| 122 | |
| 123 | def core : F.Coeff →ₗ[ℂ] F.Coeff where |
| 124 | toFun v := Function.update v 0 0 |
| 125 | map_add' x y := by funext i; by_cases hi : i = 0 <;> simp [Function.update,hi] |
| 126 | map_smul' a x := by funext i; by_cases hi : i = 0 <;> simp [Function.update,hi] |
| 127 | |
| 128 | def coeffSize (x : F.Coeff) : ℝ := ∑ i, ‖x i‖ |
| 129 | end YM.Labels.Frame |