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.AnalyticNext.QUARTIC_MATCH.Cells.Long |
| 2 | |
| 3 | /-! |
| 4 | # Costed primitive with OTHER slots present |
| 5 | |
| 6 | Use any other slot as anchor; this costs only width here. Preserve closures even |
| 7 | in translation-tensor identities except possibly at that particular anchor. True |
| 8 | Laurent/cover costs. Obstruction for a degree-zero preimage uses the augmentation. |
| 9 | -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.AnalyticNext.QuarticMatch.BoxChain |
| 13 | open Lattice Exterior Function Filter Topology Laurent |
| 14 | open scoped Topology BigOperators |
| 15 | |
| 16 | variable {V I : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] [DecidableEq I] |
| 17 | {A D : ArrayC I ℤ V} {σ C : ℝ} {l r j : I} |
| 18 | |
| 19 | def ClosedSlot (F : ArrayC I ℤ V) (l : I) := lower l F=0 |
| 20 | lemma ClosedSlot.add (h : ClosedSlot A l) (hd : ClosedSlot D l) : ClosedSlot (A+D) l := by |
| 21 | rw [ClosedSlot,map_add,h,hd,add_zero] |
| 22 | lemma ClosedSlot.sub (h : ClosedSlot A l) (hd : ClosedSlot D l) : ClosedSlot (A-D) l := by |
| 23 | rw [ClosedSlot,map_sub,h,hd,sub_self] |
| 24 | |
| 25 | omit [NormedAddCommGroup V] [NormedSpace ℝ V] in |
| 26 | lemma peek_rec (X : I → Cell ℤ) (B : ArrayC I ℤ V) : peek l X B (X l)=B X := by simp [peek] |
| 27 | lemma ClosedSlot.peek (h : ClosedSlot A l) (X : I → Cell ℤ) : rim (peek l X A)=0 := by |
| 28 | rw [← peek_lower,h]; rfl |
| 29 | lemma ClosedSlot.transverse (h : ClosedSlot A l) (i : I) : ClosedSlot (lower i A) l := by rw [ClosedSlot,lower_switch i l,h,map_zero] |
| 30 | lemma atOperate (h : j≠l) (a : Axis) (X : I → Cell ℤ) (F : ArrayC I ℤ V) : peek l X (operate j l a F) = |
| 31 | fillRay (X j).1 a (peek l X F) := by |
| 32 | funext y |
| 33 | change fillRay _ _ (peek l (update X l y) F) _ = _ |
| 34 | rw [show peek l (update X l y) F = peek l X F by funext z; simp [peek], update_self, update_of_ne h] |
| 35 | |
| 36 | omit [DecidableEq I] [NormedSpace ℝ V] in |
| 37 | lemma Rank.zero (l : I) (k : ℕ) : Rank (0 : ArrayC I ℤ V) l k := fun _ _ => rfl |
| 38 | |
| 39 | lemma Rank.higher {k : ℕ} (h : Rank A l k) (j : I) (i : Axis) : Rank (operate j l i A) l (k+1) := by |
| 40 | intro X hA; unfold operate fillRay; split |
| 41 | · rename_i hi |
| 42 | have hh : along i (X l).1 ((X l).2.erase i) (peek l X A)=0 := by |
| 43 | funext n; refine h _ ?_; rw [update_self]; have hv := Finset.card_erase_add_one hi; change ((X l).2.erase i).card ≠ k; omega |
| 44 | rw [hh,Ray.solution_zero,smul_zero] |
| 45 | rfl |
| 46 | lemma Rank.passive {k : ℕ} (h : Rank A r k) (he : r≠l) (j : I) (i : Axis) : Rank (operate j l i A) r k := by |
| 47 | intro X hX |
| 48 | have hh : peek l X A=0 := funext fun y => h (update X l y) (by rwa [update_of_ne he]) |
| 49 | rw [operate,hh,fillRay_zero]; rfl |
| 50 | |
| 51 | variable [CompleteSpace V] |
| 52 | |
| 53 | -- slot commutation with any unrelated axis. Needs actual summability. |
| 54 | lemma fillRay_sub (b : Cover) (i : Axis) {F G : Cell ℤ→V} (h : sums F) (g : sums G) : |
| 55 | fillRay b i (F-G)=fillRay b i F-fillRay b i G := by |
| 56 | rw [sub_eq_add_neg,← neg_one_smul ℝ G, fillRay_add b i h ?_,fillRay_scale,neg_one_smul,sub_eq_add_neg] |
| 57 | exact fun x => (g x).const_smul (-1:ℝ) |
| 58 | |
| 59 | private lemma fill_comm (b x : Cell ℤ) (o : Cover) (a : Axis) (f : Cell ℤ → Cell ℤ → V) (h : ∀ i, sums (f i)) : |
| 60 | rim (fun i => fillRay o a (f i) x) b=fillRay o a (rim f b) x := by |
| 61 | have hv (p : Cell ℤ) (s : Axis) : sums (sect s f p) := by |
| 62 | rw [sect_at]; split |
| 63 | · simp [sums] |
| 64 | rename_i hs |
| 65 | intro S |
| 66 | exact (((h (p.1-step s,insert s p.2) S).sub (h (p.1,insert s p.2) S))).const_smul (sign p.2 s) |
| 67 | have hh (s : Finset Axis) : fillRay o a (∑ j∈s,sect j f b) = ∑ j∈s, fillRay o a (sect j f b) := by |
| 68 | induction s using Finset.induction_on with |
| 69 | | empty => simp |
| 70 | | @insert j s hd ih => |
| 71 | rw [Finset.sum_insert hd,Finset.sum_insert hd, fillRay_add o a (hv b j) ?_, ih] |
| 72 | intro x; simp_rw [Finset.sum_apply]; exact summable_sum fun j _ => hv b j x |
| 73 | rw [rim_at, rim_at, hh, Finset.sum_apply] |
| 74 | refine Finset.sum_congr rfl fun j _ => ?_ |
| 75 | rw [sect_at,sect_at]; split |
| 76 | · rw [fillRay_zero]; rfl |
| 77 | rw [fillRay_scale,fillRay_sub o a (h _) (h _)]; rfl |
| 78 | |
| 79 | lemma other_fill (hp : Pricing A σ C) (hj : j≠l) (hi : r≠j) (he : r≠l) (a : Axis) : |
| 80 | operate j l a (lower r A)=lower r (operate j l a A) := by |
| 81 | funext X |
| 82 | rw [operate, peek_else r l he,← fill_comm] |
| 83 | · change rim _ _ = rim _ (X r); apply congr_arg (fun F : Cell ℤ→V => rim F (X r)); funext y |
| 84 | unfold operate peek; simp only [update_of_ne (Ne.symm hi),update_of_ne (Ne.symm he)] |
| 85 | exact fun y S => (hp.sum_leg hj _ S).of_norm |
| 86 | |
| 87 | lemma ClosedSlot.bill (h : ClosedSlot A r) (hp : Pricing A σ C) (hj : j≠l) (hi : r≠j) (he : r≠l) (a : Axis) : |
| 88 | ClosedSlot (operate j l a A) r := by |
| 89 | rw [ClosedSlot,← other_fill hp hj hi he,h] |
| 90 | funext X; rw [operate,show BoxChain.peek l X 0= (0 : Cell ℤ → V) from rfl,fillRay_zero]; rfl |
| 91 | |
| 92 | /-- Vanish also on pivotal zero-slot augmentation when rank zero. -/ |
| 93 | def EmptySum (A : ArrayC I ℤ V) (l : I) := ∀ X, (∑' x : Cover, peek l X A (x,∅))=0 |
| 94 | |
| 95 | def Shut (l j : I) (i : Axis) (F : ArrayC I ℤ V) := ∀ X, (X l).1 i≠(X j).1 i ∨ i∈(X l).2 → F X=0 |
| 96 | |
| 97 | lemma closed_squeeze (h : ClosedSlot A l) (hp : Pricing A σ C) (hj : j≠l) (a : Axis) (X : I → Cell ℤ) : |
| 98 | (A-lower l (operate j l a A)) X = squeezed (X j).1 a (peek l X A) (X l) := by |
| 99 | have hs : sums (peek l X A) := fun S => (hp.sum_leg hj X S).of_norm |
| 100 | have hm := slides (X j).1 a hs |
| 101 | rw [h.peek,fillRay_zero,add_zero,← atOperate hj a X A] at hm |
| 102 | change A X - rim (BoxChain.peek l X (operate j l a A)) (X l) = _ |
| 103 | rw [hm, Pi.sub_apply, peek_rec]; abel |
| 104 | lemma Shut.here (h : ClosedSlot A l) (hp : Pricing A σ C) (hj : j≠l) (a : Axis) : |
| 105 | Shut l j a (A-lower l (operate j l a A)) := by |
| 106 | intro X hx; rw [closed_squeeze h hp hj]; unfold squeezed; split_ifs <;> grind |
| 107 | lemma Shut.remains {i : Axis} (z : Shut l j i A) (h : ClosedSlot A l) (hp : Pricing A σ C) |
| 108 | (hj : j≠l) (a : Axis) : Shut l j i (A-lower l (operate j l a A)) := by |
| 109 | by_cases w : i=a |
| 110 | · subst i; exact Shut.here h hp hj a |
| 111 | intro X hx; rw [closed_squeeze h hp hj]; unfold squeezed; split_ifs |
| 112 | · rfl |
| 113 | · have hv : along a (X l).1 (X l).2 (peek l X A)=0 := by |
| 114 | funext k; refine z _ ?_; simpa [hj,w] |
| 115 | rw [hv]; simp |
| 116 | all_goals rfl |
| 117 | |
| 118 | abbrev residueRay (j l : I) (i : Axis) (A : ArrayC I ℤ V) := A-lower l (operate j l i A) |
| 119 | |
| 120 | omit [CompleteSpace V] in |
| 121 | lemma Pricing.erase (h : Pricing A σ C) (hj : j≠l) (a : Axis) : |
| 122 | Pricing (residueRay j l a A) (σ/4) ((1+debit (σ/4)*overhead σ)*C) := by |
| 123 | have he := h.rate |
| 124 | have ht := ((h.fills hj a).smaller l) |
| 125 | rw [add_mul,one_mul,mul_assoc]; exact (h.widen (by linarith) (by linarith) le_rfl).sub ht |
| 126 | |
| 127 | lemma Leftovers (z : EmptySum A l) (hp : Pricing A σ C) (hj : j≠l) (a : Axis) : |
| 128 | EmptySum (residueRay j l a A) l := by |
| 129 | intro X |
| 130 | let V' := operate j l a A |
| 131 | have hs : sums (peek l X V') := fun S => ((hp.fills hj a).sum_leg hj X S).of_norm |
| 132 | have he := totals hs |
| 133 | change (∑' i : Cover,(peek l X A (i,∅)-peek l X (lower l V') (i,∅)))=_ |
| 134 | rw [peek_lower, ((hp.sum_leg hj X ∅).of_norm).tsum_sub (hs.rims _),he,z X,sub_self] |
| 135 | |
| 136 | omit [CompleteSpace V] [NormedSpace ℝ V] in |
| 137 | lemma erased_null {k : ℕ} (hj : j≠l) (h : Rank A l k) (he : k=0 → EmptySum A l) (hx : ∀ i, Shut l j i A) : A=0 := by |
| 138 | funext X |
| 139 | by_cases hh : A X=0; · exact hh |
| 140 | exfalso |
| 141 | have hs i := not_or.mp (mt (hx i X) hh) |
| 142 | have hz : (X l).2=∅ := Finset.eq_empty_iff_forall_notMem.mpr fun i => (hs i).2 |
| 143 | have hv : (X l).1=(X j).1 := funext fun i => not_not.mp (hs i).1 |
| 144 | have hg := he (by by_contra hK; exact hh (h X (by rw [hz]; exact Ne.symm hK))) X |
| 145 | rw [tsum_eq_single (X l).1] at hg |
| 146 | · rw [peek, show ((X l).1, (∅:Finset Axis))=X l by rw [← hz]] at hg |
| 147 | exact hh (by simpa using hg) |
| 148 | intro x hx' |
| 149 | have ht : x≠(X j).1 := hv ▸ hx' |
| 150 | obtain ⟨i,hi⟩ := Function.ne_iff.mp ht |
| 151 | apply hx i _ (Or.inl ?_); simpa [hj] |
| 152 | |
| 153 | lemma fill_finite {j l : I} (hj : j≠l) (σ : ℝ) (he : 0<σ) (k : ℕ) (s : List Axis) : |
| 154 | ∃ u d : ℝ, 0<u ∧ u≤σ ∧ 0≤d ∧ ∀ (C : ℝ) (A : ArrayC I ℤ V), Pricing A σ C → Rank A l k → ClosedSlot A l → |
| 155 | ∃ G : ArrayC I ℤ V, Pricing G u (d*C) ∧ Rank G l (k+1) ∧ (∀ i, i≠l → ∀ r, Rank A i r → Rank G i r) ∧ |
| 156 | (∀ i, i≠l → i≠j → ClosedSlot A i → ClosedSlot G i) ∧ |
| 157 | (∀ i, Shut l j i A ∨ i∈ s → Shut l j i (A-lower l G)) ∧ |
| 158 | (EmptySum A l → EmptySum (A-lower l G) l) := by |
| 159 | induction s generalizing σ with |
| 160 | | nil => |
| 161 | refine ⟨σ,0,he,le_rfl,le_rfl, fun C A h r hk => ?_⟩ |
| 162 | refine ⟨0,by rw [zero_mul]; exact Pricing.zero he,Rank.zero _ _,fun _ _ _ _ => Rank.zero _ _, |
| 163 | fun _ _ _ _ => map_zero _, ?_,?_⟩ |
| 164 | · simp |
| 165 | simp |
| 166 | | cons i s ih => |
| 167 | obtain ⟨u,d,hu,he',hd,H⟩ := ih (σ/4) (by positivity) |
| 168 | let g := 1+debit (σ/4)*overhead σ |
| 169 | have hz : 0 ≤ g := add_nonneg zero_le_one (mul_nonneg (debit_pos _) (overhead_pos he).le) |
| 170 | refine ⟨u,overhead σ+d*g,hu,he'.trans (by linarith),add_nonneg (overhead_pos he).le (mul_nonneg hd hz),?_⟩ |
| 171 | intro C A hp h hw |
| 172 | let T := operate j l i A |
| 173 | let B := A-lower l T |
| 174 | have hT : Pricing T (σ/4) (overhead σ*C) := hp.fills hj _ |
| 175 | have ha : Pricing B (σ/4) (g*C) := hp.erase hj i |
| 176 | have hb : ClosedSlot B l := hw.sub (lower_twice l T) |
| 177 | have hZ : Rank T l (k+1) := h.higher j i |
| 178 | obtain ⟨G,hp',hr,ha',hC,hG,hE⟩ := H _ B ha (h.sub hZ.descent) hb |
| 179 | have hm : A-lower l (T+G)=B-lower l G := by rw [map_add]; unfold B; abel |
| 180 | refine ⟨T+G, ?_, hZ.add hr, ?_,?_,fun m hx => hm.symm ▸ hG _ ?_, fun hx => hm.symm ▸ hE (Leftovers hx hp hj i)⟩ |
| 181 | · rw [add_mul,mul_assoc]; exact (hT.widen hu he' le_rfl).add hp' |
| 182 | · intro t ht r hx |
| 183 | have H : Rank T t r := hx.passive ht j i |
| 184 | exact H.add (ha' t ht r (hx.sub (H.keeps ht))) |
| 185 | · intro r hx he hS |
| 186 | have H := hS.bill hp hj he hx i |
| 187 | exact H.add (hC r hx he (hS.sub (H.transverse l))) |
| 188 | rcases hx with hx|hx |
| 189 | · exact Or.inl (hx.remains hw hp hj _) |
| 190 | rcases List.mem_cons.mp hx with rfl|hx |
| 191 | · exact Or.inl (Shut.here hw hp hj _) |
| 192 | exact Or.inr hx |
| 193 | |
| 194 | /-- Lift in one argument. Can use with ANY other argument as anchor. Width |
| 195 | and constants simultaneous. Degree-zero requires no charge (augmentation zero). |
| 196 | Preserves closures in other non-anchor arguments; do NOT assume automatic |
| 197 | at the anchor. -/ |
| 198 | theorem arm (l j : I) (hj : j≠l) (σ : ℝ) (he : 0<σ) (k : ℕ) : |
| 199 | ∃ u d : ℝ, 0<u ∧ u≤σ ∧ 0≤d ∧ ∀ (C : ℝ) (A : ArrayC I ℤ V), Pricing A σ C → Rank A l k → ClosedSlot A l → |
| 200 | (k=0 → EmptySum A l) → ∃ G : ArrayC I ℤ V, Pricing G u (d*C) ∧ Rank G l (k+1) ∧ lower l G=A ∧ |
| 201 | (∀ i, i≠l → ∀ r, Rank A i r → Rank G i r) ∧ |
| 202 | (∀ i, i≠l → i≠j → ClosedSlot A i → ClosedSlot G i) := by |
| 203 | obtain ⟨u,d,h1,h2,h3,H⟩:= fill_finite (V:=V) hj σ he k (List.finRange 4) |
| 204 | refine ⟨u,d,h1,h2,h3,fun C A hp hr hc h0 => ?_⟩ |
| 205 | obtain ⟨G,hG,hg,hp',hc',ho,he⟩ := H C A hp hr hc |
| 206 | refine ⟨G,hG,hg, (sub_eq_zero.mp <| erased_null hj (hr.sub hg.descent) (fun h => he (h0 h)) (fun i => ho i (Or.inr (List.mem_finRange _)))).symm,hp',hc'⟩ |
| 207 | end YM.AnalyticNext.QuarticMatch.BoxChain |