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.ROTATIONS.Energy |
| 2 | /-! # Alternation on the same distribution: only using honest integrals -/ |
| 3 | noncomputable section |
| 4 | namespace YM.Outer |
| 5 | open Function Filter Set MeasureTheory Measure Complex Row OS Word |
| 6 | open scoped Topology ContDiff BigOperators ENNReal NNReal |
| 7 | |
| 8 | abbrev Grouping := Axis→Profile |
| 9 | |
| 10 | def Reel (i : Axis) (h : Profile) (p : E4) := (Lap 1 (stamp h) (p i)).re |
| 11 | lemma Reel_real (i : Axis) (h : Profile) (p : E4) (hp : 0≤p i) : ↑(Reel i h p)=Lap 1 (stamp h) (p i) := by |
| 12 | unfold Reel |
| 13 | rcases eq_or_lt_of_le hp with hp|hp |
| 14 | · rw [← hp,zeroLap]; rfl |
| 15 | rw [evenLap h _ hp]; rfl |
| 16 | lemma reel_int {μ : Measure E4} [SigmaFinite μ] {i : Axis} (h : Profile) (he : Runs μ i 1 (stamp h)) : Integrable (Reel i h) μ := |
| 17 | (show Integrable (fun p : E4 => Lap 1 (stamp h) (p i)) μ from Integrable.integral_prod_right he).re |
| 18 | |
| 19 | def crop (Q : Finset Axis) (f : Grouping) (p : E4) := ∏ i ∈ Q,f i (p i) |
| 20 | lemma crop_meas (Q) (f : Grouping) : Measurable (crop Q f) := by unfold crop; fun_prop |
| 21 | lemma crop_nonneg (Q) (f : Grouping) (h : ∀ i∈Q,Plus (f i)) (p) : 0 ≤ crop Q f p := Finset.prod_nonneg fun j hj => h j hj _ |
| 22 | lemma crop_cons (Q) (f i g p) (hi : i∈Q) : crop Q (update f i g) p = g (p i)*crop (Q.erase i) f p := by |
| 23 | unfold crop; rw [← Finset.mul_prod_erase _ _ hi] |
| 24 | rw [update_self]; congr 1; exact Finset.prod_congr rfl fun j hj => by rw [update_of_ne (Finset.mem_erase.mp hj).1] |
| 25 | lemma crop_up (Q f i g) (h : i ∉ Q) : crop Q (update f i g)=crop Q f := funext fun p => |
| 26 | Finset.prod_congr rfl fun j hj => by |
| 27 | change update f i g j (p j) = _ |
| 28 | rw [update_of_ne (show j≠i from fun hp => h (hp ▸ hj))] |
| 29 | lemma crop_int {μ : Measure E4} {g : E4 → ℝ} (hg : Integrable g μ) (Q) (f : Grouping) : |
| 30 | Integrable (fun p => g p * crop Q f p) μ := by |
| 31 | refine hg.mul_bdd (crop_meas Q f).aestronglyMeasurable (c:=∏ i∈Q,SchwartzMap.seminorm ℝ 0 0 (f i)) ?_ |
| 32 | filter_upwards with p |
| 33 | unfold crop; rw [norm_prod]; exact Finset.prod_le_prod (fun i _ => norm_nonneg _) fun i _ => (f i).norm_le_seminorm ℝ _ |
| 34 | lemma crop_read (i : Axis) (f : Grouping) (p : E4) : reading i (fun j => stamp (f j)) p = |
| 35 | ↑(crop (Finset.univ.erase i) f p) := by |
| 36 | classical |
| 37 | -- use products setting time value to 1 |
| 38 | let g := fun j : Axis => stamp (f j) |
| 39 | let x : Axis→ℂ := update (fun j => g j (p j)) i 1 |
| 40 | have he : reading i g p=∏ j,x j := by |
| 41 | rw [Fin.prod_univ_succAbove _ i]; unfold x; rw [update_self,one_mul] |
| 42 | unfold reading tests part |
| 43 | exact Finset.prod_congr rfl fun k _ => by rw [Function.update_of_ne (i.succAbove_ne k)] |
| 44 | rw [he,← Finset.mul_prod_erase _ _ (Finset.mem_univ i), show x i=1 from update_self ..,one_mul] |
| 45 | unfold crop; rw [ofReal_prod]; exact Finset.prod_congr rfl fun j hj => by unfold x; rw [update_of_ne (Finset.mem_erase.mp hj).1]; rfl |
| 46 | |
| 47 | /-- Signed response, arbitrary transverse subset. -/ |
| 48 | def pay (μ : Measure E4) (i : Axis) (Q : Finset Axis) (h : Profile) (f : Grouping) := |
| 49 | ∫ p, Reel i h p * crop (Q.erase i) f p ∂μ |
| 50 | |
| 51 | variable {G : Gauge} {L : Register G} {S : Table L} |
| 52 | |
| 53 | private lemma full (H : S.Hierarchy) (i j : Axis) (V : Chamber S i) (W : Chamber S j) (A : Weight L) (b c : Bool) |
| 54 | (hi : Own A i b) (hj : Own A j c) (hbc : b≠c) |
| 55 | (f : Grouping) (ha : Allows i A A (stamp (f i))) (hb : Allows j A A (stamp (f j))) (hv : Runs (ν V A) i 1 (stamp (f i))) (hw : Runs (ν W A) j 1 (stamp (f j))) : |
| 56 | pay (ν V A) i Finset.univ (f i) f= -pay (ν W A) j Finset.univ (f j) f := by |
| 57 | let g : Panels := fun i => stamp (f i) |
| 58 | have hz (i : Axis) (V : Chamber S i) : (∫ p,answer i 1 g p ∂ν V A)=(pay (ν V A) i Finset.univ (f i) f:ℂ) := by |
| 59 | unfold pay; rw [← integral_complex_ofReal] |
| 60 | refine integral_congr_ae ?_ |
| 61 | filter_upwards [before V A] with p hp |
| 62 | change Lap 1 _ (p i) * _= _ |
| 63 | rw [ofReal_mul, Reel_real _ _ _ hp]; congr 1; exact crop_read .. |
| 64 | have h₁ := (auto_slice V H A hi g ha hv).2.2; have h₂ := (auto_slice W H A hj g hb hw).2.2 |
| 65 | apply ofReal_injective |
| 66 | rw [ofReal_neg] |
| 67 | rw [← hz,← hz] |
| 68 | apply mul_left_cancel₀ toll_nz |
| 69 | rw [← h₁,mul_neg,← h₂] |
| 70 | cases b <;> cases c <;> simp [signValue] at hbc ⊢ |
| 71 | |
| 72 | private def cloud (f : Grouping) (Q : Finset Axis) (n : ℕ) (j : Axis) := |
| 73 | if j ∈ Q then f j else ((n:ℝ)+1) • width (n+1) center |
| 74 | private lemma cloud_at (f : Grouping) (Q n j) (hj : j∉Q) (p : ℝ) : cloud f Q n j p=center (p/((n:ℝ)+1)) := by |
| 75 | unfold cloud; simp only [if_neg hj,_root_.smul_apply,width_at,smul_eq_mul]; field_simp |
| 76 | private lemma unroll (i : Axis) (A : Weight L) (V : Chamber S i) (Q : Finset Axis) (h : Profile) (f : Grouping) |
| 77 | (hv : Runs (ν V A) i 1 (stamp h)) : |
| 78 | Tendsto (fun n => pay (ν V A) i Finset.univ h (cloud f Q n)) atTop (𝓝 (pay (ν V A) i Q h f)) := by |
| 79 | let l j := max (SchwartzMap.seminorm ℝ 0 0 (f j)) (SchwartzMap.seminorm ℝ 0 0 center) |
| 80 | have he j p : ∀ᶠ n : ℕ in atTop, cloud f Q n j p= if j∈Q then f j p else 1 := by |
| 81 | by_cases hk : j∈Q |
| 82 | · exact .of_forall fun n => by simp [cloud,hk] |
| 83 | obtain ⟨N,hN⟩ := exists_nat_gt (|p|) |
| 84 | filter_upwards [eventually_ge_atTop N] with n hn |
| 85 | rw [if_neg hk,cloud_at _ _ _ _ hk]; apply center_plane |
| 86 | have hp : 0<(n:ℝ)+1 := by positivity |
| 87 | rw [abs_div,abs_of_pos hp, div_le_one hp] |
| 88 | have H : (N:ℝ) ≤ n := by exact_mod_cast hn |
| 89 | linarith |
| 90 | let R := Finset.univ.erase i |
| 91 | let C := ∏ i∈R,l i |
| 92 | refine tendsto_integral_filter_of_dominated_convergence (F:=fun n p => Reel i h p * crop R (cloud f Q n) p) |
| 93 | (fun p => ‖Reel i h p‖*C) (Eventually.of_forall fun n => (crop_int (reel_int _ hv) R (cloud f Q n)).1) (Eventually.of_forall fun n => ?_) ((reel_int h hv).norm.mul_const C) ?_ |
| 94 | · filter_upwards with p; rw [norm_mul]; apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) |
| 95 | unfold crop; rw [norm_prod]; unfold C; refine Finset.prod_le_prod (fun i _ => norm_nonneg _) fun j _ => ?_ |
| 96 | by_cases h : j∈Q; · simpa [cloud,h,l] using ((f j).norm_le_seminorm ℝ (p j)).trans (le_max_left (SchwartzMap.seminorm ℝ 0 0 (f j)) (SchwartzMap.seminorm ℝ 0 0 center)) |
| 97 | rw [cloud_at f Q n j h]; exact le_max_of_le_right (center.norm_le_seminorm ..) |
| 98 | filter_upwards with p |
| 99 | refine Tendsto.congr' ?_ tendsto_const_nhds; filter_upwards [eventually_all.mpr fun j => he j (p j)] with n hn |
| 100 | congr 1 |
| 101 | unfold crop; symm |
| 102 | have hh : Q.erase i ⊆ R := Finset.erase_subset_erase _ (Finset.subset_univ _) |
| 103 | apply Eq.trans (Finset.prod_subset hh (fun j hj hp => ?_)).symm |
| 104 | · exact Finset.prod_congr rfl (fun j hj => by rw [hn j,if_pos (Finset.mem_of_mem_erase hj)]) |
| 105 | rw [hn j,if_neg]; exact fun H => hp (Finset.mem_erase.mpr ⟨(Finset.mem_erase.mp hj).1,H⟩) |
| 106 | |
| 107 | lemma opp (H : S.Hierarchy) (i j : Axis) (V : Chamber S i) (W : Chamber S j) (A : Weight L) (b c : Bool) |
| 108 | (hi : Own A i b) (hj : Own A j c) (hbc : b≠c) |
| 109 | (f : Grouping) (Q : Finset Axis) (he : i∈Q) (hk : j∈Q) (ha : Allows i A A (stamp (f i))) (hb : Allows j A A (stamp (f j))) (hv : Runs (ν V A) i 1 (stamp (f i))) (hw : Runs (ν W A) j 1 (stamp (f j))) : |
| 110 | pay (ν V A) i Q (f i) f = -pay (ν W A) j Q (f j) f := by |
| 111 | apply tendsto_nhds_unique (unroll i A V Q (f i) f hv) |
| 112 | refine ((unroll j A W Q (f j) f hw).neg).congr (fun n => ?_) |
| 113 | let g := cloud f Q n |
| 114 | have hz : ∀ i∈Q,g i=f i := by intro i hi; simp [g,cloud,hi] |
| 115 | exact ((hz i he) ▸ ((hz j hk) ▸ full H i j V W A b c hi hj hbc g ((hz i he).symm ▸ ha) ((hz j hk).symm ▸ hb) ((hz i he).symm ▸ hv) ((hz j hk).symm ▸ hw))).symm |
| 116 | |
| 117 | lemma pay_reduce {μ : Measure E4} [SigmaFinite μ] {i : Axis} (f : Grouping) (Q : Finset Axis) (j : Axis) (h g : Profile) |
| 118 | (hv : Runs μ i 1 (stamp h)) (hk : j∈Q) (he : j≠i) : |
| 119 | pay μ i Q h (update f j (f j-g))=pay μ i Q h f-pay μ i Q h (update f j g) := by |
| 120 | have ha := reel_int h hv |
| 121 | unfold pay |
| 122 | rw [← integral_sub (crop_int ha _ _) (crop_int ha _ _)] |
| 123 | congr 1; funext x; rw [crop_cons _ _ _ _ _ (Finset.mem_erase.mpr ⟨he,hk⟩),crop_cons _ _ _ g _ (Finset.mem_erase.mpr ⟨he,hk⟩)] |
| 124 | have hu : crop (Q.erase i) f x = f j (x j)*crop ((Q.erase i).erase j) f x := (by |
| 125 | simpa only [update_eq_self] using crop_cons (Q.erase i) f j (f j) x (Finset.mem_erase.mpr ⟨he,hk⟩)) |
| 126 | simp only [_root_.sub_apply,hu,mul_sub,sub_mul] |
| 127 | lemma pay_self {μ : Measure E4} (i : Axis) (Q : Finset Axis) (f : Grouping) (k h : Profile) : |
| 128 | pay μ i Q k (update f i h)=pay μ i Q k f := by unfold pay; rw [crop_up _ _ _ _ (by simp)] |
| 129 | lemma pay_nonneg {i : Axis} (V : Chamber S i) (A : Weight L) (f : Grouping) (Q : Finset Axis) (h : Profile) |
| 130 | (hp : ∀ p : E4, 0 ≤ p i → 0 ≤ Reel i h p) (ho : ∀ j∈Q.erase i,Plus (f j)) : |
| 131 | 0 ≤ pay (ν V A) i Q h f := |
| 132 | integral_nonneg_of_ae ((before V A).mono fun p hh => mul_nonneg (hp p hh) (crop_nonneg _ _ ho _)) |
| 133 | lemma pay_mono {i : Axis} (V : Chamber S i) (A : Weight L) (f : Grouping) (Q : Finset Axis) (h : Profile) |
| 134 | (hp : ∀ p : E4, 0 ≤ p i → 0 ≤ Reel i h p) (ho : ∀ j∈Q,Plus (f j)) (g k : Profile) |
| 135 | (hv : Runs (ν V A) i 1 (stamp h)) (j : Axis) (hj : j∈Q) (he : j≠i) (hk : ∀ x : ℝ,g x≤k x) : |
| 136 | pay (ν V A) i Q h (update f j g) ≤ pay (ν V A) i Q h (update f j k) := by |
| 137 | have hr : j∈Q.erase i := Finset.mem_erase.mpr ⟨he,hj⟩ |
| 138 | have hu := reel_int h hv |
| 139 | refine integral_mono_ae (crop_int hu _ _) (crop_int hu _ _) ?_ |
| 140 | filter_upwards [before V A] with p hi |
| 141 | simp_rw [crop_cons (Q.erase i) _ j _ p hr] |
| 142 | exact mul_le_mul_of_nonneg_left |
| 143 | (mul_le_mul_of_nonneg_right (hk _) (crop_nonneg _ _ (fun i hi => ho i <| Finset.mem_of_mem_erase (Finset.mem_of_mem_erase hi)) _)) (hp p hi) |
| 144 | |
| 145 | lemma alternate (H : S.Hierarchy) (i j : Axis) (V : Chamber S i) (W : Chamber S j) (A : Weight L) (b c : Bool) |
| 146 | (hi : Own A i b) (hj : Own A j c) (hne : i≠j) (hbc : b≠c) |
| 147 | (Q : Finset Axis) (f : Grouping) (he : i∈Q) (hk : j∈Q) (a d : Profile) |
| 148 | (ha : Allows i A A (stamp (f i-a))) (hb : Allows j A A (stamp (f j-d))) |
| 149 | (hv : Runs (ν V A) i 1 (stamp (f i-a))) (hw : Runs (ν W A) j 1 (stamp (f j-d))) |
| 150 | (hW : ∀ p : E4, 0 ≤ p j → 0 ≤ Reel j (f j-d) p) (hf : ∀ k∈Q,Plus (f k)) : |
| 151 | pay (ν V A) i Q (f i-a) f ≤ pay (ν V A) i Q (f i-a) (update f j d) + pay (ν W A) j Q (f j-d) (update f i a) := by |
| 152 | let g := update (update f i (f i-a)) j (f j-d) |
| 153 | have hQ : g i=f i-a := (update_of_ne hne ..) |>.trans (update_self ..) |
| 154 | have hz : g j=f j-d := update_self .. |
| 155 | have hh := opp H i j V W A b c hi hj hbc g Q he hk (hQ.symm ▸ ha) (hz.symm ▸ hb) (hQ.symm ▸ hv) (hz.symm ▸ hw) |
| 156 | rw [hQ,hz,pay_self (μ:=ν W A) j Q (update f i _),show g = update (update f j (f j-d)) i (f i-a) from |
| 157 | update_comm hne _ _ _,pay_self] at hh |
| 158 | rw [pay_reduce _ _ _ _ _ hv hk hne.symm, pay_reduce _ _ _ _ _ hw he hne] at hh |
| 159 | have hy := pay_nonneg W A f Q (f j-d) hW (fun i h => hf i (Finset.mem_of_mem_erase h)) |
| 160 | linarith |
| 161 | end YM.Outer |