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.Analysis.Polydisc |
| 2 | import YM.Push.FREE_RESOLVENT.Gap |
| 3 | import YM.Push.FREE_RESOLVENT.Polar |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # Chart projections and full positive coordinates |
| 8 | |
| 9 | Identity-complete the constrained precision and include the shift on that |
| 10 | identity too. The root-chart kernel itself can still use zero *extension* |
| 11 | as required for tangent probes; exact factors below. Use for comparing at |
| 12 | changed tags after forgetting labels but not before retaining the two |
| 13 | references to the gauge data. No Dirichlet inversion at an arbitrary exterior |
| 14 | field is asserted here; only the indicated counting submatrices. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.FreeResolvent |
| 20 | open Matrix Filter Function Mark TestD |
| 21 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators |
| 22 | variable {α β : Type*} [Fintype α] [DecidableEq α] [Fintype β] [DecidableEq β] |
| 23 | |
| 24 | namespace Shell |
| 25 | variable (e : β ↪ α) |
| 26 | |
| 27 | def rim : Matrix α α ℝ := insertion e*(insertion e).transpose |
| 28 | def off : Matrix α α ℝ := 1-rim e |
| 29 | |
| 30 | /-- Full size affine Gram completed to I. Leave off identity when returning |
| 31 | only the slice covariance. -/ |
| 32 | def slice (A : Matrix α α ℝ) := rim e*A*rim e |
| 33 | def pad (A : Matrix α α ℝ) := slice e A + off e |
| 34 | |
| 35 | omit [Fintype β] in |
| 36 | lemma pin : (insertion e).transpose * insertion e = 1 := insertion.orthogonal _ e.injective |
| 37 | omit [DecidableEq β] in |
| 38 | lemma sliced (A : Matrix α α ℝ) : slice e A = insertion e*(A.submatrix e e)*(insertion e).transpose := by |
| 39 | rw [slice,rim,← insertion.compress]; simp only [Matrix.mul_assoc] |
| 40 | |
| 41 | omit [Fintype α] [DecidableEq β] in |
| 42 | lemma clockwise : (rim e).transpose=rim e := by rw [rim,Matrix.transpose_mul,transpose_transpose] |
| 43 | omit [Fintype α] [DecidableEq β] in |
| 44 | lemma undo : (off e).transpose=off e := by rw [off,transpose_sub,transpose_one,clockwise] |
| 45 | lemma on_on : rim e * rim e=rim e := by |
| 46 | unfold rim; rw [Matrix.mul_assoc,← Matrix.mul_assoc (insertion e).transpose,pin, Matrix.one_mul] |
| 47 | lemma off_off : off e*off e=off e := by unfold off; rw [Matrix.sub_mul, Matrix.mul_sub (rim e), on_on,Matrix.mul_one,sub_self,Matrix.one_mul]; simp |
| 48 | |
| 49 | |
| 50 | lemma enters : rim e*insertion e=insertion e := by |
| 51 | rw [rim,Matrix.mul_assoc,pin,Matrix.mul_one] |
| 52 | lemma barred : off e*insertion e=0 := by rw [off, Matrix.sub_mul,Matrix.one_mul,enters,sub_self] |
| 53 | lemma barred_left : (insertion e).transpose*off e=0 := by rw [← undo,← Matrix.transpose_mul, barred]; simp |
| 54 | lemma reaches (A : Matrix α α ℝ) : (pad e A).submatrix e e=A.submatrix e e := by |
| 55 | rw [← insertion.compress, pad,sliced,Matrix.mul_add, Matrix.add_mul,Matrix.mul_assoc (insertion e).transpose _ _] |
| 56 | simp [Matrix.mul_assoc,pin,barred_left]; rw [← Matrix.mul_assoc,pin]; simp |
| 57 | |
| 58 | -- defeq insertion (coerced). Full determinant not needed. |
| 59 | lemma gap {A : Matrix α α ℝ} {r : ℝ} (h : Gap (A.submatrix e e) r) : Gap (pad e A) (min r 1) := by |
| 60 | constructor; intro v |
| 61 | let b := (insertion e).transpose *ᵥ v |
| 62 | let x := off e *ᵥ v |
| 63 | have hw : dotProduct x x=dotProduct v x := calc |
| 64 | _ = dotProduct v ((off e).transpose *ᵥ x) := by rw [dotProduct_transpose_mulVec] |
| 65 | _ = _ := by rw [undo]; unfold x; rw [Matrix.mulVec_mulVec,off_off] |
| 66 | have hv : dotProduct v v = dotProduct b b + dotProduct x x := calc |
| 67 | _ = dotProduct v (insertion e *ᵥ b+x) := by |
| 68 | congr 1; unfold b x off rim; rw [Matrix.sub_mulVec, Matrix.mulVec_mulVec v,Matrix.one_mulVec]; abel |
| 69 | _ = _ := by |
| 70 | rw [dotProduct_add, hw] |
| 71 | congr 1 |
| 72 | calc dotProduct v _ = dotProduct (insertion e *ᵥ b) v := dotProduct_comm .. |
| 73 | _ = dotProduct b b := insertion.dot_push .. |
| 74 | have hx : dotProduct v (slice e A *ᵥ v)=dotProduct b (A.submatrix e e *ᵥ b) := by |
| 75 | rw [sliced,← Matrix.mulVec_mulVec, ← Matrix.mulVec_mulVec, dotProduct_comm v]; exact insertion.dot_push _ _ _ |>.trans (dotProduct_comm ..) |
| 76 | rw [pad,Matrix.add_mulVec,dotProduct_add,hx,show dotProduct v (off e*ᵥ v)=_ from hw.symm,hv,mul_add] |
| 77 | exact add_le_add ((mul_le_mul_of_nonneg_right (min_le_left ..) (normSum_nn b)).trans (h.lower b)) |
| 78 | (mul_le_of_le_one_left (normSum_nn x) (min_le_right ..)) |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | -- entry mask (including inverse kernels on trees). Proof no color sup assumptions. |
| 85 | open scoped Classical in |
| 86 | lemma indicator (i j : α) : rim e i j = if i=j ∧ i ∈ Set.range e then 1 else 0 := by |
| 87 | classical |
| 88 | by_cases he : i=j |
| 89 | · subst j; by_cases H : i∈ Set.range e |
| 90 | · obtain ⟨a,rfl⟩ := H |
| 91 | have hv := enters e |
| 92 | -- simpler explicit |
| 93 | rw [if_pos (by simp), rim] |
| 94 | simp [Matrix.mul_apply,insertion,e.injective.eq_iff] |
| 95 | rw [if_neg (not_and_of_not_right _ H)] |
| 96 | unfold rim; refine Finset.sum_eq_zero fun j _ => ?_; simp [insertion,show e j≠i from fun h => H ⟨j,h⟩] |
| 97 | rw [if_neg (by simp [he])]; unfold rim; refine Finset.sum_eq_zero fun k _ => ?_; unfold insertion; simp only [transpose_apply, of_apply] |
| 98 | by_cases e k = i <;> simp [*] |
| 99 | open scoped Classical in |
| 100 | lemma off_test (i j : α) : off e i j = if i=j ∧ i ∉ Set.range e then 1 else 0 := by |
| 101 | classical |
| 102 | rw [off,Matrix.sub_apply,Matrix.one_apply, indicator]; split_ifs <;> grind |
| 103 | open scoped Classical in |
| 104 | lemma slice_test (A : Matrix α α ℝ) (i j) : slice e A i j = if i ∈ Set.range e ∧ j ∈ Set.range e then A i j else 0 := by |
| 105 | classical |
| 106 | split |
| 107 | next h => |
| 108 | obtain ⟨⟨a,rfl⟩,⟨b,rfl⟩⟩ := h |
| 109 | have he : pad e A (e a) (e b)= A (e a) (e b) := congr_fun (congr_fun (reaches e A) a) b |
| 110 | rw [pad,Matrix.add_apply,off_test] at he; simpa using he |
| 111 | next h => |
| 112 | unfold slice; rw [Matrix.mul_apply]; refine Finset.sum_eq_zero fun k _ => ?_ |
| 113 | rcases not_and_or.mp h with h|h |
| 114 | · apply mul_eq_zero_of_left; rw [Matrix.mul_apply]; refine Finset.sum_eq_zero fun w _ => ?_ |
| 115 | rw [indicator,if_neg (not_and_of_not_right _ h),zero_mul] |
| 116 | apply mul_eq_zero_of_right; rw [indicator,if_neg]; rintro ⟨rfl,h'⟩; exact h h' |
| 117 | |
| 118 | end Shell |
| 119 | end YM.FreeResolvent |