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.MAXWELL.Caps |
| 2 | import YM.Next.MAXWELL.Mark |
| 3 | import YM.Next.MAXWELL.Stress |
| 4 | import YM.Work.B08 |
| 5 | import YM.Work.B10 |
| 6 | import YM.Work.D06 |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | /-! |
| 13 | # RPort0: hierarchy, ranks and derivatives |
| 14 | |
| 15 | On an arbitrary frame register; no film inputs from the Wilson (nonabelian) |
| 16 | problem. Faithful on the specific continuum free Comparator. Also build |
| 17 | the eventual *same* Rotation and normalized J labels now (normalizing |
| 18 | parameter τ will include both signs). |
| 19 | -/ |
| 20 | set_option autoImplicit false |
| 21 | noncomputable section |
| 22 | namespace YM.Maxwell.Free |
| 23 | open Set Function Filter Tensor Analysis MeasureTheory Wick |
| 24 | open scoped ContDiff Topology BigOperators InnerProductSpace ComplexOrder |
| 25 | variable {G : Gauge} (F : Labels.Frames G) {d n : ℕ} |
| 26 | |
| 27 | abbrev Model := freeTable F |
| 28 | |
| 29 | lemma target_labels (d : ℕ) : (Model F).null d=LinearMap.ker (snap F d) := by |
| 30 | ext q |
| 31 | rw [← projectionExact F,no_residual, Submodule.mem_bot]; rfl |
| 32 | |
| 33 | def fields (d : ℕ) : (Model F).Field d ≃ₗ[ℂ] ↥(shellSector G d) := |
| 34 | (Submodule.quotEquivOfEq _ _ (target_labels F d)).trans <| |
| 35 | (snap F d).quotKerEquivOfSurjective (full F d) |
| 36 | |
| 37 | lemma fields_eval (v : (standard F).Ref d) : fields F d ((Model F).project d v) = snap F d v := rfl |
| 38 | |
| 39 | def address (d : ℕ) := (shellSector G d).subtype.comp (fields F d).toLinearMap |
| 40 | |
| 41 | lemma address_eval (d) (v : (Model F).Field d) : address F d v = (fields F d v).val := rfl |
| 42 | lemma address_in (d) (v : (Model F).Field d) : address F d v ∈ shellSector G d := (fields F d v).property |
| 43 | |
| 44 | lemma address_inj (d) : Injective (address F d) := Subtype.val_injective.comp (fields F d).injective |
| 45 | |
| 46 | def supply (x : (Model F).Tag) := address F x.1 x.2 |
| 47 | |
| 48 | lemma display (p : Fin n → (Model F).Tag) {x : Points n} : (Model F).useAt (Model F) x p = moment G x (supply F ∘ p) := by |
| 49 | change moment G x _ = _; congr 1; ext1 i |
| 50 | change (snap F _ ((Model F).representative _ ((p i).2))).val = (fields F (p i).1 (p i).2).val |
| 51 | rw [← fields_eval, Table.rep] |
| 52 | |
| 53 | lemma address_star {H : (Model F).RealSpin} {d : ℕ} (p : (Model F).Field d) : |
| 54 | address F d ((Model F).conj H d p) = realForm (address F d p) := by |
| 55 | obtain ⟨v,rfl⟩ := (Model F).onto d p |
| 56 | rw [Table.conj_project, address_eval,address_eval,fields_eval,fields_eval] |
| 57 | exact ready_bar F (⟨d,v⟩ : (standard F).Token) |
| 58 | |
| 59 | lemma address_motion {H : (Model F).RealSpin} (s : Signed) {d : ℕ} (p : (Model F).Field d) : |
| 60 | address F d ((Model F).mirror H d s p) = reflectPol s.ortho (address F d p) := by |
| 61 | obtain ⟨v,rfl⟩ := (Model F).onto d p |
| 62 | rw [Table.mirror_project, address_eval,address_eval,fields_eval,fields_eval] |
| 63 | exact ready_signed F s (⟨d,v⟩ : (standard F).Token) |
| 64 | |
| 65 | lemma unit_address (d : ℕ) : address F d ((Model F).unit d)=1 := by |
| 66 | rw [Table.unit,address_eval,fields_eval] |
| 67 | change observable G d ((F.level _).coords.symm ((standard F).scalar _)) = _ |
| 68 | rw [show (standard F).scalar d = (F.level d).coords (Labels.unit G d) by |
| 69 | simp [standard, Register.scalar, Register.coord]; exact one_smul _ _, |
| 70 | (F.level d).coords.symm_apply_apply]; exact map_one reduceEq |
| 71 | |
| 72 | def slide {d l : ℕ} (D : Engine G l) (h : ∀ p ∈ shellSector G d, rewired D p ∈ shellSector G (d+l)) : |
| 73 | (Model F).Field d →ₗ[ℂ] (Model F).Field (d+l) := (fields F _).symm.toLinearMap.comp <| |
| 74 | (((rewired D).toLinearMap.comp (address F d)).codRestrict _ fun p => h _ (address_in F d p)) |
| 75 | |
| 76 | lemma moving {d l} (D : Engine G l) (h) (x : (Model F).Field d) : address F _ (slide F D h x) = rewired D (address F d x) := by |
| 77 | rw [address_eval] |
| 78 | unfold slide; simp only [LinearMap.comp_apply, LinearEquiv.coe_coe, LinearEquiv.apply_symm_apply]; rfl |
| 79 | |
| 80 | def scheme : DiffPlan (Model F) where |
| 81 | rise {d e} h := (fields F e).symm.toLinearMap.comp |
| 82 | ((Submodule.inclusion (chain h)).comp (fields F d).toLinearMap) |
| 83 | deriv _ a := slide F (glide G (basis a)) fun _ h => glide_holds _ h |
| 84 | |
| 85 | lemma address_rise (e) (h : d≤e) (p : (Model F).Field d) : |
| 86 | address F _ ((scheme F).rise h p)=address F _ p := by |
| 87 | unfold scheme; rw [address_eval]; simp only [LinearMap.comp_apply,LinearEquiv.coe_coe,LinearEquiv.apply_symm_apply]; rfl |
| 88 | lemma address_derive (d) (a : Axis) (p : (Model F).Field d) : |
| 89 | address F _ ((scheme F).deriv d a p) = rewired (glide G (basis a)) (address F d p) := moving F _ (fun _ h => glide_holds _ h) _ |
| 90 | |
| 91 | lemma scheme_filters : (scheme F).Inclusions (Model F) where |
| 92 | kernels {d e} h p {n x} hx w := by |
| 93 | rw [display,display]; congr 1; ext1 i |
| 94 | exact Fin.cases (address_rise F _ h p) (fun _ => rfl) i |
| 95 | |
| 96 | lemma scheme_derives : (scheme F).Derivatives (Model F) where |
| 97 | kernels d a p {n x} hx w := by |
| 98 | simp_rw [display F]; rw [positionD _ hx 0 a] |
| 99 | congr 1; ext1 i; refine Fin.cases ?_ (fun j => ?_) i |
| 100 | · rw [update_self]; exact address_derive F d a p |
| 101 | rw [update_of_ne (Fin.succ_ne_zero _)]; rfl |
| 102 | |
| 103 | lemma phase_orientation : (scheme F).Orientation (spin_free F) := |
| 104 | Work.D06.compat (table_smooth F) (table_sym F) (spin_free F) _ (scheme_derives F) (scheme_filters F) |
| 105 | |
| 106 | theorem hierarchy : (Model F).Hierarchy where |
| 107 | laws := table_regular _ |
| 108 | spin := spin_free F |
| 109 | translations _ x _ s _ := moment_across x _ s |
| 110 | positive := positive_table F |
| 111 | smooth := table_smooth F |
| 112 | onTests := Work.B08.smear (table_regular F) (spin_free F) (table_smooth F) (positive_table F) |
| 113 | order := Work.B10.answer (Model F) (Model F) (scheme F) (fun _ => le_rfl) (table_smooth F) (table_regular F) |
| 114 | (scheme_filters F) (scheme_derives F) (fun _ d v => cap_moment (fun i => ready F (⟨d i,v i⟩ : (standard F).Token))) |
| 115 | |
| 116 | def scopeRise (d : ℕ) (s : Ortho.Skew) : Module.End ℂ ((Model F).Field d) := |
| 117 | slide F (l:=0) (wheel G s) fun _ hp => wheel_holds _ hp |
| 118 | |
| 119 | |
| 120 | |
| 121 | def tensorT (d : ℕ) (s : Ortho) : Module.End ℂ ((Model F).Field d) := (fields F d).symm.toLinearMap.comp |
| 122 | (((reflectPol s).toLinearMap.comp (address F d)).codRestrict (shellSector G d) (by |
| 123 | intro p |
| 124 | change reflectPol s (address F d p)∈shellSector G d |
| 125 | obtain ⟨q,hq⟩ := address_in F d p; exact ⟨Labels.tensor s q,(pulls_label ..).trans (by rw [hq])⟩)) |
| 126 | |
| 127 | lemma address_rot (d) (s : Ortho) (p : (Model F).Field d) : address F d (tensorT F d s p)=reflectPol s (address F d p) := by |
| 128 | simp only [tensorT,address_eval,LinearMap.comp_apply,LinearEquiv.coe_coe,LinearEquiv.apply_symm_apply]; rfl |
| 129 | |
| 130 | lemma wheels_linear (s t : Ortho.Skew) (p : WickPol G) : |
| 131 | rewired (wheel G (s+t)) p=rewired (wheel G s) p+rewired (wheel G t) p := by |
| 132 | suffices H : rewired (wheel G (s+t))=rewired (wheel G s)+rewired (wheel G t) from DFunLike.congr_fun H p |
| 133 | apply MvPolynomial.derivation_ext; intro i |
| 134 | simp_rw [← symbol_coordinate i]; |
| 135 | simp only [Derivation.add_apply,rewired_symbol,wheel,map_add,LinearMap.add_apply] |
| 136 | obtain ⟨L,hL⟩ := symbol_linear (G:=G) (i.1+0) |
| 137 | exact (by simp_rw [← hL]; exact map_add L _ _) |
| 138 | |
| 139 | lemma wheels_scalar (s : Ortho.Skew) (c : ℝ) (p : WickPol G) : |
| 140 | rewired (wheel G (c • s)) p=(c:ℂ) • rewired (wheel G s) p := by |
| 141 | suffices H : rewired (wheel G (c • s))=(c:ℂ) • rewired (wheel G s) from DFunLike.congr_fun H p |
| 142 | apply MvPolynomial.derivation_ext; intro i |
| 143 | rw [← symbol_coordinate i,Derivation.smul_apply] |
| 144 | simp only [rewired_symbol,wheel,map_smul,LinearMap.smul_apply] |
| 145 | obtain ⟨L,hL⟩ := symbol_linear (G:=G) (i.1+0) |
| 146 | simp_rw [← hL]; rw [map_smul] |
| 147 | exact RCLike.real_smul_eq_coe_smul (K:=ℂ) c _ |
| 148 | |
| 149 | lemma scopeRewrite (d) (s : Ortho.Skew) (x : (Model F).Field d) : |
| 150 | address F d (scopeRise F d s x)=rewired (wheel G s) (address F d x) := |
| 151 | moving F (wheel G s) (fun _ hp => wheel_holds _ hp) x |
| 152 | |
| 153 | def gear : Table.Rotation (Model F) where |
| 154 | act d s := LinearEquiv.ofLinear (tensorT F d s) (tensorT F d s⁻¹) |
| 155 | (by |
| 156 | apply LinearMap.ext; intro v; apply address_inj F d |
| 157 | simp only [LinearMap.comp_apply,address_rot]; rw [← pol_mul,mul_inv_cancel,pol_one]; rfl) |
| 158 | (by apply LinearMap.ext; intro v; apply address_inj F d |
| 159 | simp only [LinearMap.comp_apply,address_rot]; rw [← pol_mul,inv_mul_cancel,pol_one]; rfl) |
| 160 | lie d := |
| 161 | { toFun s := scopeRise F d s |
| 162 | map_add' s t := by |
| 163 | apply LinearMap.ext; intro v; apply address_inj F d |
| 164 | simp only [LinearMap.add_apply,map_add,scopeRewrite,wheels_linear] |
| 165 | map_smul' z s := by |
| 166 | apply LinearMap.ext; intro v; apply address_inj F d |
| 167 | change address F d (scopeRise F d (z • s) v)= address F d (z • (scopeRise F d s v)) |
| 168 | rw [show address F d (z • scopeRise F d s v) = (z:ℂ) • address F d (scopeRise F d s v) by |
| 169 | rw [RCLike.real_smul_eq_coe_smul (K:=ℂ) z (scopeRise F d s v),map_smul]; rfl] |
| 170 | rw [scopeRewrite, scopeRewrite,wheels_scalar] } |
| 171 | |
| 172 | def original (a b : Axis) := (fields F 4).symm ⟨polStress G a b,stress_label G a b⟩ |
| 173 | |
| 174 | lemma inertia (a b : Axis) : address F 4 (original F a b)=polStress G a b := by simp [original,address_eval] |
| 175 | |
| 176 | lemma realStress : Table.Conserved (scheme F) (spin_free F) (original F) where |
| 177 | symmetric a b := address_inj F _ (by simp only [inertia,stress_sym a b]) |
| 178 | real a b := address_inj F _ (by rw [address_star,inertia,pol_real]) |
| 179 | divergence b := address_inj F _ (by simp_rw [map_sum,address_derive,inertia]; rw [pol_conservation,map_zero]) |
| 180 | |
| 181 | |
| 182 | end YM.Maxwell.Free |