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.Next.MULTISOURCE.Evaluate |
| 2 | |
| 3 | /-! |
| 4 | # Partitions at one coefficient. No factorial cost for the number of partitions! |
| 5 | -/ |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace YM.Multi |
| 11 | open RG Marker Lattice Function Finset |
| 12 | open scoped Topology BigOperators |
| 13 | |
| 14 | variable {V : Type*} [DecidableEq V] {R : Census V} |
| 15 | |
| 16 | def rootAt (R : Census V) (i : V) := univ.filter (fun x : Hot R => i∈x.sites) |
| 17 | @[simp] lemma mem_rootAt {x : Hot R} {i : V} : x ∈ rootAt R i ↔ i∈x.sites := by simp [rootAt] |
| 18 | |
| 19 | @[simp] lemma chooses (x : R.Mode) (S : (parts R).Mode) : S∈shards R x ↔ unionOf S=x := by simp [shards] |
| 20 | @[simp] lemma hu_chooses (x : Hot R) (S : Hot (parts R)) : S∈blocksOf R x ↔ unionOfHot S=x := by simp [blocksOf] |
| 21 | |
| 22 | @[simp] lemma shards_quiet : shards R R.quiet={(parts R).quiet} := by |
| 23 | ext i; simp only [chooses,mem_singleton]; constructor |
| 24 | · intro h |
| 25 | refine Subtype.ext (Finset.not_nonempty_iff_eq_empty.mp ?_) |
| 26 | intro H |
| 27 | let x : Hot (parts R) := ⟨i,H⟩ |
| 28 | have he := h ▸ (show (unionOf i).val.Nonempty from (unionOfHot x).property) |
| 29 | exact not_nonempty_empty he |
| 30 | rintro rfl; exact unionOf_empty |
| 31 | |
| 32 | def contig (v : Hot R) (T : R.Mode) : R.Mode := |
| 33 | ⟨T.val \ v.sites, R.down T.property _ (sdiff_subset)⟩ |
| 34 | |
| 35 | def keepOne (i : V) (T : R.Mode) := (rootAt R i).filter (fun x : Hot R => x.sites ⊆ T.val) |
| 36 | |
| 37 | lemma shard_formula (f : Hot R → ℝ) (i : V) (x : R.Mode) (hx : i ∈ x.val) : |
| 38 | (∑ s∈ shards R x, ∏ b∈s.val,f b)= |
| 39 | ∑ h ∈ keepOne i x, f h * ∑ s ∈ shards R (contig h x), ∏ b∈s.val,f b := by |
| 40 | have makes (h : Hot R) (s : (parts R).Mode) (hv : h ∈ keepOne i x) |
| 41 | (hs : s∈shards R (contig h x)) : |
| 42 | h ∉ s.val ∧ ∃ t, t∈ shards R x ∧ t.val=insert h s.val := by |
| 43 | have hH := (chooses _ _).mp hs |
| 44 | have he := (mem_filter.mp hv).2 |
| 45 | have hg : Poly.merges h.val (unionOf s) x := by |
| 46 | rw [hH] |
| 47 | refine ⟨disjoint_sdiff, (union_comm ..).trans (sdiff_union_of_subset he)⟩ |
| 48 | have ht : unionOf ((parts R).fire h)=h.val := unionOf_single _ |
| 49 | obtain ⟨w,hw⟩ := merge_union_inv (show Poly.merges (unionOf ((parts R).fire h)) (unionOf s) x by rw [ht]; exact hg) |
| 50 | have hi : w.val=insert h s.val := hw.2.symm.trans (singleton_union ..) |
| 51 | refine ⟨fun H => disjoint_left.mp hw.1 (mem_singleton.mpr rfl) H, w, (chooses ..).mpr ?_,hi⟩ |
| 52 | apply Subtype.ext; rw [← (merge_union hw).2,ht,hg.2] |
| 53 | let L := (keepOne i x).sigma fun (h : Hot R) => shards R (contig h x) |
| 54 | have joins (z : Σ _ : Hot R, (parts R).Mode) (hz : z∈L) : |
| 55 | let a := insert z.1 z.2.val |
| 56 | ∃ t, t∈ shards R x ∧ t.val=a := (makes _ _ (mem_sigma.mp hz).1 (mem_sigma.mp hz).2).2 |
| 57 | choose j hj hd using joins -- dependent on hz |
| 58 | symm |
| 59 | simp_rw [mul_sum] |
| 60 | rw [sum_sigma'] |
| 61 | refine sum_bij j hj ?_ ?_ ?_ |
| 62 | · rintro ⟨p,A⟩ hA ⟨q,B⟩ hB h |
| 63 | have e : insert p A.val=insert q B.val := (hd _ hA).symm.trans ((congrArg Subtype.val h).trans |
| 64 | (hd _ hB)) |
| 65 | have hv := hd _ hA |
| 66 | have hp := mem_sigma.mp hA |
| 67 | have hq := mem_sigma.mp hB |
| 68 | have he : p=q := by |
| 69 | by_contra hn |
| 70 | apply Finset.disjoint_left.mp (parts_wise (j _ hA) (x:=p) (y:=q) ?_ ?_ hn) |
| 71 | (mem_rootAt.mp (mem_filter.mp hp.1).1) (mem_rootAt.mp (mem_filter.mp hq.1).1) |
| 72 | · apply mem_coe.mpr; rw [hv]; exact mem_insert_self .. |
| 73 | apply mem_coe.mpr; rw [h,hd]; exact mem_insert_self .. |
| 74 | subst q |
| 75 | congr 1 |
| 76 | apply Subtype.ext |
| 77 | have hv := congrArg (fun x : Finset _ => x.erase p) e |
| 78 | rwa [erase_insert (makes p A hp.1 hp.2).1, erase_insert (makes p B hq.1 hq.2).1] at hv |
| 79 | · intro b hb |
| 80 | have hU := (chooses ..).mp hb |
| 81 | obtain ⟨p,hp,hi⟩ := mem_biUnion.mp (show i∈ b.val.biUnion Hot.sites by |
| 82 | change i∈ (unionOf b).val; rwa [hU]) |
| 83 | let t : (parts R).Mode := ⟨b.val.erase p,(parts R).down b.property _ (erase_subset ..)⟩ |
| 84 | have hh : Poly.merges t ((parts R).fire p) b := |
| 85 | ⟨disjoint_left.mpr fun i hi h => notMem_erase p _ ((mem_singleton.mp h) ▸ hi), |
| 86 | (union_comm ..).trans (by change {p} ∪ _=_; rw [singleton_union]; exact insert_erase hp)⟩ |
| 87 | have hv := merge_union hh |
| 88 | rw [unionOf_single,hU] at hv |
| 89 | have he := hv.2 |
| 90 | have hd' : unionOf t=contig p x := by |
| 91 | apply Subtype.ext |
| 92 | change _=x.val \ p.sites |
| 93 | rw [← he]; simp only [Hot.sites,union_sdiff_self,sdiff_eq_self_of_disjoint hv.1] |
| 94 | have hg : p∈ keepOne i x := mem_filter.mpr ⟨mem_rootAt.mpr hi, he ▸ subset_union_right⟩ |
| 95 | have hB : Sigma.mk (β:=fun _ : Hot R => (parts R).Mode) p t ∈ L := mem_sigma.mpr |
| 96 | ⟨hg,(chooses ..).mpr hd'⟩ |
| 97 | exact ⟨_,hB,Subtype.ext ((hd _ hB).trans (insert_erase hp))⟩ |
| 98 | rintro ⟨p,b⟩ hb |
| 99 | rw [hd] |
| 100 | rw [prod_insert (makes _ _ (mem_sigma.mp hb).1 (mem_sigma.mp hb).2).1] |
| 101 | |
| 102 | lemma pays_modes (f : Hot R → ℝ) (h : ∀ i,0≤f i) (hq : ∀ x : V,(∑ i∈rootAt R x, f i) ≤ 1) (T : R.Mode) : |
| 103 | (∑ s∈shards R T, ∏ i∈s.val,f i) ≤ 1 := by |
| 104 | by_cases he : T.val.Nonempty |
| 105 | · obtain ⟨v,hv⟩ := he |
| 106 | rw [shard_formula f v T hv] |
| 107 | calc |
| 108 | _ ≤ ∑ i∈keepOne v T,f i*1 := sum_le_sum fun i hi => |
| 109 | mul_le_mul_of_nonneg_left (pays_modes f h hq (contig i T)) (h i) |
| 110 | _ ≤ _ := by |
| 111 | simp only [mul_one]; exact (sum_le_sum_of_subset_of_nonneg (filter_subset ..) (fun i _ _ => h i)).trans (hq v) |
| 112 | rw [show T=R.quiet from Subtype.ext (not_nonempty_iff_eq_empty.mp he), shards_quiet]; simp [Census.quiet] |
| 113 | termination_by T.val.card |
| 114 | decreasing_by |
| 115 | change (T.val \ i.sites).card < T.val.card |
| 116 | rw [card_sdiff_of_subset (mem_filter.mp hi).2] |
| 117 | have h1 := card_pos.mpr i.property |
| 118 | have he := card_pos.mpr (show T.val.Nonempty from ⟨v,hv⟩) |
| 119 | exact Nat.sub_lt he h1 |
| 120 | |
| 121 | lemma pays_parts (f : Hot R → ℝ) (h : ∀ i,0≤f i) (hq : ∀ x : V,(∑ i∈rootAt R x, f i) ≤ 1) (T : Hot R) : |
| 122 | (∑ H∈blocksOf R T, ∏ i∈ H.sites, f i) ≤ 1 := by |
| 123 | refine le_trans (le_of_eq (b:=∑ s∈shards R T.val,∏ i∈s.val,f i) ?_) (pays_modes f h hq _) |
| 124 | refine Finset.sum_bij (fun i _ => i.val) (fun i hi => ?_) (fun i _ j _ h => Subtype.ext h) ?_ (fun _ _ => rfl) |
| 125 | · exact (chooses ..).mpr (congrArg Subtype.val ((hu_chooses ..).mp hi)) |
| 126 | intro i hi |
| 127 | have he := (chooses ..).mp hi |
| 128 | have hh : i.val.Nonempty := by |
| 129 | by_contra hv |
| 130 | rw [show i=(parts R).quiet from Subtype.ext (Finset.not_nonempty_iff_eq_empty.mp hv),unionOf_empty] at he |
| 131 | exact not_nonempty_empty (he ▸ T.property) |
| 132 | exact ⟨⟨i,hh⟩,(hu_chooses ..).mpr (Subtype.ext he),rfl⟩ |
| 133 | |
| 134 | lemma part_size (T : Hot R) (i : Hot (parts R)) (h : i ∈ blocksOf R T) : T.sites.card = ∑ x∈i.sites,x.sites.card := by |
| 135 | rw [← (hu_chooses ..).mp h]; exact card_biUnion (parts_wise _) |
| 136 | lemma part_cost (T : Hot R) (i : Hot (parts R)) (h : i ∈ blocksOf R T) (w : ℝ) (f : Hot R → ℝ) : |
| 137 | w^T.sites.card * (∏ j∈i.sites,f j)=∏ j∈i.sites,(w^j.sites.card*f j) := by |
| 138 | rw [part_size T i h,Finset.prod_mul_distrib, Finset.prod_pow_eq_pow_sum] |
| 139 | end YM.Multi |