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.F04.Calculus |
| 2 | import YM.Work.F04.Choices |
| 3 | import YM.Work.F04.Pairing |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | /-! |
| 9 | # Fixed-period critical branch and tree-slice quadratic value |
| 10 | |
| 11 | Everything here is conditional, in the actual tree coordinates. No uniform |
| 12 | control of the neighborhood, determinant result or independence from tree. |
| 13 | The equation is solved for one tag array; THAT solution works for every tag |
| 14 | array by equality on germs. `test_pair` checks the stationary response using |
| 15 | both parts of `stationed`, not just stationary value comparison. No need |
| 16 | to use even output Floor in this proof: the bilinear output that comes out |
| 17 | of the computation is already a Hessian of a smooth germ. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | noncomputable section |
| 22 | |
| 23 | open Filter Function Matrix |
| 24 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius |
| 25 | |
| 26 | namespace YM.Work.F04 |
| 27 | |
| 28 | open Lattice RG Wilson Precision Exterior Bid Tree Bloch Laurent |
| 29 | |
| 30 | variable {G : Gauge} {c f : Side} {S : StepData c f} |
| 31 | |
| 32 | lemma invertible (H : Forest S.ratio) (p : Clip) (W : PathData G) (a : ℝ) |
| 33 | (ha : 0 < a) (t : S.Choices) (hg : PriceGap H p W a) |
| 34 | (hh : ContDiffAt ℝ ω (uncurry (tested H t p W)) 0) |
| 35 | (hz : fderiv ℝ (uncurry (tested H t p W)) 0 = 0) : |
| 36 | (fderiv ℝ (vert (uncurry (tested H t p W))) 0 ∘L |
| 37 | ContinuousLinearMap.inr ℝ (Dir G c) (AxisChart G H)).IsInvertible := by |
| 38 | let F := uncurry (tested H t p W) |
| 39 | let E := ContinuousLinearMap.inr ℝ (Dir G c) (AxisChart G H) |
| 40 | apply form_invertible |
| 41 | refine (injective_iff_map_eq_zero _).mpr fun v hv => ?_ |
| 42 | change fderiv ℝ (vert F) 0 (0, v) = 0 at hv |
| 43 | have he : iteratedFDeriv ℝ 2 (tested H t p W 0) 0 ![v,v] = 0 := by |
| 44 | rw [iteratedFDeriv_two_apply] |
| 45 | have hF : ContDiffAt ℝ ω F (E 0) := by rw [map_zero]; exact hh |
| 46 | have hD : fderiv ℝ F (E 0) = 0 := by rw [map_zero]; exact hz |
| 47 | have hchain := stationary_chain F E 0 hF E.contDiff.contDiffAt hD v v |
| 48 | rw [map_zero, E.fderiv] at hchain |
| 49 | change fderiv ℝ (fderiv ℝ (F ∘ E)) 0 v v = _ |
| 50 | change _ = iteratedFDeriv ℝ 2 F 0 ![(0,v), (0,v)] at hchain |
| 51 | rw [hchain, ← vert_rate F 0 hh (0,v) v, hv] |
| 52 | rfl |
| 53 | have Hs := hg t v |
| 54 | rw [he] at Hs |
| 55 | funext i |
| 56 | by_contra Hi |
| 57 | have hi : 0 < ‖v i‖^2 := sq_pos_of_pos (norm_pos_iff.mpr Hi) |
| 58 | have HZ : 0 < a * ∑ j : H.Free, ‖v j‖^2 := mul_pos ha |
| 59 | (Finset.sum_pos' (fun j _ => sq_nonneg _) ⟨i, Finset.mem_univ i, hi⟩) |
| 60 | exact HZ.not_ge Hs |
| 61 | |
| 62 | lemma exists_branch (H : Forest S.ratio) (p : Clip) (W : PathData G) (a : ℝ) (ha : 0 < a) |
| 63 | (t : S.Choices) (ht : S.patch.Branches S.kernel G) (hp : Prismatic H p W) |
| 64 | (hg : PriceGap H p W a) (hz : fderiv ℝ (uncurry (tested H t p W)) 0 = 0) : |
| 65 | ∃ ρ, Critical H p W ρ := by |
| 66 | let F := uncurry (tested H t p W) |
| 67 | have hF := vert_smooth F 0 (hp t) |
| 68 | have hV : vert F 0 = 0 := by simp [F, vert, hz] |
| 69 | have hi := invertible H p W a ha t hg (hp t) hz |
| 70 | let ρ := hF.implicitFunction (by simp) hi |
| 71 | have he : ρ 0 = 0 := hF.implicitFunction_apply_self (by simp) hi |
| 72 | have hc : ContDiffAt ℝ ω ρ 0 := hF.contDiffAt_implicitFunction (by simp) hi |
| 73 | refine ⟨ρ, he, hc, fun s => ⟨hp s, ?_⟩⟩ |
| 74 | let J := uncurry (tested H s p W) |
| 75 | have Hx : Tendsto (fun x => (x, ρ x)) (𝓝 0) (𝓝 0) := by |
| 76 | have hh := (continuousAt_id.prodMk hc.continuousAt).tendsto |
| 77 | simpa only [id_eq, he] using! hh |
| 78 | have hcrit : ∀ᶠ x in 𝓝 0, vert F (x, ρ x) = vert F 0 := |
| 79 | hF.eventually_apply_implicitFunction (by simp) hi |
| 80 | have Heq : fderiv ℝ J =ᶠ[𝓝 0] fderiv ℝ F := (tested_germ ht H p W s t).fderiv |
| 81 | filter_upwards [hcrit, Hx.eventually Heq, Hx.eventually ((hp s).eventually (by simp))] with x h₁ h₂ h₃ |
| 82 | have hy : vert J (x, ρ x) = 0 := calc |
| 83 | _ = vert F (x, ρ x) := congr_arg (· ∘L ContinuousLinearMap.inr ℝ (Dir G c) (AxisChart G H)) h₂ |
| 84 | _ = 0 := h₁.trans hV |
| 85 | rw [← hy] |
| 86 | exact hasFDerivAt_slice J x (ρ x) (h₃.differentiableAt (by simp)) |
| 87 | |
| 88 | lemma tangent (H : Forest S.ratio) (p : Clip) (W : PathData G) (a : ℝ) (ha : 0 < a) |
| 89 | (hg : PriceGap H p W a) (B C : Bed) (U : Matrix (Body 1 f) (Body 1 c) ℝ) |
| 90 | (hd : Inputs S U (B.metric.acts f) (C.metric.acts c)) |
| 91 | (hq : Comptroller H B p W) (ρ) (h : Critical H p W ρ) (t : S.Choices) (x : Dir G c) : |
| 92 | fderiv ℝ ρ 0 x = relative H U x := by |
| 93 | let F := uncurry (tested H t p W) |
| 94 | let b := fun y => (y, ρ y) |
| 95 | have h0 : b 0 = 0 := by simp [b, h.1] |
| 96 | obtain ⟨hh,he⟩ := h.2.2 t |
| 97 | have hρ : HasFDerivAt b ((ContinuousLinearMap.id ℝ (Dir G c)).prod (fderiv ℝ ρ 0)) 0 := |
| 98 | (hasFDerivAt_id 0).prodMk (h.2.1.differentiableAt (by simp)).hasFDerivAt |
| 99 | have ht := hρ.continuousAt.tendsto |
| 100 | rw [h0] at ht |
| 101 | have hV : vert F ∘ b =ᶠ[𝓝 0] fun _ => 0 := by |
| 102 | filter_upwards [he, ht.eventually (hh.eventually (by simp))] with i hi hj |
| 103 | exact (hasFDerivAt_slice F i (ρ i) (hj.differentiableAt (by simp))).unique hi |
| 104 | have h1 : fderiv ℝ (vert F) 0 (x, fderiv ℝ ρ 0 x) = 0 := by |
| 105 | have hy : DifferentiableAt ℝ (vert F) (b 0) := by |
| 106 | rw [h0]; exact (vert_smooth F 0 hh).differentiableAt (by simp) |
| 107 | have hy' := hV.fderiv_eq (𝕜 := ℝ) |
| 108 | rw [(hy.hasFDerivAt.comp 0 hρ).fderiv, fderiv_const_apply, h0] at hy' |
| 109 | exact DFunLike.congr_fun hy' x |
| 110 | have h2 : fderiv ℝ (vert F) 0 (x, relative H U x) = 0 := by |
| 111 | ext v |
| 112 | rw [vert_rate F 0 hh] |
| 113 | have hf : iteratedFDeriv ℝ 2 F 0 ![(x, relative H U x), (0,v)] = |
| 114 | iteratedFDeriv ℝ 2 F 0 ![(0,v), (x, relative H U x)] := by |
| 115 | rw [iteratedFDeriv_two_apply, iteratedFDeriv_two_apply] |
| 116 | exact hh.isSymmSndFDerivAt (by simp) _ _ |
| 117 | rw [hf, show iteratedFDeriv ℝ 2 F 0 _ = _ from test_pair H p W B C U hd hq (0, v) x t] |
| 118 | simp [gaugeFiscal, parts, dotProduct] |
| 119 | have Hi := invertible H p W a ha t hg hh (hq t).2.1 |
| 120 | apply Hi.injective |
| 121 | have heq (y : AxisChart G H) : (fderiv ℝ (vert F) 0) (x, y) = |
| 122 | fderiv ℝ (vert F) 0 (x, 0) + fderiv ℝ (vert F) 0 (0, y) := by |
| 123 | rw [← map_add]; simp |
| 124 | change fderiv ℝ (vert F) 0 (0, fderiv ℝ ρ 0 x) = fderiv ℝ (vert F) 0 (0, relative H U x) |
| 125 | rw [heq] at h1 h2 |
| 126 | exact add_left_cancel (h1.trans h2.symm) |
| 127 | |
| 128 | lemma stationary_value (H : Forest S.ratio) (p : Clip) (W : PathData G) (B C : Bed) |
| 129 | (U : Matrix (Body 1 f) (Body 1 c) ℝ) (hd : Inputs S U (B.metric.acts f) (C.metric.acts c)) |
| 130 | (hq : Comptroller H B p W) (ρ) (h : Critical H p W ρ) |
| 131 | (hh : ∀ x, fderiv ℝ ρ 0 x = relative H U x) : HeatG H p W ρ C := by |
| 132 | intro t |
| 133 | let F := uncurry (tested H t p W) |
| 134 | let b := fun y => (y, ρ y) |
| 135 | have h0 : b 0 = 0 := by simp [b, h.1] |
| 136 | have hg : ContDiffAt ℝ ω b 0 := contDiffAt_id.prodMk h.2.1 |
| 137 | have hf : ContDiffAt ℝ ω F (b 0) := by rw [h0]; exact (h.2.2 t).1 |
| 138 | have he : fderiv ℝ F (b 0) = 0 := by rw [h0]; exact (hq t).2.1 |
| 139 | have hw : HasFDerivAt b ((ContinuousLinearMap.id ℝ (Dir G c)).prod (fderiv ℝ ρ 0)) 0 := |
| 140 | (hasFDerivAt_id 0).prodMk (h.2.1.differentiableAt (by simp)).hasFDerivAt |
| 141 | have ht (x) : fderiv ℝ b 0 x = (x, relative H U x) := by rw [hw.fderiv]; simp [hh] |
| 142 | have hm (x y : Dir G c) : fderiv ℝ (fderiv ℝ (F ∘ b)) 0 x y = gaugeFiscal C x y := by |
| 143 | rw [stationary_chain F b 0 hf hg he, ht, ht, h0] |
| 144 | exact test_pair H p W B C U hd hq _ _ _ |
| 145 | have hc := half_pairing (F ∘ b) (hf.comp 0 hg) |
| 146 | simp_rw [hm] at hc |
| 147 | exact hc |
| 148 | |
| 149 | theorem answer : YM.Bid.F04 := by |
| 150 | intro G c f S hs H B C p W T a ha hd hp hq hg _hfloor |
| 151 | let t : S.Choices := Classical.arbitrary _ |
| 152 | obtain ⟨ρ,h⟩ := exists_branch H p W a ha t hs.1 hp hg (hq t).2.1 |
| 153 | let U := installed S.ratio T.A0 |
| 154 | have HH := tangent H p W a ha hg B C U hd.trial hq ρ h t |
| 155 | refine ⟨ρ, h, ?_, stationary_value H p W B C U hd.trial hq ρ h HH⟩ |
| 156 | intro x |
| 157 | change HasDerivAt _ (relative H U x) 0 |
| 158 | rw [← HH] |
| 159 | exact Push.side _ (h.2.1.differentiableAt (by simp)) _ |
| 160 | |
| 161 | end YM.Work.F04 |