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 Mathlib.Analysis.Complex.Schwarz |
| 2 | import Mathlib.Analysis.PSeries |
| 3 | import YM.AnalyticBridge.RELATIVE_LOGDET_TRACE.Walls |
| 4 | import YM.Push.FREE_RESOLVENT.Focus |
| 5 | |
| 6 | /-! |
| 7 | # Color-read reassembly |
| 8 | |
| 9 | The alphabet power sums may be kept as *whole color* letters for gauge |
| 10 | covariance. Reassemble this way before acting with a physical symmetry! |
| 11 | No assumption that a particular matrix element is a scalar under local |
| 12 | rotations. All gauges here orthogonal in counting coordinates. Apply also |
| 13 | with windows which select complete colors. Import into allocation/anchor |
| 14 | clients to use grouped ballots with the same determinant ledger. |
| 15 | -/ |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | namespace YM.AnalyticBridge.RelativeLogdet.Paint |
| 19 | open Function Set Matrix MeasureTheory FreeResolvent Next.SectorChange |
| 20 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius |
| 21 | variable {ι κ γ : Type} [Fintype ι] [Fintype κ] [Fintype γ] [DecidableEq ι] [DecidableEq κ] |
| 22 | variable {A B : Square (ι × κ)} {H : ι → Square κ} |
| 23 | |
| 24 | def block {ι κ : Type} (A : Square (ι × κ)) (i j : ι) : Square κ := Matrix.of fun k l => A (i,k) (j,l) |
| 25 | omit [DecidableEq ι] [DecidableEq κ] in |
| 26 | lemma factor (A B : Square (ι×κ)) (i j : ι) : block (A*B) i j=∑ k,block A i k*block B k j := by |
| 27 | ext m n; unfold block |
| 28 | rw [Matrix.sum_apply,of_apply, Matrix.mul_apply,Fintype.sum_prod_type] |
| 29 | rfl |
| 30 | omit [Fintype ι] [Fintype κ] in |
| 31 | lemma foundation (i j : ι) : block (1:Square (ι × κ)) i j= if i=j then (1:Square κ) else 0 := by |
| 32 | ext m n; rw [block,of_apply]; by_cases hx : i=j |
| 33 | · simp [hx,Matrix.one_apply] |
| 34 | simp [hx] |
| 35 | |
| 36 | def Moves (H : ι→Square κ) := ∀ i,(H i).transpose * H i=1 |
| 37 | |
| 38 | def Elation (H : ι→Square κ) (A B : Square (ι×κ)) := ∀ i j : ι, block B i j=H i * block A i j * (H j).transpose |
| 39 | |
| 40 | namespace Elation |
| 41 | |
| 42 | omit [Fintype ι] [DecidableEq ι] in |
| 43 | lemma rectangle (hi : Moves H) (i j k : ι) (P Q : Square κ) : (H i * P * (H j).transpose) * (H j*Q*(H k).transpose)=H i*(P*Q)*(H k).transpose := by |
| 44 | simp only [Matrix.mul_assoc] |
| 45 | rw [← Matrix.mul_assoc ((H j).transpose),hi,Matrix.one_mul] |
| 46 | omit [DecidableEq ι] [Fintype ι] in |
| 47 | lemma relaxed (hi : Moves H) (i : ι) (P : Square κ) : Matrix.trace (H i * P * (H i).transpose)=Matrix.trace P := by |
| 48 | rw [Matrix.trace_mul_comm,← Matrix.mul_assoc,hi,Matrix.one_mul] |
| 49 | |
| 50 | omit [Fintype ι] in |
| 51 | lemma colorless (hi : Moves H) : Elation H 1 1 := by |
| 52 | intro i j |
| 53 | have ht := @foundation ι κ _ _ i j |
| 54 | rw [ht] |
| 55 | by_cases he : i=j |
| 56 | · rw [he,if_pos rfl,Matrix.mul_one]; exact (mul_eq_one_comm.mp (hi j)).symm |
| 57 | rw [if_neg he]; simp |
| 58 | omit [DecidableEq ι] [DecidableEq κ] [Fintype ι] in |
| 59 | lemma add (h : Elation H A B) {C D : Square (ι×κ)} (hc : Elation H C D) : Elation H (A+C) (B+D) := by |
| 60 | intro i j |
| 61 | change block B i j+block D i j= H i*(block A i j+block C i j)*_ |
| 62 | rw [h,hc,Matrix.mul_add,Matrix.add_mul] |
| 63 | omit [DecidableEq ι] [DecidableEq κ] [Fintype ι] in |
| 64 | lemma scale (h : Elation H A B) (t : ℝ) : Elation H (t•A) (t•B) := by |
| 65 | intro i j; change t • block B i j = _*(t • block A i j)*_; rw [h,Matrix.mul_smul,Matrix.smul_mul] |
| 66 | omit [DecidableEq ι] [DecidableEq κ] [Fintype ι] in |
| 67 | lemma opposite (h : Elation H A B) : Elation H (-A) (-B) := by simpa only [neg_one_smul] using h.scale (-1) |
| 68 | omit [DecidableEq ι] in |
| 69 | lemma times (hi : Moves H) (h : Elation H A B) {C D : Square (ι×κ)} (hc : Elation H C D) : Elation H (A*C) (B*D) := by |
| 70 | intro i j; rw [factor,factor,Finset.mul_sum,Finset.sum_mul] |
| 71 | exact Finset.sum_congr rfl fun k _ => by rw [h,hc,rectangle hi] |
| 72 | omit [DecidableEq ι] [DecidableEq κ] [Fintype ι] in |
| 73 | lemma reflects (h : Elation H A B) : Elation H A.transpose B.transpose := by |
| 74 | intro i j; change (block B j i).transpose=_*(block A j i).transpose*_ |
| 75 | rw [h,Matrix.transpose_mul,Matrix.transpose_mul,transpose_transpose,Matrix.mul_assoc] |
| 76 | |
| 77 | -- Work only with *the positive reference* inverse; can show inverse mapping also as total function incl defaults, |
| 78 | -- but unnecessary here. |
| 79 | lemma inverted (hi : Moves H) (h : Elation H A B) (ha : IsUnit A.det) : Elation H A⁻¹ B⁻¹ := by |
| 80 | let C : Square (ι×κ) := Matrix.of fun i j=> (H i.1 * block A⁻¹ i.1 j.1 * (H j.1).transpose) i.2 j.2 |
| 81 | have hc : Elation H A⁻¹ C := fun _ _=> rfl |
| 82 | have ht := h.times hi hc |
| 83 | rw [Matrix.mul_nonsing_inv _ ha] at ht |
| 84 | have hp : B*C=1 := by ext ⟨i,u⟩ ⟨j,v⟩; exact congr_fun (congr_fun ((ht i j).trans (colorless hi i j).symm) u) v |
| 85 | rw [Matrix.inv_eq_right_inv hp]; exact hc |
| 86 | lemma shifted (hi : Moves H) (h : Elation H A B) (ha : A.PosDef) (t : ℝ) (ht : 0≤t) : Elation H (resolve A t) (resolve B t) := |
| 87 | (h.add ((colorless hi).scale t)).inverted hi (IsUnit.mk0 _ (shift_posDef ha ht).det_pos.ne') |
| 88 | end Elation |
| 89 | |
| 90 | def all (W : ι→Set ι) (k : ι×κ) : Set (ι×κ) := {j|j.1 ∈ W k.1} |
| 91 | |
| 92 | def restrict (W : Set ι) : (W×κ) ↪ ι×κ := Embedding.prodMap (Embedding.subtype _) (Embedding.refl _) |
| 93 | omit [DecidableEq ι] [DecidableEq κ] [Fintype ι] in |
| 94 | lemma select (h : Elation H A B) (W : Set ι) : Elation (H ∘ ((↑) : W→ι)) |
| 95 | (A.submatrix (restrict W) (restrict W)) (B.submatrix (restrict W) (restrict W)) := fun _ _=> h _ _ |
| 96 | |
| 97 | def within (W : Set ι) : (W × κ) ≃ {x : ι×κ | x.1 ∈ W} where |
| 98 | toFun v:= ⟨restrict W v,v.1.2⟩ |
| 99 | invFun v:= (⟨v.val.1,v.2⟩,v.val.2) |
| 100 | left_inv _:=rfl |
| 101 | right_inv _:=rfl |
| 102 | |
| 103 | lemma read_pie (W : ι→Set ι) (A : Square (ι×κ)) (t : ℝ) (i j : ι) (hi : i∈ W j) (hj : j∈W j) : |
| 104 | block (pie (all W) A t) i j=block (resolve (A.submatrix (restrict (W j)) (restrict (W j))) t) ⟨i,hi⟩ ⟨j,hj⟩ := by |
| 105 | ext u v; unfold block |
| 106 | rw [of_apply,of_apply,pie_read (all W) A t (i,u) (j,v) hi hj] |
| 107 | let g : (W j × κ) ≃ all W (j,v) := within (W j) |
| 108 | have he:= resolve_equiv g (Schur.principal A (all W (j,v))) t |
| 109 | exact (congr_fun (congr_fun he (⟨i,hi⟩,u)) (⟨j,hj⟩,v)).symm |
| 110 | lemma closed_pie (W : ι → Set ι) (A : Square (ι×κ)) (t : ℝ) (i j : ι) (hx : i∉W j) : block (pie (all W) A t) i j=0 := Matrix.ext fun _ _=> pie_miss _ _ _ _ _ hx |
| 111 | lemma caught (W : ι→Set ι) (hw : ∀ i,i∈W i) (hi : Moves H) (h : Elation H A B) (ha : A.PosDef) (t : ℝ) (ht : 0≤t) : |
| 112 | Elation H (pie (all W) A t) (pie (all W) B t) := by |
| 113 | intro i j; by_cases he : i∈W j |
| 114 | · rw [read_pie _ _ _ i j he (hw j),read_pie _ _ _ i j he (hw j)] |
| 115 | exact (select h _).shifted (fun x=>hi x.val) (ha.submatrix (restrict _).injective) t ht (⟨i,he⟩:W j) (⟨j,hw j⟩:W j) |
| 116 | rw [closed_pie _ _ _ _ _ he,closed_pie _ _ _ _ _ he]; simp |
| 117 | lemma circles (W : ι→Set ι) (hw : ∀ i,i∈W i) (hi : Moves H) (h : Elation H A B) (ha : A.PosDef) (t : ℝ) (ht : 0≤t) : |
| 118 | Elation H (defect (all W) A t) (defect (all W) B t) := by |
| 119 | unfold defect; rw [sub_eq_add_neg,sub_eq_add_neg] |
| 120 | exact ((h.add ((Elation.colorless hi).scale t)).times hi (caught W hw hi h ha t ht)).add ((Elation.colorless hi).opposite) |
| 121 | lemma cursed (W : ι→Set ι) (hw : ∀ i,i∈W i) (hi : Moves H) (h : Elation H A B) (ha : A.PosDef) : |
| 122 | Elation H (excess (all W) A) (excess (all W) B) := by |
| 123 | unfold excess; rw [sym_cloud,sym_cloud,sub_eq_add_neg,sub_eq_add_neg] |
| 124 | have he := caught W hw hi h ha 0 le_rfl |
| 125 | exact (h.times hi ((he.add he.reflects).scale _)).add (Elation.colorless hi).opposite |
| 126 | end YM.AnalyticBridge.RelativeLogdet.Paint |