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.Positive |
| 2 | import YM.Slice.Copies |
| 3 | |
| 4 | /-! |
| 5 | # Integrate seam, alone. For site seams there are only seam posts |
| 6 | (left/right share these). For link seams integrate the gates conditional on |
| 7 | whole leaves; kernel positive. Includes degenerate half length=1. |
| 8 | -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.Slice |
| 12 | open Function Set Filter MeasureTheory |
| 13 | open Lattice Wilson Cells Analysis |
| 14 | open scoped Topology BigOperators Matrix.Norms.Frobenius ComplexOrder |
| 15 | variable {n : Side} {G : Gauge} {C : Cut n} |
| 16 | |
| 17 | namespace Link |
| 18 | |
| 19 | def ebb (h : C.kind=.link) : ↥(gate C) := ⟨bottom C, by rw [gates h]; exact mem_insert ..⟩ |
| 20 | def high (h : C.kind=.link) : ↥(gate C) := ⟨top C, by rw [gates h]; simp⟩ |
| 21 | lemma clear (h : C.kind=.link) : ebb h ≠ high h := fun H => piers_split (C := C) (congr_arg Subtype.val H) |
| 22 | |
| 23 | lemma points_into (h : C.kind=.link) (x : ↥(gate C)) : x=ebb h ∨ x=high h := by |
| 24 | have hs (y : Per n) (hq : y∈ gate C) : y ∈ ({bottom C,top C} : Set (Per n)) := (gates h) ▸ hq |
| 25 | have he := hs x x.property |
| 26 | exact he.elim (fun H => Or.inl (Subtype.ext H)) (fun H => Or.inr (Subtype.ext (eq_of_mem_singleton H))) |
| 27 | |
| 28 | def first (h : C.kind=.link) (x : Open C G) := x.1 ⟨bottom C+1,(below_base h).2⟩ |
| 29 | def last (h : C.kind=.link) (x : Open C G) := x.1 ⟨top C,(leaving_top h).1⟩ |
| 30 | |
| 31 | lemma outer (h : C.kind=.link) (P : Dwelling C G) (β) : rim C β P = |
| 32 | weight C.pos β (first h P.2.2) (first h P.2.1) (P.1.2 (ebb h)) * |
| 33 | weight C.pos β (last h P.2.1) (last h P.2.2) (P.1.2 (high h)) := by |
| 34 | classical |
| 35 | have Hx : Finset.univ = {ebb h, high h} := Finset.ext fun x => by simp [points_into h x] |
| 36 | unfold rim |
| 37 | rw [Hx, Finset.prod_pair (clear h)] |
| 38 | unfold follow; rw [checkpoint C (ebb h),checkpoint C (high h)] |
| 39 | have he : top C+1 = level C (top C) := Eq.symm (sub_eq_iff_eq_add.mp (tr h)) |
| 40 | have hu : bottom C=level C (bottom C+1) := by rw [chord_end,br h] |
| 41 | let p := (P.1,P.2.1,replace C P.2.2) |
| 42 | rw [show (wire C p (ebb h).val).1 = first h P.2.2 from by |
| 43 | change (wire C p (bottom C)).1 = _ |
| 44 | conv_lhs => rw [hu] |
| 45 | exact hitOpp C ⟨_, (below_base h).2⟩ p, |
| 46 | show (wire C p ((ebb h).val+1)).1 = first h P.2.1 from hit C ⟨_, (below_base h).2⟩ p, |
| 47 | show (wire C p (high h).val).1 = _ from hit C ⟨_, (leaving_top h).1⟩ p, |
| 48 | show (wire C p ((high h).val+1)).1 = last h P.2.2 from by |
| 49 | change (wire C p (top C+1)).1 = _ |
| 50 | conv_lhs => rw [he] |
| 51 | exact hitOpp C ⟨_, (leaving_top h).1⟩ p] |
| 52 | all_goals rfl |
| 53 | |
| 54 | instance : BorelSpace (Doors C G) := by unfold Doors Thread; infer_instance |
| 55 | instance : SecondCountableTopology (Doors C G) := by unfold Doors Thread; infer_instance |
| 56 | instance : BorelSpace (Thread G C.pos n × Thread G C.pos n) := Prod.borelSpace |
| 57 | |
| 58 | /-- Two independent gates. -/ |
| 59 | lemma independent (h : C.kind=.link) : MeasurePreserving |
| 60 | (fun u : Doors C G => (u (ebb h), u (high h))) (doorM G C) ((threads n G C.pos).prod (threads n G C.pos)) := by |
| 61 | let L : Doors C G →* (Thread G C.pos n × Thread G C.pos n) := |
| 62 | { toFun u := (u (ebb h),u (high h)), map_one' := rfl,map_mul' := fun _ _ => rfl } |
| 63 | haveI : Measure.IsHaarMeasure ((threads n G C.pos).prod (threads n G C.pos)) := Measure.prod.instIsHaarMeasure |
| 64 | (G := Thread G C.pos n) (H := Thread G C.pos n) _ _ |
| 65 | refine MonoidHom.measurePreserving (f := L) (by exact continuous_prodMk.mpr ⟨continuous_apply _,continuous_apply _⟩) ?_ (by simp) |
| 66 | rintro ⟨a,b⟩; classical |
| 67 | refine ⟨update (fun _ => a) (high h) b, ?_⟩ |
| 68 | simp [L, update_of_ne (clear h)] |
| 69 | end Link |
| 70 | |
| 71 | variable (C) (β : ℝ) |
| 72 | def port (K : Posts C G) (V W : Open C G) := ∫ g : Doors C G, (rim C β ((K,g),V,W) : ℂ) ∂doorM G C |
| 73 | |
| 74 | open Link |
| 75 | lemma wall (K : Posts C G) (V W : Open C G) (h : C.kind=.site) : port C β K V W=1 := by |
| 76 | haveI := gates_site h |
| 77 | simp [port,rim] |
| 78 | |
| 79 | lemma links (K : Posts C G) (V W) (h : C.kind=.link) : |
| 80 | port C β K V W = heat C.pos β (first h W) (first h V) * heat C.pos β (last h V) (last h W) := by |
| 81 | simp_rw [port, outer h, Complex.ofReal_mul] |
| 82 | let F := fun p : Thread G C.pos n × Thread G C.pos n => |
| 83 | (((weight C.pos β (first h W) (first h V) p.1 : ℝ) : ℂ) * |
| 84 | ((weight C.pos β (last h V) (last h W) p.2 : ℝ) : ℂ)) |
| 85 | have hp := independent (G := G) h |
| 86 | have hc (x y : Leaf G C.pos n) : Continuous fun p : Thread G C.pos n => ((weight C.pos β x y p : ℝ) : ℂ) := by |
| 87 | have he := (weight_cont (G := G) (n := n) C.pos β).comp (show Continuous fun p : Thread G C.pos n => (x,y,p) from by fun_prop) |
| 88 | exact Complex.continuous_ofReal.comp he |
| 89 | have hx := integral_map hp.aemeasurable (show AEStronglyMeasurable F _ by |
| 90 | rw [hp.map_eq]; exact (((hc _ _).comp continuous_fst).mul ((hc _ _).comp continuous_snd)).aestronglyMeasurable) |
| 91 | rw [hp.map_eq] at hx |
| 92 | exact hx.symm.trans (integral_prod_mul (fun p => ((weight C.pos β (first h W) (first h V) p : ℝ) : ℂ)) (fun p => ((weight C.pos β (last h V) (last h W) p : ℝ) : ℂ))) |
| 93 | |
| 94 | lemma portPos (K : Posts C G) (hβ : 0 ≤ β) : NNKernel (port C β K) := by |
| 95 | cases he:C.kind with |
| 96 | | site => rw [show port C β K = (fun _ _ => 1) from funext fun x => funext fun y => wall C β K x y he]; exact NNKernel.one |
| 97 | | link => |
| 98 | rw [show port C β K = _ from funext fun x => funext fun y => links C β K x y he] |
| 99 | have H : NNKernel (fun x y : Open C G => heat C.pos β (first he y) (first he x)) := by |
| 100 | intro m f |
| 101 | exact ((step_positive C.pos hβ) m ((Link.first he) ∘ f)).transpose |
| 102 | exact H.times ((step_positive (C.pos) hβ).titled (Link.last he)) |
| 103 | |
| 104 | lemma portContinuous (K : Posts C G) : Continuous fun p : Open C G × Open C G => port C β K p.1 p.2 := by |
| 105 | cases he : C.kind with |
| 106 | | site => simp_rw [wall C β K _ _ he]; exact continuous_const |
| 107 | | link => |
| 108 | simp_rw [links C β K _ _ he] |
| 109 | have hx (f : Open C G → Leaf G C.pos n) (hw : Continuous f) : |
| 110 | Continuous fun p : Open C G × Open C G => heat C.pos β (f p.1) (f p.2) := by |
| 111 | have h := (heat_cont (G := G) (n := n) C.pos β).comp (((hw.comp continuous_fst).prodMk |
| 112 | (hw.comp (show Continuous (Prod.snd (α := Open C G)) from continuous_snd)))) |
| 113 | exact h |
| 114 | have hp := (hx _ (show Continuous (Link.first he (G := G)) from (continuous_apply _).comp continuous_fst)).comp continuous_swap |
| 115 | exact hp.mul (hx (Link.last he) (by unfold Link.last; fun_prop)) |
| 116 | end YM.Slice |