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.AnalyticBridge.SECTOR_AFFINE_JETS.Directions |
| 2 | import YM.AnalyticBridge.SECTOR_AFFINE_JETS.Point |
| 3 | import YM.Next.EXTRACTION.Basis |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # Matrices on Pointwise costs. Convert marked costs to the E direction convention |
| 8 | -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.AnalyticBridge.SectorAffine.Offset |
| 12 | |
| 13 | open Filter Function Lattice Wilson RG Precision Pressure Tree |
| 14 | open YM.Next.SectorChange YM.Next.SectorChange.Rows |
| 15 | open YM.FreeResolvent (Mark Bundle native Cost) |
| 16 | open YM.FreeResolvent.TestD Matrix |
| 17 | open YM.Push.Uniform (bolt) |
| 18 | open scoped Topology ContDiff BigOperators InnerProductSpace Classical Matrix.Norms.Frobenius |
| 19 | |
| 20 | variable {G : Gauge} {c f : Side} |
| 21 | variable {n k : ℕ} {C M K σ a s d t : ℝ} |
| 22 | variable {ι κ : Type} [Fintype ι] [Fintype κ] |
| 23 | {p : ι → Site c} {q : κ → Site c} {V : Config G c} {B : PriceCoords G c} |
| 24 | {H J : PriceCoords G c → ι → ℝ} {A : PriceCoords G c → Matrix κ ι ℝ} |
| 25 | |
| 26 | /-- Only pointwise per output. -/ |
| 27 | def Parcel (B : PriceCoords G c) (p : ι → Site c) (σ : ℝ) (n : ℕ) (H : PriceCoords G c → ι → ℝ) (C : ℝ) := |
| 28 | ∀ i, Point B (p i) σ n (fun z => H z i) C |
| 29 | |
| 30 | namespace Parcel |
| 31 | lemma smooth (h : Parcel B p σ n H C) : ContDiffAt ℝ n H B := contDiffAt_pi.mpr fun i => (h i).smooth |
| 32 | section |
| 33 | omit [Fintype ι] |
| 34 | lemma mono (h : Parcel B p σ n H C) (hσ : s ≤ σ) (hm : C ≤ M) : Parcel B p s n H M := |
| 35 | fun i => (h i).mono hσ hm |
| 36 | lemma glue (h : Parcel B p σ n H C) (he : H =ᶠ[𝓝 B] J) : Parcel B p σ n J C := fun i => (h i).germ |
| 37 | (he.mono fun _ hx => congr_fun hx i) |
| 38 | lemma nonnegated (h : Parcel B p σ n H C) : Parcel B p σ n (-H) C := fun i => (h i).neg |
| 39 | lemma add (h : Parcel B p σ n H C) (h' : Parcel B p σ n J M) : Parcel B p σ n (H+J) (C+M) := fun i => (h i).add (h' i) |
| 40 | |
| 41 | end |
| 42 | |
| 43 | /- Embed in dummy Unit column to apply row-rate estimates on |
| 44 | multiplication. We don't assert any Mark.bill on that column. -/ |
| 45 | private def col (H : ι → ℝ) : Matrix ι Unit ℝ := Matrix.of fun i _ => H i |
| 46 | private def insertCol : (ι → ℝ) →L[ℝ] Matrix ι Unit ℝ := LinearMap.toContinuousLinearMap |
| 47 | ({ toFun := col, map_smul' := fun _ _ => rfl,map_add' := fun _ _ => rfl }: (ι → ℝ) →ₗ[ℝ] Matrix ι Unit ℝ) |
| 48 | private def dull (c : Side) (_ : Unit) : Site c := 0 |
| 49 | private def enter (H : PriceCoords G c → ι → ℝ) := fun y => Parcel.col (H y) |
| 50 | private lemma col_smooth (h : ContDiffAt ℝ n H B) : ContDiffAt ℝ n (enter H) B := |
| 51 | (show ContDiffAt ℝ n ((@insertCol ι _) ∘ H) B from (ContDiffAt.comp (f:=H) (g:=(insertCol : (ι → ℝ) →L[ℝ] Matrix ι Unit ℝ)) B (ContinuousLinearMap.contDiff _).contDiffAt h)) |
| 52 | private lemma dummy {l : List (Coord G c)} (h : ContDiffAt ℝ l.length (enter H) B) (i : ι) : |
| 53 | (marks G c σ).pay l (p i)*(∑ j : Unit, (native c).weight 0 (p i) (dull c j)*|jet bolt (enter H) l B i j|) = |
| 54 | (marks G c σ).pay l (p i)*‖jet bolt (fun y => H y i) l B‖ := by simp only [Cost.weight_zero,one_mul,Fintype.sum_unique, ← entry bolt l h]; rfl |
| 55 | private lemma rate (h : Parcel B p σ n H C) (l : List (Coord G c)) (hl : l.length ≤ n) : |
| 56 | Mark.Rates (marks G c σ) (native c) p (dull c) l 0 C (jet bolt (enter H) l B) := by |
| 57 | constructor; intro i; rw [dummy (smooth_of_le (col_smooth h.smooth) hl)]; exact (h i).bound l hl |
| 58 | private lemma flatten (h : ContDiffAt ℝ n (enter H) B) |
| 59 | (hp : ∀ l : List (Coord G c), l.length ≤ n → |
| 60 | Mark.Rates (marks G c σ) (native c) p (dull c) l 0 C (jet bolt (enter H) l B)) : Parcel B p σ n H C := by |
| 61 | intro i; refine ⟨(evaluate i ()).contDiff.contDiffAt.comp B h,fun l hl => ?_⟩ |
| 62 | have ht := (hp l hl).rows i; rw [dummy (smooth_of_le h hl)] at ht; exact ht |
| 63 | private lemma rate_sum {ι μ θ X τ : Type} [Fintype μ] {P : Mark τ X} {a : ι → X} {b : μ → X} {D : Cost X} |
| 64 | {T : Finset θ} {l : List τ} {f : θ → Matrix ι μ ℝ} {m : θ → ℝ} (h : ∀ i∈T, Mark.Rates P D a b l σ (m i) (f i)) : |
| 65 | Mark.Rates P D a b l σ (∑ i∈T, m i) (∑ i∈T, f i) := by |
| 66 | induction T using Finset.induction_on with |
| 67 | | empty => simp only [Finset.sum_empty]; exact Mark.Rates.zero le_rfl |
| 68 | | @insert i T hT ih => rw [Finset.sum_insert hT,Finset.sum_insert hT]; exact (h i (by simp)).add (ih fun i hi => h i (by simp [hi])) |
| 69 | lemma deliver (h : Parcel B p d n H C) (hC : 0 ≤ C) (h' : Polar B q p A n σ M) |
| 70 | (hm : 0 ≤ M) (hd : 0 ≤ d) (he : d ≤ σ) (ht : n*d ≤ σ) : |
| 71 | Parcel B q d n (fun y => A y *ᵥ H y) ((2:ℝ)^n * (C*M)) := by |
| 72 | apply flatten |
| 73 | all_goals rw [show enter (fun y => A y *ᵥ H y) = fun y => A y * enter H y from rfl] |
| 74 | · exact prod_smooth h'.smooth (col_smooth h.smooth) |
| 75 | intro l hl |
| 76 | rw [jet_mul _ _ (smooth_of_le h'.smooth hl) (smooth_of_le (col_smooth h.smooth) hl)] |
| 77 | have hh (x : Masks l) := h.rate (hi l x) ((len_high l x).trans hl) |
| 78 | have hx := h'.toBundle he |
| 79 | refine Mark.Rates.mono (rate_sum (m:=fun _=>C*M) ?_) le_rfl ?_ |
| 80 | · intro i _ |
| 81 | have hy := (hx.bound (lo l i) ((len_low l i).trans hl)).row.mul |
| 82 | (Mark.position_move _ _ hd) zero_le_one (le_refl (0:ℝ)) |
| 83 | (show 0+(hi l i).length*d ≤ σ by |
| 84 | rw [zero_add]; exact (mul_le_mul_of_nonneg_right (by exact_mod_cast (len_high l i).trans hl) hd).trans ht) |
| 85 | (fun x => (marks G c d).pay_masks l i x) (hh i) hC |
| 86 | simpa only [one_pow, one_mul] using hy |
| 87 | rw [Finset.sum_const,Finset.card_univ,FreeResolvent.TestD.card,nsmul_eq_mul,Nat.cast_pow,Nat.cast_ofNat] |
| 88 | gcongr; norm_num |
| 89 | |
| 90 | lemma activated_scale (hH : Parcel (G:=G) 0 p σ n (fun y => H (t • y)) C) |
| 91 | (hσ : 0<σ) (ht : 0<t) (power : ℕ) (hc : 0 ≤ C) : |
| 92 | let Q := H ∘ reader G c |
| 93 | ContDiffAt ℝ n Q 0 ∧ ∀ (o : Site c) (l : List (Directions G c)), l.length ≤ n → Afford t power o l → |
| 94 | ∀ i : ι, let r := Mark.hill (native c) o power (p i) |
| 95 | (r^l.length)⁻¹ *|jet id Q l 0 i| ≤ activation G n power σ*C := by |
| 96 | intro Q |
| 97 | let H' := fun y => H (t • y); let F := enter H' |
| 98 | let Z := t⁻¹ • reader G c |
| 99 | have he : Q=H' ∘ Z := funext fun i => by |
| 100 | change H _=H (t • t⁻¹ • reader G c i); rw [smul_smul,mul_inv_cancel₀ ht.ne',one_smul] |
| 101 | have hs : ContDiffAt ℝ n H' (Z 0) := by rw [map_zero]; exact hH.smooth |
| 102 | have hg : ContDiffAt ℝ n Q 0 := he ▸ hs.comp _ Z.contDiff.contDiffAt |
| 103 | have hf : ContDiffAt ℝ n F (Z 0) := col_smooth hs |
| 104 | refine ⟨hg,?_⟩ |
| 105 | intro o l hl ha i r |
| 106 | let m := Mark.radial (Directions G c) (native c) o power |
| 107 | have hm : jet id (fun y => col (Q y)) l 0 = jet Z F l 0 := by |
| 108 | rw [he]; unfold jet |
| 109 | change iteratedFDeriv ℝ l.length (F ∘ Z) _ _ = _ |
| 110 | rw [Push.Uniform.iter_lin_at (smooth_of_le hf hl),map_zero]; rfl |
| 111 | have hx (j) (hj : j∈l) (w : Coord G c) : ‖Z j w‖ ≤ 1*Mark.hill (native c) o power (coordRoot w) := by |
| 112 | have hi := ha _ hj w.1 |
| 113 | have he : |j w.1 w.2| ≤ ‖j w.1‖ := by |
| 114 | rw [← EuclideanSpace.basisFun_inner G.ColorIndex ℝ (j w.1) w.2]; simpa using |
| 115 | abs_real_inner_le_norm (EuclideanSpace.basisFun G.ColorIndex ℝ w.2) (j w.1) |
| 116 | rw [one_mul] |
| 117 | change ‖t⁻¹ • ((j w.1 w.2):ℝ)‖ ≤ _ |
| 118 | rw [norm_smul,Real.norm_of_nonneg (inv_pos.mpr ht).le]; calc |
| 119 | _ ≤ t⁻¹ * (t*_) := mul_le_mul_of_nonneg_left (he.trans hi) (inv_pos.mpr ht).le |
| 120 | _ = _ := by rw [← mul_assoc,inv_mul_cancel₀ ht.ne',one_mul] |
| 121 | let s := σ/2; have ht' : 0<s := half_pos hσ |
| 122 | have hp (w : Fin l.length → Coord G c) := hH.rate (List.ofFn w) (by rwa [List.length_ofFn]) |
| 123 | have hEq : (fun i : Coord G c => Pi.single i (1:ℝ))=bolt := by |
| 124 | funext i j |
| 125 | simp only [bolt,Pi.single_apply]; congr! |
| 126 | have hJ := (Mark.meter_rows (ι:=ι) (b:=dull c) (p:=coordRoot (G:=G) (c:=c)) Z (x:=0) (a:=p) (d:=σ) (l:=l) (F:=F) (γ:=0) (fun w => hEq.symm ▸ hp w) hc zero_le_one hx ht' (le_of_eq (by unfold s; ring)) (param_volume G c ht')).rows i |
| 127 | rw [← hm, Mark.payment] at hJ |
| 128 | have H1 : jet id (fun y => col (Q y)) l 0=col (jet id Q l 0) := jet_linear _ _ insertCol (smooth_of_le hg hl) |
| 129 | rw [H1] at hJ |
| 130 | simp only [col,Matrix.of_apply,Cost.weight_zero,one_mul,Fintype.sum_unique] at hJ |
| 131 | refine hJ.trans ?_ |
| 132 | rw [← mul_assoc, ← mul_pow]; gcongr |
| 133 | exact pow_le_pow_right₀ (one_le_mul_of_one_le_of_one_le (param_pos ..) (Mark.poly_le _ ht')) hl |
| 134 | end Parcel |
| 135 | |
| 136 | lemma polar_compress (h : Polar (G:=G) 0 q p A n σ M) (ht : 0 ≤ t) (hu : t ≤ 1) : |
| 137 | Polar (G:=G) 0 q p (fun y => A (t • y)) n σ M := by |
| 138 | let L := t • ContinuousLinearMap.id ℝ (PriceCoords G c) |
| 139 | have he : ContDiffAt ℝ n A (L 0) := by rw [map_zero]; exact h.smooth |
| 140 | change Polar _ _ _ (A ∘ L) _ _ _ |
| 141 | refine ⟨he.comp _ L.contDiff.contDiffAt, fun l hl => ?_⟩ |
| 142 | have hj : jet bolt (A ∘ L) l 0 = t^l.length • jet bolt A l 0 := by |
| 143 | unfold jet |
| 144 | rw [Push.Uniform.iter_lin_at (smooth_of_le he hl),map_zero, ContinuousMultilinearMap.compContinuousLinearMap_apply] |
| 145 | change iteratedFDeriv ℝ l.length A _ (fun i => (fun _ => t) i • (bolt ∘ l.get) i) = _ |
| 146 | rw [ContinuousMultilinearMap.map_smul_univ,Finset.prod_const,Finset.card_univ,Fintype.card_fin] |
| 147 | rw [hj]; apply (h.bound l hl).abs_le |
| 148 | intro i j |
| 149 | rw [Matrix.smul_apply, smul_eq_mul,abs_mul, abs_of_nonneg (pow_nonneg ht _)] |
| 150 | exact mul_le_of_le_one_left (abs_nonneg _) (pow_le_one₀ ht hu) |
| 151 | end YM.AnalyticBridge.SectorAffine.Offset |