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.WILSON_STARTUP.Channels |
| 2 | |
| 3 | /-! |
| 4 | # Forced packet geometry and genuine energy payoffs |
| 5 | |
| 6 | At the top use flags joined when their full 2B balls overlap, and sum owed |
| 7 | terms within B from a member flag, once, even in channels with reflected base |
| 8 | shifts. Eligibility will test exact flags in the 2B territory, but membership |
| 9 | and pairwise nonoverlap/coverage have to be checked separately. No order on |
| 10 | witness flags in the assignment. For the price bound it even suffices to use |
| 11 | large-chord contributions from one orientation (these touch all its corners). |
| 12 | -/ |
| 13 | noncomputable section |
| 14 | set_option autoImplicit false |
| 15 | namespace YM.WilsonStartup |
| 16 | open Function Filter RG Wilson Lattice Ac |
| 17 | open scoped Topology Matrix.Norms.Frobenius Classical |
| 18 | variable {G : Gauge} {n : Side} (c : Clip) (b : BudgetPoint) |
| 19 | |
| 20 | def pad (x : Site n) : Support n := halo (2*b.B) {x} |
| 21 | def region (D : Support n) := D.biUnion (pad b) |
| 22 | def parts (D : Support n) := Parts (pad b) D |
| 23 | |
| 24 | lemma mem_pad (x y : Site n) : x ∈ pad b y ↔ separation y x ≤ 2*b.B := by simp [pad,halo_spec] |
| 25 | |
| 26 | lemma halo_region (D : Support n) : halo b.B D ⊆ region b D := by |
| 27 | intro z hz; obtain ⟨x,hx,he⟩ := halo_spec.mp hz |
| 28 | exact Finset.mem_biUnion.mpr ⟨x,hx,(mem_pad ..).mpr (by omega)⟩ |
| 29 | |
| 30 | lemma subset_region (D : Support n) : D ⊆ region b D := fun _ hz => halo_region b _ (halo_subset _ _ hz) |
| 31 | |
| 32 | lemma region_test {D : Support n} {x : Site n} (hx : x ∈ halo b.B D) : halo b.B {x} ⊆ region b D := by |
| 33 | intro z hz |
| 34 | obtain ⟨y,hy,h⟩ := halo_spec.mp hx |
| 35 | obtain ⟨q,hq,h'⟩ := halo_spec.mp hz; rw [Finset.mem_singleton] at hq; subst q |
| 36 | refine Finset.mem_biUnion.mpr ⟨y,hy,(mem_pad ..).mpr ?_⟩; have := separation_triangle y x z; omega |
| 37 | |
| 38 | lemma coverage (D : Support n) {q : Support n} (hq : q ∈ parts b D) : region b q ∩ D = q := by |
| 39 | have hQ := Ac.lives (pad b) D hq |
| 40 | ext z; rw [Finset.mem_inter] |
| 41 | refine ⟨?_,fun h => ⟨subset_region b q h,hQ.1 h⟩⟩ |
| 42 | rintro ⟨h,hz⟩ |
| 43 | obtain ⟨y,hy,hY⟩ := Finset.mem_biUnion.mp h |
| 44 | have he := Ac.contains (pad b) hq y hy |
| 45 | have hb : bonds (pad b) D y z := ⟨hQ.1 hy,hz,z,hY,(mem_pad ..).mpr (by simp)⟩ |
| 46 | rw [← he]; exact (bright ..).mpr ⟨hz,.single hb⟩ |
| 47 | |
| 48 | def charge (D : Support n) (U : Config G n) := share * ∑ i : Key n, |
| 49 | if i.native ∈ halo b.B D then Key.owed c b i U else 0 |
| 50 | |
| 51 | theorem charge_sum (h : Decent c b) (U : Config G n) : |
| 52 | ∑ q ∈ parts b (flags b.threshold U),charge c b q U = share * ∑ i : Key n,Key.owed c b i U := by |
| 53 | let D := flags b.threshold U |
| 54 | unfold charge; rw [← Finset.mul_sum,Finset.sum_comm]; congr 1 |
| 55 | refine Finset.sum_congr rfl fun i _ => ?_ |
| 56 | by_cases hx : i.native ∈ halo b.B D |
| 57 | · obtain ⟨x,hx,he⟩ := halo_spec.mp hx |
| 58 | let Y := burst (pad b) D x |
| 59 | have hY : Y ∈ parts b D := Finset.mem_image_of_mem _ hx |
| 60 | have hy : i.native ∈ halo b.B Y := halo_spec.mpr ⟨x,(bright ..).mpr ⟨hx,.refl⟩,he⟩ |
| 61 | change (∑ q∈parts b D, _) = _ |
| 62 | rw [Finset.sum_eq_single_of_mem Y hY _ , if_pos hy] |
| 63 | intro z hz hn; rw [if_neg] |
| 64 | exact fun h => Finset.disjoint_left.mp (separate (pad b) D hz hY hn) (halo_region b z h) (halo_region b Y hy) |
| 65 | have ht (Y : Support n) (hY : Y ∈ parts b D) : i.native ∉ halo b.B Y := by |
| 66 | intro h; obtain ⟨y,hy,hz⟩ := halo_spec.mp h |
| 67 | exact hx (halo_spec.mpr ⟨y,(lives (pad b) D hY).1 hy,hz⟩) |
| 68 | rw [Key.owed_zero c b i h hx]; exact Finset.sum_eq_zero (fun Y hY => if_neg (ht Y hY)) |
| 69 | |
| 70 | theorem charge_range (h : c.direct ≤ 1) (U : Config G n) (D : Support n) : |
| 71 | charge c b D U ∈ Set.Icc 0 (share * ((Fintype.card (Key n) : ℝ)*2)) := by |
| 72 | unfold charge |
| 73 | have he := fun i : Key n => due_range c b h (i.frame U) i.root |
| 74 | refine ⟨mul_nonneg share_pos.le (Finset.sum_nonneg fun i _ => by split <;> first | exact (he i).1 | exact le_rfl),?_⟩ |
| 75 | refine mul_le_mul_of_nonneg_left ?_ share_pos.le |
| 76 | rw [show (Fintype.card (Key n) : ℝ)*2 = ∑ _i : Key n,(2:ℝ) by simp] |
| 77 | exact Finset.sum_le_sum fun i _ => by split <;> first | exact (he i).2 | norm_num |
| 78 | |
| 79 | def gain := share * (b.threshold^2/16) |
| 80 | lemma gain_pos : 0 < gain b := mul_pos share_pos (by have := b.threshold_pos; positivity) |
| 81 | |
| 82 | theorem charge_price (h : Decent c b) (U : Config G n) (D : Support n) (hd : D ⊆ flags b.threshold U) : |
| 83 | (D.card:ℝ)*gain b ≤ charge c b D U := by |
| 84 | let A := Finset.univ.filter (fun i : Cell n => i.1 ∈ halo b.B D ∧ b.threshold < G.chord (faceValue U i)) |
| 85 | have hx : D ⊆ A.biUnion touched := by |
| 86 | intro z hz |
| 87 | obtain ⟨p,hp,he⟩ := (flags_spec ..).mp (hd hz) |
| 88 | exact Finset.mem_biUnion.mpr ⟨p,Finset.mem_filter.mpr ⟨Finset.mem_univ _, |
| 89 | halo_spec.mpr ⟨z,hz,(visit_near p hp).trans h.radius⟩, he⟩, hp⟩ |
| 90 | have hb : D.card ≤ A.card*4 := (Finset.card_le_card hx).trans (Finset.card_biUnion_le.trans ((Finset.sum_le_sum |
| 91 | (fun i _ => touched_card i)).trans (by simp))) |
| 92 | let f := fun i : Key n => if i.native ∈ halo b.B D then Key.owed c b i U else 0 |
| 93 | have hf (i) : 0 ≤ f i := by unfold f; split; exact (due_range c b h.direct _ _).1; exact le_rfl |
| 94 | have he (p) (hp : p ∈ A) : b.threshold^2/4 ≤ f (1,p) := by |
| 95 | obtain ⟨hr,ht⟩ := (Finset.mem_filter.mp hp).2 |
| 96 | have hq := due_large c b h.direct U p ht |
| 97 | change _ ≤ if p.1 ∈ _ then _ else _ |
| 98 | rw [if_pos hr, show (1,p) = Key.shifted 1 p from ?_,Key.shift_due,pull_id] |
| 99 | · exact hq |
| 100 | change _ = (_,affine _ _ _,p.2) |
| 101 | simp [affine] |
| 102 | calc |
| 103 | _ ≤ share * (A.card*(b.threshold^2/4)) := by |
| 104 | have hp : (D.card:ℝ) ≤ A.card*4 := by exact_mod_cast hb |
| 105 | unfold gain; rw [mul_left_comm]; exact mul_le_mul_of_nonneg_left (by nlinarith) share_pos.le |
| 106 | _ ≤ share * ∑ i ∈ A, f (1,i) := mul_le_mul_of_nonneg_left |
| 107 | (le_trans (by simp) (Finset.sum_le_sum he)) share_pos.le |
| 108 | _ ≤ share * ∑ i : Cell n,f (1,i) := mul_le_mul_of_nonneg_left |
| 109 | (Finset.sum_le_sum_of_subset_of_nonneg (Finset.subset_univ _) (fun _ _ _ => hf _)) share_pos.le |
| 110 | _ ≤ _ := by |
| 111 | unfold charge; rw [Fintype.sum_prod_type (fun i : Key n => _)] |
| 112 | exact mul_le_mul_of_nonneg_left (Finset.single_le_sum (f:=fun x : Signed => ∑ i : Cell n,f (x,i)) |
| 113 | (fun _ _ => Finset.sum_nonneg fun i _ => hf _) (Finset.mem_univ _)) share_pos.le |
| 114 | |
| 115 | theorem charge_final (h : Decent c b) (D : Support n) : UsesFinal b.threshold (region b D) (charge c b D (G:=G)) := by |
| 116 | intro U V he hf |
| 117 | unfold charge |
| 118 | refine congr_arg (share*·) (Finset.sum_congr rfl (fun i _ => ?_)) |
| 119 | by_cases hi : i.native ∈ halo b.B D |
| 120 | · rw [if_pos hi,if_pos hi] |
| 121 | have hv := Work.H03.reads_larger (region_test b (D:=D) (x:=i.native) hi) (Key.owed_reads (G:=G) c b i h) |
| 122 | exact hv U V he hf |
| 123 | · exact (if_neg hi).trans (if_neg hi).symm |
| 124 | |
| 125 | theorem charge_gauge (D : Support n) (U : Config G n) (k : Site n → G.El) : charge c b D (gauge k U) = charge c b D U := by |
| 126 | simp only [charge, Key.owed_gauge] |
| 127 | |
| 128 | theorem charge_measurable (D : Support n) : Measurable (charge c b D (G:=G)) := by |
| 129 | unfold charge; refine Measurable.mul measurable_const (Finset.measurable_fun_sum _ fun i _ => ?_) |
| 130 | split <;> first | exact (due_measurable ..).comp (continuous_pull .. |>.measurable) | exact measurable_const |
| 131 | |
| 132 | theorem halo_image_mem (k : ℕ) (D : Support n) (s : Signed) (x y : Site n) : |
| 133 | affine s x y ∈ halo k (D.image (affine s x)) ↔ y ∈ halo k D := by |
| 134 | simp only [halo_spec, Finset.mem_image] |
| 135 | constructor |
| 136 | · rintro ⟨_,⟨q,hq,rfl⟩,he⟩; exact ⟨q,hq,by simpa [affine] using he⟩ |
| 137 | rintro ⟨q,hq,he⟩; exact ⟨_,⟨q,hq,rfl⟩,by simpa [affine] using he⟩ |
| 138 | |
| 139 | lemma pad_image (y : Site n) (s : Signed) (x : Site n) : pad b (affine s x y) = (pad b y).image (affine s x) := by |
| 140 | ext z; obtain ⟨v,rfl⟩ := (frameSites s x).surjective z |
| 141 | change affine s x v ∈ pad b _ ↔ _ |
| 142 | rw [pad,← Finset.image_singleton,halo_image_mem]; simp [frameSites,Equiv.ofBijective, aff_inj .. |>.eq_iff, pad] |
| 143 | |
| 144 | theorem region_image (D : Support n) (s : Signed) (x : Site n) : |
| 145 | region b (D.image (affine s x)) = (region b D).image (affine s x) := by |
| 146 | simp only [region,Finset.image_biUnion,Finset.biUnion_image,pad_image] |
| 147 | |
| 148 | lemma spark_image (D : Support n) (s : Signed) (x : Site n) (h : Spark (pad b) D) : Spark (pad b) (D.image (affine s x)) := by |
| 149 | refine ⟨h.1.image _,fun i hi j hj => ?_⟩ |
| 150 | obtain ⟨u,hu,rfl⟩ := Finset.mem_image.mp hi |
| 151 | obtain ⟨v,hv,rfl⟩ := Finset.mem_image.mp hj |
| 152 | apply Relation.ReflTransGen.lift (r:=bonds (pad b) D) (p:=bonds (pad b) (D.image (affine s x))) (affine s x) _ u v (h.2 _ hu _ hv) |
| 153 | rintro i j ⟨h₁,h₂,q,hi,hj⟩; exact ⟨Finset.mem_image_of_mem _ h₁, Finset.mem_image_of_mem _ h₂, affine s x q, |
| 154 | by rw [pad_image]; exact Finset.mem_image_of_mem _ hi, by rw [pad_image]; exact Finset.mem_image_of_mem _ hj⟩ |
| 155 | |
| 156 | lemma aff_undo (s : Signed) (x y : Site n) : affine s⁻¹ (-(s⁻¹.act x)) (affine s x y) = y := by simp [affine] |
| 157 | |
| 158 | theorem spark_transport (D : Support n) (s : Signed) (x : Site n) : Spark (pad b) (D.image (affine s x)) ↔ Spark (pad b) D := by |
| 159 | refine ⟨fun h => ?_, spark_image b D s x⟩ |
| 160 | simpa only [Finset.image_image,Function.comp_def,aff_undo,Finset.image_id'] using |
| 161 | spark_image b _ s⁻¹ (-(s⁻¹.act x)) h |
| 162 | |
| 163 | theorem charge_oriented (D : Support n) (s : Signed) (x : Site n) (U : Config G n) : |
| 164 | charge c b (D.image (affine s x)) U = charge c b D (pull s x U) := by |
| 165 | unfold charge; rw [← Equiv.sum_comp (Key.perm s x)]; congr 1 |
| 166 | apply Finset.sum_congr rfl |
| 167 | intro i _ |
| 168 | simp only [show (Key.perm s x i).native = affine s x i.native from rfl,halo_image_mem] |
| 169 | rw [Key.owed, Key.oriented]; rfl |
| 170 | end YM.WilsonStartup |