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.Distribution.Product |
| 2 | import YM.Euclid.Union |
| 3 | |
| 4 | /-! |
| 5 | # Strict times and joint tempered boundary |
| 6 | |
| 7 | Time last *real* axis of `Points`; ordered imaginary heights. |
| 8 | Convergence against every joint test and slope, not just tensor products. |
| 9 | Real positions all, n=0 included. For ease of gluing keep both W and |
| 10 | complex continuations defined multilinearly on Union (circuits can use any |
| 11 | finite levels, see P.joint). Conf nonempty positions at slice by monotonicity. |
| 12 | Do not demand smoothness of point W. Need actual Integrable statements; no |
| 13 | negative epsilon used. Partial-shift convergence in stronger libraries later. |
| 14 | -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.Boundary |
| 18 | open MeasureTheory Filter Function Set Complex |
| 19 | open scoped Topology BigOperators ContDiff |
| 20 | |
| 21 | abbrev Heights (n : ℕ) := Fin n → ℝ |
| 22 | abbrev Times (n : ℕ) := Fin n → ℂ |
| 23 | abbrev SpacePoints (n : ℕ) := Fin n → Space3 |
| 24 | |
| 25 | variable {G : Gauge} {L : Register G} {S : Table L} {n : ℕ} |
| 26 | |
| 27 | def east (n : ℕ) := {y : Heights n | StrictMono y} |
| 28 | def strict (n : ℕ) := {z : Times n | (fun i => (z i).im) ∈ east n} |
| 29 | def positiveHeight (n : ℕ) := {y : Heights n | y ∈ east n ∧ ∀ i, 0 < y i} |
| 30 | |
| 31 | lemma open_east (n) : IsOpen (east n) := by |
| 32 | classical |
| 33 | have he : east n = ⋂ (i : Fin n) (j : Fin n) (_ : i<j), {y : Heights n | y i < y j} := by ext1; simp [east,StrictMono] |
| 34 | rw [he]; exact isOpen_iInter_of_finite fun i => isOpen_iInter_of_finite fun j => isOpen_iInter_of_finite fun _ => isOpen_lt (continuous_apply _) (continuous_apply _) |
| 35 | |
| 36 | lemma open_strict (n) : IsOpen (strict n) := (open_east n).preimage |
| 37 | (show Continuous (fun z : Times n => fun i => (z i).im) from by fun_prop) |
| 38 | |
| 39 | /-- Physical-to-complex-time convention. -/ |
| 40 | def shift (p : Points n) (h : Heights n) : Times n := fun i => ↑(time (p i))+↑(h i)*I |
| 41 | |
| 42 | def trace (p : Points n) : SpacePoints n := fun i => spatial (p i) |
| 43 | |
| 44 | def place (x : SpacePoints n) (y : Heights n) : Points n := points fun i => position (x i) (y i) |
| 45 | |
| 46 | lemma clear {y : Heights n} (h : y ∈ east n) (x : SpacePoints n) : place x y ∈ conf n := by |
| 47 | intro i j hij; apply h.injective |
| 48 | have he := congr_arg time hij; simpa [place] using he |
| 49 | |
| 50 | lemma on_profile (x : Points n) (u : Heights n) (ε : ℝ) (ht : 0<ε) (h : u ∈ east n) : |
| 51 | shift x (ε • u) ∈ strict n := by |
| 52 | intro i j hij; simp [shift, mul_lt_mul_iff_of_pos_left ht, h hij] |
| 53 | |
| 54 | structure Surface (S : Table L) where |
| 55 | W (n : ℕ) : MultilinearMap ℂ (fun _ : Fin n => S.Union) (Distn (Points n)) |
| 56 | |
| 57 | structure Waves (S : Table L) where |
| 58 | F (n : ℕ) : Times n → SpacePoints n → MultilinearMap ℂ (fun _ : Fin n => S.Union) ℂ |
| 59 | |
| 60 | namespace Waves |
| 61 | variable (P : Waves S) |
| 62 | |
| 63 | def restricted (v : Fin n → S.Union) (y : Heights n) (p : Points n) := P.F n (shift p y) (trace p) v |
| 64 | |
| 65 | def atSlopes (v : Fin n → S.Union) (h : Heights n) (ε : ℝ) (f : Joint n) := |
| 66 | ∫ x, P.restricted v (ε • h) x * f x |
| 67 | |
| 68 | /-- E item strict contour, simultaneous coupling to T = S or alpha, |
| 69 | slots **from the same original quotient**. Need T.respects S in use. |
| 70 | -/ |
| 71 | structure Region (T : Table L) : Prop where |
| 72 | together (n : ℕ) (v : Fin n → S.Union) : ContinuousOn (fun p : Times n × SpacePoints n => |
| 73 | P.F n p.1 p.2 v) (strict n ×ˢ univ) |
| 74 | hol (n : ℕ) (v : Fin n → S.Union) (x : SpacePoints n) : |
| 75 | DifferentiableOn ℂ (fun z => P.F n z x v) (strict n) |
| 76 | roots (n : ℕ) (v : Fin n → S.Tag) (x : SpacePoints n) (y : Heights n) (hy : y ∈ east n) : |
| 77 | P.F n (fun i => ↑(y i)*I) x (fun i => S.pin (v i).1 (v i).2) = S.useAt T (place x y) v |
| 78 | |
| 79 | lemma root_raw {T : Table L} (hp : T.Symmetric) (ht : T.respects S) (h : P.Region T) |
| 80 | (v : Fin n → L.Token) (x : Points n) (hx : StrictMono (fun i => time (x i))) : |
| 81 | P.F n (fun i => ↑(time (x i))*I) (trace x) (fun i => S.pin (v i).1 (S.project _ (v i).2))=T.read x v := by |
| 82 | let y (i : Fin n) := time (x i) |
| 83 | have he : place (trace x) y=x := by ext1; simp [trace,y,place] |
| 84 | have hh := h.roots n (S.classTokens ∘ v) (trace x) y hx |
| 85 | rwa [S.at_project T hp ht (clear hx _), he] at hh |
| 86 | |
| 87 | /-- s-order, Lebesgue dt d³ x in `Points.volume_product,volume_divide`. |
| 88 | One limit positive profile `u` for every test, each *ordered* u. -/ |
| 89 | structure Opens (F : Surface S) : Prop where |
| 90 | int (n : ℕ) (v : Fin n → S.Union) (y : Heights n) (h : y ∈ east n) (f : Joint n) : |
| 91 | Integrable (fun x => P.restricted v y x * f x) |
| 92 | profile (n : ℕ) (v : Fin n → S.Union) (y : Heights n) (hy : y ∈ east n) (f : Joint n) : |
| 93 | Tendsto (fun ε => atSlopes P v y ε f) (𝓝[>] (0:ℝ)) (𝓝 (F.W n v f)) |
| 94 | |
| 95 | /-- Stronger all-ordered-heights form, useful for Gram limits. -/ |
| 96 | structure NonTangentialFree (F : Surface S) : Prop where |
| 97 | int (n : ℕ) (v : Fin n → S.Union) (y : Heights n) (h : y ∈ east n) (f : Joint n) : |
| 98 | Integrable (fun x => P.restricted v y x * f x) |
| 99 | corner (n : ℕ) (v : Fin n → S.Union) (f : Joint n) : |
| 100 | Tendsto (fun u => ∫ x, P.restricted v u x*f x) (𝓝[east n] (0:Heights n)) (𝓝 (F.W n v f)) |
| 101 | |
| 102 | lemma exposed (F : Surface S) (h : P.NonTangentialFree F) : P.Opens F := by |
| 103 | refine ⟨h.int,fun i v y hy f => ?_⟩ |
| 104 | have he : Tendsto (fun ε : ℝ => ε • y) (𝓝[>] (0:ℝ)) (𝓝[east i] 0) := by |
| 105 | rw [tendsto_nhdsWithin_iff] |
| 106 | refine ⟨?_,?_⟩ |
| 107 | · have hc := (continuous_id.smul (continuous_const (y := y))).continuousAt (x := (0:ℝ)) |>.tendsto |
| 108 | change Tendsto (fun x : ℝ => x • y) (𝓝 (0:ℝ)) (𝓝 ((0:ℝ) • y)) at hc |
| 109 | rw [show (0:ℝ) • y=0 from zero_smul ..] at hc; exact hc.mono_left nhdsWithin_le_nhds |
| 110 | filter_upwards [self_mem_nhdsWithin] with x hx |
| 111 | exact fun a b hb => mul_lt_mul_of_pos_left (hy hb) (show 0 < x from hx) |
| 112 | exact (h.corner i v f).comp he |
| 113 | end Waves |
| 114 | |
| 115 | structure Contour (S : Table L) where |
| 116 | waves : Waves S |
| 117 | world : Surface S |
| 118 | |
| 119 | structure Contour.From (C : Contour S) (T : Table L) : Prop where |
| 120 | heat : C.waves.Region T |
| 121 | emerges : C.waves.Opens C.world |
| 122 | |
| 123 | end YM.Boundary |