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.Extra.MULTISOURCE_TRAJECTORIES.Algebra |
| 2 | import YM.TraceExtension.Cask.Holds |
| 3 | import YM.Overlay.Terminal |
| 4 | set_option autoImplicit false |
| 5 | set_option linter.unusedSectionVars false |
| 6 | noncomputable section |
| 7 | namespace YM.Trace.Cask |
| 8 | open RG Lattice Ac MergeProof Finset MergeProof.Accent Marker Extra.Trajectories Function |
| 9 | open scoped Classical |
| 10 | variable {I V:Type*}[DecidableEq I][DecidableEq V]{n:Side}[Fintype V] |
| 11 | abbrev Duel (V:Type*) := V×Bool |
| 12 | abbrev Twin (V:Type*)[DecidableEq V][Fintype V]:= Stock.census (Duel V) |
| 13 | def spanZ (v:Finset V): (Twin V).Mode:= ⟨v×ˢuniv,mem_univ _⟩ |
| 14 | def shipP (v:Finset V)(a:ℂ):= Poly.send (spanZ v) a |
| 15 | lemma fitsZ {T:Finset I}{a:I→Finset V}: Extra.Trajectories.Fits (spanZ ∘ a) T↔(T:Set I).PairwiseDisjoint a:=by |
| 16 | constructor |
| 17 | · intro ⟨h,_⟩ j hj k hk hm; exact disjoint_left.mpr fun i hp hv=> disjoint_left.mp (h hj hk hm) (show (i,true)∈_ from mem_product.mpr ⟨hp,mem_univ true⟩) (mem_product.mpr ⟨hv,mem_univ true⟩) |
| 18 | intro h; exact ⟨fun j hj k hk hm=> disjoint_left.mpr fun i hp hv=> disjoint_left.mp (h hj hk hm) (mem_product.mp hp).1 (mem_product.mp hv).1,mem_univ _⟩ |
| 19 | lemma ship_sum (S:Finset I)(a:I→Finset V)(v:I→ℂ)(hp:(S:Set I).PairwiseDisjoint a): (∏ i∈S,shipP (a i) (v i))=shipP (S.biUnion a) (∏ i∈S,v i):=by |
| 20 | unfold shipP; refine (tagged_prod (spanZ ∘ a) S (fitsZ.2 hp) v).trans ?_ |
| 21 | refine congr_arg (fun p => Poly.send p _) (Subtype.ext ?_); ext k; simp only[unionTag,comp_apply,spanZ,mem_biUnion,mem_product,mem_univ,true_and,and_true] |
| 22 | lemma ship_fits (S:Finset I)(a:I→Finset V)(v:I→ℂ)(hp:∏ i∈S,shipP (a i) (v i)≠0): (S:Set I).PairwiseDisjoint a:= fitsZ.mp (fits_of_tagged_prod (spanZ ∘ a) hp) |
| 23 | variable (P:Staff V I n) |
| 24 | abbrev Stiff := {s:Finset I// Ice P s} |
| 25 | abbrev Arch := {s:Finset I// Boat P s} |
| 26 | abbrev Pier (s:Arch P):Box n:= (hill P s.val,gem P s.val) |
| 27 | def blue (F:Finset I→ℂ) (T:Support n)(q:Finset I):= if Disjoint (hill P q) T then F q else 0 |
| 28 | def red (F:Finset I→ℂ) (T:Support n)(q:Finset I):= if Glut P T q∧hill P q∩T=gem P q then F q else 0 |
| 29 | def booth (F:Finset I→ℂ)(T:Support n)(a:Finset (Stiff P))(b:Finset (Arch P)):= (∏ i∈a,shipP (crew P i.val) (blue P F T i.val))*Packets.value (Pier P) (Pattern T) (fun i=> shipP (crew P i.val) (red P F T i.val)) b |
| 30 | variable {P} |
| 31 | def beadsP {D:Finset I→Prop}(p:Finset {s:Finset I// D s}):= p.image Subtype.val |
| 32 | variable (P) |
| 33 | lemma glass (a:Finset (Stiff P))(b: Finset (Arch P)): Disjoint (beadsP a) (beadsP b):=by |
| 34 | refine disjoint_left.mpr fun s hs hx=>?_ ; obtain ⟨t,_,rfl⟩:= mem_image.mp hs; obtain ⟨p,_,hp⟩:= mem_image.mp hx; exact p.property.wet.ne_empty (hp.symm ▸ t.property.dry) |
| 35 | lemma pier_m (T:Support n)(b:Finset (Arch P)): Packets.selected (Pier P) (Pattern T) b ↔ (((beadsP b):Set _).PairwiseDisjoint (hill P) ∧ (beadsP b).biUnion (gem P)=T):= by |
| 36 | rw [marked_pattern ..]; swap; exact fun i _=> i.property.wet.mono (owns ..) |
| 37 | unfold beadsP; rw [image_biUnion]; refine and_congr ?_ Iff.rfl |
| 38 | constructor |
| 39 | · intro h i hi j hj hD; obtain ⟨v,hv,rfl⟩:=mem_image.mp hi; obtain ⟨w,hw,rfl⟩:=mem_image.mp hj; exact h hv hw fun hm=>hD (congr_arg _ hm) |
| 40 | intro h i hi j hj hm; exact h (mem_image_of_mem _ hi) (mem_image_of_mem _ hj) (fun H=>hm (Subtype.ext H)) |
| 41 | variable {P} |
| 42 | variable {F:Finset I→ℂ}{T:Support n}{a:Finset (Stiff P)}{b:Finset (Arch P)} |
| 43 | abbrev dispel (a:Finset (Stiff P))(b:Finset (Arch P)):= (beadsP a)∪beadsP b |
| 44 | abbrev grab (a:Finset (Stiff P))(b:Finset (Arch P)):= bulk (beadsP a) (beadsP b) |
| 45 | def pink (F: Finset I→ℂ)(P:Staff V I n)(T:Support n)(q:Finset I):= if gem P q=∅ then blue P F T q else red P F T q |
| 46 | private lemma glass_val (hp:Packets.selected (Pier P) (Pattern T) b): booth P F T a b=∏ i∈dispel a b,shipP (crew P i) (pink F P T i):=by |
| 47 | rw[booth,Packets.value,if_pos hp,dispel,prod_union (glass ..),beadsP,beadsP,prod_image Subtype.val_injective.injOn,prod_image Subtype.val_injective.injOn]; apply congr_arg₂ (·*·) |
| 48 | · apply prod_congr rfl; intro i _; rw [pink,if_pos i.property.dry] |
| 49 | apply prod_congr rfl;intro i _;rw [pink,if_neg i.property.wet.ne_empty] |
| 50 | lemma booth_up (H:booth P F T a b ≠0): Haven P T (beadsP a) (beadsP b):=by |
| 51 | have hp:Packets.selected (Pier P) (Pattern T) b:= Classical.byContradiction fun h=> H (by simp [booth,Packets.value,h]) |
| 52 | obtain ⟨hq,hM⟩:= (pier_m ..).1 hp; rw [glass_val hp] at H; have hx(v)(hv:v∈dispel a b): pink F P T v ≠0:=fun h'=> H (prod_eq_zero hv (by simp [shipP,h'])) |
| 53 | refine ⟨fun s hs=> ?_,fun s hs=> ?_,ship_fits _ _ _ H,hq,hM⟩ |
| 54 | · obtain ⟨t,ht,rfl⟩:=mem_image.mp hs; have hb:= t.property; exact ⟨hb, Classical.byContradiction (fun h=> hx _ (mem_union_left _ (mem_image_of_mem _ ht)) (by simp [pink,hb.dry,blue,h]))⟩ |
| 55 | obtain ⟨t,ht,rfl⟩:= mem_image.mp hs; have hb:= t.property; exact ⟨hb,Classical.byContradiction (fun h=> hx _ (mem_union_right _ (mem_image_of_mem _ ht)) (by rw [pink,if_neg hb.wet.ne_empty,red,if_neg h]))⟩ |
| 56 | lemma booth_shares (h:Haven P T (beadsP a) (beadsP b)): booth P F T a b=shipP (crew P (grab a b)) (∏ i∈dispel a b,F i):=by |
| 57 | rw [glass_val ((pier_m ..).2 ⟨h.spatial,h.flags⟩),ship_sum _ _ _ h.apart] |
| 58 | refine congr_arg₂ _ ?_ (prod_congr rfl (fun i hi=> ?_)) |
| 59 | · unfold grab crew bulk; rw [biUnion_biUnion]; rfl |
| 60 | unfold pink; rcases mem_union.mp hi with H|H |
| 61 | · rw [if_pos (h.ice i H).1.dry,blue,if_pos (h.ice i H).2] |
| 62 | rw [if_neg (h.boat i H).1.wet.ne_empty,red,if_pos (h.boat i H).2] |
| 63 | end YM.Trace.Cask |