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.RG08.Gaussian.Completion |
| 2 | import YM.Push.FREE_RESOLVENT.GaugeProjection |
| 3 | |
| 4 | /-! |
| 5 | # Projection along joint gauge directions onto the conditional root/tree slice |
| 6 | |
| 7 | Counts a coarse gauge parameter in the joint variables. Dropping it without |
| 8 | projection would generally not give the correct covariance even at quadratic |
| 9 | order. Works before period or patch cost estimates. -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.RG08 |
| 13 | open Function Filter Lattice Wilson RG Exterior Precision Bloch Matrix |
| 14 | open Stationary Next.Free Work.F08 Tree FreeResolvent |
| 15 | open scoped Topology BigOperators Classical |
| 16 | |
| 17 | variable {c f m n : Side} {G : Gauge} |
| 18 | |
| 19 | lemma matrix_eq {α β : Type} [Fintype α] [Fintype β] [DecidableEq α] [DecidableEq β] |
| 20 | {A B : Matrix α β ℝ} (h : ∀ x,A*ᵥ x=B*ᵥ x) : A=B := |
| 21 | Matrix.toLin'.injective (LinearMap.ext h) |
| 22 | |
| 23 | /-- Color-packing adapters, ordinary coordinates, no metric on test currents. -/ |
| 24 | lemma tensor_same (G : Gauge) {i j : ℕ} (M : Matrix (Body i m) (Body j n) ℝ) : |
| 25 | patron G M=tensor G M := by |
| 26 | apply matrix_eq |
| 27 | intro x; rw [patron_fee] |
| 28 | funext y |
| 29 | rcases y with ⟨u,z,k⟩ |
| 30 | exact (congr_fun (component_mul M x k) (u,z)).symm |
| 31 | lemma patron_add (G : Gauge) {i j : ℕ} (M N : Matrix (Body i m) (Body j n) ℝ) : patron G (M+N)= patron G M + patron G N := by |
| 32 | simp_rw [tensor_same] |
| 33 | ext i j; by_cases h : i.2.2=j.2.2 <;> simp [tensor,h] |
| 34 | lemma patron_scale (G : Gauge) {i j : ℕ} (t : ℝ) (M : Matrix (Body i m) (Body j n) ℝ) : |
| 35 | patron G (t • M)=t • patron G M := by |
| 36 | simp_rw [tensor_same]; ext i j; by_cases h : i.2.2=j.2.2 <;> simp [tensor,h] |
| 37 | lemma first_gradient (x : BaseSites G f) : gradientA G f x = gradient x := by |
| 38 | rw [first_uniform,← patron_fee,tensor_same,gradient] |
| 39 | lemma base_test (S : StepData c f) : |
| 40 | patron G (Precision.probe S) = bondsM G S + tensor G (d 0 c)*tensor G (fixRoot S) := by |
| 41 | unfold probe; rw [patron_add,patron_mul (G:=G),tensor_same G (d 0 c), tensor_same G (fixRoot S)] |
| 42 | rfl |
| 43 | |
| 44 | section projector |
| 45 | variable (S : StepData c f) |
| 46 | |
| 47 | def cutoffCenter (v : BaseSites G f) : BaseSites G c := fun i => v (S.ratio.embed i.1,i.2) |
| 48 | def stampZone (G : Gauge) := tensor G (fixRoot S) |
| 49 | lemma gaugeZone (v : BaseSites G f) : |
| 50 | stampZone S G *ᵥ gradient v=cutoffCenter S v-curryG G S *ᵥ v := by |
| 51 | funext x; obtain ⟨x,i,b⟩ := x; rw [vac_only i] |
| 52 | change component (stampZone S G *ᵥ _) b (x,vac) = v _ - _ |
| 53 | rw [stampZone,component_mul,gradient,component_mul,psi_proj, curry_at]; rfl |
| 54 | |
| 55 | def duplicateM (G : Gauge) : Matrix (Lines G f 0) (Lines G c 0) ℝ := LinearMap.toMatrix' |
| 56 | (LinearMap.pi fun i : Lines G f 0 => LinearMap.proj (S.ratio.parent i.1,i.2)) |
| 57 | lemma duplicate_reads (v : BaseSites G c) (x : Lines G f 0) : |
| 58 | (duplicateM S G *ᵥ v) x = v (S.ratio.parent x.1,x.2) := by rw [duplicateM,LinearMap.toMatrix'_mulVec]; rfl |
| 59 | lemma duplicate_has (v : BaseSites G c) : cutoffCenter S (duplicateM S G *ᵥ v)=v := by |
| 60 | ext1 x; simp [cutoffCenter,duplicate_reads,S.ratio.embed_parent] |
| 61 | lemma duplicate_frees (T : Forest S.ratio) (v : BaseSites G c) : Vanishes (S:=S) T (gradient (duplicateM S G *ᵥ v)) := by |
| 62 | intro i e h |
| 63 | rcases e with ⟨x,j⟩ |
| 64 | rw [gradient, component_mul,d_sites] |
| 65 | simp only [component,ix,duplicate_reads,T.trunk_internal h,sub_self] |
| 66 | |
| 67 | /-- Matrix of backward hikes in additive logs. -/ |
| 68 | def hikeM (G : Gauge) (T : Forest S.ratio) : Matrix (Lines G f 0) (Lines G f 1) ℝ := LinearMap.toMatrix' { |
| 69 | toFun := fun v => potential (S:=S) T v |
| 70 | map_add' := fun x y => by |
| 71 | funext i; unfold potential; change integralLink i.1 (T.hike i.1) (component x _ + component y _) = _ |
| 72 | rw [map_add]; rfl |
| 73 | map_smul' := fun t v => by |
| 74 | funext i; unfold potential; change integralLink i.1 (T.hike i.1) (t • component v _) = _ |
| 75 | rw [map_smul]; rfl } |
| 76 | |
| 77 | variable (T : Forest S.ratio) |
| 78 | lemma hikeM_pay (v : Vec G f 1) : hikeM S G T *ᵥ v = potential (S:=S) T v := by rw [hikeM,LinearMap.toMatrix'_mulVec]; rfl |
| 79 | lemma root_center (v : Vec G f 1) : cutoffCenter S (potential T v)=0 := by |
| 80 | ext1 i |
| 81 | exact congr_fun (roots_pinned (S:=S) T v i.2.2) (i.1,i.2.1) |
| 82 | lemma root_duplicate (v : Vec G f 0) : potential (S:=S) T (gradient v)=duplicateM S G *ᵥ cutoffCenter S v-v := by |
| 83 | ext1 x; obtain ⟨x,a,b⟩ := x; rw [vac_only a]; unfold potential; rw [gradient, component_mul, telescopes,T.hike_root, Pi.sub_apply,duplicate_reads]; rfl |
| 84 | |
| 85 | /-- Joint gauge parameter. Explicit (important for block-dependent post cost). -/ |
| 86 | def turnParameter (G : Gauge) := duplicateM S G * (brim G c f+stampZone S G * butt G c f) - hikeM S G T * butt G c f |
| 87 | |
| 88 | def projection (G : Gauge) : Matrix (Lines G f 1) (Bodies G c f) ℝ := butt G c f - |
| 89 | tensor G (d 0 f)*turnParameter S T G |
| 90 | |
| 91 | def cropJoint (G : Gauge) := (butt G c f)ᵀ - (brim G c f)ᵀ*stampZone S G |
| 92 | |
| 93 | lemma sets (x : Link G f) : cropJoint S G *ᵥ x=Sum.elim x (-(stampZone S G*ᵥ x)) := by |
| 94 | rw [cropJoint,helmet_butt,helmet_brim]; funext i; rcases i with i|i <;> rw [Matrix.sub_mulVec,← Matrix.mulVec_mulVec] <;> |
| 95 | simp [-Matrix.mulVec_mulVec,shardX, shardY,Matrix.mulVec, dotProduct,LinearMap.toMatrix'_apply,Pi.single_apply,ite_mul] |
| 96 | |
| 97 | lemma picks_butt : butt G c f*cropJoint S G=1 := by |
| 98 | apply matrix_eq; intro v; rw [← Matrix.mulVec_mulVec,sets,helmet_butt,sliceX,one_mulVec]; rfl |
| 99 | lemma picks_brim : brim G c f*cropJoint S G = -(stampZone S G) := by |
| 100 | apply matrix_eq; intro v; rw [← Matrix.mulVec_mulVec,sets,helmet_brim,sliceY,neg_mulVec]; rfl |
| 101 | |
| 102 | lemma roll_sum (x : Vault G c f) : turnParameter S T G *ᵥ (Sum.elim x.1 x.2) = |
| 103 | duplicateM S G *ᵥ (x.2+stampZone S G *ᵥ x.1) - potential (S:=S) T x.1 := by |
| 104 | rw [turnParameter, Matrix.sub_mulVec, ← Matrix.mulVec_mulVec, Matrix.add_mulVec, ← Matrix.mulVec_mulVec,← Matrix.mulVec_mulVec,helmet_butt,helmet_brim,sliceX,sliceY,hikeM_pay]; rfl |
| 105 | lemma pays_projection (x : Vault G c f) : projection S T G *ᵥ (Sum.elim x.1 x.2) = |
| 106 | representative S T x.1 - gradient (duplicateM S G *ᵥ (x.2+stampZone S G *ᵥ x.1)) := by |
| 107 | rw [projection,sub_mulVec,← mulVec_mulVec,roll_sum S T x,helmet_butt,sliceX,mulVec_sub,gradient,representative,gradient]; change x.1-(_-_) = _; abel |
| 108 | lemma waypoint (x : Vault G c f) : stampZone S G *ᵥ (projection S T G *ᵥ Sum.elim x.1 x.2) = -(x.2 - curryG G S *ᵥ (turnParameter S T G *ᵥ Sum.elim x.1 x.2)) := by |
| 109 | let v := turnParameter S T G *ᵥ Sum.elim x.1 x.2 |
| 110 | have hx : cutoffCenter S v=x.2+stampZone S G *ᵥ x.1 := by |
| 111 | rw [show v=_ from roll_sum S T x,show cutoffCenter S (_-potential T x.1)=cutoffCenter S (duplicateM S G *ᵥ _) - cutoffCenter S (potential T x.1) from rfl, |
| 112 | root_center, sub_zero,duplicate_has] |
| 113 | rw [show projection S T G *ᵥ Sum.elim x.1 x.2=x.1-gradient v by |
| 114 | rw [projection,sub_mulVec,← Matrix.mulVec_mulVec, helmet_butt,sliceX]; rfl, |
| 115 | Matrix.mulVec_sub,gaugeZone,hx]; change _ = -(_ - _*ᵥ v); abel |
| 116 | |
| 117 | /-- Exact joint projection onto the tree injection. -/ |
| 118 | theorem tree_path : cropJoint S G * projection S T G = 1 + spreadM S * turnParameter S T G := by |
| 119 | apply matrix_eq; intro v |
| 120 | let x : Vault G c f := (v ∘ Sum.inl,v ∘ Sum.inr) |
| 121 | have hx : v=Sum.elim x.1 x.2 := funext fun i => by cases i <;> rfl |
| 122 | rw [Matrix.add_mulVec,one_mulVec, ← Matrix.mulVec_mulVec,← Matrix.mulVec_mulVec,parliament S,helmet_ear,first_gradient,hx,sets,waypoint S T x,projection, sub_mulVec,← Matrix.mulVec_mulVec, helmet_butt,sliceX] |
| 123 | ext1 i; rcases i with i|i |
| 124 | · change x.1 i-_ = x.1 i+ -_ |
| 125 | simp [sub_eq_add_neg,gradient] |
| 126 | change - (- (x.2-_)) i = x.2 i + -_ |
| 127 | simp [sub_eq_add_neg] |
| 128 | |
| 129 | lemma lowered (v : BaseSites G f) : turnParameter S T G *ᵥ (spreadM S *ᵥ v)=-v := by |
| 130 | rw [parliament, helmet_ear,roll_sum S T, first_gradient]; dsimp only |
| 131 | rw [Matrix.mulVec_neg,gaugeZone,show -(curryG G S *ᵥ v)+ - (cutoffCenter S v-curryG G S *ᵥ v) = - cutoffCenter S v from by abel, |
| 132 | ← hikeM_pay S T (-gradient v), Matrix.mulVec_neg, Matrix.mulVec_neg,hikeM_pay,root_duplicate]; abel |
| 133 | lemma tree_kills : projection S T G * spreadM (G:=G) S=0 := by |
| 134 | apply matrix_eq; intro v |
| 135 | rw [← Matrix.mulVec_mulVec, projection,Matrix.sub_mulVec, ← Matrix.mulVec_mulVec,lowered S T v,mulVec_neg,parliament S, helmet_ear,first_gradient,helmet_butt,sliceX]; change -gradient v - -gradient v= _; rw [sub_self,zero_mulVec] |
| 136 | |
| 137 | /-- `sprig` inserts active cotree coordinates with color. -/ |
| 138 | def sprig (G : Gauge) : Matrix (Lines G f 1) (Active G T) ℝ := insertion (plant T) |
| 139 | lemma sprig_in (u : Active G T→ℝ) : Vanishes (S:=S) T (sprig S T G *ᵥ u) := by |
| 140 | intro i j h |
| 141 | refine Finset.sum_eq_zero (fun y hy => ?_) |
| 142 | change (if plant T y = _ then _ else _) * _=0 |
| 143 | rw [if_neg,zero_mul] |
| 144 | intro hz |
| 145 | apply y.1.property |
| 146 | rw [show y.1.val=j from Prod.ext (congr_arg (fun z : Lines G f 1 => z.1) hz) |
| 147 | ((coord_iff ..).mp (congr_arg (fun z : Lines G f 1 => z.2.1) hz))]; exact h |
| 148 | lemma tree_on (x : Vault G c f) : Vanishes (S:=S) T (projection S T G *ᵥ Sum.elim x.1 x.2) := by |
| 149 | rw [pays_projection S T x] |
| 150 | intro i e he |
| 151 | change component (representative S T x.1) i _ - component (gradient _) i _= _ |
| 152 | rw [onto_slice T x.1 i e he, duplicate_frees S T _ i e he]; simp |
| 153 | lemma life : sprig S T G * (sprig S T G)ᵀ * projection S T G= projection S T G := by |
| 154 | apply matrix_eq; intro v |
| 155 | let x : Vault G c f := (v ∘ Sum.inl,v ∘ Sum.inr) |
| 156 | rw [show v=Sum.elim x.1 x.2 from funext fun i => by cases i <;> rfl] |
| 157 | rw [← Matrix.mulVec_mulVec, ← Matrix.mulVec_mulVec] |
| 158 | exact projects T _ (tree_on S T x) |
| 159 | lemma tree_go : projection S T G *cropJoint S G * sprig S T G = sprig S T G := by |
| 160 | apply matrix_eq; intro v |
| 161 | rw [← Matrix.mulVec_mulVec,← Matrix.mulVec_mulVec,sets] |
| 162 | let w := sprig S T G *ᵥ v |
| 163 | change projection S T G*ᵥ Sum.elim w _= w |
| 164 | have h := pays_projection S T (w, -(stampZone S G*ᵥ w)); dsimp only at h |
| 165 | rw [h, FreeResolvent.fixes T (sprig_in S T v),neg_add_cancel,mulVec_zero,gradient,mulVec_zero,sub_zero] |
| 166 | |
| 167 | end projector |
| 168 | end YM.RG08 |