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.Exterior.Blade |
| 2 | |
| 3 | /-! |
| 4 | # A coordinate contraction for the initial-corner convention |
| 5 | |
| 6 | For a nonzero component `q k`, use just contraction with the k-th |
| 7 | basis element. Thus we need the algebraic Cartan identity, not any |
| 8 | unitary change of frame. |
| 9 | -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.Work.F06 |
| 13 | open Exterior Matrix Finset |
| 14 | open scoped BigOperators |
| 15 | |
| 16 | variable {α R : Type*} [LinearOrder α] {r : ℕ} |
| 17 | |
| 18 | /-- Insert a missing axis into a sorted blade. -/ |
| 19 | def addAxis (k : α) (b : Blade α r) (h : k ∉ b.val) : Blade α (r+1) := |
| 20 | ⟨insert k b.val, by rw [card_insert_of_notMem h, b.property]⟩ |
| 21 | |
| 22 | lemma mem_addAxis (k : α) (b : Blade α r) (h) : k ∈ (addAxis k b h).val := |
| 23 | mem_insert_self .. |
| 24 | |
| 25 | lemma notMem_cut (k : α) (b : Blade α (r+1)) (h) : k ∉ (Exterior.remove k b h).val := by |
| 26 | simp [Exterior.remove] |
| 27 | |
| 28 | lemma remove_addAxis (k : α) (b : Blade α r) (h) : |
| 29 | Exterior.remove k (addAxis k b h) (mem_addAxis k b h) = b := by |
| 30 | apply Subtype.ext |
| 31 | simp [Exterior.remove, addAxis, h] |
| 32 | |
| 33 | lemma addAxis_remove (k : α) (b : Blade α (r+1)) (h) : |
| 34 | addAxis k (Exterior.remove k b h) (notMem_cut k b h) = b := by |
| 35 | apply Subtype.ext |
| 36 | simp [Exterior.remove, addAxis, h] |
| 37 | |
| 38 | lemma parity_square [CommRing R] (S : Finset α) (i : α) : |
| 39 | parity S i R * parity S i R = 1 := by |
| 40 | unfold parity |
| 41 | rw [← mul_pow] |
| 42 | simp |
| 43 | |
| 44 | variable [CommRing R] [Fintype α] |
| 45 | |
| 46 | /-- `eliminate` for the transpose instead of the wedge. -/ |
| 47 | lemma eliminate_transpose (v : Blade α (r+1) → R) (b : Blade α r) (k : α) : |
| 48 | ((left R r k).transpose *ᵥ v) b = if h : k ∉ b.val then |
| 49 | parity (addAxis k b h).val k R * v (addAxis k b h) else 0 := by |
| 50 | simp only [Matrix.mulVec, dotProduct, Matrix.transpose_apply] |
| 51 | by_cases hk : k ∉ b.val |
| 52 | · rw [dif_pos hk, Finset.sum_eq_single (addAxis k b hk)] |
| 53 | · simp [Exterior.left, mem_addAxis, remove_addAxis] |
| 54 | · intro a _ ha |
| 55 | by_cases he : k ∈ a.val |
| 56 | · have hu : Exterior.remove k a he ≠ b := by |
| 57 | intro h |
| 58 | apply ha |
| 59 | apply Subtype.ext |
| 60 | change a.val = insert k b.val |
| 61 | rw [← h]; simp [Exterior.remove, he] |
| 62 | simp [Exterior.left, he, hu] |
| 63 | simp [Exterior.left, he] |
| 64 | simp |
| 65 | rw [dif_neg hk] |
| 66 | apply Finset.sum_eq_zero |
| 67 | intro a _ |
| 68 | by_cases he : k ∈ a.val |
| 69 | · have hu : Exterior.remove k a he ≠ b := by |
| 70 | intro h |
| 71 | apply hk |
| 72 | rw [← h]; exact notMem_cut k a he |
| 73 | simp [Exterior.left, he, hu] |
| 74 | simp [Exterior.left, he] |
| 75 | |
| 76 | -- Common sign cancellation for swapping inserted and deleted axes. |
| 77 | omit [Fintype α] in |
| 78 | lemma parity_swap (S : Finset α) {j k : α} (hj : j ∈ S) (hk : k ∈ S) (hne : j ≠ k) : |
| 79 | parity (S.erase k) j R * parity (S.erase j) k R + |
| 80 | parity S k R * parity S j R = 0 := by |
| 81 | unfold parity |
| 82 | rcases lt_or_gt_of_ne hne with h|h |
| 83 | · rw [pre_lo S h.le, ← pre_hi S h hj, pow_succ] |
| 84 | ring |
| 85 | rw [pre_lo S h.le, ← pre_hi S h hk, pow_succ]; ring |
| 86 | |
| 87 | lemma cartan_axis (v : Blade α (r+1) → R) (j k : α) : |
| 88 | left R r j *ᵥ ((left R r k).transpose *ᵥ v) + |
| 89 | (left R (r+1) k).transpose *ᵥ (left R (r+1) j *ᵥ v) = |
| 90 | if j = k then v else 0 := by |
| 91 | funext b |
| 92 | rw [Pi.add_apply, eliminate, eliminate_transpose] |
| 93 | by_cases he : j = k |
| 94 | · subst k |
| 95 | rw [if_pos rfl] |
| 96 | by_cases hj : j ∈ b.val |
| 97 | · rw [dif_pos hj, dif_neg (not_not.mpr hj), add_zero, eliminate_transpose, |
| 98 | dif_pos (notMem_cut j b hj), addAxis_remove, ← mul_assoc, parity_square, one_mul] |
| 99 | rw [dif_neg hj, dif_pos hj, zero_add, eliminate, dif_pos (mem_addAxis j b hj), |
| 100 | remove_addAxis, ← mul_assoc, parity_square, one_mul] |
| 101 | rw [if_neg he, Pi.zero_apply] |
| 102 | by_cases hj : j ∈ b.val |
| 103 | · rw [dif_pos hj, eliminate_transpose] |
| 104 | by_cases hk : k ∉ b.val |
| 105 | · have hc : k ∉ (Exterior.remove j b hj).val := by simp [Exterior.remove, hk] |
| 106 | have hd : j ∈ (addAxis k b hk).val := by simp [addAxis, hj] |
| 107 | rw [dif_pos hk, dif_pos hc, eliminate, dif_pos hd] |
| 108 | have hs : addAxis k (Exterior.remove j b hj) hc = |
| 109 | Exterior.remove j (addAxis k b hk) hd := by |
| 110 | apply Subtype.ext; ext i |
| 111 | by_cases hi : i = k <;> simp [Exterior.remove, addAxis, hi, Ne.symm he] |
| 112 | rw [hs, ← mul_assoc, ← mul_assoc, ← add_mul] |
| 113 | have hp := parity_swap (R:=R) _ hd (mem_addAxis k b hk) he |
| 114 | rw [show ((addAxis k b hk).val.erase k) = b.val |
| 115 | from congrArg Subtype.val (remove_addAxis k b hk)] at hp |
| 116 | change parity b.val j R * parity (Exterior.remove j (addAxis k b hk) hd).val k R + |
| 117 | parity (addAxis k b hk).val k R * parity (addAxis k b hk).val j R = 0 at hp |
| 118 | rw [hp, zero_mul] |
| 119 | have hc : ¬ k ∉ (Exterior.remove j b hj).val := by |
| 120 | have hk' : k ∈ b.val := not_not.mp hk |
| 121 | simp [Exterior.remove, hk', Ne.symm he] |
| 122 | rw [dif_neg hk, dif_neg hc]; simp |
| 123 | rw [dif_neg hj] |
| 124 | by_cases hk : k ∉ b.val |
| 125 | · have hc : j ∉ (addAxis k b hk).val := by simp [addAxis, he, hj] |
| 126 | rw [dif_pos hk, eliminate, dif_neg hc]; simp |
| 127 | rw [dif_neg hk]; simp |
| 128 | |
| 129 | lemma cartan (v : Blade α (r+1) → R) (z : α → R) (k : α) : |
| 130 | wedge r z *ᵥ ((left R r k).transpose *ᵥ v) + |
| 131 | (left R (r+1) k).transpose *ᵥ (wedge (r+1) z *ᵥ v) = z k • v := by |
| 132 | unfold wedge |
| 133 | simp_rw [Matrix.sum_mulVec, Matrix.smul_mulVec, Matrix.mulVec_sum, |
| 134 | Matrix.mulVec_smul, ← Finset.sum_add_distrib, ← smul_add, |
| 135 | cartan_axis v _ k] |
| 136 | simp [smul_ite] |
| 137 | |
| 138 | /-- Split into a genuine range vector plus a term controlled by the next symbol. |
| 139 | This need not be an orthogonal decomposition. -/ |
| 140 | lemma cartan_split (v : Blade α (r+1) → ℂ) (z : α → ℂ) (k : α) (hk : z k ≠ 0) : |
| 141 | v = wedge r z *ᵥ ((z k)⁻¹ • ((left ℂ r k).transpose *ᵥ v)) + |
| 142 | (z k)⁻¹ • ((left ℂ (r+1) k).transpose *ᵥ (wedge (r+1) z *ᵥ v)) := by |
| 143 | rw [Matrix.mulVec_smul, ← smul_add, cartan, smul_smul, inv_mul_cancel₀ hk, one_smul] |
| 144 | |
| 145 | end YM.Work.F06 |