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 Mathlib.Data.Set.Finite.List |
| 2 | import YM.AnalyticNext.CONNECTED_ACTIVITY_JETS_E6.Census |
| 3 | import YM.AnalyticNext.CONNECTED_ACTIVITY_JETS_E6.Engrave |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # Sweeps at Φ,N stencils with tangent buds |
| 8 | |
| 9 | Real normalized adjoint kernel. Point estimate doesn't claim everywhere from |
| 10 | regular E only. Absolute gather permits post-L powers. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.ConnectedActivityE6.Blaze |
| 15 | open Filter Function Lattice RG Pressure Pressure.Tube Pressure.Stores Work.E03 Exterior Wilson Push.AbsoluteSums Finset |
| 16 | open Precision Shell Channel Next.Fluctuations Bloch Laurent SliceRows.DataKernel |
| 17 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius Classical InnerProductSpace |
| 18 | variable {G : Gauge} {c f : Side} {S : StepData c f} |
| 19 | variable {E α β : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] {x : E} |
| 20 | variable {U : E → Config G c} {v u d e η : ℝ} {k : ℕ} |
| 21 | open Brush |
| 22 | variable {M R : ℕ} {T : Tube G S} |
| 23 | |
| 24 | lemma recopy (S : StepData c f) (hp : ∀ j, Brush k (royalty G) d (fun i=> G.mat (U i j)) x) : |
| 25 | ∀ j, Brush k (royalty G) d (fun i=> G.mat (replica S.ratio (U i) j)) x := by |
| 26 | intro j; unfold replica; split_ifs |
| 27 | next hx => exact (certified (hp (S.ratio.parent j.1,j.2)).pos _).climb (Gauge.unitary_frob (G.mat_mul_star 1)).le le_rfl |
| 28 | exact hp _ |
| 29 | |
| 30 | def receive (L : Pay G) (face : Bool) : Pay G := if face then L else L.adjoint |
| 31 | lemma backwards (a : G.El) (q p : G.Color) : inner ℝ (G.adjoint a p) (G.adjoint a q)=inner ℝ p q := by |
| 32 | let L : G.Color →ₗᵢ[ℝ] G.Color := { G.adjoint a with norm_map' x := G.norm_adjoint _ _ } |
| 33 | exact L.inner_map_map p q |
| 34 | lemma repel (i : Site c) (p : Walk) (U : Config G c) (a : ℝ) (x : G.Color) : (rated U i p a).adjoint x= |
| 35 | a • G.adjoint (travel U i p)⁻¹ x := by |
| 36 | let g:=travel U i p |
| 37 | apply ext_inner_left ℝ; intro z; rw [ContinuousLinearMap.adjoint_inner_right]; change inner ℝ (a • G.adjoint g z) x=_ |
| 38 | rw [real_inner_smul_left,real_inner_smul_right]; congr 1 |
| 39 | rw [← backwards g (G.adjoint (travel U i p)⁻¹ x) z, ← G.adjoint_mul]; simp [g] |
| 40 | |
| 41 | lemma world {I : Type} (f : I→E→Pay G) (b : Finset I) (he : ∀ x z,z∉b→ f z x=0) (face : Bool) (a : E → G.Color) |
| 42 | (hv : 0 ≤ v) (p : I→ℝ) (hp : ∀ i∈b, Brush k (p i) v (fun j=> receive (f i j) face (a j)) x) : |
| 43 | Brush k (∑ i∈b,p i) v (fun j=> receive (∑' i,f i j) face (a j)) x := by |
| 44 | have hh : (fun j:E=> receive (∑' i,f i j) face (a j))=(fun j=> ∑ i∈b,receive (f i j) face (a j)) := by |
| 45 | ext1 i; simp_rw [tsum_eq_sum (hf:=he i)] |
| 46 | unfold receive; cases face <;> simp |
| 47 | rw [hh]; exact spree b (fun i j=>receive (f i j) face (a j)) _ hv hp |
| 48 | lemma shortenWalk (b : Walk) (p : Site c) (a : ℝ) {f : E→G.Color} (he : b.length ≤ R) |
| 49 | (h : Brush k u v f x) (ht : ∀ j, Brush k (royalty G) d (fun i=> G.mat (U i j)) x) (face : Bool) : |
| 50 | Brush k (|a| * (royalty G ^2 * u)) (2*R*d*royalty G+v) (fun i=> receive (rated (U i) p b a) face (f i)) x := by |
| 51 | let g i := travel (U i) p b |
| 52 | have hx : 0≤ d := (ht (p,(0:Axis))).pos |
| 53 | have hv : 0≤royalty G := zero_le_one.trans (royalty_ge G) |
| 54 | have hp : Brush k (royalty G) ((R:ℝ)*(d*royalty G)) (G.mat ∘ g) x := |
| 55 | (tour (U:=U) b p hx ht).climb le_rfl (by gcongr) |
| 56 | unfold receive; cases face |
| 57 | · simp_rw [Bool.false_eq_true,if_false, repel]; apply ((decorate (g:=fun i=>(g i)⁻¹) (reverse hp) h).smul a).climb _ _ |
| 58 | · rw [Real.norm_eq_abs]; apply le_of_eq; ring |
| 59 | apply le_of_eq; ring |
| 60 | simp only [if_true] |
| 61 | apply ((decorate hp h).smul a).climb _ _ |
| 62 | · rw [Real.norm_eq_abs]; apply le_of_eq; ring |
| 63 | apply le_of_eq; ring |
| 64 | |
| 65 | lemma bought_walk (R : ℕ) (j : Cover → Walk) (hi : Injective j) : {i | (j i).length ≤ R}.Finite := by |
| 66 | letI : Fintype Lattice.Step := Fintype.ofEquiv (Axis × Bool) (show _≃_ from |
| 67 | { toFun x:= ⟨x.1,x.2⟩, invFun x:= (x.1,x.2), left_inv _:= rfl, right_inv _:= rfl }) |
| 68 | exact (List.finite_length_le Lattice.Step R).preimage hi.injOn |
| 69 | lemma relay (p : Co c α) (q : Co c β) (face : Bool) (hM : 0<M) {a : E → G.Color} (h : Brush k u v a x) |
| 70 | {K : Row α β} (ht : K.strip η e) (he : 0 ≤ η) (hd : 0≤d) |
| 71 | (hp : ∀ j, Brush k (royalty G) d (fun i=> G.mat (U i j)) x) (R : ℕ) : |
| 72 | Brush k (e*(royalty G^2*u)) (2*R*d*royalty G+v) (fun i=>receive (lane R M (U i) K p q) face (a i)) x := by |
| 73 | let b : Cover→ Walk := fun i=> route 0 i 1 |
| 74 | have hi : Injective b := fun i j he=> Eq.trans (route_end 0 i 1).symm ((congr_arg (stop 0) he).trans (route_end 0 j 1)) |
| 75 | let z := bought_walk R b hi; let Y := z.toFinset |
| 76 | let W s j := priced R M (U j) K p q s |
| 77 | have hb : 0≤2*(R:ℝ)*d*royalty G+v := by have hv:=h.pos; have := royalty_ge G; positivity |
| 78 | refine (world W Y (fun i j hj=> ?_) face a hb (fun i=> |K p.2 q.2 i| * (royalty G^2*u)) (fun i hi=>?_)).climb ?_ le_rfl |
| 79 | · unfold W priced; refine if_neg (fun H=> hj ?_) |
| 80 | exact z.mem_toFinset.mpr ((le_mul_of_one_le_right (Nat.zero_le _) hM).trans H.1) |
| 81 | · unfold W priced; split_ifs |
| 82 | next ht' => exact shortenWalk (b i) _ _ (z.mem_toFinset.mp hi) h hp _ |
| 83 | next hv => unfold receive; cases face <;> simp <;> exact (certified hb (0:G.Color)).climb (by rw [norm_zero]; have := h.nonneg; positivity) le_rfl |
| 84 | rw [← Finset.sum_mul]; exact mul_le_mul_of_nonneg_right (budget_sum ((ht ..).unweighted he) Y) (mul_nonneg (sq_nonneg _) h.nonneg) |
| 85 | |
| 86 | lemma trains (p : Twin f) (q : Twin c) (face : Bool) {a : E → G.Color} (h : Brush k u v a x) |
| 87 | (ht : T.R.mf.strip η e) (he : 0 ≤ η) (hd : 0≤d) |
| 88 | (hp : ∀ j, Brush k (royalty G) d (fun i=> G.mat (U i j)) x) (R : ℕ) : |
| 89 | Brush k (e*(royalty G^2*u)) (2*R*d*royalty G+v) (fun i=>receive (T.Φ R (U i) p q) face (a i)) x := by |
| 90 | let r := S.ratio.residue (mesh p).1; let m := S.patch.L.val; let j (i:Cover) := route (lift r) (m • i) 1 |
| 91 | have hi : Injective j := by intro i l h; have H : m • i=m • l := Eq.trans (route_end _ _ 1).symm ((congr_arg (stop (lift r)) h).trans (route_end ..)); exact (smul_right_injective _ S.patch.L.property.ne') H |
| 92 | let z:= bought_walk R j hi; let Y:= z.toFinset; let W i (s:E) := casted S T.R R (U s) (mesh p) (mesh q) i |
| 93 | have hb : 0 ≤ 2*(R:ℝ)*d*royalty G+v := by have hx:= h.pos; have := royalty_ge G; positivity |
| 94 | let f i := T.R.mf (r,(mesh p).2) (mesh q).2 i |
| 95 | refine (world W Y (fun s i hi=> ?_) face a hb (fun i=> |f i| * (royalty G^2*u)) (fun i hi=>?_)).climb ?_ le_rfl |
| 96 | · unfold W casted; exact if_neg (fun h=> hi (z.mem_toFinset.mpr h.1)) |
| 97 | · unfold W casted; dsimp only; split_ifs; next he => exact shortenWalk (j i) _ _ (z.mem_toFinset.mp hi) h (recopy S hp) _ |
| 98 | next hv => unfold receive; cases face <;> simp <;> exact (certified hb (0:G.Color)).climb (by rw [norm_zero]; have := h.nonneg; positivity) le_rfl |
| 99 | rw [← Finset.sum_mul]; exact mul_le_mul_of_nonneg_right (budget_sum ((ht (r,(mesh p).2) (mesh q).2).unweighted he) Y) |
| 100 | (mul_nonneg (sq_nonneg _) h.nonneg) |
| 101 | |
| 102 | variable [Fintype α] {B j : ℕ} {f : α→Site c} {o : Site c} |
| 103 | |
| 104 | lemma lifted {W : α → E → G.Color} (H : Census j f) (hp : 0≤d) (hv : 0≤v) (h : ∀ i, separation o (f i)≤B → Brush k v d (W i) x) |
| 105 | (hn : ∀ i u,W i u ≠ 0 → separation o (f i)≤B) : |
| 106 | Brush k (↑(Animals.ballCost B)*j*v) d (fun i=>∑ p,W p i) x := by |
| 107 | let q:= univ.filter fun i=> separation o (f i) ≤ B |
| 108 | have he x : (∑ i,W i x)=(∑ i∈q,W i x) := Eq.symm (sum_subset (subset_univ _) fun i _ hh=> by by_contra he; exact hh (mem_filter.mpr ⟨mem_univ _,hn _ x he⟩)) |
| 109 | simp_rw [he]; refine (Brush.spree q W (fun _ => v) hp (fun i hi=> h i (mem_filter.mp hi).2)).climb ?_ le_rfl |
| 110 | rw [sum_const,nsmul_eq_mul]; refine mul_le_mul_of_nonneg_right ?_ hv |
| 111 | have hx : q.card ≤ Animals.ballCost B*j := by |
| 112 | let p:= Animals.neighbors B o |
| 113 | have ht : q=univ.filter (fun i=> f i∈p) := by unfold q; congr 1; ext i; exact (Animals.neighbors_mem B o _).symm |
| 114 | rw [ht]; exact (H p).trans (Nat.mul_le_mul_right _ (Animals.neighbors_card _ _)) |
| 115 | exact_mod_cast hx |
| 116 | end YM.ConnectedActivityE6.Blaze |