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.AnalyticBridge.GAUSSIAN_FIELD_ALIGNMENT.Orthogonal |
| 2 | import YM.Next.UV_STRESS.Fringe |
| 3 | import YM.Push.LOCAL_SPLITTING.Transport |
| 4 | import YM.Push.PRICE_COMPILER.Builders |
| 5 | import YM.Push.PRICE_COMPILER.Continuity |
| 6 | import YM.UVNext.PRICED_KERNELS.Assembly |
| 7 | |
| 8 | |
| 9 | set_option warningAsError false |
| 10 | |
| 11 | /-! |
| 12 | # Sector covariance and ordered-window means transform from whole-color row laws |
| 13 | |
| 14 | Respell the basis action, with actual `shots`. They use a shifted initial-site |
| 15 | overestimate which we need not assume reflects exactly: remove the projector |
| 16 | algebraically using `skip_bump` on the active inputs ONLY. The scalar part of |
| 17 | a sum of selected row energies is **not** asserted to transform by this trick. |
| 18 | -/ |
| 19 | set_option autoImplicit false |
| 20 | set_option linter.unusedSectionVars false |
| 21 | noncomputable section |
| 22 | namespace YM.AnalyticBridge.GaussianFieldAlignment.Tensor |
| 23 | open Filter Function Set Lattice RG Wilson Precision Tree Matrix Pressure Stores Push.SectorMeasure |
| 24 | open Next.SectorChange Next.SectorChange.Rows Orthogonal |
| 25 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius ContDiff InnerProductSpace |
| 26 | variable {α β : Type} [Fintype α] [Fintype β] [DecidableEq α] [DecidableEq β] {G : Gauge} |
| 27 | |
| 28 | def ortho (O : ColorOrtho G α) (i : α) : G.Color ≃L[ℝ] G.Color := ((O i).toLinearIsometryEquiv rfl).toContinuousLinearEquiv |
| 29 | |
| 30 | def lifting (O : ColorOrtho G α) (e : α ≃ β) : LogArray G β ≃L[ℝ] LogArray G α := |
| 31 | ((LinearEquiv.piCongrLeft ℝ (fun _ : β => G.Color) e).symm.trans |
| 32 | (LinearEquiv.piCongrRight (fun i => (ortho O i).toLinearEquiv))).toContinuousLinearEquiv |
| 33 | lemma lifting_apply (O : ColorOrtho G α) (e : α ≃ β) (a : LogArray G β) (i : α) : lifting O e a i = O i (a (e i)) := rfl |
| 34 | |
| 35 | section fd |
| 36 | variable {H : Type} [NormedAddCommGroup H] [NormedSpace ℝ H] |
| 37 | lemma derives (L : H ≃L[ℝ] H) (g : G.Color ≃L[ℝ] G.Color) {F H' : H → G.Color} |
| 38 | (he : ∀ a,F (L a)=g (H' a)) (a : H) : fderiv ℝ F 0 (L a) = g (fderiv ℝ H' 0 a) := by |
| 39 | have h := L.comp_right_fderiv (x:=0) (f:=F) |
| 40 | rw [show F ∘ L = g ∘ H' from funext he, g.comp_fderiv,map_zero] at h |
| 41 | exact DFunLike.congr_fun h.symm a |
| 42 | end fd |
| 43 | |
| 44 | section step |
| 45 | variable {c f : Side} {S : StepData c f} |
| 46 | variable (A A' : Stores S) (F F' : Forest S.ratio) (x : ℝ) (T : Tube G S) (V V' : Config G c) (k k' : S.Choices) |
| 47 | |
| 48 | lemma moves_points (s : Signed) (t : Site c) (i : Bond f) : |
| 49 | Next.SectorChange.points S (sendEdge s (S.ratio.embed t) i) = (affine s t) '' Next.SectorChange.points S i := by |
| 50 | unfold Next.SectorChange.points; rw [Set.image_insert_eq,Set.image_singleton] |
| 51 | simp_rw [← Push.Local.parent_affine S.ratio S.patch.odd_side] |
| 52 | let d := (posDir i.2).rotate s |
| 53 | let j := affine s (S.ratio.embed t) i.1 |
| 54 | have he : affine s (S.ratio.embed t) (i.1+step i.2)=j+d.vec := by rw [← Step.vec_pos,affine,s.act_add,← Step.vec_rotate]; unfold j affine d; abel |
| 55 | rw [he,sendEdge]; change {_,_}={S.ratio.parent j,S.ratio.parent _} |
| 56 | change {S.ratio.parent (d.used j).1,_}=_; unfold Step.used; split |
| 57 | · next h => simp [Step.vec,h,sub_eq_add_neg,Set.pair_comm]; rfl |
| 58 | next h => simp [Step.vec,h]; rfl |
| 59 | |
| 60 | lemma moves_meeting (s : Signed) (t : Site c) (i j : Bond f) : meeting S x (sendEdge s (S.ratio.embed t) i) (sendEdge s (S.ratio.embed t) j) ↔ meeting S x i j := by |
| 61 | unfold meeting; simp only [moves_points,Set.forall_mem_image,affine,separation_translate,separation_signed] |
| 62 | |
| 63 | abbrev endLinks (i : Active A x F) : Set (Active A x F) := {j | meeting S x i.val.val j.val.val} |
| 64 | |
| 65 | open FreeResolvent.Mid (axis) in |
| 66 | abbrev midLinks (i : Active A x F) : Set (Active A x F) := {j | 20 * separation (axis i.val.val) (axis j.val.val) ≤ 2*S.patch.L.val*radiusB x} |
| 67 | |
| 68 | lemma mids_together : mids A F x (G:=G)=together _ (midLinks A F x) := by |
| 69 | ext i j; simp [mids,midsAt,FreeResolvent.Mid.window,cull_address,together] |
| 70 | |
| 71 | section relabel |
| 72 | variable {A A' F F' x} (e : Active A' x F' ≃ Active A x F) (O : ColorOrtho G (Active A' x F')) |
| 73 | abbrev BothPlaces : Prop := (∀ i,endLinks A' F' x i = e ⁻¹' endLinks A F x (e i)) ∧ |
| 74 | ∀ i,midLinks A' F' x i = e ⁻¹' midLinks A F x (e i) |
| 75 | lemma geometry (s : Signed) (t : Site c) (he : ∀ i, (e i).val.val=sendEdge s (S.ratio.embed t) i.val.val) : BothPlaces e := by |
| 76 | refine ⟨fun i => ?_,fun i => ?_⟩ |
| 77 | · ext j; simp [endLinks,he,moves_meeting] |
| 78 | ext j; simp [midLinks,he,FreeResolvent.Mid.turned] |
| 79 | |
| 80 | structure Equivalent : Prop where |
| 81 | same : Rows.gram T x V' k' (shots S x) A' F' = warp O e (Rows.gram T x V k (shots S x) A F) |
| 82 | ends : Schur.per (panels A' F') (Rows.gram T x V' k' (shots S x) A' F') = warp O e (Schur.per (panels A F) (Rows.gram T x V k (shots S x) A F)) |
| 83 | mids : Schur.per (GaussianFieldAlignment.mids A' F' x) (Rows.gram T x V' k' (shots S x) A' F') = warp O e (Schur.per (GaussianFieldAlignment.mids A F x) (Rows.gram T x V k (shots S x) A F)) |
| 84 | |
| 85 | variable {T V V' k k'} |
| 86 | lemma equivalent (hQ : Rows.gram T x V' k' (shots S x) A' F' = warp O e (Rows.gram T x V k (shots S x) A F)) (he : BothPlaces e) : Equivalent T V V' k k' e O := by |
| 87 | refine ⟨hQ,?_,?_⟩ |
| 88 | · rw [hQ]; apply warp_per (w:=endLinks A' F' x) |
| 89 | exact fun i => by ext j; change ((e j.1) ∈ endLinks A F x _) ↔ j.1 ∈ endLinks A' F' x _; rw [he.1 i.1]; rfl |
| 90 | rw [hQ,mids_together,mids_together]; apply warp_per |
| 91 | exact fun i => by ext j; change ((e j.1) ∈ midLinks A F x _) ↔ j.1 ∈ midLinks A' F' x _; rw [he.2 i.1]; rfl |
| 92 | variable {O e} (h : Equivalent T V V' k k' e O) |
| 93 | include h |
| 94 | lemma Equivalent.fog : fog A' F' T x V' k'=warp O e (fog A F T x V k) := by unfold Next.SectorChange.fog Schur.clouded; rw [h.ends, ← Relative.symPart,warp_sym]; rfl |
| 95 | |
| 96 | end relabel |
| 97 | |
| 98 | -- Remove selection using the ZERO ON A *FRESH* COLUMN. Can't drop it on base entries alone. |
| 99 | lemma bias_dot (q : Chi) (d : ℝ) (a : Prices G (Active A x F)) (Y : LinkArray G (Frozen A x F)) |
| 100 | (h : S.patch.Branches S.kernel G) {σ E Λ : ℝ} (hT : T.up.Bounds T.high σ E Λ) : |
| 101 | let W := shots S x |
| 102 | a ⬝ᵥ blame T x V k W A F q d Y = slip * slip * ∑ i : Slots S, inner ℝ |
| 103 | (bump T x V k (fresh x W A F (tape a)) i) |
| 104 | ((base T x V k+bump T x V k (input x A F (autoShell q d V Y))) i) := by |
| 105 | intro W |
| 106 | rw [Rows.blame,dotProduct_transpose_mulVec,dotProduct_comm, moved _ _ _ _ _ _ _ hT,Rows.source] |
| 107 | have hx (u v : LogArray G (Slots S)) : tape.symm u ⬝ᵥ tape.symm v = ∑ i, inner ℝ (u i) (v i) := by |
| 108 | simp_rw [dotProduct, Fintype.sum_prod_type,Work.F03.inner_color]; rfl |
| 109 | rw [hx,Finset.mul_sum]; refine Finset.sum_congr rfl fun ⟨s,i⟩ _ => ?_ |
| 110 | dsimp only [selected,Rows.restrict]; split |
| 111 | · rw [real_inner_smul_left,real_inner_smul_right,mul_assoc] |
| 112 | next hh => rw [skip_bump T x V k A F s i _ h hh]; simp |
| 113 | |
| 114 | variable {A A' F F' x} |
| 115 | |
| 116 | abbrev onBond (O : ColorOrtho G (Bond f)) : ColorOrtho G (Active A x F) := fun i => O i.val.val |
| 117 | |
| 118 | variable (b : Equiv.Perm (Bond f)) (O : ColorOrtho G (Bond f)) |
| 119 | (e : Active A' x F' ≃ Active A x F) |
| 120 | (e' : Frozen A' x F' ≃ Frozen A x F) (u : Equiv.Perm (Slots S)) (P : ColorOrtho G (Slots S)) |
| 121 | |
| 122 | lemma fresh_move (he : ∀ i, (e i).val.val=b i.val.val) (a : Prices G (Active A x F)) : |
| 123 | fresh x (shots S x) A' F' (tape (Orthogonal.move (onBond O) e a)) = lifting O b (fresh x (shots S x) A F (tape a)) := by |
| 124 | funext i |
| 125 | rw [lifting_apply] |
| 126 | unfold fresh; split |
| 127 | · rename_i h |
| 128 | split |
| 129 | · rename_i h' |
| 130 | let j : Active A' x F' := ⟨⟨i,h⟩,h'⟩ |
| 131 | change tape _ j = _ |
| 132 | rw [move_tape,← he j, dif_pos (e j).val.property,dif_pos (e j).property] |
| 133 | next h' => |
| 134 | split |
| 135 | · next hu => |
| 136 | rw [dif_neg (fun ht => h' (absurd_chill _ h hu ht)), map_zero] |
| 137 | rw [map_zero] |
| 138 | next h => |
| 139 | split |
| 140 | · next hu => rw [dif_neg (fun ht => h (absurd_trunks _ hu ht)), map_zero] |
| 141 | rw [map_zero] |
| 142 | where |
| 143 | bond_inv (i : Active A x F) : (e.symm i).val.val = b.symm i.val.val := b.injective (by rw [← he, e.apply_symm_apply, b.apply_symm_apply]) |
| 144 | absurd_chill i (hi : i ∉ F'.trunks) (hb : b i ∉ F.trunks) (hv : ¬ chill A x F ⟨_,hb⟩) : ¬ chill A' x F' ⟨_,hi⟩ := by |
| 145 | let t : Active A x F := ⟨⟨_,hb⟩,hv⟩ |
| 146 | have hh : (e.symm t).val=⟨_,hi⟩ := Subtype.ext ((bond_inv t).trans (b.symm_apply_apply _)) |
| 147 | exact hh ▸ (e.symm t).property |
| 148 | absurd_trunks i (hb : b i ∉ F.trunks) (hv : ¬ chill A x F ⟨_,hb⟩) : i ∉ F'.trunks := by |
| 149 | let t : Active A x F := ⟨⟨_,hb⟩,hv⟩ |
| 150 | exact ((bond_inv t).trans (b.symm_apply_apply _)) ▸ (e.symm t).val.property |
| 151 | |
| 152 | lemma frozen_move (he : ∀ i, (e' i).val.val=b i.val.val) (a : LogArray G (Frozen A x F)) : |
| 153 | input x A' F' (fun i => O i.val.val (a (e' i))) = lifting O b (input x A F a) := by |
| 154 | funext i |
| 155 | rw [lifting_apply] |
| 156 | unfold input; split |
| 157 | · rename_i h |
| 158 | split |
| 159 | · rename_i h' |
| 160 | let j : Frozen A' x F' := ⟨⟨i,h⟩,h'⟩ |
| 161 | change O _ (a (e' j)) = O _ _ |
| 162 | rw [← he j, dif_pos (e' j).val.property,dif_pos (e' j).property] |
| 163 | next h' => |
| 164 | split |
| 165 | · next hu => rw [dif_neg (fun ht => h' (absurd_chill _ h hu ht)),map_zero] |
| 166 | rw [map_zero] |
| 167 | next h => |
| 168 | split |
| 169 | · next hu => rw [dif_neg (fun ht => h (absurd_trunks _ hu ht)),map_zero] |
| 170 | rw [map_zero] |
| 171 | where |
| 172 | bond_inv (i : Frozen A x F) : (e'.symm i).val.val = b.symm i.val.val := b.injective (by rw [← he, e'.apply_symm_apply, b.apply_symm_apply]) |
| 173 | absurd_chill i (hi : i ∉ F'.trunks) (hb : b i ∉ F.trunks) (hv : chill A x F ⟨_,hb⟩) : chill A' x F' ⟨_,hi⟩ := by |
| 174 | let t : Frozen A x F := ⟨⟨_,hb⟩,hv⟩ |
| 175 | have hh : (e'.symm t).val=⟨_,hi⟩ := Subtype.ext ((bond_inv t).trans (b.symm_apply_apply _)) |
| 176 | exact hh ▸ (e'.symm t).property |
| 177 | absurd_trunks i (hb : b i ∉ F.trunks) (hv : chill A x F ⟨_,hb⟩) : i ∉ F'.trunks := by |
| 178 | let t : Frozen A x F := ⟨⟨_,hb⟩,hv⟩ |
| 179 | exact ((bond_inv t).trans (b.symm_apply_apply _)) ▸ (e'.symm t).val.property |
| 180 | |
| 181 | variable {σ E Λ : ℝ} {T V V' k k'} (h : S.patch.Branches S.kernel G) (hT : T.up.Bounds T.high σ E Λ) |
| 182 | (he : ∀ i, (e i).val.val=b i.val.val) |
| 183 | (hp : ∀ (a : Directions G f) (i : Slots S), bump T x V' k' (lifting O b a) i = P i (bump T x V k a (u i))) |
| 184 | include h hT he hp |
| 185 | |
| 186 | lemma gram_motion (hw : BothPlaces e) : Equivalent T V V' k k' e (onBond O) := by |
| 187 | apply equivalent _ _ _ hw |
| 188 | apply warp_of |
| 189 | intro a a' |
| 190 | rw [gram_dot _ _ _ _ _ _ _ _ h hT,gram_dot _ _ _ _ _ _ _ _ h hT] |
| 191 | apply congr_arg |
| 192 | let U a i := bump T x V k (fresh x (shots S x) A F (tape a)) i |
| 193 | let U' a i := bump T x V' k' (fresh x (shots S x) A' F' (tape (Orthogonal.move (onBond O) e a))) i |
| 194 | rw [← Fintype.sum_prod_type (fun i : Slots S => inner ℝ (U a i) (U a' i)), ← Fintype.sum_prod_type (fun i : Slots S => inner ℝ (U' a i) (U' a' i))] |
| 195 | refine Eq.trans ?_ (Equiv.sum_comp u (fun i : Slots S => inner ℝ (U a i) (U a' i))) |
| 196 | unfold U U'; exact Finset.sum_congr rfl fun i _ => by rw [fresh_move b O e he,fresh_move b O e he,hp,hp]; exact (P i).inner_map_map .. |
| 197 | |
| 198 | lemma blame_motion (q : Chi) (d : ℝ) (Y : LinkArray G (Frozen A x F)) (Y' : LinkArray G (Frozen A' x F')) |
| 199 | (hE : ∀ i, (e' i).val.val=b i.val.val) |
| 200 | (hF : ∀ i, autoShell q d V' Y' i=O i.val.val (autoShell q d V Y (e' i))) |
| 201 | (hB : ∀ i, base T x V' k' i=P i (base T x V k (u i))) : |
| 202 | blame T x V' k' (shots S x) A' F' q d Y' = Orthogonal.move (onBond O) e (blame T x V k (shots S x) A F q d Y) := by |
| 203 | have H (a : Prices G (Active A' x F')) : a ⬝ᵥ blame T x V' k' (shots S x) A' F' q d Y' = a ⬝ᵥ Orthogonal.move (onBond O) e (blame T x V k (shots S x) A F q d Y) := by |
| 204 | obtain ⟨a,rfl⟩ := move_surj (onBond O) e a |
| 205 | rw [bias_dot A' F' x T V' k' q _ _ _ h hT,move_dot,bias_dot A F x T V k q _ _ _ h hT, |
| 206 | funext hF,frozen_move b O e' hE] |
| 207 | apply congr_arg |
| 208 | let U i := bump T x V k (fresh x (shots S x) A F (tape a)) i |
| 209 | let Q i := base T x V k i + bump T x V k (input x A F (autoShell q d V Y)) i |
| 210 | refine Eq.trans ?_ (Equiv.sum_comp u (fun i => inner ℝ (U i) (Q i))) |
| 211 | exact Finset.sum_congr rfl fun i _ => by rw [Pi.add_apply, fresh_move b O e he,hB,hp,hp,← (P i).map_add]; exact (P i).inner_map_map .. |
| 212 | funext i; simpa using H (Pi.single i 1) |
| 213 | |
| 214 | omit h hT he hp |
| 215 | lemma negative (O : ColorOrtho G α) (e : α ≃ β) (Q : Gaussian.Table (β×G.ColorIndex)) (a : Prices G β) : |
| 216 | -(warp O e Q).transpose *ᵥ Orthogonal.move O e a = Orthogonal.move O e (-Q.transpose *ᵥ a) := by |
| 217 | rw [neg_mulVec,warp,transpose_dressed,transpose_submatrix,show dressed (asMatrix O) _ = _ from rfl, ← warp, warp_mv, neg_mulVec]; symm; exact Matrix.mulVec_neg .. |
| 218 | |
| 219 | structure Means (q : Chi) (d : ℝ) (O : ColorOrtho G (Active A' x F')) (Y : LinkArray G (Frozen A x F)) (Y' : LinkArray G (Frozen A' x F')) : Prop where |
| 220 | bias : blame T x V' k' (shots S x) A' F' q d Y' = Orthogonal.move O e (blame T x V k (shots S x) A F q d Y) |
| 221 | ends : meanLog A' F' T x V' k' q d Y'=Orthogonal.move O e (meanLog A F T x V k q d Y) |
| 222 | mids : middleLog A' F' x T V' k' q d Y'=Orthogonal.move O e (middleLog A F x T V k q d Y) |
| 223 | |
| 224 | lemma means (q : Chi) (d : ℝ) (O : ColorOrtho G (Active A' x F')) (Y : LinkArray G (Frozen A x F)) (Y' : LinkArray G (Frozen A' x F')) |
| 225 | (h : Equivalent T V V' k k' e O) |
| 226 | (he : blame T x V' k' (shots S x) A' F' q d Y' = Orthogonal.move O e (blame T x V k (shots S x) A F q d Y)) : Means (T:=T) (V:=V) (V':=V') (k:=k) (k':=k') e q d O Y Y' := |
| 227 | ⟨he,by unfold meanLog; rw [h.ends,he,negative],by unfold middleLog; rw [h.mids,he,negative]⟩ |
| 228 | end step |
| 229 | end YM.AnalyticBridge.GaussianFieldAlignment.Tensor |