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.Progress.JOINT_CALENDAR.Issue |
| 2 | import YM.Work.F05 |
| 3 | |
| 4 | /-! |
| 5 | # Classical and loop invoices that are unnecessary at this seam |
| 6 | |
| 7 | On the actual scheduled stationary operation: compute agreement automatically |
| 8 | THROUGH quadratic via Hessian limits; positivity and analytic prerequisites of |
| 9 | `FiniteBound`, and reduction of both jet comparisons to just one tree/choice at |
| 10 | each period. |
| 11 | |
| 12 | Uses the accepted F packages. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.Progress.Joint |
| 18 | open Filter Lattice RG Wilson Precision Exterior Tree Bid Next.Scheduling Matrix |
| 19 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius InnerProductSpace |
| 20 | variable {G : Gauge} {n c f : Side} |
| 21 | |
| 22 | lemma gaugeFiscal_smul (B : Bed) (a : Dir G n) (t : ℝ) : |
| 23 | gaugeFiscal B (t • a) (t • a) = t^2*gaugeFiscal B a a := by |
| 24 | have ht i : parts G 1 (t•a) i=t • parts G 1 a i := rfl |
| 25 | unfold gaugeFiscal; simp only [ht,Matrix.mulVec_smul,smul_dotProduct,dotProduct_smul,smul_eq_mul,Finset.mul_sum]; |
| 26 | apply Finset.sum_congr rfl; intros; ring |
| 27 | |
| 28 | lemma top_fiscal (B : Bed) (a : Dir G n) {p : Clip} {η C : ℝ} (hf : Floor B p n η C) (ht : B.diagonal.acts n=1) : |
| 29 | gaugeFiscal B a a = ∑ x : Face (Per n), ‖Work.F03.faceCurl x a‖^2 := by |
| 30 | unfold gaugeFiscal Precision.K |
| 31 | simp only [← real_inner_self_eq_norm_sq, Work.F03.inner_color] |
| 32 | rw [Finset.sum_comm] |
| 33 | refine Finset.sum_congr rfl fun i _ => ?_ |
| 34 | rw [Matrix.mul_assoc,hf.same,ht,Matrix.one_mul,← Matrix.mulVec_mulVec,Matrix.dotProduct_transpose_mulVec, |
| 35 | dotProduct,← Equiv.sum_comp (Equiv.prodCongr (Equiv.refl (Site n)) plaqEquiv)] |
| 36 | rfl |
| 37 | |
| 38 | lemma energy_limit (B : Bed) (a : Dir G n) {p : Clip} {η C : ℝ} (hf : Floor B p n η C) (ht : B.diagonal.acts n=1) : |
| 39 | Tendsto (fun t : ℝ => Wilson.energy (represent (t • a)) / t^2) (𝓝[≠] 0) (𝓝 (gaugeFiscal B a a/2)) := by |
| 40 | rw [top_fiscal B a hf ht]; unfold energy; simp_rw [Finset.sum_div] |
| 41 | refine tendsto_finsetSum _ (fun x _ => Work.F03.price_limit (V:=fun t => faceValue (represent (t • a)) x) ?_ (Work.F03.face_deriv x a)) |
| 42 | rw [zero_smul]; exact Push.stroll_zero .. |
| 43 | |
| 44 | lemma energy_born : ContDiffAt ℝ ω (fun a : Dir G n => energy (represent a)) 0 := by |
| 45 | unfold energy; apply ContDiffAt.sum; intro x _ |
| 46 | apply Work.F03.price_smooth (A:=fun a => faceValue (represent a) x) |
| 47 | simp_rw [faceValue,← Work.F02.stringMat_physical] |
| 48 | exact ((Work.F02.stringMat_contDiff (G:=G) _ _).restrict_scalars ℝ).contDiffAt.comp 0 |
| 49 | (Work.F02.physical_contDiffAt fun i => (Work.F03.represent_smooth i).contDiffAt) |
| 50 | |
| 51 | lemma jets_of_shared_limit {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] {f g : X → ℝ} |
| 52 | (hf : ContDiffAt ℝ ω f 0) (hg : ContDiffAt ℝ ω g 0) {Q : X → ℝ} |
| 53 | (h : ∀ a : X,Tendsto (fun t : ℝ => f (t•a)/t^2) (𝓝[≠] 0) (𝓝 (Q a))) |
| 54 | (h' : ∀ a : X,Tendsto (fun t : ℝ => g (t•a)/t^2) (𝓝[≠] 0) (𝓝 (Q a))) : |
| 55 | ∀ j : ℕ,j ≤ 2 → SameJet j f g := by |
| 56 | have hh := Work.F03.hessian_of_limit (f:=f-g) (Q:=fun _ _ => 0) ((hf.sub hg).of_le le_top) |
| 57 | (fun a => by simpa only [Pi.sub_apply,sub_div,zero_div,sub_self] using (h a).sub (h' a)) |
| 58 | (fun _ _ _ => (add_zero _).symm) (fun _ _ => rfl) |
| 59 | obtain ⟨h₁,h₂,h₃⟩ := hh |
| 60 | rw [Pi.sub_apply, sub_eq_zero] at h₁ |
| 61 | rw [fderiv_sub (hf.differentiableAt (by simp)) (hg.differentiableAt (by simp)),sub_eq_zero] at h₂ |
| 62 | rw [iteratedFDeriv_sub_apply (hf.of_le le_top) (hg.of_le le_top)] at h₃ |
| 63 | intro j hj |
| 64 | refine ⟨hf,hg,?_⟩; ext m; interval_cases j |
| 65 | · simpa only [iteratedFDeriv_zero_apply] |
| 66 | · simp only [iteratedFDeriv_one_apply,h₂] |
| 67 | · have he : m= ![m 0,m 1] := funext fun i => by fin_cases i <;> rfl |
| 68 | rw [he]; exact sub_eq_zero.mp (h₃ _ _) |
| 69 | |
| 70 | lemma top_second (B : Bed) {p : Clip} (W : PathData G) {σ Λ D η C : ℝ} (hf : Floor B p n η C) (ht : B.diagonal.acts n=1) |
| 71 | (hs : W.Bounds p σ D Λ) (hw : Sworn B n G) (ha : Attached B W) : |
| 72 | ∀ j,j≤2 → SameJet j (fun a : Dir G n => mainTerm p W (represent a)) (fun a => energy (represent a)) := |
| 73 | jets_of_shared_limit (Work.F02.mainTerm_contDiffAt hs fun i => (Work.F03.represent_smooth i).contDiffAt) |
| 74 | energy_born (Work.F03.main_limit hs ha hf hw) (fun a => energy_limit B a hf ht) |
| 75 | |
| 76 | variable {S : StepData c f} {W W' : PathData G} {p q : Clip} {U : Forest S.ratio} {σ Λ D η C σ' Λ' D' : ℝ} |
| 77 | {ρ : Dir G c → AxisChart G U} |
| 78 | |
| 79 | lemma fiscal_limit (B : Bed) (a : Dir G c) : |
| 80 | Tendsto (fun t : ℝ => (1/2:ℝ)*gaugeFiscal B (t•a) (t•a)/t^2) (𝓝[≠] 0) (𝓝 (gaugeFiscal B a a/2)) := by |
| 81 | refine tendsto_const_nhds.congr' ?_ |
| 82 | filter_upwards [show ∀ᶠ t : ℝ in 𝓝[≠] 0,t ≠ 0 from self_mem_nhdsWithin] with t ht |
| 83 | rw [gaugeFiscal_smul]; field_simp |
| 84 | |
| 85 | lemma tested_second (B : Bed) (h : Critical U p W ρ) (hc : Comptroller U B p W) (A : Bed) |
| 86 | (hh : HeatG U p W ρ A) (hf : Floor A q c η C) (ht : W'.Bounds q σ D Λ) (ha : Attached A W') (hs : Sworn A c G) : |
| 87 | ∀ (t : S.Choices) (j : ℕ), j ≤ 2 → SameJet j (fun x => tested U t p W x (ρ x)) (fun x => mainTerm q W' (represent x)) := by |
| 88 | intro t |
| 89 | let F := Function.uncurry (tested U t p W) |
| 90 | let u (a : Dir G c) := (a,ρ a) |
| 91 | have hu : u 0=0 := by simp [u,h.1] |
| 92 | have hd : fderiv ℝ F (u 0) = 0 := hu ▸ (hc t).2.1 |
| 93 | have hs' : ContDiffAt ℝ ω F (u 0) := by rw [hu]; exact (h.2.2 t).1 |
| 94 | have hg : ContDiffAt ℝ ω u 0 := contDiffAt_id.prodMk h.2.1 |
| 95 | have he : fderiv ℝ (F ∘ u) 0 = 0 := by |
| 96 | rw [fderiv_comp _ (hs'.differentiableAt (by simp)) (hg.differentiableAt (by simp)),hd]; rfl |
| 97 | let g (x : Dir G c) := (1/2:ℝ)*gaugeFiscal A x x |
| 98 | let f (x : Dir G c) := mainTerm q W' (represent x) |
| 99 | have hJ : ∀ j,j ≤ 2 → SameJet j g f := jets_of_shared_limit (hh t).2.1 |
| 100 | (Work.F02.mainTerm_contDiffAt ht fun i => (Work.F03.represent_smooth i).contDiffAt) (fiscal_limit A) (Work.F03.main_limit ht ha hf hs) |
| 101 | obtain ⟨hv,h',-⟩ := Work.F03.hessian_of_limit (Q:=fun x y => gaugeFiscal A x y) ((hh t).2.1.of_le le_top) (fiscal_limit A) |
| 102 | Work.F03.gaugeFiscal_add (fun x y => by |
| 103 | simp_rw [Work.F03.metric_pair A ht ha _ _ hf,real_inner_comm (Work.F03.faceCurl _ x), real_inner_comm (Work.F03.ellLine W' _ x)]) |
| 104 | change ∀ (j : ℕ), j ≤ 2 → SameJet j (F ∘ u) f |
| 105 | intro j hj; refine ⟨hs'.comp 0 hg, (hJ j hj).2.1,?_⟩ |
| 106 | rw [← (hJ j hj).2.2] |
| 107 | interval_cases j |
| 108 | · ext m; simp only [iteratedFDeriv_zero_apply, Function.comp_apply,hu] |
| 109 | exact (hc t).1.trans hv.symm |
| 110 | · ext m; simp only [iteratedFDeriv_one_apply, he]; rw [show fderiv ℝ g 0 = 0 from h'] |
| 111 | exact (hh t).2.2 |
| 112 | end YM.Progress.Joint |
| 113 | |
| 114 | namespace YM.Progress.Joint |
| 115 | open Filter Function Lattice RG Wilson Precision Exterior Tree Bid Next.Scheduling Matrix |
| 116 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius |
| 117 | variable {G : Gauge} {c f n : Side} {S : StepData c f} {W W' : PathData G} {p q : Clip} {U U' : Forest S.ratio} {σ Λ D η σ' Λ' D' : ℝ} |
| 118 | {ρ : Dir G c → AxisChart G U} {ρ' : Dir G c → AxisChart G U'} {O : ChartRatio G} |
| 119 | |
| 120 | lemma pulled_smooth {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] (A : X → Config G n) |
| 121 | (ha : ∀ i, ContDiffAt ℝ ω (fun x => G.mat (A x i)) 0) (s : Signed) (i) : |
| 122 | ContDiffAt ℝ ω (fun x => G.mat (pull s 0 (A x) i)) 0 := by |
| 123 | unfold pull Step.read |
| 124 | split |
| 125 | · exact (show G.Mat ≃L[ℝ] G.Mat from starL ℝ).contDiff.contDiffAt.comp _ (ha _) |
| 126 | exact ha _ |
| 127 | |
| 128 | lemma loop_born {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] (h : W.Bounds p σ D Λ) |
| 129 | (A : X → Config G n) (ha : ∀ i, ContDiffAt ℝ ω (fun x => G.mat (A x i)) 0) : |
| 130 | ContDiffAt ℝ ω (fun x => Precision.loop W (A x)) 0 := by |
| 131 | unfold Precision.loop Patch.average; apply contDiffAt_const.mul (ContDiffAt.sum _); intro s _ |
| 132 | exact Work.F02.uncut_contDiffAt (A:=fun x => pull s 0 (A x)) h.width h.two (pulled_smooth A ha s) |
| 133 | |
| 134 | lemma draft_born (h : W.Bounds p σ D Λ) (α : ℝ) : ContDiffAt ℝ ω (draft (c:=c) α W p) 0 := by |
| 135 | have he (e) := (Work.F03.represent_smooth (G:=G) (n:=c) e).contDiffAt (x:=0) |
| 136 | refine (contDiffAt_const.mul ?_).add (loop_born h represent he) |
| 137 | unfold secondTerm Patch.average; apply contDiffAt_const.mul (ContDiffAt.sum _); intro s _ |
| 138 | exact Work.F02.quadratic_contDiffAt (A:=fun x => pull s 0 (represent x)) h (pulled_smooth _ he s) |
| 139 | |
| 140 | lemma thermal_born (t : S.Choices) (h : W.Bounds p σ D Λ) (hc : Critical U p W ρ) |
| 141 | (ha : 0<η) (hQ : PriceGap U p W η) (hO : LocalRatio O) : ContDiffAt ℝ ω (thermal U t p W ρ O) 0 := by |
| 142 | let g := fun x : Dir G c => (x,ρ x) |
| 143 | have hz : g 0 = 0 := by simp [g,hc.1] |
| 144 | have hg : ContDiffAt ℝ ω g 0 := contDiffAt_id.prodMk hc.2.1 |
| 145 | have he : ContDiffAt ℝ ω (fun z : Dir G c × AxisChart G U => fderiv ℝ (fderiv ℝ (tested U t p W z.1)) z.2) (g 0) := by |
| 146 | rw [hz]; exact Work.F05.curve_partial (F:=fun x => fderiv ℝ (tested U t p W x)) (Work.F05.curve_partial (hc.2.2 t).1) |
| 147 | have hj (i j) : ContDiffAt ℝ ω (fun x => hessian U t p W x (ρ x) i j) 0 := by |
| 148 | simp only [hessian, Matrix.of_apply, iteratedFDeriv_two_apply, cons_val_zero,cons_val_one] |
| 149 | exact (((he.comp 0 hg).clm_apply contDiffAt_const).clm_apply contDiffAt_const) |
| 150 | have hd : ContDiffAt ℝ ω (fun x => (hessian U t p W x (ρ x)).det) 0 := by |
| 151 | simp_rw [det_apply']; refine ContDiffAt.sum (fun i _ => contDiffAt_const.mul (contDiffAt_prod ?_)) |
| 152 | intro j _; exact hj .. |
| 153 | have hJ := hO.germ 0 (Metric.mem_ball_self hO.patch) |
| 154 | have hP i : ContDiffAt ℝ ω (fun x => O.J (ρ x i)) 0 := by |
| 155 | rw [← show ρ 0 i = 0 by rw [hc.1]; rfl] at hJ |
| 156 | exact hJ.comp (f:=fun x => ρ x i) 0 ((contDiffAt_pi.mp hc.2.1) i) |
| 157 | have hA (i) : ContDiffAt ℝ ω (fun x => G.mat (lifting U (represent x) (ρ x) i)) 0 := |
| 158 | ((show ContDiffAt ℝ ω (fun z => G.mat (Work.F03.live U (G:=G) z i)) (g 0) by rw [hz]; exact Work.F03.live_smooth U i).comp 0 hg) |
| 159 | refine ((loop_born h _ hA).add (contDiffAt_const.mul (hd.log ((Work.F05.hessian_pos ha hQ hc t).self_of_nhds).ne'))).sub ?_ |
| 160 | refine (contDiffAt_prod fun i _ => hP i).log ?_ |
| 161 | simp [hc.1,hO.anchored] |
| 162 | |
| 163 | lemma option_germs (hs : S.patch.Branches S.kernel G) (h : Critical U p W ρ) (t r : S.Choices) (O : ChartRatio G) : |
| 164 | (fun x => tested U t p W x (ρ x)) =ᶠ[𝓝 0] (fun x => tested U r p W x (ρ x)) ∧ |
| 165 | thermal U t p W ρ O=ᶠ[𝓝 0] thermal U r p W ρ O := by |
| 166 | have he := Work.F04.tested_germ hs U p W t r |
| 167 | have hx := Work.F05.crit_home h |
| 168 | have hi := he.comp_tendsto hx |
| 169 | refine ⟨hi,?_⟩ |
| 170 | filter_upwards [hx.eventually (eventually_eventually_nhds.mpr he)] with x hg |
| 171 | have ha : tested U t p W x =ᶠ[𝓝 (ρ x)] tested U r p W x := |
| 172 | Work.F05.hold_near (V:=fun z => tested U t p W z.1 z.2=tested U r p W z.1 z.2) hg |
| 173 | unfold thermal hessian; rw [(ha.iteratedFDeriv ℝ 2).self_of_nhds] |
| 174 | |
| 175 | /-- Invoices may match just ONE branch/tree per torus (still use actual |
| 176 | paths, orientations and the two waves including zero/polarization). |
| 177 | F05 about actual predictors/weights, no swapping approximate jets for |
| 178 | identity after differentiation. Doesn't remove any *period*. -/ |
| 179 | lemma trial_agrees (hL : Larger (G:=G) S) (h : W.Bounds p σ D Λ) (hO : LocalRatio O) |
| 180 | (h₁ : Critical U p W ρ) (h₂ : Critical U' p W ρ') (ha : 0<η) (hq : PriceGap U p W η) (hq' : PriceGap U' p W η) |
| 181 | (t t' : S.Choices) : |
| 182 | (∀ j, iteratedFDeriv ℝ j (fun x => tested U t p W x (ρ x)) 0 = iteratedFDeriv ℝ j (fun x => tested U' t' p W x (ρ' x)) 0) ∧ |
| 183 | iteratedFDeriv ℝ 2 (thermal U t p W ρ O) 0 = iteratedFDeriv ℝ 2 (thermal U' t' p W ρ' O) 0 := by |
| 184 | obtain ⟨he,b,hb⟩ := Work.F05.answer G c f S hL U U' p W σ D Λ η η ρ ρ' h h₁ h₂ ha ha hq hq' O hO t' |
| 185 | obtain ⟨hf,hg⟩ := option_germs hL.1 h₁ t t' O |
| 186 | refine ⟨fun j => ((hf.trans he).iteratedFDeriv ℝ j).self_of_nhds,?_⟩ |
| 187 | rw [((hg.trans hb).iteratedFDeriv ℝ 2).self_of_nhds] |
| 188 | have hD : ContDiffAt ℝ 2 (thermal U' t' p W ρ' O) 0 := (thermal_born t' h h₂ ha hq' hO).of_le le_top |
| 189 | rw [show (fun x => thermal U' t' p W ρ' O x+b)=thermal U' t' p W ρ' O + (fun _ => b) from rfl, |
| 190 | iteratedFDeriv_add_apply hD contDiffAt_const, iteratedFDeriv_const_of_ne (by decide : 2 ≠ 0)] |
| 191 | simp |
| 192 | end YM.Progress.Joint |