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.FREE_KERNELS.Sell |
| 2 | |
| 3 | /-! |
| 4 | # Exact periodic difference convention for optional Ψ transfer |
| 5 | |
| 6 | On-cover quotient API: if a `Whole` row spectrum vanishes with the |
| 7 | required real multipliers (with continuous quotients), spend finitely many |
| 8 | (reduced) width shares to get an **exact** row preimage. Don't compare |
| 9 | jets on a single discrete torus instead. `motion` orders coordinate forward |
| 10 | differences on physical cochain sites. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Next.Free |
| 15 | open Filter Set Function Lattice Laurent Bloch Metric Exterior Matrix Precision RG Work.F08 Craft Bid |
| 16 | open scoped Topology BigOperators ComplexConjugate |
| 17 | |
| 18 | variable {m n ι : Type*} |
| 19 | |
| 20 | /-- Forward difference convolution stencil. -/ |
| 21 | def knock (m : Type*) [DecidableEq m] (s : Axis) : Row m m := |
| 22 | minusRows (fun i j x => if i=j then token (step s) x else 0) (unitRow m) |
| 23 | lemma knock_whole (m : Type*) [Fintype m] [DecidableEq m] (s : Axis) : Whole (knock m s) := by |
| 24 | apply Whole.minus _ (Whole.coin m) |
| 25 | refine ⟨1,envelopeW 1 (step s),one_pos,fun i j => ?_⟩ |
| 26 | by_cases h : i=j <;> simp only [h,↓reduceIte] |
| 27 | · exact token_rate (step s) 1 |
| 28 | simp [Laurent.Width, SumBudget, (envelope_pos _ _).le] |
| 29 | lemma knock_read (m : Type*) [Fintype m] [DecidableEq m] (s : Axis) (p : Momentum) : |
| 30 | (knock m s).read p=chip (p s) • 1 := by |
| 31 | ext i j; unfold knock |
| 32 | rw [Row.read,of_apply,Matrix.smul_apply,Matrix.one_apply,smul_eq_mul] |
| 33 | by_cases he : i=j |
| 34 | · rw [if_pos he,mul_one,chip,← factor] |
| 35 | -- two-term expression exactly |
| 36 | unfold Laurent.read |
| 37 | let x := (step s:Cover) |
| 38 | have hh : x≠0 := by intro hx; have hb := congr_fun hx s; simp [x] at hb |
| 39 | rw [tsum_eq_sum (s:={x,0})]; |
| 40 | · simp [minusRows,token,x,sub_eq_add_neg,he,unitRow,show step s≠(0:Cover) from hh, Ne.symm (show step s≠(0:Cover) from hh)] |
| 41 | exact fun i h => by |
| 42 | have hy : i≠0 ∧ i≠x := by simpa only [Finset.mem_insert,Finset.mem_singleton,not_or, and_comm] using h |
| 43 | simp [minusRows,unitRow,token,show i≠step s from hy.2,hy.1] |
| 44 | simp [minusRows,he,unitRow,Laurent.read] |
| 45 | lemma knock_entry (m : Type*) [Fintype m] [DecidableEq m] (L : Side) (s : Axis) (x : Co L m) (f : Co L m → ℝ) : |
| 46 | ((knock m s).acts L *ᵥ f) x=f (x.1+step s,x.2)-f x := by |
| 47 | unfold Matrix.mulVec dotProduct; rw [Fintype.sum_prod_type]; |
| 48 | have hh (i : m) (y : Site L) : (knock m s).acts L x (y,i)=(if i=x.2 then ((if y=x.1+step s then 1 else 0) - (if x.1=y then 1 else 0)) else 0) := by |
| 49 | rw [Row.acts,of_apply]; have ht : step s≠(0:Cover) := by intro hx; have he := congr_fun hx s; simp at he |
| 50 | rw [tsum_eq_sum (s:={step s,0})]; |
| 51 | · by_cases h : i=x.2 |
| 52 | · by_cases hb : y=x.1 <;> by_cases hs : y=x.1+step s <;> by_cases hu : (step s : Site L)=0 <;> |
| 53 | simp [h,hb,hs,knock,minusRows,unitRow,token,ht,Ne.symm ht,hu,Ne.symm,eq_comm,sub_eq_add_neg] |
| 54 | simp [h,Ne.symm h,knock,minusRows,unitRow] |
| 55 | intro x hx; have h : x≠step s ∧ x≠0 := by simpa using hx |
| 56 | simp [knock,minusRows,unitRow,token,h.1,h.2] |
| 57 | simp_rw [hh, ite_mul,zero_mul,sub_mul]; |
| 58 | simp [Finset.sum_sub_distrib,ite_mul] |
| 59 | |
| 60 | def pathJet (m : Type*) [Fintype m] [DecidableEq m] : List Axis → Row m m |
| 61 | | [] => unitRow _ |
| 62 | | a::s => composeRows (knock m a) (pathJet m s) |
| 63 | lemma jet_whole (m : Type*) [Fintype m] [DecidableEq m] (s : List Axis) : Whole (pathJet m s) := by |
| 64 | induction s with |
| 65 | | nil => exact Whole.coin _ |
| 66 | | cons a s ih => exact (knock_whole _ a).prod ih |
| 67 | lemma jet_read (m : Type*) [Fintype m] [DecidableEq m] (s : List Axis) {p : Momentum} (hp : physical p) : |
| 68 | (pathJet m s).read p=listChip p s • 1 := by |
| 69 | induction s with |
| 70 | | nil => rw [pathJet,read_unit]; simp [listChip] |
| 71 | | cons a s ih => rw [pathJet,(knock_whole m a).read (jet_whole m s) hp, knock_read, ih]; simp [listChip,smul_smul,mul_comm] |
| 72 | |
| 73 | def motion (m : Type*) [Fintype m] [DecidableEq m] (L : Side) (s : List Axis) := (pathJet m s).acts L |
| 74 | lemma motion_zero (m : Type*) [Fintype m] [DecidableEq m] (L : Side) : motion m L []=1 := acts_unit _ |
| 75 | lemma motion_walk (m : Type*) [Fintype m] [DecidableEq m] (L : Side) (a : Axis) (s : List Axis) : |
| 76 | motion m L (a::s)=(knock m a).acts L*motion m L s := (knock_whole _ _).acts (jet_whole _ _) _ |
| 77 | |
| 78 | lemma move_forward {L : Side} (ho : Odd L.val) (A : Cross L m n) [Fintype m] [DecidableEq m] (b : Axis) : |
| 79 | fineCompose (knock m b) A=forwardC L A b := by |
| 80 | funext ⟨r,i⟩ j p; unfold fineCompose; rw [Finset.sum_eq_single i]; swap |
| 81 | · intro a _ ha; unfold routed; simp [knock,minusRows,Ne.symm ha,unitRow] |
| 82 | swap; · simp |
| 83 | let x := (step b:Cover); have hb : x ≠ 0 := by intro hh; have hx := congr_fun hh b; simp [x] at hx |
| 84 | unfold routed |
| 85 | rw [tsum_eq_sum (s:={x,0})]; swap |
| 86 | · intro i hi; have h : i≠x ∧ i≠0 := by simpa using hi |
| 87 | simp [knock,minusRows,unitRow,h.2,token,show i≠step b from h.1] |
| 88 | have hx : step b ≠ (0:Cover) := hb |
| 89 | unfold x; simp only [Finset.sum_pair hx] |
| 90 | simp [knock,minusRows,token,hx,Ne.symm hx,unitRow,forwardC,show carry r (step b)=carryStep b r from carry_crank L ho b r,stays_here,carryStep,arrives,mid,sub_eq_add_neg]; rfl |
| 91 | |
| 92 | lemma flow_movement {c f : Side} [Fintype m] [DecidableEq m] (g : Ratio c f) (A : Cross g.count m n) (s : List Axis) |
| 93 | (hp : Odd g.count.val) (hs : ∀ u : List Axis,u.length≤s.length → Whole (advanceC g.count A u)) : |
| 94 | installed g (advanceC g.count A s)=motion m f s * installed g A := by |
| 95 | induction s with |
| 96 | | nil => rw [advanceC,motion_zero,Matrix.one_mul] |
| 97 | | cons i s ih => rw [advanceC,← move_forward hp, motion_walk, Whole.from_fine g (knock_whole m i) (hs s (by simp)), ih fun u hu => hs u (by simp; omega),Matrix.mul_assoc] |
| 98 | |
| 99 | /-- Take the real-axis (Hadamard) quotient in order. Use only on actual |
| 100 | spectra divisible by the whole list with continuous quotients; no result |
| 101 | promised about values of arbitrary regular spectra e.g. at q_i=0. -/ |
| 102 | def proceeds (A : Row m n) : List Axis → Row m n |
| 103 | | [] => A |
| 104 | | a::l => proceeds (dashAxis a A) l |
| 105 | lemma proceeds_whole {A : Row m n} (h : Whole A) (s : List Axis) : Whole (proceeds A s) := by |
| 106 | induction s generalizing A with |
| 107 | | nil => exact h |
| 108 | | cons a s ih => exact ih (dash_whole h a) |
| 109 | lemma list_cont (s : List Axis) : Continuous fun p : Momentum => listChip p s := by |
| 110 | induction s with |
| 111 | | nil => simpa only [listChip,List.map_nil,List.prod_nil] using (continuous_const : Continuous fun _ : Momentum => (1:ℂ)) |
| 112 | | cons a s ih => |
| 113 | have he : (fun p => listChip p (a::s))=(fun p => chip (p a)*listChip p s) := by simp [listChip] |
| 114 | rw [he]; exact Continuous.mul (by unfold chip; fun_prop) ih |
| 115 | lemma real_divides (s : List Axis) {A : Row m n} (h : Whole A) {g : Momentum → Matrix m n ℂ} |
| 116 | (hg : ∀ p∈baseCube, ContinuousAt g p) (hh : ∀ p∈baseCube,A.read p=listChip p s • g p) : |
| 117 | ∀ p∈baseCube,(proceeds A s).read p=g p := by |
| 118 | induction s generalizing A with |
| 119 | | nil => simpa only [listChip,List.map_nil,List.prod_nil,one_smul,proceeds] using hh |
| 120 | | cons a l ih => |
| 121 | apply ih (dash_whole h a) |
| 122 | intro p hp |
| 123 | let f (p : Momentum) := listChip p l • g p |
| 124 | have hx (p : Momentum) (hp : p ∈ baseCube) : A.read p=q p a • f p := by rw [hh p hp]; simp [listChip,switch_axis,f,smul_smul] |
| 125 | apply renew_q _ f a _ _ _ p hp |
| 126 | · exact fun p => read_here (dashAxis a A) (dash_whole h a) |
| 127 | · intro p hp; unfold f; exact (list_cont l).continuousAt.smul (hg p hp) |
| 128 | intro p hp hc |
| 129 | apply smul_right_injective _ hc |
| 130 | have he := read_part h a hp.1 |
| 131 | have ht := hx (update p a 0) (bank_blank hp a); rw [switch_axis,Function.update_self,chip_origin,zero_smul] at ht |
| 132 | rw [ht,sub_zero] at he |
| 133 | exact he.trans (hx p hp) |
| 134 | lemma proceeds_stock {α β : ι → Type*} {w : ι → ℝ} {A : ∀ i, Row (α i) (β i)} (h : Stock w A) (s : List Axis) : Stock w (fun i => proceeds (A i) s) := by |
| 135 | induction s generalizing A with |
| 136 | | nil => exact h |
| 137 | | cons a s ih => exact ih (dash_stock h a) |
| 138 | end YM.Next.Free |