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.AnalyticNext.CUBIC_MATCH.Lift.Atoms |
| 2 | import YM.Progress.JOINT_CALENDAR.Germs |
| 3 | |
| 4 | |
| 5 | set_option warningAsError false |
| 6 | |
| 7 | /-! |
| 8 | # Cubic handover from the estimate on the link-space residual |
| 9 | |
| 10 | Requirements here include actual funded estimates (not proved HERE). But no |
| 11 | needed hypotheses on cubic curvature correction existence, gauge completion, |
| 12 | or exterior lift. Caller owes the real kernel price on actual third derivative |
| 13 | BEFORE such construction, attaining positive width indep of unknown input |
| 14 | path caps. This applies to the genuine top Wilson too. `SameJet 3` after |
| 15 | these costed data: *no cancellation* with particular choice of quartic or |
| 16 | loop required at order three. Keep them free for subsequent invoices. |
| 17 | -/ |
| 18 | set_option autoImplicit false |
| 19 | noncomputable section |
| 20 | namespace YM.CubicMatch |
| 21 | open Function Filter RG Precision Tree Progress.StationaryScenes Bid Lift Lattice Wilson Exterior Work.F03 |
| 22 | open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators |
| 23 | variable {G : Gauge} |
| 24 | |
| 25 | abbrev baseline (q : Clip) (T : PathData G) {n : Side} (x : Dir G n) := secondTerm q T (represent x) |
| 26 | |
| 27 | section local_jet |
| 28 | variable {n : Side} {σ C Λ : ℝ} {q : Clip} {T : PathData G} {V : ℕ → Atom G 3} |
| 29 | |
| 30 | lemma aware (h : T.Bounds q σ C Λ) : Checks n (baseline q T) := by |
| 31 | apply checksRead _ _ (quadratic_invariant h) quadratic_rotated |
| 32 | unfold secondTerm Patch.average; apply contDiffAt_const.mul |
| 33 | refine ContDiffAt.sum fun i _ => Work.F02.quadratic_contDiffAt (A:=fun x : Dir G n => pull i 0 (represent x)) h |
| 34 | (Progress.Joint.pulled_smooth _ (fun i => (represent_smooth i).contDiffAt) _) |
| 35 | |
| 36 | lemma along_baseline {P : PathData G} (h : P.row=T.row) : baseline (n:=n) q P = baseline q T := by |
| 37 | funext i; simp_rw [baseline,secondTerm,quadratic,PathData.ell,PathData.ellTerms,h] |
| 38 | |
| 39 | lemma first_coeff (h : T.Bounds q σ C Λ) (x : Dir G n) : |
| 40 | term 3 (fun t : ℝ => mainTerm q T (represent (t • x))) = |
| 41 | term 3 (fun t : ℝ => baseline q T (t • x)) + |
| 42 | Patch.average (fun s : Signed => term 3 (fun t : ℝ => uncut T.cubic (represent (t • rotate s x)))) := by |
| 43 | unfold mainTerm baseline secondTerm Patch.average; simp_rw [represent_pulled] |
| 44 | have hh (f : Signed → ℝ → ℝ) (hf : ∀ i, ContDiffAt ℝ ω (f i) 0) : |
| 45 | term 3 (fun t : ℝ => (Fintype.card Signed:ℝ)⁻¹ * ∑ i,f i t)=(Fintype.card Signed:ℝ)⁻¹*∑ i,term 3 (f i) := by |
| 46 | rw [show term 3 (fun t : ℝ => (Fintype.card Signed:ℝ)⁻¹ * ∑ i,f i t)=(Fintype.card Signed:ℝ)⁻¹*term 3 (fun t => ∑ i,f i t) from |
| 47 | term_scaled (g:=fun t => ∑ i,f i t) _ (ContDiffAt.sum (fun i _ => hf i)),term_sum (g:=f) (s:=Finset.univ) (fun i _ => (hf i).of_le le_top)] |
| 48 | have hM (i) : ContDiffAt ℝ ω (fun t : ℝ => quadratic q T (represent (t • pulled x i))) 0 := |
| 49 | Work.F02.quadratic_contDiffAt (A:=fun t : ℝ => represent (t • pulled x i)) h (test_ray _) |
| 50 | have ht (i) : ContDiffAt ℝ ω (fun t : ℝ => uncut T.cubic (represent (t • pulled x i))) 0 := |
| 51 | Work.F02.uncut_contDiffAt (A:=fun t : ℝ => represent (t • pulled x i)) h.width h.three (test_ray _) |
| 52 | have hq (i) : ContDiffAt ℝ ω (fun t : ℝ => uncut T.quartic (represent (t • pulled x i))) 0 := |
| 53 | Work.F02.uncut_contDiffAt (A:=fun t : ℝ => represent (t • pulled x i)) h.width h.four (test_ray _) |
| 54 | rw [hh _ (fun i => ((hM i).add (ht i)).add (hq i)), hh _ hM,← mul_add,← Finset.sum_add_distrib] |
| 55 | congr 1 |
| 56 | refine Finset.sum_congr rfl fun i _ => ?_ |
| 57 | have he := (preamble h.width h.four (pulled x i)).2 3 (by omega) |
| 58 | change _ = term 3 (fun t => _) + term 3 (fun t : ℝ => uncut T.cubic (represent (t • pulled x i))) |
| 59 | have hj := term_add (k:=3) (((hM i).add (ht i)).of_le le_top) ((hq i).of_le le_top) |
| 60 | simp only [he,add_zero] at hj |
| 61 | exact hj.trans (congr_arg id (term_add ((hM i).of_le le_top) ((ht i).of_le le_top))) |
| 62 | |
| 63 | /-- The price part of the cubic invoice (true path, invariant color). Not a |
| 64 | comparison of the purely direct branch, nor of the quadratic data. -/ |
| 65 | def Flies (θ A : ℝ) (V : ℕ → Atom G 3) : Prop := |
| 66 | SumBudget (fun i => (V i).budget θ) A ∧ ∀ i, (V i).Invariant |
| 67 | |
| 68 | lemma same_three {K : Stored G} {θ B} (hθ : 0<θ) (hB : 0≤B) (p : Pace θ B K) (h : T.Bounds q σ C Λ) |
| 69 | {F : Dir G n → ℝ} (hf : Checks n F) {P : PathData G} {a v z} (hP : P.Bounds q a v z) |
| 70 | (g : P.row=T.row) (w : P.cubic=plant3 K) |
| 71 | (e : ∀ x : Dir G n, pair3 (completely K) x x x=Tensor.diagonal (Tensor.coeff (F-baseline q T) 3 0) x) : |
| 72 | SameJet 3 F fun x => mainTerm q P (represent x) := by |
| 73 | let K₀ : Dir G n → ℝ := baseline q T |
| 74 | let L : Dir G n → ℝ := fun x => mainTerm q P (represent x) |
| 75 | have hr : Checks n K₀ := aware h |
| 76 | have hs : ContDiffAt ℝ ω L 0 := Work.F02.mainTerm_contDiffAt (A:=fun x : Dir G n => represent x) hP fun i => |
| 77 | (represent_smooth (G:=G) _).contDiffAt |
| 78 | have he : ∀ i x, term 3 (fun t : ℝ => uncut P.cubic (represent (t • rotate (G:=G) (n:=n) i x))) = |
| 79 | term 3 (fun t : ℝ => F (t • x))-term 3 (fun t : ℝ => K₀ (t • x)) := by |
| 80 | intro i x |
| 81 | rw [w,plant3_third p hθ hB, e,← term_ray ((hf.inherited hr).analytic.of_le le_top)] |
| 82 | simp_rw [← map_smul] |
| 83 | rw [(hf.inherited hr).rotated] |
| 84 | have hx : ContDiffAt ℝ ω (fun t : ℝ => t • x) 0 := by fun_prop |
| 85 | have h1 : ContDiffAt ℝ ω F ((0:ℝ) • x) := by rw [zero_smul]; exact hf.analytic |
| 86 | have h2 : ContDiffAt ℝ ω K₀ ((0:ℝ) • x) := by rw [zero_smul]; exact hr.analytic |
| 87 | exact term_sub ((h1.comp 0 hx).of_le le_top) ((h2.comp 0 hx).of_le le_top) |
| 88 | have hm (x : Dir G n) : Tensor.diagonal (Tensor.coeff F 3 0) x=Tensor.diagonal (Tensor.coeff L 3 0) x := by |
| 89 | rw [← term_ray (hf.analytic.of_le le_top), ← term_ray (f:=L) (hs.of_le le_top)]; unfold L |
| 90 | rw [first_coeff hP, along_baseline g] |
| 91 | simp_rw [he]; rw [Patch.average,Finset.sum_const,Finset.card_univ,nsmul_eq_mul, |
| 92 | inv_mul_cancel_left₀ (by exact_mod_cast (Fintype.card_pos (α:=Signed)).ne')]; unfold K₀; abel |
| 93 | refine ⟨hf.analytic,hs,?_⟩ |
| 94 | apply smul_right_injective (Tensor.T (Dir G n) ℝ 3) (inv_ne_zero (show ((3:ℕ).factorial:ℝ)≠0 from by positivity)) |
| 95 | exact Tensor.ext_diag (Tensor.coeff F 3 0) (Tensor.coeff L 3 0) (Tensor.coeff_symm (hf.analytic.of_le le_top)) |
| 96 | (Tensor.coeff_symm (hs.of_le le_top)) (funext hm) |
| 97 | |
| 98 | |
| 99 | end local_jet |
| 100 | |
| 101 | /-- Interface useful even with `q` already fixed. `F` the actual StationValue |
| 102 | (or top Wilson). Quantitative estimate REQUIRED on its whole-cover scalar |
| 103 | LINK kernel. This port doesn't postulate basis rearrangements or any identity |
| 104 | with candidate output curvature data. Needs the 0/1/2 matches from RScene. |
| 105 | Hands over actual CURVATURE-kernel PathData.cubic entries with true cost. |
| 106 | Widths determined before volume or size of input cap. |
| 107 | -/ |
| 108 | theorem earn (G : Gauge) {η : ℝ} (he : 0<η) : ∃ θ D : ℝ, 0<θ ∧ 0<D ∧ |
| 109 | ∀ (n : ℕ → Side) (_ : Tendsto (fun i => (n i).val) atTop atTop) (q : Clip) (P : PathData G) (b v z : ℝ), |
| 110 | P.Bounds q b v z → ∀ F : ∀ i, Dir G (n i) → ℝ, (∀ i,Checks (n i) (F i)) → |
| 111 | (∀ i, SameJet 1 (F i) (baseline q P)) → (∀ i, SameJet 2 (F i) (baseline q P)) → |
| 112 | ∀ C : ℝ, 0≤C → ∀ K : Three (Shades G) 1 1 1, Pace η C K → |
| 113 | (∀ p, ∀ x y t,pair3 (n:=n p) K x y t=Tensor.coeff (F p-baseline q P) 3 0 ![x,y,t]) → |
| 114 | ∃ R : ℕ → Atom G 3, Flies θ (D*C) R ∧ ∀ σ B Λ (T : PathData G), T.Bounds q σ B Λ → T.row=P.row → T.cubic=R → |
| 115 | ∀ i, SameJet 3 (F i) fun x => mainTerm q T (represent x) := by |
| 116 | obtain ⟨θ,D,hθ,hD,H⟩ := paid_lift G he |
| 117 | let M := bookFee G θ *D+1; have hp : 0<M := add_pos_of_nonneg_of_pos (mul_nonneg (bookFee_nonneg ..) hD.le) one_pos |
| 118 | refine ⟨θ/2,M,half_pos hθ,hp,fun n hn q P b v z hP F hf h₁ h₂ C hC K hK hx => ?_⟩ |
| 119 | let L i := F i-baseline q P |
| 120 | have hh i : Checks _ (L i) := Checks.inherited (hf i) (aware hP) |
| 121 | have hz i : iteratedFDeriv ℝ 2 (L i) 0=0 := by |
| 122 | unfold L |
| 123 | obtain ⟨ha,hb,hq⟩ := h₂ i; rw [iteratedFDeriv_sub_apply (ha.of_le le_top) (hb.of_le le_top),hq,sub_self] |
| 124 | have hL i : fderiv ℝ (L i) 0=0 := by |
| 125 | obtain ⟨ha,hb,hq⟩ := h₁ i |
| 126 | unfold L; rw [fderiv_sub (ha.differentiableAt (by simp)) (hb.differentiableAt (by simp))]; apply sub_eq_zero.mpr |
| 127 | apply ContinuousLinearMap.ext; intro v |
| 128 | have he := DFunLike.congr_fun hq (fun _ => v); simp only [iteratedFDeriv_one_apply] at he; exact he |
| 129 | obtain ⟨ha,hα,hβ,hγ⟩ := shadows hK he hn hh hL hz hx |
| 130 | obtain ⟨X,hx',hp',hX⟩ := H _ hC K hK ha hα hβ hγ |
| 131 | have hv : 0 ≤ D*C := mul_nonneg hD.le hC |
| 132 | have hg := plant3_quote hx' hθ hv |
| 133 | refine ⟨plant3 X,⟨⟨hg.1,hg.2.1,hg.2.2.trans ?_⟩,plant3_valid hp'⟩, fun σ B Λ T hT ht hj i => |
| 134 | same_three hθ hv hx' hP (hf i) hT ht hj (fun a => ?_)⟩ |
| 135 | · unfold M; rw [add_mul,one_mul,mul_assoc]; linarith |
| 136 | rw [hX,hx] |
| 137 | unfold Tensor.diagonal; congr 1; ext1 i; fin_cases i <;> rfl |
| 138 | end YM.CubicMatch |