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.Euclid.Words |
| 2 | import YM.Ground.Moments |
| 3 | |
| 4 | /-! |
| 5 | # Named finite labelled configurations |
| 6 | |
| 7 | We use the same actual table throughout (including the junk off conf; |
| 8 | no estimate cites those unphysical values). On Conf ordering of the |
| 9 | finite naming scheme is irrelevant. This API facilitates re-indexing, |
| 10 | overwriting cluster names etc. at continuum passage and at tree |
| 11 | level. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.OPE |
| 16 | open MeasureTheory Function Filter Set Word Table Matrix |
| 17 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius ContDiff |
| 18 | variable {G:Gauge}{L:Register G}{V I J:Type*}[Fintype I][Fintype J][Fintype V] |
| 19 | variable (S : Table L) |
| 20 | |
| 21 | def runNames (I:Type*) [Fintype I] := (Fintype.equivFin I).symm |
| 22 | |
| 23 | def worded (x:I→E4) (v:I→ L.Token) : L.Word := realize (v ∘ runNames I) (points (x ∘ runNames I)) |
| 24 | def observe (x:I→E4)(v:I→ L.Token) : ℂ := S.expect (worded x v) |
| 25 | lemma runs_conf {x:I→E4} : points (x ∘ runNames I)∈ conf _ ↔ Injective x:= |
| 26 | ⟨fun h=>by |
| 27 | intro i j hij; obtain ⟨a,rfl⟩:=(runNames I).surjective i; obtain ⟨b,rfl⟩:=(runNames I).surjective j; exact congr_arg (runNames I) ((show Injective (x ∘ (runNames I)) from h) hij), fun h=>h.comp (runNames I).injective⟩ |
| 28 | lemma worded_distinct {x:I→E4}(v:I→ L.Token) : distinct (worded x v) ↔ Injective x:=(realized ..).trans runs_conf |
| 29 | lemma worded_get (x:I→E4)(v:I→L.Token)(a:L.Plant) : a∈ worded x v ↔ ∃ i,a=(x i,v i):=by |
| 30 | rw [worded,realize,List.mem_ofFn]; constructor |
| 31 | · rintro ⟨i,rfl⟩; exact ⟨_,rfl⟩ |
| 32 | rintro ⟨i,rfl⟩; obtain ⟨u,rfl⟩:= (runNames I).surjective i; exact ⟨u,rfl⟩ |
| 33 | lemma worded_nodup {x:I→ E4}(v:I→ L.Token)(hx:Injective x) : List.Nodup (worded x v):= List.nodup_iff_injective_get.mpr (plantInj ((worded_distinct v).2 hx)) |
| 34 | lemma worded_perm (e:I≃J){x:J→E4}(v:J→L.Token)(h:Injective x): List.Perm (worded (x ∘ e) (v ∘ e)) (worded x v):= |
| 35 | (List.perm_ext_iff_of_nodup (worded_nodup _ (h.comp e.injective)) (worded_nodup _ h)).2 (by |
| 36 | intro a; rw [worded_get,worded_get]; constructor |
| 37 | · rintro ⟨i,hi⟩; exact ⟨e i,hi⟩ |
| 38 | rintro ⟨j,hj⟩; obtain ⟨i,rfl⟩:= e.surjective j; exact ⟨i,hj⟩) |
| 39 | lemma perm_observe (h:S.Symmetric) (e:I≃J){x:J→E4}(v:J→L.Token)(hp:Injective x) : observe S (x ∘ e) (v ∘ e)=observe S x v:= S.order h ((worded_distinct ..).2 hp) ((worded_perm e v hp).symm) |
| 40 | lemma observe_carry (h:S.Homogeneous){x:I→E4}(v:I→ L.Token)(hp:Injective x) (a:E4):observe S (fun i=> x i + a) v = observe S x v:=by |
| 41 | unfold observe worded; rw [S.readAt,S.readAt]; exact h _ _ (runs_conf.mpr hp) a _ |
| 42 | lemma card_zero_eq [IsEmpty I] (h:S.Basic) (v:I→L.Token) (x:I→E4) : observe S x v=1:=by |
| 43 | unfold observe worded; rw [S.readAt]; have hx:Fintype.card I=0:= Fintype.card_eq_zero |
| 44 | apply (fun (n:ℕ)(hX:n=0)(x:Points n)(v:Fin n→L.Token)=> (show S.read x v=1 by subst n; exact h.trivial ..)) _ hx |
| 45 | lemma named_fin {n : ℕ}(h:S.Symmetric) {x:Points n}(v:Fin n → L.Token)(he:x∈conf n): observe S x.ofLp v=S.read x v:=by |
| 46 | rw [observe,← S.readAt v] |
| 47 | refine S.order h ((Word.realized ..).2 he) ((List.perm_ext_iff_of_nodup (List.nodup_iff_injective_get.mpr (plantInj ((Word.realized ..).2 he))) (worded_nodup _ he)).2 ?_) |
| 48 | intro a; rw [worded_get,realize,List.mem_ofFn]; exact exists_congr fun i=>eq_comm |
| 49 | lemma named_real {w:L.Word}(h:S.Symmetric)(hx:Word.distinct w): observe S (Word.positions w).ofLp (Word.tokens w)=S.expect w:= named_fin S h _ hx |
| 50 | |
| 51 | section |
| 52 | variable {Y : Type*} |
| 53 | def beside (x:I→Y) (y:J→Y) : I⊕J → Y := Sum.elim x y |
| 54 | @[simp] lemma beside_left (x:I→Y)(y:J→Y)(i) : beside x y (.inl i)=x i:=rfl |
| 55 | @[simp] lemma beside_right (x:I→Y)(y:J→Y)(i) : beside x y (.inr i)=y i:=rfl |
| 56 | lemma beside_commutes {Z:Type*} (x:I→Y)(y:J→Y)(f:Y→ Z): f ∘ beside x y=beside (f ∘ x) (f ∘ y):= funext fun i=> by cases i<;>rfl |
| 57 | lemma beside_distinct {x:I→Y}{y:J→Y} : Injective (beside x y) ↔ (Injective x ∧ Injective y ∧ ∀ (i:I)(j:J),x i≠y j):=by |
| 58 | constructor |
| 59 | · intro h; exact ⟨fun i j H=> Sum.inl.inj (h (show beside x y (.inl i)=beside x y (.inl j) from H)),fun i j H=> Sum.inr.inj (h (show beside x y (.inr i)=beside x y (.inr j) from H)),fun i j he=> Sum.inl_ne_inr (h (show beside x y (.inl i)=beside x y (.inr j) from he))⟩ -- implicit i j? |
| 60 | rintro ⟨h,hp,ht⟩ (x|x) (y|y) h' |
| 61 | · exact congr_arg Sum.inl (h h') |
| 62 | · exact (ht _ _ h').elim |
| 63 | · exact (ht _ _ h'.symm).elim |
| 64 | exact congr_arg Sum.inr (hp h') |
| 65 | end |
| 66 | lemma worded_beside (x:I→ E4)(y:J→ E4)(s:I→L.Token)(t:J→L.Token)(hx:Injective (beside x y)) : |
| 67 | List.Perm (worded (beside x y) (beside s t)) (worded x s ++ worded y t):=by |
| 68 | refine (List.perm_ext_iff_of_nodup (worded_nodup _ hx) (List.nodup_append.mpr ⟨worded_nodup _ (beside_distinct.mp hx).1, worded_nodup _ (beside_distinct.mp hx).2.1, ?_⟩)).mpr (fun a=> ?_) |
| 69 | · intro u hu v hv he; obtain ⟨i,rfl⟩:= (worded_get ..).mp hu; obtain ⟨j,rfl⟩:= (worded_get ..).mp hv; exact (beside_distinct.mp hx).2.2 i j (congr_arg Prod.fst he) |
| 70 | rw [worded_get,List.mem_append,worded_get,worded_get, Sum.exists]; simp |
| 71 | lemma observe_join (h:S.Symmetric)(x:I→E4)(y:J→E4)(s:I→L.Token)(t:J→L.Token)(hx:Injective (beside x y)) : S.expect (worded x s++ worded y t)= observe S (beside x y) (beside s t):= S.order h ((worded_distinct ..).2 hx) (worded_beside x y s t hx) |
| 72 | lemma smooth_observe (h:S.Smooth)(v:I→L.Token) {x:I→E4}(hx:Injective x) : ContinuousAt (fun x:I→E4=>observe S x v) x:= by |
| 73 | unfold observe worded; simp only [S.readAt]; let z(x:I→ E4):= points (x ∘ runNames I); have he:Continuous z:= by unfold z points; fun_prop -- inspect |
| 74 | exact (((S.smooth_read h _).continuousOn).continuousAt ((conf_open _).mem_nhds (runs_conf.mpr hx))).comp (f:=z) he.continuousAt |
| 75 | end YM.OPE |