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.Visits |
| 2 | |
| 3 | /-! |
| 4 | # Cross routed M factors applied to columns at corners/bonds |
| 5 | |
| 6 | Charge counting on the full cover, including for jets of the parallel |
| 7 | transports. Do not identify or reorient paths differently by location. |
| 8 | Row rates obtained uniformly after L independent of truncation lengths. |
| 9 | -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.AnalyticBridge.SectorAffine.Offset |
| 13 | |
| 14 | open Filter Function Lattice Wilson RG Precision Pressure Tree Exterior Bloch Laurent |
| 15 | open YM.Next.Fluctuations YM.Next.SectorChange YM.Next.SectorChange.Rows |
| 16 | open YM.FreeResolvent (Mark Bundle native Cost) |
| 17 | open YM.FreeResolvent.TestD |
| 18 | open YM.Push.Uniform (bolt Allows Requests travelCost) |
| 19 | open YM.Work.E03 |
| 20 | open scoped Topology ContDiff BigOperators InnerProductSpace Classical Matrix.Norms.Frobenius |
| 21 | |
| 22 | variable {G : Gauge} {c f : Side} {R k n : ℕ} {C D M K Q s σ d t r κ : ℝ} {p : Site f → Site c} |
| 23 | |
| 24 | section tracks |
| 25 | variable {α β : Type} |
| 26 | /-- One actual path query. Require y match also to be *carried* before paying its downstream value. -/ |
| 27 | def ticket {Y : Type} (q : Y ≃ Co c β) (K : Row α β) (l : Co c α) (a : Site f) (x : Cover → Walk) |
| 28 | (U : Config G f) (R D : ℕ) (i : Y) (u : Cover) : Pay G := |
| 29 | if (x u).length * D ≤ R ∧ (q i).1=l.1+wrap c u then rated U a (x u) (K l.2 (q i).2 u) else 0 |
| 30 | |
| 31 | open Finset |
| 32 | /-- Arc application when each covered target carries the indicated budget at its actual endpoint. |
| 33 | No finiteness cost on winding (path strip consumes true length), but use the actual |
| 34 | length cut also to sum vs infinite cover definition. γ per root visit small |
| 35 | after length factor B is fixed. -/ |
| 36 | lemma follows (G : Gauge) (n : ℕ) {C γ A B M : ℝ} (hC : 0 ≤ C) (hA : 0<A) (hB : 0<B) (hg : 0<γ) |
| 37 | (β : Type) [Fintype β] : |
| 38 | ∃ d N : ℝ, 0<d ∧ 0<N ∧ |
| 39 | ∀ {α Y : Type} [Fintype Y] {c f : Side} (l : Co c α) (q : Y ≃ Co c β) (K : Row α β), K.strip γ M → |
| 40 | ∀ (p : Site f → Site c) (a : Site f) (w : Cover → Walk), |
| 41 | (∀ i, ((w i).length:ℝ) ≤ B*(1+size i)) → ∀ (U : PriceCoords G c → Config G f) (H : Y → PriceCoords G c → G.Color), |
| 42 | Letters U p n C → |
| 43 | ∀ (R D : ℕ), 0<D → ∀ (s t δ : ℝ), 0≤t → 0≤s → s≤1 → 0≤δ → δ≤d → |
| 44 | (∃ F : Finset Cover, ∀ i, (w i).length ≤ R → i∈F) → |
| 45 | (∀ i j, (w j).length*D ≤ R → (q i).1=l.1+wrap c j → |
| 46 | Point 0 (p (stop a (w j))) δ n (H i) (A*t)) → |
| 47 | Point 0 (p a) δ n |
| 48 | (fun y => ∑ i : Y, (∑' j : Cover, ticket q K l a w (U (s • y)) R D i j) (H i y)) (N*t) := by |
| 49 | let r := γ/B; have hr : 0<r := div_pos hg hB |
| 50 | obtain ⟨d,N,hd,hN,he⟩ := carried G hr n C A hC hA |
| 51 | let E := N*Real.exp γ |
| 52 | let O := Fintype.card β * M*E |
| 53 | refine ⟨d,max 1 O,hd,zero_lt_one.trans_le (le_max_left ..),?_⟩ |
| 54 | rintro α Y _ c f l q K hK p a w hb U H h R D hD s t δ ht hs hu hδ hv ⟨F,hF⟩ hy |
| 55 | have hp (i : Y) (y : PriceCoords G c) : |
| 56 | (∑' j : Cover, ticket q K l a w (U (s • y)) R D i j) (H i y) = |
| 57 | ∑ j ∈ F, ticket q K l a w (U (s • y)) R D i j (H i y) := by |
| 58 | rw [tsum_eq_sum ?_, _root_.sum_apply] |
| 59 | intro j hj; unfold ticket |
| 60 | rw [if_neg ?_] |
| 61 | exact fun ht => hj (hF _ ((le_mul_of_one_le_right (Nat.zero_le _) hD).trans ht.1)) |
| 62 | simp_rw [hp] |
| 63 | let X (b : Co c β) (u : Cover) := if b.1=l.1+wrap c u then Real.exp (γ*size u)*|K l.2 b.2 u| else 0 |
| 64 | have hJ : 0≤E*t := mul_nonneg (mul_nonneg hN.le (Real.exp_pos _).le) ht |
| 65 | refine Point.mono (Point.sum_price Finset.univ _ (fun i _ => Point.sum_price F (fun u => X (q i) u*(E*t)) fun j _ => ?_)) |
| 66 | le_rfl ?_ |
| 67 | · unfold ticket; split |
| 68 | next hi => |
| 69 | have hm := he U p h s t ht hs hu a (w j) (H i) δ hδ hv (hy _ _ hi.1 hi.2) |
| 70 | refine ((hm.scale (K l.2 (q i).2 j))).mono le_rfl ?_ |
| 71 | have hu : Real.exp (r*(w j).length) ≤ Real.exp γ * Real.exp (γ*size j) := by |
| 72 | rw [← Real.exp_add] |
| 73 | refine Real.exp_monotone ((mul_le_mul_of_nonneg_left (hb _) hr.le).trans_eq ?_) |
| 74 | unfold r; field_simp |
| 75 | simp only [X, if_pos hi.2]; unfold E |
| 76 | exact (mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hu hN.le) ht) (abs_nonneg _)).trans_eq (by ring) |
| 77 | next hi => |
| 78 | apply Point.zero (mul_nonneg _ hJ) |
| 79 | unfold X; split <;> positivity |
| 80 | simp_rw [← Finset.sum_mul] |
| 81 | have he : ∑ i : Y, ∑ j∈F, X (q i) j ≤ (Fintype.card β:ℝ)*M := by |
| 82 | rw [Equiv.sum_comp q (fun i : Co c β => ∑ j ∈ F, X i j), Fintype.sum_prod_type, Finset.sum_comm, |
| 83 | show (Fintype.card β:ℝ)*M=∑ _ : β,M by simp] |
| 84 | refine Finset.sum_le_sum fun i _ => ?_; rw [Finset.sum_comm] |
| 85 | simp only [X]; simp only [Finset.sum_ite_eq', mem_univ, ↓reduceIte] |
| 86 | have hh := hK l.2 i; change (∑ j∈F, Real.exp (γ*size j)*‖K l.2 i j‖) ≤ _ |
| 87 | exact ((Summable.sum_le_tsum F (fun i _ => hh.1 i) hh.2.1)).trans hh.2.2 |
| 88 | exact ((mul_le_mul_of_nonneg_right he hJ).trans_eq (mul_assoc _ _ _).symm).trans |
| 89 | (mul_le_mul_of_nonneg_right (le_max_right ..) ht) |
| 90 | end tracks |
| 91 | |
| 92 | section geom |
| 93 | private lemma route_size (x y : Cover) : (route x y 1).length = size (y-x) := by |
| 94 | have ha : allAxes 1 = [0,1,2,3] := by decide |
| 95 | simp [route, axisRoute,ha,size,Fin.sum_univ_succ,straight,Axis] |
| 96 | private lemma size_scaled (x : Cover) (d : ℕ) : size (d • x) = d * size x := by |
| 97 | simp [size,Pi.smul_apply,Int.natAbs_mul, Finset.mul_sum] |
| 98 | private lemma max_lift (L : Side) (x : Site L) : size (lift x) ≤ 4 * L.val := calc |
| 99 | _ ≤ ∑ _i : Axis, L.val := Finset.sum_le_sum fun i _ => by have hh := lift_centers x i; omega |
| 100 | _ = _ := by simp [Axis] |
| 101 | |
| 102 | private lemma contained {R : ℕ} {i : Cover} (h : size i ≤ R) : i ∈ box R := by |
| 103 | rw [box_test] |
| 104 | constructor <;> intro k <;> have hh : (i k).natAbs ≤ R := (FreeResolvent.own_size i k).trans h <;> omega |
| 105 | |
| 106 | private def elasticity (L : Side) : ℝ := 5*(L.val:ℝ) |
| 107 | private lemma elasticity_pos (L : Side) : 0 < elasticity L := by |
| 108 | unfold elasticity; have := L.property; positivity |
| 109 | private def itinerary (L : Side) (x : Site L) (i : Cover) := route (lift x) (L.val • i) 1 |
| 110 | private lemma elastic (L : Side) (z : Site L) (u : Cover) : ((itinerary L z u).length:ℝ) ≤ elasticity L*(1+size u) := by |
| 111 | unfold itinerary; rw [route_size] |
| 112 | have hSize : size (L.val • u - lift z) ≤ L.val * size u + 4 * L.val := by |
| 113 | rw [sub_eq_add_neg]; apply (size_add ..).trans |
| 114 | rw [size_neg, size_scaled]; exact Nat.add_le_add_left (max_lift L z) _ |
| 115 | have hl : (size (L.val • u - lift z):ℝ) ≤ L.val * (size u:ℝ) + 4 * (L.val:ℝ) := by exact_mod_cast hSize |
| 116 | apply hl.trans; unfold elasticity |
| 117 | have hx : 0 ≤ (L.val:ℝ)*(size u:ℝ) := by positivity |
| 118 | linarith |
| 119 | |
| 120 | private lemma finite_routed (L : Side) (z : Site L) (R : ℕ) (u : Cover) (h : (itinerary L z u).length ≤ R) : |
| 121 | u ∈ box (R+4*L.val) := by |
| 122 | unfold itinerary at h; rw [route_size] at h |
| 123 | apply contained |
| 124 | have hl : size u ≤ size (L.val • u) := by rw [size_scaled]; exact Nat.le_mul_of_pos_left _ L.property |
| 125 | refine hl.trans ?_ |
| 126 | nth_rw 1 [← sub_add_cancel (L.val • u) (lift z)] |
| 127 | exact (size_add ..).trans (Nat.add_le_add h (max_lift L z)) |
| 128 | end geom |
| 129 | section crossed |
| 130 | /-- Cross-kernel estimate incl every component hit, no count lost at |
| 131 | adjoint endpoints. The use is at the prescribed `s` with both fields |
| 132 | turned in the *same* comparison, leaving true V paths. `Q` needn't be |
| 133 | thinned; application uses the unmasked good m' extension. -/ |
| 134 | lemma wide (G : Gauge) (Pt : Teller G) (L : Side) (n : ℕ) (C M : ℝ) (hC : 0≤C) (hm : 0<M) : |
| 135 | ∃ d N : ℝ, 0<d ∧ 0<N ∧ |
| 136 | ∀ {c f : Side} (S : StepData c f) (T : Tube G S), Pt.Funds S T → S.patch.L=L → |
| 137 | ∀ (W : PriceCoords G c → Config G c) (H : Twin c → PriceCoords G c → G.Color) (g : Site c → Site c), |
| 138 | Letters (fun y => replica S.ratio (W y)) (g ∘ S.ratio.parent) n C → |
| 139 | ∀ (R : ℕ) (s t δ : ℝ), 0≤t → 0≤s → s≤1 → 0≤δ → δ≤d → ∀ i : Twin f, |
| 140 | (∀ y : Twin c, separation (S.ratio.parent i.1.1) y.1.1 ≤ R → Point 0 (g y.1.1) δ n (H y) (M*t)) → |
| 141 | Point 0 (g (S.ratio.parent i.1.1)) δ n (fun z => ∑ j : Twin c, T.Φ R (W (s • z)) i j (H j z)) (N*t) := by |
| 142 | obtain ⟨d,N,hd,hN,h⟩ := follows G n (M:=Pt.C / (L.val:ℝ)^2) hC hm (elasticity_pos L) Pt.width Layers2 |
| 143 | refine ⟨d,N,hd,hN,?_⟩ |
| 144 | intro c f S T hP he W H g hL R s t δ ht hs hu hδ hv i hi |
| 145 | subst L |
| 146 | let z := S.ratio.residue (mesh i).1 |
| 147 | let a := S.ratio.parent (mesh i).1 |
| 148 | let w := itinerary S.patch.L z |
| 149 | let r : Co c (Co S.patch.L Layers2) := (a,z,(mesh i).2) |
| 150 | obtain ⟨-, -, hf,-⟩ := hP.crosses |
| 151 | have hx j (x : PriceCoords G c) : T.Φ R (W (s • x)) i j = ∑' k : Cover, ticket (meshEquiv c) T.R.mf r |
| 152 | (mesh i).1 w (replica S.ratio (W (s • x))) R 1 j k := by |
| 153 | unfold Tube.Φ leap; refine tsum_congr fun k => ?_; simp only [ticket,mul_one]; rfl |
| 154 | simp_rw [hx] |
| 155 | refine h r (meshEquiv c) _ hf _ _ w (elastic S.patch.L z) _ _ hL R 1 (by decide) s t δ ht hs hu hδ hv |
| 156 | ⟨box (R+4*S.patch.L.val), finite_routed S.patch.L z R⟩ (fun j k hk hl => ?_) |
| 157 | have he : S.ratio.parent (stop i.1.1 (w k)) = j.1.1 := by |
| 158 | rw [show stop i.1.1 (w k)=_ from casted_endpoint S i.1.1 k, S.ratio.embed_parent]; exact hl.symm |
| 159 | have hm := hi j (by |
| 160 | rw [← he]; apply (sep_walk _ (parent_step S) i.1.1 (w k)).trans; simpa using hk) |
| 161 | change Point 0 (g (S.ratio.parent (stop i.1.1 (w k)))) δ n (H j) (M*t); rw [he]; exact hm |
| 162 | |
| 163 | lemma noise (G : Gauge) (Pt : Teller G) (n : ℕ) (C M : ℝ) (hC : 0≤C) (hm : 0<M) : |
| 164 | ∃ d N : ℝ, 0<d ∧ 0<N ∧ |
| 165 | ∀ {c f : Side} (S : StepData c f) (T : Tube G S), Pt.Funds S T → |
| 166 | ∀ (W : PriceCoords G c → Config G c) (H : Twin c → PriceCoords G c → G.Color) (g : Site c → Site c), |
| 167 | Letters W g n C → ∀ (R : ℕ) (s t δ : ℝ), 0≤t → 0≤s → s≤1 → 0≤δ → δ≤d → ∀ i : Bond c, |
| 168 | (∀ y : Twin c, separation i.1 y.1.1 ≤ R → Point 0 (g y.1.1) δ n (H y) (M*t)) → |
| 169 | Point 0 (g i.1) δ n (fun z => ∑ j : Twin c, T.Φ' R (W (s • z)) i j (H j z)) (N*t) := by |
| 170 | obtain ⟨d,N,hd,hN,h⟩ := follows G n (M:=Pt.C) hC hm zero_lt_one Pt.width Layers2 |
| 171 | refine ⟨d,N,hd,hN,?_⟩ |
| 172 | intro c f S T hP W H g hL R s t δ ht hs hu hδ hv i hi |
| 173 | obtain ⟨hm,-⟩ := hP.crosses |
| 174 | let w (k : Cover) := route 0 k 1 |
| 175 | refine h (pole i) (meshEquiv c) _ hm _ _ w (fun z => by simp [w, route_size]) _ _ hL R S.patch.L.val |
| 176 | S.patch.L.property s t δ ht hs hu hδ hv ⟨box R, fun i hi => contained (by simpa [w,route_size] using hi)⟩ |
| 177 | (fun j k hk h => ?_) |
| 178 | have he : stop i.1 (w k)=j.1.1 := by |
| 179 | have ht : j.1.1=i.1+wrap c k := h |
| 180 | rw [ht] |
| 181 | simpa only [map_zero,add_zero] using stop_route i.1 0 k |
| 182 | rw [he]; exact hi _ (he ▸ ((sep_walk id (fun i j => sep_step i j) i.1 (w k)).trans |
| 183 | ((le_mul_of_one_le_right (Nat.zero_le _) S.patch.L.property).trans hk))) |
| 184 | end crossed |
| 185 | end YM.AnalyticBridge.SectorAffine.Offset |