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.CONNECTED_ACTIVITY_JETS_E6.Assignment |
| 2 | |
| 3 | /-! |
| 4 | # Completed Gram matrix on a sector |
| 5 | |
| 6 | Here and later, no choosing another orientation of tag labels independently |
| 7 | when assembling the quadratic reference. Use all roots, coloring explicit, |
| 8 | in counting units. Identity at other positions/dummy; no Gaussian normalization |
| 9 | averaging over k/F within a matrix. All finite sizes including `Hot` empty. |
| 10 | `D` variation, not full curved-row tangent; `surcharge` subtracted accordingly. |
| 11 | No β factors yet (root charts: `a = mu+g*w` will convert this). |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.ConnectedActivityE6 |
| 16 | open Filter Function Lattice RG Pressure Pressure.Stores Pressure.Tube Tree Wilson Finset MeasureTheory |
| 17 | open Matrix Push Push.AbsoluteSums Precision Exterior Shell Channel Next.Fluctuations SectorMeasure Oriented Work.E03 |
| 18 | open Bloch Laurent SliceRows Tags |
| 19 | open scoped Topology InnerProductSpace Matrix.Norms.Frobenius ContDiff BigOperators Classical |
| 20 | variable {G : Gauge} {P : Teller G} {c f : Side} {S : StepData c f} {T : Tube G S} {F : Forest S.ratio} |
| 21 | variable {ι κ : Type*} |
| 22 | |
| 23 | /-- standard physical counting chart -/ |
| 24 | def stand (x : ι → G.Color) (p : ι × G.ColorIndex) : ℝ := x p.1 p.2 |
| 25 | |
| 26 | def erect (G : Gauge) (x : ι × G.ColorIndex → ℝ) (p : ι) : G.Color := WithLp.toLp 2 (fun i => x (p,i)) |
| 27 | |
| 28 | lemma rises (x : ι → G.Color) : erect G (stand x)=x := rfl |
| 29 | |
| 30 | section |
| 31 | variable (x : ι → G.Color) (e : ι × G.ColorIndex) |
| 32 | |
| 33 | def dot (G : Gauge) (i : G.ColorIndex) := EuclideanSpace.basisFun (𝕜 := ℝ) G.ColorIndex i |
| 34 | |
| 35 | def sing [DecidableEq ι] : ι → G.Color := Pi.single e.1 (dot G e.2) |
| 36 | lemma singled [DecidableEq ι] : stand (sing e)=Pi.single e 1 := by |
| 37 | rcases e with ⟨i,j⟩; funext p |
| 38 | rcases p with ⟨q,r⟩; dsimp only [stand,sing] |
| 39 | by_cases h : q=i |
| 40 | · subst q |
| 41 | by_cases he : r=j |
| 42 | · subst r; simp [dot] |
| 43 | simp [he,dot,EuclideanSpace.basisFun_apply] |
| 44 | have he : (q,r) ≠ (i,j) := by simp [h] |
| 45 | rw [Pi.single_eq_of_ne h,Pi.single_eq_of_ne he]; rfl |
| 46 | lemma stand_spanned [Fintype ι] [DecidableEq ι] : (∑ i : ι × G.ColorIndex, stand x i • sing i)=x := by |
| 47 | ext1 i; ext1 j |
| 48 | let L : (ι → G.Color) →ₗ[ℝ] ℝ := (LinearMap.comp (LinearMap.proj j) |
| 49 | (WithLp.linearEquiv 2 ℝ _).toLinearMap : G.Color →ₗ[ℝ] ℝ).comp (LinearMap.proj i) |
| 50 | change L (∑ i : ι × G.ColorIndex, stand x i • sing i) = (x i) j |
| 51 | rw [map_sum]; simp_rw [map_smul] |
| 52 | have he (p : ι × G.ColorIndex) : L (sing p)=(Pi.single p 1 : _ → ℝ) (i,j) := congr_fun (singled p) (i,j) |
| 53 | simp_rw [he]; rw [Finset.sum_eq_single (i,j)] |
| 54 | · rw [Pi.single_eq_same, smul_eq_mul,mul_one]; rfl |
| 55 | · intro p _ hp; rw [Pi.single_eq_of_ne hp.symm,smul_zero] |
| 56 | simp |
| 57 | |
| 58 | lemma stand_squared [Fintype ι] : (∑ i, ‖x i‖^2)=dotProduct (stand x) (stand x) := by |
| 59 | simp_rw [EuclideanSpace.real_norm_sq_eq, dotProduct, Fintype.sum_prod_type, pow_two]; rfl |
| 60 | lemma stand_cap (i : G.ColorIndex) (x : G.Color) : |x i| ≤ ‖x‖ := by |
| 61 | apply le_of_sq_le_sq _ (norm_nonneg _); rw [sq_abs,EuclideanSpace.real_norm_sq_eq] |
| 62 | exact Finset.single_le_sum (fun j _ => sq_nonneg _) (mem_univ _) |
| 63 | end |
| 64 | |
| 65 | namespace Coat |
| 66 | variable (X : Coat T F) |
| 67 | abbrev Mention (c f : Side) := Signed × Rod c f |
| 68 | abbrev Target (c f : Side) (G : Gauge) := Mention c f × G.ColorIndex |
| 69 | abbrev Tubular (f : Side) (G : Gauge) := Bond f × G.ColorIndex |
| 70 | |
| 71 | def root (S : StepData c f) (p : Mention c f) := p.1.act (focus S p.2) |
| 72 | |
| 73 | def scale := Real.sqrt ((Fintype.card Signed:ℝ)⁻¹) |
| 74 | lemma scale_pos : 0 < scale := by have : 0 < Fintype.card Signed := Fintype.card_pos; unfold scale; positivity |
| 75 | |
| 76 | def motion (x : Directions G f) (p : Mention c f) : G.Color := |
| 77 | if X.selected p.1 (spot S p.2) then orientedRow T X.R p.1 p.2 X.V (X.lens x) else 0 |
| 78 | |
| 79 | def priced (x : Directions G f) (p : Mention c f) : G.Color := |
| 80 | if X.selected p.1 (spot S p.2) then scale • X.realPath p.1 p.2 x else 0 |
| 81 | |
| 82 | def form : Matrix (Target c f G) (Tubular f G) ℝ := Matrix.of (fun i j => scale * stand (X.motion (sing j)) i) |
| 83 | |
| 84 | def sleepy : Matrix (Tubular f G) (Tubular f G) ℝ := diagonal fun i => if X.Hot i.1 then 0 else 1 |
| 85 | |
| 86 | def plate := X.form.transpose * X.form + X.sleepy |
| 87 | |
| 88 | def linearBill := X.form.transpose *ᵥ stand (X.priced 0) |
| 89 | |
| 90 | lemma motion_lin {C Ω Λ q} (h : T.up.Bounds q Ω C Λ) (p : Mention c f) : ∃ L : Directions G f →ₗ[ℝ] G.Color, |
| 91 | ∀ x, X.motion x p=L x := by |
| 92 | by_cases he : X.selected p.1 (spot S p.2) |
| 93 | swap; · exact ⟨0,fun _ => by simp [motion,he]⟩ |
| 94 | obtain ⟨L,hL⟩ := SliceRows.linear T X.R h p.1 p.2 X.V |
| 95 | let B : Directions G f →ₗ[ℝ] Directions G f := |
| 96 | { toFun := X.lens |
| 97 | map_add' := fun x y => by funext i; by_cases hh : X.Hot i <;> simp [lens,hh] |
| 98 | map_smul' := fun a i => by funext x; by_cases H : X.Hot x <;> simp [lens,H] } |
| 99 | exact ⟨L.toLinearMap.comp B,fun _ => (if_pos he).trans (hL _).symm⟩ |
| 100 | |
| 101 | lemma charged_for {C Ω Λ q} (h : T.up.Bounds q Ω C Λ) (x : Directions G f) (p : Target c f G) : |
| 102 | scale * stand (X.motion x) p = (X.form *ᵥ stand x) p := by |
| 103 | obtain ⟨L,hL⟩ := X.motion_lin h p.1 |
| 104 | let Z : Directions G f →ₗ[ℝ] ℝ := (LinearMap.comp (LinearMap.proj p.2) (WithLp.linearEquiv 2 ℝ _).toLinearMap : G.Color →ₗ[ℝ] ℝ).comp L |
| 105 | have hZ (i : Directions G f) : Z i=stand (X.motion i) p := by unfold stand; rw [hL]; rfl |
| 106 | have he (i : Directions G f) : Z (∑ j : Tubular f G, stand i j • sing j)=Z i := congr_arg Z (stand_spanned i) |
| 107 | rw [← hZ,← he,map_sum,Finset.mul_sum]; simp_rw [map_smul,hZ] |
| 108 | exact Finset.sum_congr rfl fun j _ => by rw [smul_eq_mul,mul_comm (stand _ _),←mul_assoc]; rfl |
| 109 | |
| 110 | lemma lens_zero : X.lens 0=0 := by funext i; by_cases he : X.Hot i <;> simp [lens,he] |
| 111 | lemma pricing {C Ω Λ q} (h : T.up.Bounds q Ω C Λ) (x : Directions G f) : |
| 112 | stand (X.priced x)=stand (X.priced 0)+ X.form *ᵥ stand x := by |
| 113 | funext p |
| 114 | let i := p.1 |
| 115 | obtain ⟨L,hL⟩ := SliceRows.linear T X.R h p.1.1 p.1.2 X.V |
| 116 | rw [Pi.add_apply, ← X.charged_for h x]; simp only [priced,stand,motion] |
| 117 | split |
| 118 | next he => |
| 119 | unfold realPath signal; rw [lens_zero,add_zero,← hL,← hL,← hL,map_add,← add_assoc,smul_add] |
| 120 | rfl |
| 121 | next he => change (0:ℝ) = 0+scale*0; ring |
| 122 | |
| 123 | lemma in_count (x : Directions G f) : X.liftSq x = dotProduct (stand (X.priced x)) (stand (X.priced x))/2 := by |
| 124 | rw [← stand_squared, Fintype.sum_prod_type] |
| 125 | unfold liftSq Oriented.averaged extracted; simp_rw [spots_sum S,Finset.mul_sum]; simp_rw [Finset.sum_div] |
| 126 | refine Finset.sum_congr rfl fun i _ => Finset.sum_congr rfl fun j _ => ?_ |
| 127 | unfold surcharge priced; dsimp only; split |
| 128 | next he => rw [norm_smul, mul_pow,Real.norm_eq_abs, sq_abs,scale,Real.sq_sqrt (by positivity)]; ring |
| 129 | next he => simp |
| 130 | |
| 131 | lemma balance {q Ω C Λ} (h : T.up.Bounds q Ω C Λ) (x u : Directions G f) : |
| 132 | X.liftSq (x+u) - X.liftSq x = dotProduct (stand u) (X.linearBill+ (X.form.transpose*X.form) *ᵥ stand x)+ |
| 133 | dotProduct (stand u) ((X.form.transpose*X.form) *ᵥ stand u)/2 := by |
| 134 | let b := stand (X.priced 0) |
| 135 | rw [X.in_count, X.in_count, X.pricing h (x+u), X.pricing h x, show stand (x+u)=stand x+stand u from rfl] |
| 136 | unfold linearBill |
| 137 | let M := X.form |
| 138 | have he (v w) : dotProduct v (X.form.transpose *ᵥ w)=dotProduct (X.form *ᵥ v) w := |
| 139 | (Matrix.dotProduct_mulVec ..).trans <| congr_arg (dotProduct · w) (Matrix.vecMul_transpose ..) |
| 140 | simp only [← Matrix.mulVec_mulVec, Matrix.mulVec_add, dotProduct_add, add_dotProduct, he] |
| 141 | rw [dotProduct_comm (X.form *ᵥ stand u) b, dotProduct_comm (X.form *ᵥ stand u) (X.form *ᵥ stand x)] |
| 142 | unfold b; ring |
| 143 | |
| 144 | lemma cold (p : Tubular f G) (hp : ¬ X.Hot p.1) {q Ω C Λ} (h : T.up.Bounds q Ω C Λ) (i : Target c f G) : X.form i p=0 := by |
| 145 | have he : X.lens (sing p)=0 := by |
| 146 | funext j; unfold sing lens; split |
| 147 | next hh => |
| 148 | rw [Pi.single_eq_of_ne]; rfl |
| 149 | intro hc; apply hp; rwa [hc] at hh |
| 150 | rfl |
| 151 | unfold form; rw [of_apply] |
| 152 | unfold stand motion; split |
| 153 | next hg => |
| 154 | obtain ⟨L,hL⟩ := SliceRows.linear T X.R h i.1.1 i.1.2 X.V |
| 155 | rw [he,← hL,map_zero]; change scale*(0:ℝ)=0; ring |
| 156 | next hg => change scale*(0:ℝ)=0; ring |
| 157 | |
| 158 | lemma asleep (p : Tubular f G) (hp : ¬ X.Hot p.1) {q Ω C Λ} (h : T.up.Bounds q Ω C Λ) (i : Tubular f G) : X.plate p i=(1:Matrix ..) p i := by |
| 159 | rw [plate,Matrix.add_apply,Matrix.mul_apply] |
| 160 | have hh := fun j => X.cold p hp h j |
| 161 | simp only [Matrix.transpose_apply,hh,zero_mul,Finset.sum_const_zero,zero_add] |
| 162 | by_cases he : p=i |
| 163 | · subst i; simp [sleepy,hp] |
| 164 | simp [sleepy,he] |
| 165 | |
| 166 | lemma balanced : X.plate.IsHermitian := by |
| 167 | ext i j |
| 168 | simp_rw [plate,conjTranspose_add,conjTranspose_mul] |
| 169 | rw [show X.formᴴ=X.form.transpose from by ext; simp,show X.form.transposeᴴ=X.form from by ext; simp]; simp [sleepy] |
| 170 | |
| 171 | lemma toned : X.plate.transpose=X.plate := by |
| 172 | rw [← show X.plateᴴ=X.plate.transpose from by ext; simp]; exact X.balanced |
| 173 | end Coat |
| 174 | end YM.ConnectedActivityE6 |