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.Next.BOUNDARY.Coordinates |
| 2 | import YM.Next.FREE_KERNELS.Lifts |
| 3 | import YM.Next.SCHEDULE.Blocks |
| 4 | |
| 5 | /-! |
| 6 | # Real centered reference measure on the regular Z's. Physical counting |
| 7 | |
| 8 | Finite matrices; normalize including the determinant. This uses the |
| 9 | **one** joint law (E Lemma on shared invocations). Costs through the |
| 10 | precision gap, *not scaling that gap with the period*. Tilt estimate in |
| 11 | next file. Invoicing without any tacit Lebesgue-volume convention |
| 12 | for `.order` or Lie coordinates -- here use one copy per real orthonormal |
| 13 | Lie coordinate, connect to Haar/exponential chart separately. |
| 14 | |
| 15 | Tangent entry indices may be empty (can likewise complete the arrays |
| 16 | first with identity matrices on inactive coordinates). |
| 17 | -/ |
| 18 | set_option autoImplicit false |
| 19 | noncomputable section |
| 20 | namespace YM.AnalyticNext.ConnectedActivity.Centered |
| 21 | open Function MeasureTheory Filter Matrix |
| 22 | |
| 23 | open scoped Topology BigOperators ENNReal Matrix.Norms.Frobenius |
| 24 | variable {n : Type*} [Fintype n] [DecidableEq n] {A : Matrix n n ℝ} |
| 25 | |
| 26 | /-- Here `A` is precision, i.e. inverse of our chosen centered covariance. -/ |
| 27 | def heat (A : Matrix n n ℝ) (z : n → ℝ) := Real.exp (-(dotProduct z (A *ᵥ z))/2) |
| 28 | |
| 29 | omit [DecidableEq n] in |
| 30 | lemma heat_continuous (A : Matrix n n ℝ) : Continuous (heat A) := by |
| 31 | unfold heat dotProduct Matrix.mulVec |
| 32 | simp only [dotProduct]; fun_prop |
| 33 | |
| 34 | def unitVolume : ℝ := Real.sqrt (2*Real.pi) |
| 35 | |
| 36 | lemma unit_pos : 0 < unitVolume := by unfold unitVolume; positivity |
| 37 | |
| 38 | def bill (A : Matrix n n ℝ) : ℝ := unitVolume^(Fintype.card n) * Real.exp (-Real.log A.det/2) |
| 39 | |
| 40 | lemma bill_pos (A : Matrix n n ℝ) : 0 < bill A := by unfold bill; have h := unit_pos; positivity |
| 41 | |
| 42 | private lemma identity_mass (n : Type*) [Fintype n] [DecidableEq n] : |
| 43 | (∫ z : n → ℝ, heat 1 z) = unitVolume^(Fintype.card n) := by |
| 44 | let f (x : ℝ) := Real.exp (-(1/2)*x^2) |
| 45 | have h z : heat (1:Matrix n n ℝ) z = ∏ i, f (z i) := by |
| 46 | unfold f heat dotProduct; rw [Matrix.one_mulVec, ← Real.exp_sum, ← Finset.mul_sum] |
| 47 | simp_rw [pow_two]; ring_nf |
| 48 | have hf : (∫ w, f w) = unitVolume := by |
| 49 | dsimp only [f]; rw [integral_gaussian] |
| 50 | unfold unitVolume; ring_nf |
| 51 | simp_rw [h]; rw [integral_fintype_prod_volume_eq_pow (ι:=n) f,hf] |
| 52 | |
| 53 | open scoped MatrixOrder in |
| 54 | private lemma obtain_root (hp : A.PosDef) : ∃ B : Matrix n n ℝ, B.transpose * B = A := by |
| 55 | obtain ⟨B,hg⟩ := CStarAlgebra.nonneg_iff_eq_star_mul_self.mp hp.posSemidef.nonneg |
| 56 | exact ⟨B,hg.symm⟩ |
| 57 | |
| 58 | /-- Real change of variables -- no open choices of volume; SPD sufficient. -/ |
| 59 | theorem Gaussian_bill (hp : A.PosDef) : (∫ z : n → ℝ, heat A z) = bill A := by |
| 60 | obtain ⟨B,hB⟩ := obtain_root hp |
| 61 | have hs : B.det^2=A.det := by rw [← hB,Matrix.det_mul,Matrix.det_transpose,sq] |
| 62 | have ht := hp.det_pos |
| 63 | have hb : B.det ≠ 0 := by intro he; rw [he,zero_pow (by decide)] at hs; exact ht.ne hs |
| 64 | let f := fun x : n → ℝ => (Matrix.toLin' B) x |
| 65 | have hf : Measurable f := (LinearMap.continuous_of_finiteDimensional _).measurable |
| 66 | have hw : Measure.map f volume = ENNReal.ofReal |B.det⁻¹| • volume := |
| 67 | Real.map_matrix_volume_pi_eq_smul_volume_pi hb |
| 68 | have he : ∀ z : n → ℝ, heat A z = heat 1 (f z) := by |
| 69 | intro z; unfold heat; rw [← hB, ← Matrix.mulVec_mulVec, Matrix.dotProduct_transpose_mulVec, Matrix.one_mulVec]; rfl |
| 70 | have hu : Real.exp (-Real.log A.det/2) = |B.det⁻¹| := by |
| 71 | have hi : A.det=|B.det|^2 := ((hs.symm.trans (sq_abs B.det).symm)) |
| 72 | rw [hi, Real.log_pow] |
| 73 | norm_num only [Nat.cast_ofNat] |
| 74 | rw [show -(2*_) / 2 = - Real.log |B.det| by ring, Real.exp_neg, Real.exp_log (abs_pos.mpr hb), abs_inv] |
| 75 | calc |
| 76 | _ = ∫ z : n → ℝ, heat 1 (f z) := by simp_rw [he] |
| 77 | _ = ∫ z, heat 1 z ∂Measure.map f volume := (integral_map hf.aemeasurable (heat_continuous _).aestronglyMeasurable).symm |
| 78 | _ = _ := by rw [hw, MeasureTheory.integral_smul_measure,identity_mass,bill, hu, |
| 79 | ENNReal.toReal_ofReal (abs_nonneg _),smul_eq_mul,mul_comm] |
| 80 | |
| 81 | lemma heat_integrable (hp : A.PosDef) : Integrable (heat A) := |
| 82 | .of_integral_ne_zero ((Gaussian_bill hp) ▸ (bill_pos _).ne') |
| 83 | |
| 84 | def density (A : Matrix n n ℝ) (z : n → ℝ) := (bill A)⁻¹ * heat A z |
| 85 | |
| 86 | def law (A : Matrix n n ℝ) : Measure (n → ℝ) := volume.withDensity fun x => ENNReal.ofReal (density A x) |
| 87 | |
| 88 | lemma density_pos (A : Matrix n n ℝ) (z : n → ℝ) : 0 < density A z := |
| 89 | mul_pos (inv_pos.mpr (bill_pos A)) (Real.exp_pos _) |
| 90 | |
| 91 | lemma density_measurable (A : Matrix n n ℝ) : Measurable (density A) := |
| 92 | (measurable_const.mul (heat_continuous A).measurable) |
| 93 | |
| 94 | lemma normalized (hp : A.PosDef) : (∫ z, density A z) = 1 := by |
| 95 | unfold density; rw [integral_const_mul,Gaussian_bill hp, inv_mul_cancel₀ (bill_pos _).ne'] |
| 96 | |
| 97 | lemma probability (hp : A.PosDef) : IsProbabilityMeasure (law A) := by |
| 98 | constructor |
| 99 | rw [law, withDensity_apply _ MeasurableSet.univ, Measure.restrict_univ, |
| 100 | ← ofReal_integral_eq_lintegral_ofReal, normalized hp, ENNReal.ofReal_one] |
| 101 | · exact (heat_integrable hp).const_mul _ |
| 102 | filter_upwards with x using (density_pos A x).le |
| 103 | |
| 104 | lemma integrates {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] (A : Matrix n n ℝ) |
| 105 | (g : (n → ℝ) → X) : (∫ z, g z ∂law A) = ∫ z, density A z • g z := by |
| 106 | simp only [law, integral_withDensity_eq_integral_toReal_smul (density_measurable _).ennreal_ofReal |
| 107 | (show ∀ᵐ z ∂volume, ENNReal.ofReal (density A z)<⊤ from Eventually.of_forall fun _ => ENNReal.ofReal_lt_top), |
| 108 | ENNReal.toReal_ofReal (density_pos ..).le] |
| 109 | |
| 110 | lemma pays_L1 {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] (A : Matrix n n ℝ) |
| 111 | (g : (n → ℝ) → X) : Integrable g (law A) ↔ Integrable (fun z => density A z • g z) := by |
| 112 | let b := fun z => Real.toNNReal (density A z) |
| 113 | have he : Measurable b := (density_measurable _).real_toNNReal |
| 114 | rw [law]; change Integrable g (volume.withDensity (fun z => (b z:ℝ≥0∞))) ↔ _ |
| 115 | rw [integrable_withDensity_iff_integrable_smul he] |
| 116 | congr! 2 with z |
| 117 | change (b z:ℝ) • g z = _ |
| 118 | rw [show (b z:ℝ) = density A z from Real.coe_toNNReal _ (density_pos ..).le] |
| 119 | end YM.AnalyticNext.ConnectedActivity.Centered |