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.Bid.Craft |
| 2 | import YM.Extra.WILSON_STARTUP.OnShell |
| 3 | import YM.Work.B04 |
| 4 | import YM.Work.F03.Flat |
| 5 | import YM.Work.F04.Choices |
| 6 | import YM.Work.F05.Graphs |
| 7 | |
| 8 | /-! |
| 9 | # Replace top input paths on a `Kin` step |
| 10 | |
| 11 | Retains the *same* PriceGap, α, coarse PathData (including loop paths), finite |
| 12 | period determinant wave tolerance, all tag branches, and stationary jets and |
| 13 | guess data. Uses implicit equation for the actual new analytic branch, NOT |
| 14 | identification of full analytic series by agreement at finitely many orders. |
| 15 | Requires the old Planned-type conditions explicitly; makes no appeal to an |
| 16 | old Oust, RG advancement theorem or supposed solution of the unsliced map |
| 17 | with arbitrary other paths. Compare E:, binit/bstat, before vstart. Does |
| 18 | not preserve any widths/radii not specified in the current Kin.Planned API. |
| 19 | -/ |
| 20 | noncomputable section |
| 21 | set_option autoImplicit false |
| 22 | namespace YM.WilsonStartup.Change |
| 23 | open Function Filter RG Wilson Lattice Bid Precision Exterior Bloch Tree Work |
| 24 | open scoped ContDiff Topology Matrix.Norms.Frobenius Classical |
| 25 | variable {G : Gauge} {n m : Side} {S : StepData m n} {p q : Clip} {W Q V : PathData G} {B : Forest S.ratio} |
| 26 | {σ C Λ a : ℝ} |
| 27 | |
| 28 | abbrev VChart (G : Gauge) {r : Ratio m n} (B : Forest r) := Dir G m × AxisChart G B |
| 29 | |
| 30 | section |
| 31 | variable (B : Forest S.ratio) (r : S.Choices) |
| 32 | |
| 33 | def readFine (z : VChart G B) := lifting B (represent z.1) z.2 |
| 34 | |
| 35 | def onSlice (p : Clip) (W : PathData G) := uncurry (tested B r p W) |
| 36 | |
| 37 | @[simp] theorem readFine_one : readFine B (0 : VChart G B) = 1 := by simp [readFine] |
| 38 | |
| 39 | theorem readFine_diff (i : Edge (Site n)) : ContDiffAt ℝ ω (fun z : VChart G B => G.mat (readFine B z i)) 0 := by |
| 40 | unfold readFine lifting |
| 41 | by_cases he : i ∈ B.trunks |
| 42 | · simp_rw [show ∀ U : B.Slice G,B.drape U i = 1 from fun U => B.on_tree U ⟨i,he⟩]; exact contDiffAt_const |
| 43 | simp_rw [show ∀ U : B.Slice G, B.drape U i = U ⟨i,he⟩ from fun U => B.off_tree U ⟨i,he⟩, G.mat_mul] |
| 44 | refine (((G.exp_jet.comp (contDiff_apply ..)).comp contDiff_snd).contDiffAt).mul ?_ |
| 45 | unfold replica |
| 46 | split <;> first | exact contDiffAt_const | exact ((F03.represent_smooth ..).comp contDiff_fst).contDiffAt |
| 47 | end |
| 48 | |
| 49 | variable {k : ℕ} {x y : Dir G m → AxisChart G B} (H : Matches k |
| 50 | (mainTerm p W ∘ (represent (n:=n))) (mainTerm p V ∘ represent) 0) |
| 51 | |
| 52 | include H in |
| 53 | theorem lift_match {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] (U : E → Config G n) (h : U 0=1) |
| 54 | (he : ∀ i, ContDiffAt ℝ ω (fun v => G.mat (U v i)) 0) : Matches k (mainTerm p W ∘ U) (mainTerm p V ∘ U) 0 := by |
| 55 | let Δ (v : E) : Dir G n := fun i => G.plog (G.mat (U v (i.1,axisEquiv.symm i.2))) |
| 56 | have hΔ : ContDiffAt ℝ ω Δ 0 := contDiffAt_pi.mpr fun i => |
| 57 | (show ContDiffAt ℝ ω G.plog (G.mat (U 0 (i.1,axisEquiv.symm i.2))) by rw [h]; exact G.plog_diff).comp (f:=fun v => G.mat (U v (i.1,axisEquiv.symm i.2))) 0 (he _) |
| 58 | have hz : Δ 0=0 := by ext1 i; simp [Δ,h] |
| 59 | have hi : represent ∘ Δ =ᶠ[𝓝 0] U := by |
| 60 | have hb (i) : Tendsto (fun v => U v i) (𝓝 0) (𝓝 1) := by |
| 61 | have ht : ContinuousAt (fun v => U v i) 0 := (G.continuous_mat.isClosedEmbedding G.mat_injective).isEmbedding.continuousAt_iff.mpr (he i).continuousAt |
| 62 | simpa only [h,Pi.one_apply] using ht.tendsto |
| 63 | filter_upwards [eventually_all.mpr (fun i => (hb i).eventually G.plog_right)] with v hv |
| 64 | ext1 i |
| 65 | simpa only [comp_apply,Δ,represent,increment,collect,show axisEquiv.symm (coord i.2)=i.2 from axisEquiv.symm_apply_apply _, Pi.one_apply, mul_one] using! hv i |
| 66 | rw [← hz] at H |
| 67 | exact (H.comp_refl hΔ).unchanged (hi.fun_comp (mainTerm p W)) (hi.fun_comp (mainTerm p V)) |
| 68 | |
| 69 | include H in |
| 70 | theorem tested_match (h : Critical B p W x) (r : S.Choices) : Matches k (onSlice B r p W) (onSlice B r p V) 0 := by |
| 71 | have hb := lift_match H (readFine B) (readFine_one _) (readFine_diff _) |
| 72 | let f := fun z : VChart G B => noiseTaylor S (represent z.1) (readFine B z) r |
| 73 | have hf : ContDiffAt ℝ ω f 0 := by |
| 74 | rw [show f = uncurry (tested B r p W) - mainTerm p W ∘ readFine B from funext fun i => (add_sub_cancel_left ..).symm] |
| 75 | exact (h.2.2 r).1.sub hb.left |
| 76 | exact hb.add (matches_self _ hf) |
| 77 | |
| 78 | lemma station_of {u : Dir G m → AxisChart G B} (h : Critical B p V u) (r : S.Choices) : |
| 79 | Station (onSlice B r p V) u := ⟨h.2.1,h.1,((h.2.2 r).2.mono fun _ he => he.fderiv)⟩ |
| 80 | |
| 81 | lemma definite_of (ht : PriceGap B p V a) (ha : 0 < a) (r : S.Choices) |
| 82 | (h : ContDiffAt ℝ ω (onSlice B r p V) 0) : Definite (onSlice B r p V) := by |
| 83 | refine ⟨h,fun y hy => ?_⟩ |
| 84 | by_contra hn |
| 85 | exact (F05.tested_diag ha ht r y hn).ne' hy |
| 86 | |
| 87 | lemma new_crit (hs : S.patch.Branches S.kernel G) (hV : Prismatic B p V) (ht : PriceGap B p V a) (ha : 0 < a) |
| 88 | (hz : ∀ r : S.Choices,vert (onSlice B r p V) (0 : VChart G B) = 0) : ∃ u,Critical B p V u := by |
| 89 | let r := Classical.arbitrary S.Choices |
| 90 | let F := onSlice B r p V |
| 91 | have hF := definite_of ht ha r (hV r) |
| 92 | let H := (matches_self 1 hF.smooth).diff_vert.left |
| 93 | let u := H.implicitFunction (by simp) hF.forms |
| 94 | have he : u 0 = 0 := H.implicitFunction_apply_self (by simp) hF.forms |
| 95 | have hc : ContDiffAt ℝ ω u 0 := H.contDiffAt_implicitFunction (by simp) hF.forms |
| 96 | refine ⟨u, he, hc, fun s => ⟨hV s, ?_⟩⟩ |
| 97 | let F' := onSlice B s p V |
| 98 | have ht : Tendsto (graph u) (𝓝 0) (𝓝 0) := tendsto_id.prodMk_nhds (he ▸ hc.continuousAt.tendsto) |
| 99 | have hcrit : ∀ᶠ x in 𝓝 0, vert F (graph u x) = vert F 0 := H.eventually_apply_implicitFunction (by simp) hF.forms |
| 100 | have Heq : fderiv ℝ F' =ᶠ[𝓝 0] fderiv ℝ F := (F04.tested_germ hs B p V s r).fderiv |
| 101 | filter_upwards [hcrit, ht.eventually Heq, ht.eventually ((hV s).eventually (by simp)), |
| 102 | ht.eventually ((hV r).eventually (by simp))] with x h₁ h₂ h₃ h₄ |
| 103 | have hv : F04.vert F' (graph u x) = 0 := by |
| 104 | rw [F04.vert,h₂,← F04.vert, show F04.vert F (graph u x) = _ from |
| 105 | (F04.hasFDerivAt_slice F x (u x) (h₄.differentiableAt (by simp))).fderiv.symm.trans (h₁.trans (hz r))] |
| 106 | rw [← hv]; exact F04.hasFDerivAt_slice F' x (u x) (h₃.differentiableAt (by simp)) |
| 107 | |
| 108 | lemma guessed_match {A : Matrix (Body 1 n) (Body 1 m) ℝ} (h : Matches 1 x y 0) (ht : Guessed B A x) : Guessed B A y := by |
| 109 | intro v |
| 110 | have hv := (show Matches 1 x y ((0:ℝ) • v) from by simpa using h).comp_refl (f:=fun t : ℝ => t • v) (by fun_prop) |
| 111 | have he := congr_arg (fun T => Tensor.diagonal T 1) (hv.jets 1 le_rfl) |
| 112 | simp only [Tensor.diagonal,iteratedFDeriv_one_apply,comp_def] at he |
| 113 | exact (hv.right.differentiableAt (by simp)).hasDerivAt.congr_deriv (he.symm.trans (ht v).deriv) |
| 114 | |
| 115 | lemma compare_det {u : S.Choices} (h : Matches 4 (onSlice B u p W) (onSlice B u p V) 0) : Matches 2 |
| 116 | (fun z : VChart G B => (hessian B u p W z.1 z.2).det) |
| 117 | (fun z : VChart G B => (hessian B u p V z.1 z.2).det) 0 := by |
| 118 | let E := Precision.Key B G |
| 119 | let D := VChart G B |
| 120 | let f (P : PathData G) (s : Equiv.Perm E) (i : E) (z : D) := hessian B u p P z.1 z.2 (s i) i |
| 121 | have he s i : Matches 2 (f W s i) (f V s i) 0 := by |
| 122 | unfold f hessian; simp only [Matrix.of_apply,iteratedFDeriv_two_apply,Matrix.cons_val_zero,Matrix.cons_val_one] |
| 123 | let A := frame B (s i); let C := frame B i |
| 124 | change Matches 2 (fun z => vert (vert (onSlice B u p W)) z A C) (fun z => vert (vert (onSlice B u p V)) z A C) 0 |
| 125 | exact h.diff_vert.diff_vert.refl_comp (u:=fun L : AxisChart G B →L[ℝ] AxisChart G B →L[ℝ] ℝ => L A C) |
| 126 | ((contDiffAt_id.clm_apply contDiffAt_const).clm_apply contDiffAt_const) |
| 127 | haveI : Fintype (Equiv.Perm E) := Equiv.instFintype |
| 128 | let J (P : PathData G) := ∑ s : Equiv.Perm E, Equiv.Perm.sign s • ∏ i, f P s i |
| 129 | have ht : Matches 2 (J W) (J V) 0 := matches_sum _ fun s _ => (matches_prod _ (fun i _ => he s i)).refl_comp |
| 130 | (u:=fun y => Equiv.Perm.sign s • y) (by simp only [Units.smul_def]; exact contDiffAt_id.const_smul _) |
| 131 | convert! ht using 1 <;> (ext z; simp only [Matrix.det_apply,J,f,Finset.sum_apply,Finset.prod_apply,Pi.smul_apply]; congr! 2) |
| 132 | |
| 133 | private lemma loop_zero {P : PathData G} (h : ∀ b,(P.loop b).coeff=0) (U : Config G n) : Precision.loop P U=0 := by |
| 134 | simp [Precision.loop,Patch.average,uncut, Atom.unmasked, Atom.poly,h] |
| 135 | |
| 136 | lemma thermal_match {O : ChartRatio G} (hO : LocalRatio O) (hw : ∀ b,(W.loop b).coeff=0) (hv : ∀ b,(V.loop b).coeff=0) |
| 137 | (hF : Critical B p W x) (hG : Critical B p V y) (r : S.Choices) (hQ : Definite (onSlice B r p V)) |
| 138 | (h : Matches 4 (onSlice B r p W) (onSlice B r p V) 0) (h₁ : 0 < (hessian B r p W 0 (x 0)).det) : |
| 139 | Matches 2 (thermal B r p W x O) (thermal B r p V y O) 0 := by |
| 140 | let g := graph x |
| 141 | let g' := graph y |
| 142 | have he : Matches 2 g g' 0 := ((compare h.symm (station_of hG r) (station_of hF r) hQ).1.lower (by decide)).symm |
| 143 | have hx := (station_of hF r).at0 |
| 144 | let f (P : PathData G) := fun z : VChart G B => (hessian B r p P z.1 z.2).det |
| 145 | have hdet : Matches 2 (f W) (f V) (g 0) := Eq.mpr (congr_arg (Matches 2 (f W) (f V)) hx) (compare_det h) |
| 146 | have hd : Matches 2 (f W ∘ g) (f V ∘ g') 0 := |
| 147 | hdet.comp he |
| 148 | let j (w : Dir G m → AxisChart G B) (v : Dir G m) := ∏ i, O.J (w v i) |
| 149 | have hj : Matches 2 (j x) (j y) 0 := by |
| 150 | have hi : Matches 2 x y 0 := he.refl_comp contDiffAt_snd |
| 151 | convert matches_prod (k:=2) (x:=(0:Dir G m)) Finset.univ (f:=fun i v => O.J (x v i)) (g:=fun i v => O.J (y v i)) (fun i _ => |
| 152 | (hi.apply_pi i).refl_comp (hO.germ (x 0 i) (by rw [hF.1]; simpa using hO.patch))) using 1 <;> ext v <;> simp only [j,Finset.prod_apply] |
| 153 | unfold thermal; simp only [loop_zero (n:=n) hw,loop_zero (n:=n) hv, zero_add] |
| 154 | exact hd.together hj (H:=fun a b => (1/2)*Real.log a - Real.log b) (((contDiffAt_fst.log h₁.ne').const_smul (1/2 : ℝ)).sub |
| 155 | (contDiffAt_snd.log (by simp only [j,hF.1,Pi.zero_apply,hO.anchored,Finset.prod_const_one]; exact one_ne_zero))) |
| 156 | |
| 157 | section |
| 158 | variable {A : Matrix (Body 1 n) (Body 1 m) ℝ} {O : ChartRatio G} {α Θ γ Λ : ℝ} |
| 159 | |
| 160 | theorem top_step (H : Matches 4 (mainTerm p W ∘ (represent (n:=n))) (mainTerm p V ∘ represent) 0) (ha : 0 < a) (hs : S.patch.Branches S.kernel G) (hF : Critical B p W x) (hG : Guessed B A x) |
| 161 | (ht : PriceGap B p W a) (hP : ClassicalMatch B p q W Q x) |
| 162 | (h : FiniteBound B W Q p q α O x Θ γ Λ) (hO : LocalRatio O) (hw : ∀ b,(W.loop b).coeff=0) (hv : ∀ b,(V.loop b).coeff=0) : |
| 163 | PriceGap B p V a ∧ ∃ u, Critical B p V u ∧ Guessed B A u ∧ ClassicalMatch B p q V Q u ∧ FiniteBound B V Q p q α O u Θ γ Λ := by |
| 164 | have hj (r : S.Choices) := tested_match H hF r |
| 165 | have hV : PriceGap B p V a := by |
| 166 | intro r v |
| 167 | have hh : Matches 4 (tested B r p W 0) (tested B r p V 0) 0 := (hj r).comp_refl |
| 168 | (f:=fun v : AxisChart G B => ((0:Dir G m),v)) (contDiffAt_const.prodMk contDiffAt_id) |
| 169 | rw [← hh.jets 2 (by decide)]; exact ht r v |
| 170 | obtain ⟨u,hu⟩ := new_crit hs (fun r => (hj r).right) hV ha (fun r => |
| 171 | ((hj r).diff_vert.value.symm.trans (by change fderiv ℝ (tested B r p W 0) 0=0; simpa only [hF.1] using (hF.2.2 r).2.self_of_nhds.fderiv))) |
| 172 | let s := Classical.arbitrary S.Choices |
| 173 | have hD (r : S.Choices) := definite_of hV ha r ((hj r).right) |
| 174 | have hc (r : S.Choices) := compare (hj r).symm (station_of hu r) (station_of hF r) (hD r) |
| 175 | refine ⟨hV,u,hu,guessed_match (((hc s).1.symm.lower (m:=1) (by decide)).refl_comp (u:=Prod.snd) contDiffAt_snd) hG,fun j hk r => ?_,?_⟩ |
| 176 | · obtain ⟨hf,hs,h⟩ := hP j hk r; have hd := (hc r).2 |
| 177 | exact ⟨hd.left,hs,(hd.jets j hk).trans h⟩ |
| 178 | have hM (r : S.Choices) := thermal_match hO hw hv hF hu r (hD r) (hj r) (h.branch r |>.self_of_nhds) |
| 179 | refine ⟨fun r => F05.hessian_pos ha hV hu r, fun r => (hM r).right, h.classicalResult, fun r i j b c h1 h2 => ?_⟩ |
| 180 | dsimp; rw [← (hM r).jets 2 le_rfl]; exact h.wave_price r i j b c h1 h2 |
| 181 | end |
| 182 | end YM.WilsonStartup.Change |