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 | # Read one tangent exactly |
| 5 | -/ |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace YM.Multi |
| 11 | open RG Wilson Lattice Finset Marker |
| 12 | open scoped Topology BigOperators |
| 13 | |
| 14 | variable {V : Type*} [DecidableEq V] {R : Census V} |
| 15 | variable {n : Side} {G : Gauge} |
| 16 | |
| 17 | lemma merge_one (i : V) (x y : R.Mode) : Poly.merges x y (R.fire i) ↔ |
| 18 | (x=R.quiet ∧ y=R.fire i) ∨ (x=R.fire i ∧ y=R.quiet) := by |
| 19 | constructor |
| 20 | · rintro h |
| 21 | by_cases hx : x=R.quiet |
| 22 | · subst x; exact Or.inl ⟨rfl,Poly.vacuum y _ |>.1 h⟩ |
| 23 | right |
| 24 | have he : x.val.Nonempty := Finset.nonempty_iff_ne_empty.mpr fun H => hx (Subtype.ext H) |
| 25 | have ht := card_pos.mpr he |
| 26 | obtain ⟨H,hH⟩ := h |
| 27 | have hw : x.val.card+y.val.card=1 := by rw [← card_union_of_disjoint H,hH]; exact card_singleton _ |
| 28 | have hy : y.val=∅ := card_eq_zero.mp (by omega) |
| 29 | exact ⟨Subtype.ext (by simpa only [hy, union_empty] using hH), Subtype.ext hy⟩ |
| 30 | rintro (⟨rfl,rfl⟩|⟨rfl,rfl⟩) |
| 31 | · simp |
| 32 | rw [Poly.wind]; simp |
| 33 | |
| 34 | lemma first_mul (a b : Poly R) (i : V) : (a*b).part (R.fire i) = |
| 35 | a.part R.quiet*b.part (R.fire i)+a.part (R.fire i)*b.part R.quiet := by |
| 36 | rw [Poly.part_mul] |
| 37 | have hn := R.fire_hot i |
| 38 | let f (x : R.Mode) := ∑ y, if Poly.merges x y (R.fire i) then a.part x*b.part y else 0 |
| 39 | change ∑ x,f x=_ |
| 40 | rw [← Finset.add_sum_erase _ f (mem_univ R.quiet), sum_eq_single (R.fire i) (s:=univ.erase R.quiet)] |
| 41 | · unfold f; simp [merge_one, hn, Ne.symm hn] |
| 42 | · intro x hx h |
| 43 | unfold f; simp [merge_one,h,(mem_erase.mp hx).1] |
| 44 | simp [hn] |
| 45 | |
| 46 | lemma quiet_of_prod {I : Type*} (S : Finset I) (f : I → Poly R) : |
| 47 | (∏ i∈S,f i).part R.quiet = ∏ i∈S,(f i).part R.quiet := by |
| 48 | classical |
| 49 | induction S using Finset.induction with |
| 50 | | empty => simp |
| 51 | | insert i S h ih => rw [prod_insert h, prod_insert h,Poly.quiet_mul,ih] |
| 52 | |
| 53 | lemma first_of_prod {I : Type*} [DecidableEq I] (S : Finset I) (f : I → Poly R) (j : V) : |
| 54 | (∏ i∈S,f i).part (R.fire j) = ∑ i∈S,(f i).part (R.fire j)*∏ x∈S.erase i,(f x).part R.quiet := by |
| 55 | induction S using Finset.induction with |
| 56 | | empty => simp [R.fire_hot] |
| 57 | | insert i S h ih => |
| 58 | rw [prod_insert h,first_mul,ih,quiet_of_prod,sum_insert h,erase_insert h,add_comm,mul_sum] |
| 59 | congr 1 |
| 60 | refine sum_congr rfl fun p hp => ?_ |
| 61 | rw [Finset.erase_insert_of_ne (show i ≠ p from fun H => h (H ▸ hp)), prod_insert (fun H => h (mem_of_mem_erase H))] |
| 62 | ring |
| 63 | |
| 64 | lemma singleton_shards (i : V) (R : Census V) : shards R (R.fire i)={ (parts R).fire (Hot.one R i) } := by |
| 65 | ext x |
| 66 | simp only [shards,mem_filter,mem_univ,true_and,mem_singleton] |
| 67 | constructor |
| 68 | · intro h |
| 69 | apply Subtype.ext |
| 70 | change x.val={Hot.one R i} |
| 71 | have hy : x.val.biUnion Hot.sites={i} := congrArg Subtype.val h |
| 72 | have hf {b} (hb : b∈ x.val) : b = Hot.one R i := Hot.eq_of_sites (by |
| 73 | change b.sites={i}; apply le_antisymm |
| 74 | · intro j hj; rw [← hy]; exact mem_biUnion.mpr ⟨b,hb,hj⟩ |
| 75 | obtain ⟨v,hv⟩ := b.property |
| 76 | have ht : v=i := Finset.mem_singleton.mp (hy ▸ mem_biUnion.mpr ⟨b,hb,hv⟩) |
| 77 | rw [singleton_subset_iff]; rwa [← ht]) |
| 78 | apply eq_singleton_iff_unique_mem.mpr |
| 79 | obtain ⟨b,hb,H⟩ := mem_biUnion.mp (by rw [hy]; simp : i∈ x.val.biUnion Hot.sites) |
| 80 | exact ⟨hf hb ▸ hb, fun v hv => hf hv⟩ |
| 81 | rintro rfl; exact unionOf_single _ |
| 82 | |
| 83 | lemma singleton_blocks (i : V) (R : Census V) : blocksOf R (Hot.one R i)={Hot.one (parts R) (Hot.one R i)} := by |
| 84 | ext x |
| 85 | simp only [blocksOf,mem_filter,mem_univ,true_and,mem_singleton] |
| 86 | constructor |
| 87 | · intro h |
| 88 | have ht : x.val ∈ shards R (R.fire i) := mem_filter.mpr ⟨mem_univ _, congrArg Subtype.val h⟩ |
| 89 | rw [singleton_shards] at ht; exact Subtype.ext (mem_singleton.mp ht) |
| 90 | rintro rfl; rw [unionOfHot_one] |
| 91 | |
| 92 | /-- Literal linearized density function (includes vacuum in zero sector). -/ |
| 93 | def tangent (P : Rep G n) (D : Pulse G n) (U : Config G n) : ℂ := |
| 94 | (P.eval U:ℂ)*D.1 U + (Real.exp (P.exponent U):ℂ) * |
| 95 | ∑ b∈Pack.clears (flags P.p.threshold U), ∑ i∈b,D.2 i U * ∏ v∈b.erase i, incumbent P U v |
| 96 | |
| 97 | lemma tangent_scale (P : Rep G n) (D : Pulse G n) (z : ℂ) : tangent P (z • D) = z • tangent P D := by |
| 98 | funext U |
| 99 | simp only [tangent,Prod.smul_fst, Prod.smul_snd, Pi.smul_apply, smul_eq_mul, mul_add] |
| 100 | rw [mul_left_comm (↑(P.eval U):ℂ), mul_left_comm z (↑(Real.exp _):ℂ), Finset.mul_sum] |
| 101 | simp_rw [Finset.mul_sum,mul_assoc] |
| 102 | |
| 103 | variable [Fintype V] |
| 104 | |
| 105 | lemma first_pass (i : V) (x : Poly R) (hx : x.part R.quiet=0) : |
| 106 | (x.pass).part (R.fire i)=x.part (R.fire i) := by |
| 107 | rw [Poly.pass,Poly.part_sum,sum_eq_single 1] |
| 108 | · simp |
| 109 | · intro y _ hy; rw [Poly.part_smul] |
| 110 | by_cases h : y=0 |
| 111 | · subst y; simp [R.fire_hot] |
| 112 | rw [Poly.high x hx _ _ (by simp only [Census.fire,card_singleton]; omega)]; ring |
| 113 | haveI : Nonempty V := ⟨i⟩ |
| 114 | simp [Fintype.card_pos] |
| 115 | |
| 116 | lemma first_jet {δ κ : ℝ} (P : Rep G n) (h : P.activities.Valid P.p δ κ) (D : V → Pulse G n) (R : Census V) (i : V) : |
| 117 | jet P R D (R.fire i) = tangent P (D i) := by |
| 118 | funext U |
| 119 | simp only [jet,polar,composeAt,Poly.part_smul, first_mul, Poly.pass_part _ (lambda_quiet _), |
| 120 | first_pass i _ (lambda_quiet _), Poly.part_sum, first_of_prod, quiet_of_prod, Poly.part_plus, |
| 121 | lambda_quiet,lambda_part,Poly.part_send,R.fire_hot,↓reduceIte,zero_add,add_zero] |
| 122 | rw [← real_book _ _ h] |
| 123 | unfold tangent Rep.eval |
| 124 | push_cast; ring |
| 125 | |
| 126 | lemma firstMany {δ κ : ℝ} (P : Rep G n) (h : P.activities.Valid P.p δ κ) (D : Hot R → Pulse G n) (i : V) (U) : |
| 127 | (many P R D U).part (R.fire i) = tangent P (D (Hot.one R i)) U := by |
| 128 | rw [allJets, singleton_shards, Finset.sum_singleton, first_jet _ h] |
| 129 | |
| 130 | lemma floor_part {δ κ : ℝ} (P : Rep G n) (U : Config G n) (h : P.activities.Valid P.p δ κ) |
| 131 | (e : Poly R) (b : Pack n → Poly R) (he : e.part R.quiet=0) (ht : ∀ q, (b q).part R.quiet=0) : |
| 132 | (composeAt P U e b).part R.quiet=(P.eval U:ℂ) := by |
| 133 | unfold composeAt Rep.eval |
| 134 | simp_rw [Poly.part_smul, Poly.quiet_mul, Poly.pass_part _ he, Poly.part_sum, quiet_of_prod, |
| 135 | Poly.part_plus,ht,Poly.part_send, if_true, add_zero, one_mul]; rw [← real_book _ _ h, Complex.ofReal_mul] |
| 136 | end YM.Multi |