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.Finset.Max |
| 2 | import Mathlib.Data.Fintype.Basic |
| 3 | import Mathlib.Tactic |
| 4 | /-! |
| 5 | # Finite cluster trees (all internal vertices have scales) |
| 6 | |
| 7 | Use a labelled tree including both internal nodes & leaves. An internal node |
| 8 | may have arbitrary finite valence, including 0; the root is internal. Leaves |
| 9 | outside `zones` have no children and provide the overall input tuple. All |
| 10 | nodes are reachable from the root (acyclic). This flat presentation eases |
| 11 | successive expansion and contraction in an arbitrary order. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.OPE |
| 16 | open Function Finset |
| 17 | open scoped Classical |
| 18 | variable {I:Type} |
| 19 | |
| 20 | structure Arboreal (I:Type) where |
| 21 | root : I |
| 22 | zones : Finset I |
| 23 | parent : I→ I |
| 24 | depth : I→ℕ |
| 25 | direct : parent root=root |
| 26 | inward (i:I) : parent i∈ zones |
| 27 | step (i:I): i≠root→ depth (parent i)<depth i |
| 28 | |
| 29 | namespace Arboreal |
| 30 | variable (s:Arboreal I) (i j k:I) {a b : I} |
| 31 | |
| 32 | lemma initial : s.root∈ s.zones:= s.direct ▸ s.inward s.root |
| 33 | lemma not_parent (h:i≠s.root) : i≠s.parent i:= fun hz=>ne_of_lt (s.step i h) (congr_arg _ hz.symm) |
| 34 | lemma descends : s.depth (s.parent i) ≤ s.depth i:=by |
| 35 | by_cases h:i=s.root; · subst i; rw [s.direct] |
| 36 | exact (s.step i h).le |
| 37 | @[elab_as_elim] |
| 38 | theorem hill (s:Arboreal I)(i : I){P:I→ Prop} (h:P s.root) (hp:∀ i:I,i≠s.root→ P (s.parent i) → P i) : P i :=by |
| 39 | by_cases hh:i=s.root; subst i; · exact h |
| 40 | exact hp i hh (hill s (s.parent i) h hp) |
| 41 | termination_by s.depth i |
| 42 | decreasing_by exact s.step i hh |
| 43 | -- Anc incl self, parent root self. |
| 44 | def Anc : Prop := ∃ n : ℕ,s.parent^[n] j=i |
| 45 | variable {i j k} |
| 46 | lemma Anc.same (s: Arboreal I)(i) : s.Anc i i:= ⟨0,rfl⟩ |
| 47 | lemma Anc.step (s:Arboreal I)(i) : s.Anc (s.parent i) i:= ⟨1,rfl⟩ |
| 48 | lemma Anc.joins {s:Arboreal I} (h:s.Anc i j)(hp:s.Anc j k): s.Anc i k:=by |
| 49 | obtain ⟨t,rfl⟩:=hp; obtain ⟨u,rfl⟩:=h; exact ⟨u+t, iterate_add_apply ..⟩ |
| 50 | lemma closure (i) : s.Anc s.root i:= by |
| 51 | induction i using s.hill with |
| 52 | | h=> exact Anc.same .. |
| 53 | | hp i hi ih=> exact ih.joins (Anc.step ..) |
| 54 | lemma Anc.excess {s:Arboreal I}(h:s.Anc i s.root): i=s.root:=by |
| 55 | obtain ⟨n,rfl⟩:=h; induction n with |
| 56 | | zero=>rfl |
| 57 | | succ n ih=> rw [iterate_succ_apply',ih,s.direct] |
| 58 | lemma Anc.back {s:Arboreal I}(h:s.Anc i j)(he:j≠i) : s.Anc i (s.parent j):=by |
| 59 | obtain ⟨k,hk⟩:=h; cases k with |
| 60 | | zero=>exact (he hk).elim |
| 61 | | succ n=>exact ⟨n,hk⟩ |
| 62 | lemma Anc.depth {s:Arboreal I} (h:s.Anc i j) : s.depth i ≤ s.depth j:=by |
| 63 | obtain ⟨n,rfl⟩:=h; induction n with |
| 64 | | zero=> exact le_rfl |
| 65 | | succ n ih=> rw [iterate_succ_apply']; exact (s.descends _).trans ih |
| 66 | lemma Anc.into {s:Arboreal I} (h:s.Anc i j)(he:j≠i): s.depth i<s.depth j:= |
| 67 | (h.back he).depth.trans_lt (s.step _ (fun hx=> he ((hxe hx h).symm ▸ hx))) -- he prova inspect |
| 68 | where hxe (h':j=s.root)(h:s.Anc i j) : i=s.root:= (show s.Anc i s.root from h' ▸ h).excess |
| 69 | lemma Anc.unique {s:Arboreal I} (h:s.Anc i j)(hp:s.Anc j i): i=j:= |
| 70 | Decidable.byContradiction fun hh=> not_lt_of_ge h.depth (hp.into hh) |
| 71 | lemma Anc.inner {s:Arboreal I}(h:s.Anc i j)(hi:j ∈ s.zones): i ∈ s.zones:=by |
| 72 | obtain ⟨n,rfl⟩:=h; cases n with |
| 73 | | zero=> exact hi |
| 74 | | succ n=> rw [iterate_succ_apply']; exact s.inward _ |
| 75 | lemma Anc.proper {s:Arboreal I}(h:s.Anc i j)(hh:j≠ i): i∈ s.zones:=(h.back hh).inner (s.inward j) |
| 76 | lemma Anc.compare {s:Arboreal I} (h:s.Anc i k)(hp:s.Anc j k): s.Anc i j ∨ s.Anc j i:=by |
| 77 | obtain ⟨n,rfl⟩:=h; obtain ⟨t,rfl⟩:=hp; rcases le_total n t with h|h |
| 78 | · obtain ⟨w,rfl⟩:=Nat.exists_eq_add_of_le h; exact Or.inr ⟨w, by rw [add_comm n w, iterate_add_apply]⟩ |
| 79 | obtain ⟨w,rfl⟩:=Nat.exists_eq_add_of_le h; exact Or.inl ⟨w, by rw [add_comm t w, iterate_add_apply]⟩ |
| 80 | |
| 81 | lemma Anc.along {s:Arboreal I} {j : I} (h:s.Anc i j)(P:I→ Prop)(he:P i)(hp:∀ k:I,s.Anc i k → s.Anc k j → k≠i → P (s.parent k) → P k) : P j:=by |
| 82 | by_cases hh:j=i; · subst j; exact he |
| 83 | exact hp j h (Anc.same ..) hh ((h.back hh).along P he (fun k hk hi hu hc=>hp k hk (hi.joins (Anc.step ..)) hu hc)) |
| 84 | termination_by s.depth j |
| 85 | decreasing_by |
| 86 | exact s.step _ (by intro hi; exact hh (hi.trans (show i=s.root from Anc.excess (hi▸h)).symm)) |
| 87 | -- possibly Anc.same requires Fintype, remove |
| 88 | |
| 89 | variable [Fintype I] |
| 90 | def kids (i) := Finset.univ.filter fun j=> j≠s.root∧ s.parent j=i |
| 91 | lemma related (i j): j∈ s.kids i↔j≠s.root∧ s.parent j=i:=by simp [kids] |
| 92 | lemma Anc.child {s:Arboreal I} (h:i∈ s.kids j): s.Anc j i := (s.related j i|>.1 h).2 ▸ Anc.step s i |
| 93 | lemma higher {s:Arboreal I} (h:i∈ s.kids j): s.depth j < s.depth i:= (s.related ..|>.1 h).2 ▸ s.step i (s.related ..|>.1 h).1 |
| 94 | lemma useful {s:Arboreal I}(h:i∈ s.kids j): i ≠ j:= by |
| 95 | intro h'; exact ne_of_lt (higher h) (congr_arg _ h'.symm) |
| 96 | |
| 97 | lemma Anc.first {s:Arboreal I} {j : I} (h:s.Anc i j)(hp:j≠i) : ∃ k∈ s.kids i, s.Anc k j:=by |
| 98 | by_cases hi:s.parent j=i; exacts [⟨j,(s.related ..).2 ⟨(fun hx=> hp (hx.trans (show i=s.root from (Anc.excess (hx▸h))).symm)),hi⟩,Anc.same ..⟩,by |
| 99 | obtain ⟨k,hk,he⟩:=(h.back hp).first hi; exact ⟨k,hk,he.joins (Anc.step ..)⟩] |
| 100 | termination_by s.depth j |
| 101 | decreasing_by exact s.step _ (by intro hi; exact hp (hi.trans (show i=s.root from Anc.excess (hi▸h)).symm)) |
| 102 | |
| 103 | def Fork (s:Arboreal I) (i j k : I): Prop:= ∃ a∈ s.kids i, ∃ b∈ s.kids i, a≠b∧ s.Anc a j ∧ s.Anc b k |
| 104 | lemma divergence (h:¬s.Anc j k)(hp:¬ s.Anc k j)(hi:s.Anc i j)(hk:s.Anc i k): ∃ u∈ s.zones,s.Anc i u∧ s.Fork u j k := by |
| 105 | let A:= ((Finset.univ : Finset I).filter (fun i=> s.Anc i j ∧ s.Anc i k)); obtain ⟨u,hU,hV⟩:= A.exists_max_image s.depth ⟨i,mem_filter.mpr ⟨mem_univ _,hi,hk⟩⟩; obtain ⟨hj,hk'⟩:= (mem_filter.mp hU).2 |
| 106 | have hψ: j≠u:= fun he=> h (he.symm ▸ hk'); obtain ⟨a,ha,hb⟩:= hj.first hψ; obtain ⟨a',ha',hb'⟩:= hk'.first (fun he=>hp (he.symm ▸ hj)) |
| 107 | refine ⟨u,hj.proper hψ,?_,a,ha,a',ha',fun hx=> ?_,hb,hb'⟩ |
| 108 | · have he:=hi.compare hj; rcases he with he|he; · exact he |
| 109 | by_contra hx; exact not_lt_of_ge (hV i (mem_filter.mpr ⟨mem_univ _,hi,hk⟩)) (he.into (show i≠u from fun H=>hx (H ▸ Anc.same s i))) |
| 110 | subst a'; exact not_lt_of_ge (hV a (mem_filter.mpr ⟨mem_univ _, hb,hb'⟩)) (higher ha) |
| 111 | lemma Fork.left {s:Arboreal I}(h:s.Fork i j k) : s.Anc i j ∧ j≠ i:= by |
| 112 | obtain ⟨u,he,t,-,-,hu,-⟩:=h; exact ⟨(Anc.child he).joins hu,fun ht=> useful he (ht ▸ hu|>.unique (Anc.child he))⟩ -- ht syntax |
| 113 | lemma Fork.swap {s:Arboreal I}(h:s.Fork i j k):s.Fork i k j:=by obtain ⟨a,ha,b,hb,h,hi,hj⟩:=h; exact ⟨b,hb,a,ha,h.symm,hj,hi⟩ |
| 114 | lemma Fork.inner {s:Arboreal I}(h:s.Fork i j k): i ∈ s.zones := h.left.1.proper h.left.2 |
| 115 | end Arboreal |
| 116 | end YM.OPE |