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.Push.LOOP_COEFFICIENT.Chain |
| 2 | import YM.Push.LOOP_COEFFICIENT.LogDet |
| 3 | import YM.Push.LOOP_COEFFICIENT.Polar |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # Product, inversion and log-determinant identities for real matrices complexified |
| 8 | -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.Push.Loops |
| 12 | open Function Filter Set Matrix Bloch |
| 13 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius |
| 14 | variable {e m n k l : Type} |
| 15 | |
| 16 | def cmat : Matrix m n ℝ →ₗ[ℝ] Matrix m n ℂ := Complex.ofRealCLM.toLinearMap.mapMatrix |
| 17 | lemma cmat_apply (M : Matrix m n ℝ) : cmat M = approached M := rfl |
| 18 | variable [Fintype m] [Fintype n] [Fintype k] [Fintype l] [DecidableEq m] [DecidableEq n] |
| 19 | |
| 20 | omit [Fintype m] [Fintype l] [DecidableEq m] [DecidableEq n] in |
| 21 | lemma cmat_mul (M : Matrix m k ℝ) (N : Matrix k l ℝ) : cmat (M * N) = cmat M * cmat N := Bloch.prom_mul M N |
| 22 | |
| 23 | @[simp] lemma cmat_one : cmat (1 : Matrix m m ℝ) = 1 := Complex.ofRealHom.mapMatrix.map_one |
| 24 | |
| 25 | lemma cmat_unit {M : Matrix m m ℝ} (h : IsUnit M) : IsUnit (cmat M) := h.map Complex.ofRealHom.mapMatrix |
| 26 | |
| 27 | lemma cmat_inv {M : Matrix m m ℝ} (h : IsUnit M) : cmat M⁻¹ = (cmat M)⁻¹ := |
| 28 | (Matrix.inv_eq_right_inv (by rw [← cmat_mul,M.mul_nonsing_inv (M.isUnit_iff_isUnit_det.mp h), cmat_one])).symm |
| 29 | |
| 30 | omit [DecidableEq m] in |
| 31 | lemma cmat_trace (M : Matrix m m ℝ) : (cmat M).trace = (M.trace : ℂ) := by simp [cmat_apply,approached, Matrix.trace] |
| 32 | |
| 33 | omit [DecidableEq n] in |
| 34 | lemma cvec_dot (v w : n → ℝ) : cvec v ⬝ᵥ cvec w = ((v ⬝ᵥ w : ℝ) : ℂ) := by simp [dotProduct,cvec] |
| 35 | |
| 36 | omit [Fintype m] [DecidableEq m] [DecidableEq n] in |
| 37 | lemma cmat_mulVec (M : Matrix m n ℝ) (v : n → ℝ) : cmat M *ᵥ cvec v = cvec (M *ᵥ v) := funext fun _ => cvec_dot .. |
| 38 | |
| 39 | def actualMatrix (f : (m → ℝ) → Matrix n k ℝ) : Jet m (Matrix n k ℂ) := actual cmat f |
| 40 | |
| 41 | def actualScalar (f : (m → ℝ) → ℝ) : Jet m ℂ := actual Complex.ofRealAm.toLinearMap f |
| 42 | |
| 43 | def matrixMulLinear (m n k 𝕜 : Type) [Fintype n] [Field 𝕜] : Matrix m n 𝕜 →ₗ[𝕜] Matrix n k 𝕜 →ₗ[𝕜] Matrix m k 𝕜 := |
| 44 | LinearMap.mk₂ 𝕜 (· * ·) Matrix.add_mul Matrix.smul_mul Matrix.mul_add (fun a b c => Matrix.mul_smul b a c) |
| 45 | |
| 46 | def matrixMulCLM (m n k : Type) [Fintype m] [Fintype n] [Fintype k] : Matrix m n ℝ →L[ℝ] Matrix n k ℝ →L[ℝ] Matrix m k ℝ := |
| 47 | (LinearMap.toContinuousLinearMap.toLinearMap.comp (matrixMulLinear m n k ℝ)).toContinuousLinearMap |
| 48 | |
| 49 | omit [DecidableEq n] in |
| 50 | lemma actualMatrix_mul {f : (m → ℝ) → Matrix n k ℝ} {g : (m → ℝ) → Matrix k l ℝ} (hf : ContDiffAt ℝ ω f 0) (hg : ContDiffAt ℝ ω g 0) : |
| 51 | actualMatrix (fun v => f v * g v) = Jet.bilin (matrixMulLinear n k l ℂ) (actualMatrix f) (actualMatrix g) := |
| 52 | actual_bilin (E:= Matrix n k ℂ) (F:=Matrix k l ℂ) (K:=Matrix n l ℂ) cmat cmat cmat (matrixMulCLM n k l) (matrixMulLinear n k l ℂ) hf hg cmat_mul |
| 53 | |
| 54 | namespace Jet |
| 55 | |
| 56 | /-- Formal inverse jet. Its correctness for actual derivatives requires a nonsingular base. -/ |
| 57 | def reciprocal (J : Jet m (Matrix n n ℂ)) : Jet m (Matrix n n ℂ) := |
| 58 | let C := Jet.const J.base⁻¹ |
| 59 | let H : Jet m (Matrix n n ℂ) := ⟨0,J.lin,J.quad⟩ |
| 60 | let T := bilin (matrixMulLinear n n n ℂ) |
| 61 | C.add <| (T (T (C.push (-LinearMap.id)) H) C).add <| T (T (T (T C H) C) H) C |
| 62 | |
| 63 | omit [Fintype m] [DecidableEq m] in |
| 64 | lemma reciprocal_lin (J : Jet m (Matrix n n ℂ)) (x) : |
| 65 | J.reciprocal.lin x = -(J.base⁻¹ * J.lin x * J.base⁻¹) := by |
| 66 | simp [reciprocal, Jet.add, matrixMulLinear, Jet.push, Jet.const, Jet.bilin] |
| 67 | |
| 68 | omit [Fintype m] [DecidableEq m] in |
| 69 | lemma reciprocal_quad (J : Jet m (Matrix n n ℂ)) (x y) : |
| 70 | let C := J.base⁻¹ |
| 71 | J.reciprocal.quad x y = -(C * J.quad x y * C) + C * J.lin x * C * J.lin y * C + C * J.lin y * C * J.lin x * C := by |
| 72 | simp [reciprocal, Jet.add, Jet.bilin, matrixMulLinear, Jet.push, Jet.const, add_assoc] |
| 73 | end Jet |
| 74 | |
| 75 | lemma actualMatrix_inv {f : (m → ℝ) → Matrix n n ℝ} (hf : ContDiffAt ℝ ω f 0) (h : IsUnit (f 0)) : |
| 76 | actualMatrix (fun v => (f v)⁻¹) = (actualMatrix f).reciprocal := by |
| 77 | let g := fun v => (f v)⁻¹ |
| 78 | have hg : ContDiffAt ℝ ω g 0 := (inv_contDiffAt _ ((f 0).isUnit_iff_isUnit_det.mp h)).comp 0 hf |
| 79 | have h1 : (fun v => f v * g v) =ᶠ[𝓝 0] fun _ => (1:Matrix n n ℝ) := by |
| 80 | filter_upwards [(det_contDiff.contDiffAt.comp (f:=f) 0 hf).continuousAt.eventually (isOpen_ne.mem_nhds ((f 0).isUnit_iff_isUnit_det.mp h).ne_zero)] with x hx |
| 81 | exact (f x).mul_nonsing_inv (isUnit_iff_ne_zero.mpr hx) |
| 82 | have hJ := actual_congr cmat h1 |
| 83 | change actualMatrix _ = _ at hJ |
| 84 | rw [actualMatrix_mul hf hg, actual_const] at hJ |
| 85 | let F := actualMatrix f |
| 86 | let H := actualMatrix g |
| 87 | have h0 : H.base = F.base⁻¹ := cmat_inv h |
| 88 | have hc : F.base⁻¹ * F.base = 1 := F.base.nonsing_inv_mul (F.base.isUnit_iff_isUnit_det.mp (cmat_unit h)) |
| 89 | have he (x) : F.base * H.lin x = -(F.lin x * F.base⁻¹) := eq_neg_of_add_eq_zero_left (by rw [← h0]; exact congr_arg (fun x' => x'.lin x) hJ) |
| 90 | have hli (x) : H.lin x = -(F.base⁻¹ * F.lin x * F.base⁻¹) := by |
| 91 | have hq := congr_arg (F.base⁻¹ * ·) (he x); rwa [← mul_assoc, hc, one_mul,mul_neg,← mul_assoc] at hq |
| 92 | apply Jet.ext |
| 93 | · simpa [Jet.reciprocal, Jet.add, Jet.const,Jet.bilin, matrixMulLinear,Jet.push, F, H] using! h0 |
| 94 | · exact LinearMap.ext fun x => (hli x).trans (F.reciprocal_lin x).symm |
| 95 | refine LinearMap.ext fun x => LinearMap.ext fun y => ?_ |
| 96 | have eq := congr_arg (fun x' => x'.quad x y) hJ |
| 97 | change F.base * H.quad x y + F.lin x * H.lin y + F.lin y * H.lin x + F.quad x y * H.base = 0 at eq |
| 98 | have hz := congr_arg (F.base⁻¹ * ·) eq |
| 99 | rw [Jet.reciprocal_quad]; change H.quad x y = _ |
| 100 | rw [mul_add,mul_add,mul_add,← mul_assoc _ F.base, hc,one_mul,mul_zero,h0,hli x,hli y,mul_neg,mul_neg,mul_neg,mul_neg] at hz |
| 101 | simp only [← mul_assoc] at hz |
| 102 | rw [eq_neg_of_add_eq_zero_left hz |> eq_sub_of_add_eq |> eq_sub_of_add_eq]; abel |
| 103 | |
| 104 | omit [DecidableEq n] in |
| 105 | lemma actualMatrix_pre [Fintype e] [DecidableEq e] {f : (e → ℝ) → Matrix n k ℝ} (hf : ContDiffAt ℝ ω f 0) (M : Matrix e m ℝ) : |
| 106 | actualMatrix (fun v => f (M *ᵥ v)) = (actualMatrix f).pre (cmat M).mulVecLin := |
| 107 | actual_pre cmat hf (L:=M.mulVecLin.toContinuousLinearMap) (T:=(cmat M).mulVecLin) (fun v => (cmat_mulVec M v).symm) |
| 108 | |
| 109 | lemma actualScalar_quad (f : (m → ℝ) → ℝ) (x y) : |
| 110 | (actualScalar f).quad x y = x ⬝ᵥ (cmat (bilinearAt f 0) *ᵥ y) := by |
| 111 | rw [← Matrix.toLinearMap₂'_apply',show (actualScalar f).quad = _ from complex_ext₂ (L:=(actualScalar f).quad) ?_] |
| 112 | intro v w |
| 113 | rw [actualScalar, actual_mixed, ← bilinearAt_dotProduct, Matrix.toLinearMap₂'_apply', cmat_mulVec,cvec_dot]; rfl |
| 114 | |
| 115 | def logVariation (F : Jet m (Matrix n n ℂ)) : CSpace m →ₗ[ℂ] CSpace m →ₗ[ℂ] ℂ := |
| 116 | let H := matrixMulLinear n n n ℂ |
| 117 | let K := (H F.base⁻¹).comp F.lin |
| 118 | (F.quad.compr₂ (H F.base⁻¹) - H.compl₁₂ K K).compr₂ (Matrix.traceLinearMap _ ℂ _) |
| 119 | |
| 120 | omit [Fintype m] [DecidableEq m] in |
| 121 | lemma logVariation_apply (F : Jet m (Matrix n n ℂ)) (x y) : |
| 122 | logVariation F x y = (F.base⁻¹ * F.quad x y).trace - (F.base⁻¹ * F.lin x * F.base⁻¹ * F.lin y).trace := by |
| 123 | change (_ - ((F.base⁻¹ * F.lin x) * (F.base⁻¹ * F.lin y))).trace = _ |
| 124 | rw [trace_sub,← mul_assoc]; rfl |
| 125 | |
| 126 | lemma actualScalar_log {f : (m → ℝ) → Matrix n n ℝ} (hf : ContDiffAt ℝ ω f 0) (h : IsUnit (f 0)) : |
| 127 | (actualScalar (fun v => Real.log (f v).det)).quad = logVariation (actualMatrix f) := by |
| 128 | refine complex_ext₂ fun v w => ?_ |
| 129 | rw [actualScalar,actual_mixed,logVariation_apply,actualMatrix,actual_mixed,actual_real₁,actual_real₁,logdet_mixed hf ((f 0).isUnit_iff_isUnit_det.mp h)] |
| 130 | dsimp only [actual]; rw [← cmat_inv h,← cmat_mul,← cmat_mul,← cmat_mul,← cmat_mul,cmat_trace,cmat_trace] |
| 131 | change ((traceFee .. : ℝ) : ℂ) = _ |
| 132 | rw [traceFee, Complex.ofReal_sub]; rfl |
| 133 | end YM.Push.Loops |