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.Slice.Segment |
| 2 | |
| 3 | /-! |
| 4 | # Decompose into slabs and laps |
| 5 | |
| 6 | Tour invariants: no repeated starts, no unused seam. Temporal thread belongs |
| 7 | to preceding slice. Prove EXACT integral equal to trace of kernels on tour. |
| 8 | -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.Slice |
| 12 | open MeasureTheory Measure Filter Function Fin Lattice Wilson TimeKernel Set |
| 13 | open scoped Topology BigOperators InnerProductSpace Matrix.Norms.Frobenius |
| 14 | variable {n : Side} (a : Axis) {G : Gauge} {m : ℕ} |
| 15 | |
| 16 | structure Tour (n : Side) (m : ℕ) where |
| 17 | window : Fin m → ℕ |
| 18 | start : Fin m → Per n |
| 19 | steps (i : Fin m) : start (finRotate m i)=start i + ((window i+1:ℕ):Per n) |
| 20 | bins : Bijective (fun i : Sigma (fun k : Fin m => Fin (window k+1)) => start i.1 + ((i.2.val:ℕ):Per n)) |
| 21 | |
| 22 | namespace Tour |
| 23 | variable (T : Tour n m) (G) |
| 24 | |
| 25 | abbrev Width (i : Fin m) := T.window i |
| 26 | abbrev Slot := Sigma (fun i : Fin m => Fin (T.Width i+1)) |
| 27 | def row (i : Fin m) (j : ℕ) : Per n := T.start i+j |
| 28 | |
| 29 | def mark : T.Slot ≃ Per n := Equiv.ofBijective _ T.bins |
| 30 | @[simp] lemma arrival (p : T.Slot) : T.mark p = T.row p.1 p.2 := rfl |
| 31 | @[simp] lemma nextMark (p) : T.row p (T.Width p+1)=T.start (finRotate m p) := (T.steps p).symm |
| 32 | |
| 33 | abbrev InteriorTravel := ∀ i, LinksIn (T.window i) G a n |
| 34 | |
| 35 | abbrev Arena := (Fin m → Leaf G a n) × T.InteriorTravel a G |
| 36 | |
| 37 | variable {G} {a} |
| 38 | |
| 39 | def harvest (U : Circle G a n) : T.Arena a G := |
| 40 | (fun k => (U (T.start k)).1, fun i => (fun j => (U (T.row i (j.val+1))).1, fun j => (U (T.row i j.val)).2)) |
| 41 | |
| 42 | def returnTo (p : T.Arena a G) (i : T.Slot) : Layer G a n := |
| 43 | (Fin.cons (α := fun _ => Leaf G a n) (p.1 i.1) (p.2 i.1).1 i.2, (p.2 i.1).2 i.2) |
| 44 | |
| 45 | def scatter (p : T.Arena a G) : Circle G a n := T.returnTo p ∘ T.mark.symm |
| 46 | |
| 47 | lemma readings (u : Circle G a n) (i : T.Slot) : T.returnTo (harvest T u) i=u (T.mark i) := by |
| 48 | have hv (k : Fin m) (j : Fin (T.Width k+1)) : Fin.cons (α := fun _ => Leaf G a n) (T.harvest u |>.1 k) ((T.harvest u).2 k).1 j = (u (T.mark ⟨k,j⟩)).1 := by |
| 49 | refine Fin.cases ?_ (fun j => ?_) j |
| 50 | · simp [harvest,row] |
| 51 | simp [harvest,row] |
| 52 | exact Prod.ext (hv _ _) rfl |
| 53 | @[simp] lemma roundTrip (p : T.Arena a G) (i) : scatter T p (T.mark i)=T.returnTo p i := by rw [scatter,comp_apply,Equiv.symm_apply_apply] |
| 54 | |
| 55 | def pages : Circle G a n ≃* T.Arena a G where |
| 56 | toFun := T.harvest |
| 57 | invFun := T.scatter |
| 58 | left_inv p := by |
| 59 | funext i; obtain ⟨y,rfl⟩ := T.mark.surjective i |
| 60 | rw [roundTrip, T.readings] |
| 61 | right_inv v := by |
| 62 | refine Prod.ext ?_ ?_ |
| 63 | · funext x |
| 64 | change (scatter T v (T.start x)).1=v.1 x |
| 65 | rw [show T.start x=T.mark ⟨x,0⟩ by rw [arrival]; simp [row], roundTrip, returnTo]; simp |
| 66 | ext1 i; refine Prod.ext ?_ ?_ |
| 67 | · funext a; change (T.scatter v (_ : Per n)).1=_ |
| 68 | change (T.scatter v (T.mark ⟨i,a.succ⟩)).1=_; rw [roundTrip,returnTo]; simp |
| 69 | funext x; change (T.scatter v (T.mark ⟨_,x⟩)).2=_; rw [roundTrip,returnTo] |
| 70 | map_mul' _ _ := rfl |
| 71 | |
| 72 | @[fun_prop] lemma cont_harvest : Continuous (T.harvest (G := G) (a := a)) := by unfold harvest; fun_prop |
| 73 | @[fun_prop] lemma cont_scatter : Continuous (T.scatter (G := G) (a := a)) := by unfold scatter returnTo; fun_prop |
| 74 | |
| 75 | variable (a G) |
| 76 | def sea := (Measure.pi fun _ : Fin m => trans n G a).prod (Measure.pi fun i => middle n a G (T.window i)) |
| 77 | instance : IsProbabilityMeasure (sea a G T) := by unfold sea;infer_instance |
| 78 | local instance (k : ℕ) : MeasurableMul (LinksIn k G a n) := by unfold LinksIn; infer_instance |
| 79 | instance : IsHaarMeasure (sea a G T) := by unfold sea; exact Measure.prod.instIsHaarMeasure .. |
| 80 | |
| 81 | lemma books : MeasurePreserving (T.harvest (G := G) (a := a)) (spread n G a) (sea a G T) := |
| 82 | MonoidHom.measurePreserving (f := MulEquiv.toMonoidHom (pages (a := a) (G := G) T)) (μ := spread n G a) (ν := sea a G T) T.cont_harvest T.pages.surjective (by simp) |
| 83 | |
| 84 | variable {G} |
| 85 | lemma feeds (F : Circle G a n) (i : Fin m) : |
| 86 | let S := T.harvest F |
| 87 | seed (S.1 i) (S.1 (finRotate _ i)) (S.2 i)=crop a (T.start i) (T.window i) F := by |
| 88 | intro S |
| 89 | refine Prod.ext ?_ rfl; ext1 j |
| 90 | refine Fin.lastCases ?_ (fun j => ?_) j |
| 91 | · simp only [seed,packet, snoc_last,crop,harvest,S, val_last,T.steps] |
| 92 | simp only [seed,packet,snoc_castSucc,crop,harvest,S,val_castSucc]; exact congr_arg Prod.fst (T.readings _ ⟨i,j⟩) |
| 93 | |
| 94 | lemma identified (β) (F : Circle G a n) : ∏ i, weightFrame β (crop a (T.start i) (T.window i) F) = |
| 95 | ((bare β (chain a F) : ℝ):ℂ) := by |
| 96 | rw [totalWeight, Complex.ofReal_prod,← Equiv.prod_comp T.mark] |
| 97 | unfold weightFrame; unfold Slot; rw [Fintype.prod_sigma]; simp [crop,row, add_assoc] |
| 98 | |
| 99 | def tourProduct (B : ∀ i : Fin m, FieldTest (T.window i) G a n) (U : Config G n) := |
| 100 | ∏ i, B i (crop a (T.start i) (T.window i) (leaves a U)) |
| 101 | |
| 102 | theorem calculated (β) (B : ∀ i : Fin m, FieldTest (T.window i) G a n) (H : ∀ i, Continuous (B i)) : |
| 103 | (partition G n β : ℂ)*moment β (tourProduct a T B) = |
| 104 | ∫ v : Fin m → Leaf G a n, TimeKernel.cycle (fun i => testB β (B i)) v ∂(Measure.pi fun _ => trans n G a) := by |
| 105 | have hv : Continuous (T.tourProduct a B) := continuous_finsetProd _ fun i _ => |
| 106 | (H i).comp ((crop_cont a (T.start i) _).comp (leaves_cont a)) |
| 107 | rw [moment_formula β _ (continuous_integrable β hv), ← mul_assoc, mul_inv_cancel₀ (by exact_mod_cast (partition_pos β (G := G) (n := n)).ne'), one_mul] |
| 108 | have hc : MeasurableEmbedding (chain (n := n) (G := G) a) := (Homeomorph.measurableEmbedding |
| 109 | (show Circle G a n ≃ₜ Config G n from |
| 110 | { toEquiv := (slice a).symm.toEquiv |
| 111 | continuous_toFun := chain_cont _ |
| 112 | continuous_invFun := leaves_cont _ })) |
| 113 | rw [← MeasurePreserving.integral_comp (chain_volume a) hc] |
| 114 | let f (u : T.Arena a G) := ∏ i, evaluated β (B i) (seed (u.1 i) (u.1 (finRotate m i)) (u.2 i)) |
| 115 | have hi : MeasurableEmbedding (T.harvest (G := G) (a := a)) := Homeomorph.measurableEmbedding |
| 116 | (show Circle G a n ≃ₜ T.Arena a G from |
| 117 | { toEquiv := T.pages.toEquiv |
| 118 | continuous_toFun := T.cont_harvest |
| 119 | continuous_invFun := T.cont_scatter }) |
| 120 | have he (u : Circle G a n) : ↑(bare β (chain a u)) * T.tourProduct a B (chain a u)=f (T.harvest u) := by |
| 121 | rw [← T.identified]; simp only [tourProduct,show leaves a (chain a u) = u from (slice a).apply_symm_apply _, f] |
| 122 | simp_rw [T.feeds a u]; simp only [evaluated,Finset.prod_mul_distrib]; ring |
| 123 | have hf : Integrable f (sea a G T) := by |
| 124 | apply Continuous.integrable_of_hasCompactSupport _ (HasCompactSupport.of_compactSpace _) |
| 125 | apply continuous_finsetProd; intro i _ |
| 126 | let z := fun p : T.Arena a G => ((p.1 i, p.1 (finRotate m i)), p.2 i) |
| 127 | have hh : Continuous z := by unfold z;fun_prop |
| 128 | exact (eval_cont β _ (H i)).comp (seed_cont.comp hh) |
| 129 | simp_rw [he,(T.books a G).integral_comp hi,sea, integral_prod f hf]; apply integral_congr_ae |
| 130 | filter_upwards with x; unfold TimeKernel.cycle testB |
| 131 | exact integral_fintype_prod_eq_prod (μ := fun i => middle n a G (T.window i)) (fun i p => evaluated β (B i) (seed (x i) (x (finRotate m i)) p)) |
| 132 | |
| 133 | end Tour |
| 134 | end YM.Slice |