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.EXTRACTION.Tails |
| 2 | import YM.Next.FOUNDATIONS.Regular |
| 3 | import YM.Work.B04 |
| 4 | |
| 5 | /-! |
| 6 | # Exact signed subtraction at Jma representations |
| 7 | |
| 8 | Pre-mask regular payload subtraction only *when support labels agree* (at |
| 9 | the corresponding regular address). Otherwise retain both supports and |
| 10 | use both masks. Mark coefficients use the unmodified vacuum label index |
| 11 | (common H, including inventory/coverage, scalar and likelihood conventions). |
| 12 | Don't try to describe discrepancy size by adding the two separate budget |
| 13 | propagations past birth. A triangle bound here is for initial/absolute |
| 14 | budgets and identities of sums, NOT a discrepancy propagation estimate. |
| 15 | -/ |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | namespace YM.Push.RelayDifference |
| 19 | open Function Set Filter MeasureTheory Extraction Wilson RG Labels Lattice Cells Source |
| 20 | Next.Foundations |
| 21 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators |
| 22 | variable {n : Side} {G : Gauge} {e : ℕ} {F : Labels.Frame G e} |
| 23 | |
| 24 | /-! ### Address surgery needed by exact subtraction -/ |
| 25 | |
| 26 | def splitCode {X : Type*} (a b : ℕ → X) (i : ℕ) : X := Sum.elim a b (Equiv.natSumNatEquivNat.symm i) |
| 27 | def primaryCode (i : ℕ) := Equiv.natSumNatEquivNat (Sum.inl i) |
| 28 | def extraCode (i : ℕ) := Equiv.natSumNatEquivNat (Sum.inr i) |
| 29 | @[simp] lemma split_primary {X : Type*} (a b : ℕ → X) (i : ℕ) : splitCode a b (primaryCode i)=a i := by simp [splitCode,primaryCode] |
| 30 | @[simp] lemma split_extra {X : Type*} (a b : ℕ → X) (i : ℕ) : splitCode a b (extraCode i)=b i := by simp [splitCode,extraCode] |
| 31 | lemma both_codes {s : ℕ → Prop} (h : ∀ i, s (primaryCode i)) (H : ∀ i, s (extraCode i)) : ∀ i, s i := by |
| 32 | intro i; obtain ⟨j,rfl⟩ := Equiv.natSumNatEquivNat.surjective i |
| 33 | cases j; exacts [h _,H _] |
| 34 | |
| 35 | private lemma paired_sum {X : Type*} [NormedAddCommGroup X] (f : ℕ → X) |
| 36 | (hp : Summable (fun i => f (primaryCode i))) (hq : Summable (fun i => f (extraCode i))) : |
| 37 | Summable f ∧ (∑' i,f i) = ∑' i,(f (primaryCode i)+f (extraCode i)) := by |
| 38 | let e := Equiv.natSumNatEquivNat |
| 39 | refine ⟨e.summable_iff.mp (Summable.sum _ hp hq),?_⟩ |
| 40 | rw [←e.tsum_eq,Summable.tsum_add hp hq] |
| 41 | exact @Summable.tsum_sum ℕ ℕ _ _ _ _ _ (fun i => f (e i)) hp hq |
| 42 | |
| 43 | private lemma paired_budget {a b f : ℕ → ℝ} {c : ℝ} (h : SumBudget (fun i => a i+b i) c) |
| 44 | (hg : ∀ i,0≤f i) (he : ∀ i,f (primaryCode i)+f (extraCode i)=a i+b i) : SumBudget f c := by |
| 45 | have hp : Summable (fun i => f (primaryCode i)) := h.2.1.of_nonneg_of_le (fun i => hg _) fun i => by |
| 46 | rw [←he]; exact le_add_of_nonneg_right (hg _) |
| 47 | have hq : Summable (fun i => f (extraCode i)) := h.2.1.of_nonneg_of_le (fun i => hg _) fun i => by |
| 48 | rw [←he]; exact le_add_of_nonneg_left (hg _) |
| 49 | obtain ⟨ha,hb⟩ := paired_sum f hp hq |
| 50 | refine ⟨hg,ha,?_⟩; rw [hb]; simp_rw [he]; exact h.2.2 |
| 51 | |
| 52 | lemma add_budget {ι : Type*} {a b : ι → ℝ} {u v : ℝ} (h : SumBudget a u) (H : SumBudget b v) : |
| 53 | SumBudget (fun i => a i+b i) (u+v) := |
| 54 | ⟨fun i => add_nonneg (h.1 i) (H.1 i),h.2.1.add H.2.1,(h.2.1.tsum_add H.2.1).le.trans (add_le_add h.2.2 H.2.2)⟩ |
| 55 | |
| 56 | def combine (P Q : Coefficient F n) : Coefficient F n := |
| 57 | { x := P.x-Q.x |
| 58 | support := splitCode P.support Q.support |
| 59 | regular := splitCode |
| 60 | (fun i => if P.support i = Q.support i then P.regular i - Q.regular i else P.regular i) |
| 61 | (fun i => if P.support i = Q.support i then 0 else -Q.regular i) |
| 62 | forced := P.forced-Q.forced } |
| 63 | |
| 64 | variable {P Q : Coefficient F n} {o : Site n} {H : Hol G} {R : Rep G n} |
| 65 | |
| 66 | private lemma pi_sub {f g : Config G n → ℂ} (h : H.PiVanish e o f) (hp : H.PiVanish e o g) : H.PiVanish e o (f-g) := by |
| 67 | intro J |
| 68 | obtain ⟨ha,hb⟩ := h J |
| 69 | obtain ⟨ht,hv⟩ := hp J |
| 70 | refine ⟨ha.sub ht,fun k hk => ?_⟩ |
| 71 | have hl : (k : WithTop ℕ∞) ≤ (e : WithTop ℕ∞) := Nat.cast_le.mpr hk |
| 72 | simp only [Pi.sub_apply] |
| 73 | rw [iteratedDeriv_fun_sub (ha.of_le hl) (ht.of_le hl), hb k hk,hv k hk, sub_self] |
| 74 | |
| 75 | private lemma pi_zero : H.PiVanish e o (0 : Config G n → ℂ) := by |
| 76 | intro J; exact ⟨contDiffAt_const,fun k hk => by |
| 77 | change iteratedDeriv k (0:ℝ→ℂ) 0 = 0; simp⟩ |
| 78 | |
| 79 | lemma combo_format (hP : P.Format o H R) (hQ : Q.Format o H R) : (combine P Q).Format o H R := by |
| 80 | let D := combine P Q |
| 81 | have hs : ∀ i, R.p.Regular (D.support i) (D.regular i) ∧ o∈D.support i ∧ D.regular i 1=0 ∧ |
| 82 | (Nonwrapping (D.support i) o → H.PiVanish e o (D.regular i)) := by |
| 83 | refine both_codes (fun i => ?_) (fun i => ?_) |
| 84 | · simp only [D, combine, split_primary] |
| 85 | split_ifs with he |
| 86 | · have he' := hP.smooth i |
| 87 | rw [he] at he' ⊢ |
| 88 | exact ⟨regular_sub he' (hQ.smooth i),hQ.origin i,by simp [hP.identity_null i,hQ.identity_null i],fun hb => |
| 89 | pi_sub (hP.projects i (he ▸ hb)) (hQ.projects i hb)⟩ |
| 90 | exact ⟨hP.smooth i,hP.origin i,hP.identity_null i,hP.projects i⟩ |
| 91 | simp only [D, combine, split_extra] |
| 92 | split_ifs with he |
| 93 | · exact ⟨by simpa using regular_smul 0 (hQ.smooth i),hQ.origin i,rfl, fun _ => pi_zero⟩ |
| 94 | refine ⟨by simpa using regular_smul (-1) (hQ.smooth i),hQ.origin i,?_,?_⟩ |
| 95 | · simp only [Pi.neg_apply,hQ.identity_null,neg_zero] |
| 96 | intro ha |
| 97 | simpa only [zero_sub] using (pi_sub pi_zero (hQ.projects i ha)) |
| 98 | refine ⟨fun i => (hs i).1,fun i => (hs i).2.1,fun i => (hs i).2.2.1,fun i => (hs i).2.2.2,?_,?_,?_,?_,?_⟩ |
| 99 | · intro i U hi |
| 100 | by_cases h:P.forced i U≠0 |
| 101 | · exact hP.forcing _ _ h |
| 102 | exact hQ.forcing _ _ fun he => hi (by simp [combine,not_not.mp h,he]) |
| 103 | · intro i hi; by_cases h:P.forced i≠0 |
| 104 | · exact hP.carried _ h |
| 105 | exact hQ.carried _ fun he => hi (by simp [combine,not_not.mp h,he]) |
| 106 | · exact fun i k U => congr_arg₂ (· - ·) (hP.invariant i k U) (hQ.invariant i k U) |
| 107 | · exact fun i U V h t => congr_arg₂ (· - ·) (hP.supported i U V h t) (hQ.supported i U V h t) |
| 108 | intro i; exact (hP.borel i).sub (hQ.borel i) |
| 109 | |
| 110 | lemma combo_cap (hP : P.Format o H R) (hQ : Q.Format o H R) {κ p q : ℝ} |
| 111 | (h : P.remBound o R κ p) (hp : Q.remBound o R κ q) : (combine P Q).remBound o R κ (p+q) := by |
| 112 | obtain ⟨a,b,ha,hb,hW,hκ,E,F⟩ := h |
| 113 | obtain ⟨a',b',ha',hb',hW',-,E',F'⟩ := hp |
| 114 | refine ⟨a+a',b+b',add_nonneg ha ha',add_nonneg hb hb',by linarith, hκ,?_,?_⟩ |
| 115 | · obtain ⟨A,hA,hS⟩ := E |
| 116 | obtain ⟨B,hB,hU⟩ := E' |
| 117 | let X := splitCode |
| 118 | (fun i => if P.support i = Q.support i then A i+B i else A i) |
| 119 | (fun i => if P.support i = Q.support i then 0 else B i) |
| 120 | let D := combine P Q |
| 121 | have hx : ∀ i, R.p.supBounds o (D.support i) (D.regular i) (X i) := by |
| 122 | refine both_codes (fun i => ?_) (fun i => ?_) |
| 123 | · simp only [D,X,combine,split_primary] |
| 124 | split_ifs with he |
| 125 | · exact bound_sub (hP.smooth i) (he ▸ hQ.smooth i) (hS i) (he ▸ hU i) |
| 126 | exact hS _ |
| 127 | simp only [D,X,combine,split_extra] |
| 128 | split_ifs with he |
| 129 | · simpa using bound_smul 0 (hU i) |
| 130 | simpa using bound_smul (-1) (hU i) |
| 131 | refine ⟨X,paired_budget (add_budget hA hB) (fun i => mul_nonneg (Real.exp_pos _).le (hx i).1) ?_,hx⟩ |
| 132 | intro i |
| 133 | simp only [X,combine,split_primary,split_extra] |
| 134 | split_ifs with he |
| 135 | · rw [he]; unfold BudgetPoint.mass; ring |
| 136 | rfl |
| 137 | obtain ⟨A,hA,hS⟩ := F |
| 138 | obtain ⟨B,hB,hU⟩ := F' |
| 139 | refine ⟨fun i => A i+B i,?_,fun i => ⟨add_nonneg (hS i).1 (hU i).1,fun U => (norm_sub_le ..).trans |
| 140 | (add_le_add ((hS i).2 U) ((hU i).2 U))⟩⟩ |
| 141 | simpa only [BudgetPoint.mass,mul_add] using add_budget hA hB |
| 142 | |
| 143 | private lemma mask_sub (t : ℝ) (X : Support n) (f g : Config G n → ℂ) (U : Config G n) : |
| 144 | masked t X (f-g) U=masked t X f U-masked t X g U := by |
| 145 | by_cases h:Healthy t X U <;> simp [h] |
| 146 | |
| 147 | private lemma ray_line (P Q : Coefficient F n) (R : Rep G n) (i : ℕ) (U : Config G n) : |
| 148 | (combine P Q).maskedTerm R (primaryCode i) U + (combine P Q).maskedTerm R (extraCode i) U = |
| 149 | P.maskedTerm R i U-Q.maskedTerm R i U := by |
| 150 | simp only [combine,Coefficient.maskedTerm,split_primary,split_extra] |
| 151 | by_cases hw : Healthy R.p.threshold (Q.support i) U <;> split_ifs with he <;> |
| 152 | simp [he,hw,sub_eq_add_neg] |
| 153 | |
| 154 | private lemma exponential_sub (hP : P.Format o H R) (hQ : Q.Format o H R) {κ p q : ℝ} |
| 155 | (ha : P.remBound o R κ p) (hb : Q.remBound o R κ q) (S : SectionData F) (U : Config G n) : |
| 156 | (combine P Q).exponentialEntry o S R U=P.exponentialEntry o S R U-Q.exponentialEntry o S R U := by |
| 157 | let D := combine P Q |
| 158 | have hc := ((Coefficient.regular_series (combo_cap hP hQ ha hb)).summable U) |
| 159 | let f : ℕ → ℂ := fun i => D.maskedTerm R i U |
| 160 | change Summable f at hc |
| 161 | have ht : Injective primaryCode := Equiv.natSumNatEquivNat.injective.comp Sum.inl_injective |
| 162 | have hh : Injective extraCode := Equiv.natSumNatEquivNat.injective.comp Sum.inr_injective |
| 163 | have he : (∑' i, D.maskedTerm R i U)= (∑' i,P.maskedTerm R i U)-(∑' i,Q.maskedTerm R i U) := calc |
| 164 | _ = ∑' i,(D.maskedTerm R (primaryCode i) U + D.maskedTerm R (extraCode i) U) := |
| 165 | (paired_sum f (hc.comp_injective ht) (hc.comp_injective hh)).2 |
| 166 | _ = ∑' i,(P.maskedTerm R i U-Q.maskedTerm R i U) := tsum_congr fun i => ray_line P Q R i U |
| 167 | _ = _ := Summable.tsum_sub ((Coefficient.regular_series ha).summable U) ((Coefficient.regular_series hb).summable U) |
| 168 | have hg (v w : F.Coeff) : S.places (v-w) o = S.places v o-S.places w o := by |
| 169 | funext z; change S.evaluate _ _= _ |
| 170 | exact congr_fun (map_sub (S.eval_linear.mk' _) v w) _ |
| 171 | unfold Coefficient.exponentialEntry |
| 172 | rw [show _ = _ from he,combine,map_sub, map_sub,hg, mask_sub]; simp only [Pi.sub_apply]; abel |
| 173 | |
| 174 | private lemma mark_sub (P Q : Coefficient F n) (R : Rep G n) (i : Finset ℕ) (U : Config G n) : |
| 175 | (combine P Q).marked R i U=P.marked R i U-Q.marked R i U := by |
| 176 | unfold Coefficient.marked |
| 177 | split_ifs <;> simp only [combine,Pi.sub_apply,sub_mul,Finset.sum_sub_distrib,sub_self] |
| 178 | |
| 179 | /-- Same vocabulary and same representation parameters. Summable on full |
| 180 | configuration space. Not a conditional-expectation subtraction of normalized |
| 181 | fields at different cutoffs! -/ |
| 182 | theorem combo_density (hP : P.Format o H R) (hQ : Q.Format o H R) {κ p q σ c Λ δ w : ℝ} |
| 183 | (h : P.remBound o R κ p) (hp : Q.remBound o R κ q) (hR : R.Lawful σ c Λ δ w) (S : SectionData F) : |
| 184 | (combine P Q).density o S R = P.density o S R - Q.density o S R := by |
| 185 | funext U |
| 186 | simp only [Coefficient.density, exponential_sub hP hQ h hp,mark_sub,Pi.sub_apply] |
| 187 | rw [Summable.tsum_sub ((Coefficient.marked_series hR h).summable U) ((Coefficient.marked_series hR hp).summable U)] |
| 188 | ring |
| 189 | end YM.Push.RelayDifference |