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.BondGradient |
| 2 | import YM.Push.LOOP_COEFFICIENT.DriftReal |
| 3 | |
| 4 | /-! |
| 5 | # Evaluate the drift equation on the true rooted augmented backgrounds |
| 6 | -/ |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | namespace YM.Push.Loops |
| 10 | open Function Matrix Filter Set Lattice RG Wilson Precision Bloch Exterior Tree |
| 11 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius RealTrace |
| 12 | variable {m k : Type} [Fintype m] [DecidableEq m] [Fintype k] [DecidableEq k] |
| 13 | lemma observe_diff {R : (m → ℝ) → RealTrace m k} (h : ∀ v,ContDiffAt ℝ ω (fun b => R b v) 0) : ContDiffAt ℝ ω R 0 := by |
| 14 | let P (i : m) := ContinuousLinearMap.proj (R:=ℝ) (φ:=fun _ : m => ℝ) i |
| 15 | suffices H : ContDiffAt ℝ ω (fun b => ∑ i, (P i).smulRight (R b (Pi.single i (1:ℝ)))) 0 by |
| 16 | convert! H using 1; funext b; apply ContinuousLinearMap.ext; intro w |
| 17 | rw [show w = ∑ i : m, w i • Pi.single i (1:ℝ) from ?_, map_sum] |
| 18 | · simp [P,Pi.single_apply] |
| 19 | ext i; simp [Pi.single_apply, mul_ite] |
| 20 | apply ContDiffAt.sum; intro i _ |
| 21 | let L : Matrix k k ℝ →L[ℝ] RealTrace m k := ContinuousLinearMap.smulRightL ℝ (m → ℝ) (Matrix k k ℝ) (P i) |
| 22 | exact L.contDiff.contDiffAt.comp (f:=fun b => R b (Pi.single i 1)) 0 (h _) |
| 23 | |
| 24 | variable {G : Gauge} {c f : Side} {S : StepData c f} {p : Clip} {W : PathData G} {A : Matrix (Body 1 f) (Body 1 c) ℝ} {t : S.Choices} |
| 25 | |
| 26 | def background (G : Gauge) (S : StepData c f) (A : Matrix (Body 1 f) (Body 1 c) ℝ) (b : Loops.Links G c) := vary 1 (graft G S A b).2 |
| 27 | |
| 28 | def onVector (p : Clip) (W : PathData G) (t : S.Choices) (A : Matrix (Body 1 f) (Body 1 c) ℝ) (b : Loops.Links G c) := vector p W t (vary 1 b) (background G S A b) |
| 29 | |
| 30 | def onBase (p : Clip) (W : PathData G) (t : S.Choices) (A : Matrix (Body 1 f) (Body 1 c) ℝ) (b : Loops.Links G c) := baseVector p W t (vary 1 b) (background G S A b) |
| 31 | |
| 32 | def onAcc (G : Gauge) (t : S.Choices) (A : Matrix (Body 1 f) (Body 1 c) ℝ) (b : Loops.Links G c) : RealTrace (BondKey G c) (JointKey G c f) := LinearMap.toContinuousLinearMap { |
| 33 | toFun := acceleration (Zmap t) (background G S A b) |
| 34 | map_add' x y := by simp only [acceleration,twist,Pi.add_apply,add_smul,Finset.sum_add_distrib] |
| 35 | map_smul' x y := by simp only [acceleration,twist,Pi.smul_apply,smul_eq_mul,RingHom.id_apply,mul_smul,Finset.smul_sum] } |
| 36 | |
| 37 | def amplify (B : (m → ℝ) → Matrix k k ℝ) (R : (m → ℝ) → RealTrace m k) (x : m → ℝ) : RealTrace m k := (matrixMulCLM k k k (B x)).comp (R x) |
| 38 | |
| 39 | def observed (p : Clip) (W : PathData G) (t : S.Choices) (A : Matrix (Body 1 f) (Body 1 c) ℝ) := amplify (fun b => (onBase p W t A b)⁻¹) (onAcc G t A) |
| 40 | |
| 41 | lemma observed_value (v b) : Yresp p W t (vary 1 b) (background G S A b) v = (observed p W t A b v).trace := rfl |
| 42 | |
| 43 | @[simp] lemma background_zero : background G S A 0 = 1 := by simp [background] |
| 44 | lemma positions_background (v) : positions (background G S A v) = vary 1 (liftMatrix G A *ᵥ v) := by rw [background,show positions _ = _ from positions_graph (graft G S A v),graft, project_graph] |
| 45 | |
| 46 | lemma background_diff {x : Loops.Links G c} : MatDiffAt (background G S A) x := (matDiffAt_const _).vary (graft G S A).contDiff.contDiffAt.snd |
| 47 | lemma onVector_diff (h : S.patch.Branches S.kernel G) {σ C Λ : ℝ} (hw : W.Bounds p σ C Λ) : ContDiffAt ℝ ω (onVector p W t A) 0 := smooth_vector h hw t background_zero background_diff vary_diff |
| 48 | lemma onBase_diff (h : S.patch.Branches S.kernel G) {σ C Λ : ℝ} (hw : W.Bounds p σ C Λ) : ContDiffAt ℝ ω (onBase p W t A) 0 := smooth_base h hw t background_zero background_diff vary_diff |
| 49 | private lemma acc_jet_diff (h : S.patch.Branches S.kernel G) : ContDiffAt ℝ ω (fun z : Loops.Links G c × Loops.Dual G c f => localize (Zmap t) (background G S A z.1) z.2) 0 := by |
| 50 | let X := Loops.Links G c × Loops.Dual G c f |
| 51 | have hu := background_diff (x:= (0:Loops.Links G c)) (S:=S) (A:=A) |
| 52 | have hz := Zmap_diff h t (U:=background G S A) background_zero hu |
| 53 | have he := (hu.comp (f:= Prod.fst) (x:=(0:X)) contDiffAt_fst).vary contDiffAt_snd |
| 54 | exact (hz.comp (f:=Prod.fst) (x:=(0:X)) contDiffAt_fst).displacement |
| 55 | (Zmap_diff h t (U:= fun z : X => vary (background G S A z.1) z.2) (x:=0) (by simp [X]) he) (by simp [X]) |
| 56 | |
| 57 | lemma onAcc_diff (h : S.patch.Branches S.kernel G) : ContDiffAt ℝ ω (onAcc G t A) 0 := by |
| 58 | have hf : ContDiffAt ℝ ω (fun z : Loops.Links G c × Loops.Dual G c f => localize (Zmap t) (background G S A z.1) z.2) 0 := acc_jet_diff h |
| 59 | apply observe_diff; intro w |
| 60 | change ContDiffAt ℝ ω (fun b => ∑ i, w i • bilinearAt (fun z => localize (Zmap t) (background G S A b) z i) 0) 0 |
| 61 | apply ContDiffAt.sum; intro i _; refine ContDiffAt.const_smul _ ?_ |
| 62 | have hu := bilinearAt_diff (f:=fun b z => localize (Zmap t) (background G S A b) z i) (x:=0) (y:=0) (contDiffAt_pi.mp hf i) |
| 63 | exact hu.comp (f:=fun b => (b,0)) (0:Loops.Links G c) (contDiffAt_id.prodMk contDiffAt_const) |
| 64 | |
| 65 | lemma amplify_diff {B : (m → ℝ) → Matrix k k ℝ} {R : (m → ℝ) → RealTrace m k} (hb : ContDiffAt ℝ ω B 0) (hr : ContDiffAt ℝ ω R 0) : |
| 66 | ContDiffAt ℝ ω (amplify B R) 0 := observe_diff fun w => smooth_mul hb (hr.clm_apply (g:=fun _ => w) contDiffAt_const) |
| 67 | |
| 68 | variable (t) {F : Forest S.ratio} {ρ : fieldDir G c 1 → AxisChart G F} {P : ChartRatio G} |
| 69 | variable (h : Admission F ρ p W A P) |
| 70 | include h |
| 71 | lemma onBase_unit : IsUnit (onBase p W t A 0) := by |
| 72 | obtain ⟨_,_,_,hw⟩ := h.paths |
| 73 | rw [onBase,background_zero,vary_zero,← vector_flat h.branches hw]; exact h.invert_vector t |
| 74 | lemma observed_diff : ContDiffAt ℝ ω (observed p W t A) 0 := by |
| 75 | obtain ⟨_,_,_,hw⟩ := h.paths |
| 76 | exact amplify_diff ((inv_contDiffAt _ ((isUnit_iff_isUnit_det _).mp (onBase_unit t h))).comp 0 (onBase_diff h.branches hw)) (onAcc_diff h.branches) |
| 77 | lemma observed_ward : respCoeff (observed p W t A) * R_g (1:Config G c) = 0 := by |
| 78 | apply pairing_ext (Y:=0); intro x y |
| 79 | rw [← Matrix.mulVec_mulVec,response_pair,← response_value (observed_diff t h), Matrix.zero_mulVec, dotProduct_zero] |
| 80 | exact response_prepared h t y x |
| 81 | |
| 82 | lemma observed_drift (K : Matrix (Body 1 c) (Body 1 c) ℝ) (hA : mean S * A = 1 - S.kernel.penalty⁻¹ • K) : |
| 83 | let L := -liftMatrix G K; let R := observed p W t A |
| 84 | bilinearAt (fun b => Real.log (onVector p W t A b).det) 0 = bilinearAt (fun b => Real.log (onBase p W t A b).det) 0 + |
| 85 | (L.transpose * respCoeff R + (respCoeff R).transpose * L - L.transpose * accCoeff R * L) := by |
| 86 | obtain ⟨_,_,_,hw⟩ := h.paths |
| 87 | dsimp only; rw [← (JZ_leading t h.branches K hA).2] |
| 88 | have he := onBase_diff (t:=t) (A:=A) h.branches hw |
| 89 | refine drift_equation (observed_diff t h) (JZ_diff t h.branches) (JZ_leading t h.branches K hA).1 (fun w => ?_) ?_ he (onBase_unit t h) |
| 90 | · have ht := response_zero (t:=t) h.branches hw h.simple w |
| 91 | simpa only [← observed_value,background_zero,vary_zero,response,Prod.fst_zero,Prod.snd_zero] using ht |
| 92 | have hi := ((isUnit_iff_isUnit_det _).mp (onBase_unit t h)).ne_zero |
| 93 | have hv := (beam_near h.branches t) |
| 94 | have hB := background_diff (x:= (0:Loops.Links G c)) |>.continuousAt (v:=background G S A) |
| 95 | rw [ContinuousAt,background_zero] at hB |
| 96 | filter_upwards [(det_contDiff.contDiffAt.comp 0 he).continuousAt.eventually_ne hi,hB.eventually hv] with x hI hx |
| 97 | change vector _ _ _ _ _ = _ |
| 98 | rw [vector_eq hw t _ _ hx.bonds,← show onBase p W t A x = _ from rfl] |
| 99 | change onBase p W t A x + acceleration _ _ _ = onBase p W t A x * (1 + (onBase p W t A x)⁻¹ * acceleration _ _ _) |
| 100 | rw [mul_add,mul_one,← mul_assoc,Matrix.mul_nonsing_inv _ (isUnit_iff_ne_zero.mpr hI),one_mul]; rfl |
| 101 | end YM.Push.Loops |