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.Work.A15.Transfer |
| 2 | |
| 3 | /-! |
| 4 | # Averaging the stress |
| 5 | |
| 6 | In the finite-dimensional label spaces. In particular all the D, conservation, |
| 7 | and angular-shell tests we pass through the average operate on these very |
| 8 | spaces; no implicit covariance or estimate on choices of representatives. |
| 9 | See also `Tensor`, `Shell`, `Transfer` here for the component action, sense of |
| 10 | flux and verification at each point of the group respectively. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Work.A15 |
| 16 | |
| 17 | open MeasureTheory Table |
| 18 | open scoped BigOperators Topology Matrix.Norms.Frobenius |
| 19 | |
| 20 | variable {G : Gauge} {L : Register G} {S : Table L} |
| 21 | |
| 22 | theorem normalize_flux {X : Rotation S} {V : DiffPlan S} {p : Climb.Parts S} |
| 23 | {Y : Ward.SpinRows S} (H : S.Hierarchy) (J : S.Stress) (c : ℝ) |
| 24 | (h : Climb.Crystal H V J p Y c) (e : X.lie = c⁻¹ • Y) : |
| 25 | StressLaws S (((c⁻¹ : ℝ) : ℂ) • J) V.deriv X.lie where |
| 26 | translation := by |
| 27 | intro n x hx q χ w b d B |
| 28 | have he : p d b B = (c : ℂ) • V.deriv d b B := |
| 29 | Eq.trans (congrArg (fun f : Climb.Vector d S => f b B) (h.sizes d)) |
| 30 | (RCLike.real_smul_eq_coe_smul (K := ℂ) c _) |
| 31 | rw [← translationFlux_apply hx w H.smooth, map_smul, translationFlux_apply, |
| 32 | h.pre.local_.raw.translation hx q w, ← front_apply, ← map_smul, he, Complex.ofReal_inv, |
| 33 | inv_smul_smul₀, front_apply] |
| 34 | exact_mod_cast h.positive |
| 35 | rotation := by |
| 36 | intro n x hx q χ w g d B |
| 37 | have he : X.lie d g B = ((c⁻¹ : ℝ) : ℂ) • Y d g B := by |
| 38 | rw [e] |
| 39 | exact RCLike.real_smul_eq_coe_smul (K := ℂ) c⁻¹ _ |
| 40 | rw [← angularFlux_apply hx w H.smooth, map_smul, angularFlux_apply, |
| 41 | h.pre.local_.raw.rotation hx q w, ← front_apply, ← map_smul, ← he, front_apply] |
| 42 | |
| 43 | section Haar |
| 44 | |
| 45 | -- Parallel to `Gauge.compactGaugeU` / `Gauge.probHaar`. Here the group for |
| 46 | -- the average is orthogonal (on E4), *not* the gauge group. |
| 47 | private lemma sq_frobenius (A : M4) : ‖A‖ ^ 2 = (A * star A).trace := by |
| 48 | rw [Matrix.frobenius_norm_def, ← Real.sqrt_eq_rpow, Real.sq_sqrt] |
| 49 | · simp_rw [Real.rpow_two, Matrix.trace, Matrix.diag_apply, Matrix.mul_apply, |
| 50 | Matrix.star_eq_conjTranspose, Matrix.conjTranspose_apply, star_trivial, |
| 51 | Real.norm_eq_abs, sq_abs, pow_two] |
| 52 | simp_rw [Real.rpow_two] |
| 53 | exact Finset.sum_nonneg fun _ _ ↦ Finset.sum_nonneg fun _ _ ↦ sq_nonneg _ |
| 54 | |
| 55 | theorem compact_ortho : CompactSpace Ortho := by |
| 56 | refine isCompact_iff_compactSpace.mp ?_ |
| 57 | letI : ProperSpace M4 := FiniteDimensional.proper ℝ _ |
| 58 | refine (isCompact_closedBall (0 : M4) 2).of_isClosed_subset isClosed_unitary ?_ |
| 59 | intro A h |
| 60 | have hm := sq_frobenius A |
| 61 | rw [Matrix.mem_unitaryGroup_iff.mp h, Matrix.trace_one, Fintype.card_fin] at hm |
| 62 | rw [Metric.mem_closedBall, dist_zero_right] |
| 63 | norm_num at hm |
| 64 | nlinarith [hm] |
| 65 | |
| 66 | attribute [local instance] compact_ortho |
| 67 | |
| 68 | local instance : SecondCountableTopology Ortho := by |
| 69 | haveI : SecondCountableTopology M4 := |
| 70 | inferInstanceAs (SecondCountableTopology (Axis → Axis → ℝ)) |
| 71 | exact inferInstanceAs |
| 72 | (SecondCountableTopology ↥((Matrix.unitaryGroup Axis ℝ : Set M4))) |
| 73 | |
| 74 | local instance : MeasurableSpace Ortho := borel Ortho |
| 75 | local instance : BorelSpace Ortho := ⟨rfl⟩ |
| 76 | |
| 77 | private def allOrthogonal : TopologicalSpace.PositiveCompacts Ortho := |
| 78 | ⟨⟨Set.univ, isCompact_univ⟩, by simp⟩ |
| 79 | |
| 80 | private def μ : Measure Ortho := Measure.haarMeasure allOrthogonal |
| 81 | local instance : μ.IsHaarMeasure := by unfold μ; infer_instance |
| 82 | local instance : IsProbabilityMeasure μ := |
| 83 | ⟨@Measure.haarMeasure_self Ortho _ _ _ _ _ allOrthogonal⟩ |
| 84 | |
| 85 | /-- Component-and-label average, with Haar of total mass one. -/ |
| 86 | def averageStress (X : Rotation S) (J : S.Stress) := ∫ K : Ortho, rotateStress X K J ∂μ |
| 87 | |
| 88 | variable {V : DiffPlan S} {H : S.RealSpin} {X : Rotation S} (h : X.Laws V H) (J : S.Stress) |
| 89 | include h |
| 90 | |
| 91 | private lemma orbit_integrable : Integrable (fun K : Ortho => rotateStress X K J) μ := by |
| 92 | have ent (a b : Axis) : Continuous fun K : Ortho => K.val a b := by |
| 93 | have hv : Continuous fun K : Ortho => (K.val : Axis → Axis → ℝ) := continuous_subtype_val |
| 94 | exact (continuous_apply _).comp ((continuous_apply _).comp hv) |
| 95 | have hf : Continuous fun K => rotateStress X K J := by |
| 96 | refine continuous_pi fun a => continuous_pi fun b => ?_ |
| 97 | simp_rw [rotateStress_apply] |
| 98 | refine continuous_finsetSum _ fun i _ => continuous_finsetSum _ fun j _ => |
| 99 | (Complex.continuous_ofReal.comp ((ent a i).mul (ent b j))).smul ?_ |
| 100 | exact h.spin 4 (J i j) |
| 101 | exact hf.integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _) |
| 102 | |
| 103 | private lemma map_average {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 104 | (P : S.Stress →ₗ[ℝ] E) : |
| 105 | P (averageStress X J) = ∫ K : Ortho, P (rotateStress X K J) ∂μ := by |
| 106 | exact ((LinearMap.toContinuousLinearMap P).integral_comp_comm (orbit_integrable h J)).symm |
| 107 | |
| 108 | private theorem average_fixed (K : Ortho) : |
| 109 | rotateStress X K (averageStress X J) = averageStress X J := calc |
| 110 | _ = ∫ P : Ortho, rotateStress X K (rotateStress X P J) ∂μ := |
| 111 | map_average h J ((rotateStress X K).restrictScalars ℝ) |
| 112 | _ = ∫ P : Ortho, rotateStress X (K*P) J ∂μ := by simp_rw [rotate_mul h] |
| 113 | _ = averageStress X J := |
| 114 | (measurePreserving_mul_left μ K).integral_comp (Homeomorph.mulLeft K).measurableEmbedding |
| 115 | (fun P : Ortho => rotateStress X P J) |
| 116 | |
| 117 | theorem tensorial_average : Tensorial X (averageStress X J) := |
| 118 | tensorial_of_fixed X _ (average_fixed h J) |
| 119 | |
| 120 | -- For keeping the real form. No Hilbert norm on the quotient is needed. |
| 121 | omit h in |
| 122 | private def realConjugateComponent (H : S.RealSpin) (a b : Axis) : S.Stress →ₗ[ℝ] S.Field 4 where |
| 123 | toFun U := S.conj H 4 (U a b) |
| 124 | map_add' u v := (S.conj H 4).map_add (u a b) (v a b) |
| 125 | map_smul' r u := by |
| 126 | change S.conj H 4 (r • u a b) = r • S.conj H 4 (u a b) |
| 127 | simp only [RCLike.real_smul_eq_coe_smul (K := ℂ), map_smulₛₗ] |
| 128 | simp |
| 129 | |
| 130 | private lemma average_component (a b : Axis) : |
| 131 | averageStress X J a b = ∫ K : Ortho, rotateStress X K J a b ∂μ := |
| 132 | map_average h J ((component (S := S) a b).restrictScalars ℝ) |
| 133 | |
| 134 | theorem conserved_average (c : Conserved V H J) : Conserved V H (averageStress X J) where |
| 135 | symmetric a b := by |
| 136 | rw [average_component h, average_component h] |
| 137 | exact integral_congr_ae (Filter.Eventually.of_forall fun K => |
| 138 | (rotate_conserved h K J c).symmetric a b) |
| 139 | real a b := calc |
| 140 | _ = ∫ K : Ortho, S.conj H 4 (rotateStress X K J a b) ∂μ := |
| 141 | map_average h J (realConjugateComponent H a b) |
| 142 | _ = ∫ K : Ortho, rotateStress X K J a b ∂μ := |
| 143 | integral_congr_ae (Filter.Eventually.of_forall fun K => |
| 144 | (rotate_conserved h K J c).real a b) |
| 145 | _ = _ := (average_component h J a b).symm |
| 146 | divergence b := by |
| 147 | calc |
| 148 | _ = divergenceMap V b (averageStress X J) := (divergenceMap_apply V b _).symm |
| 149 | _ = ∫ K : Ortho, divergenceMap V b (rotateStress X K J) ∂μ := |
| 150 | map_average h J ((divergenceMap V b).restrictScalars ℝ) |
| 151 | _ = ∫ _ : Ortho, (0 : S.Field (4+1)) ∂μ := |
| 152 | integral_congr_ae (Filter.Eventually.of_forall fun K => |
| 153 | (divergenceMap_apply V b _).trans ((rotate_conserved h K J c).divergence b)) |
| 154 | _ = 0 := integral_zero _ _ |
| 155 | |
| 156 | omit h in |
| 157 | theorem stressLaws_average (A : Bid.A10) (hc : S.Hierarchy) (u : X.Laws V hc.spin) |
| 158 | (xO : X.Oriented S) (c : StressLaws S J V.deriv X.lie) : |
| 159 | StressLaws S (averageStress X J) V.deriv X.lie where |
| 160 | translation := by |
| 161 | intro n x hx q χ w b d B |
| 162 | calc |
| 163 | _ = translationFlux hx w hc.smooth q B b (averageStress X J) := |
| 164 | (translationFlux_apply hx w hc.smooth q B b _).symm |
| 165 | _ = ∫ K : Ortho, translationFlux hx w hc.smooth q B b (rotateStress X K J) ∂μ := |
| 166 | map_average u J ((translationFlux hx w hc.smooth q B b).restrictScalars ℝ) |
| 167 | _ = ∫ _ : Ortho, S.useAt S x (Fin.cons ⟨d+1,V.deriv d b B⟩ q) ∂μ := |
| 168 | integral_congr_ae (Filter.Eventually.of_forall fun K => |
| 169 | (translationFlux_apply hx w hc.smooth q B b _).trans |
| 170 | ((rotate_flux A hc u xO K J c).translation hx q w b d B)) |
| 171 | _ = _ := by simp |
| 172 | rotation := by |
| 173 | intro n x hx q χ w g d B |
| 174 | calc |
| 175 | _ = angularFlux hx w hc.smooth q B g (averageStress X J) := |
| 176 | (angularFlux_apply hx w hc.smooth q B g _).symm |
| 177 | _ = ∫ K : Ortho, angularFlux hx w hc.smooth q B g (rotateStress X K J) ∂μ := |
| 178 | map_average u J ((angularFlux hx w hc.smooth q B g).restrictScalars ℝ) |
| 179 | _ = ∫ _ : Ortho, S.useAt S x (Fin.cons ⟨d,X.lie d g B⟩ q) ∂μ := |
| 180 | integral_congr_ae (Filter.Eventually.of_forall fun K => |
| 181 | (angularFlux_apply hx w hc.smooth q B g _).trans |
| 182 | ((rotate_flux A hc u xO K J c).rotation hx q w g d B)) |
| 183 | _ = _ := by simp |
| 184 | end Haar |
| 185 | |
| 186 | /-- Retune the unnormalized stress coming with the crystal, on the given S. -/ |
| 187 | theorem answer : YM.Bid.A15 := by |
| 188 | intro A G L S H V _incl _der _orient X hX xO J p Y c h e |
| 189 | let J₀ := ((c⁻¹ : ℝ) : ℂ) • J |
| 190 | refine ⟨averageStress X J₀, ?_, tensorial_average hX J₀, ?_⟩ |
| 191 | · exact conserved_average hX J₀ (conserved_real_smul J h.pre.local_.tensor c⁻¹) |
| 192 | · exact stressLaws_average J₀ A H hX xO (normalize_flux H J c h e) |
| 193 | |
| 194 | end YM.Work.A15 |