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.Pert.Position.Board |
| 2 | import YM.Pert.Position.Actual |
| 3 | import Mathlib.LinearAlgebra.Dimension.StrongRankCondition |
| 4 | /-! Finite-position-scheme existence from pointwise leading-orbit rigidity. -/ |
| 5 | noncomputable section |
| 6 | set_option autoImplicit false |
| 7 | set_option maxHeartbeats 200000 |
| 8 | set_option synthInstance.maxHeartbeats 60000 |
| 9 | set_option linter.unusedSectionVars false |
| 10 | open scoped Topology Classical |
| 11 | namespace YM.Pert.Position |
| 12 | open Set Function Filter Maxwell Labels MeasureTheory Topology Ward |
| 13 | variable {G : Gauge} |
| 14 | variable (F : Frames G) (d : ℕ) |
| 15 | variable {r : ℕ} |
| 16 | local notation "P" => (fun _ : Fin r => E F d) |
| 17 | |
| 18 | abbrev visible (x : Points r) : MultilinearMap ℂ P ℂ := (freeTable F).classMoment (freeTable F) (fun _=> d) x |
| 19 | lemma visible_cont (p : Fin r→E F d) : ContinuousOn (fun x=>visible F d x p) (conf r) := |
| 20 | ((freeTable F).class_smooth _ (Maxwell.table_smooth _) (fun j=> (⟨d,p j⟩ : (freeTable F).Tag))).continuousOn |
| 21 | |
| 22 | section test |
| 23 | variable (f : Test r) |
| 24 | def wickReading : MultilinearMap ℂ P ℂ where |
| 25 | toFun p := f.applyTo (fun x=> visible F d x p) |
| 26 | map_update_add' p i v w := by |
| 27 | simp_rw [Test.applyTo,MultilinearMap.map_update_add,mul_add] |
| 28 | exact integral_add (f.smearing (visible_cont F d _)) (f.smearing (visible_cont F d _)) |
| 29 | map_update_smul' p i c v := by |
| 30 | simp_rw [Test.applyTo,MultilinearMap.map_update_smul, show ∀ x y : ℂ, x*(c • y)= c • (x*y) from fun x y=>show x*(c*y)=_ from mul_left_comm x c y] |
| 31 | exact integral_smul .. -- test |
| 32 | |
| 33 | lemma baring_formula (p : Fin r→E F d) : |
| 34 | wickReading F d f p = ∑ z : Fin r→ChartIx F d, (∏ j, (baring F d).coord (z j) (p j)) * f.applyTo (fun x=> visible F d x (fun j=>baring F d (z j))) := by |
| 35 | conv_lhs => rw [← funext fun j => (baring F d).sum_equivFun (p j)] -- might elaborate? |
| 36 | rw [MultilinearMap.map_sum_finset, Fintype.piFinset_univ]; exact Finset.sum_congr rfl (fun v _ => MultilinearMap.map_smul_univ ..) |
| 37 | |
| 38 | private def sampleMap : ContinuousMultilinearMap ℂ P ℂ := |
| 39 | ⟨wickReading F d f, by |
| 40 | change Continuous (fun p=>wickReading F d f p) |
| 41 | simp_rw [baring_formula]; apply continuous_finset_sum |
| 42 | intro z _; apply Continuous.mul_const; apply continuous_finset_prod |
| 43 | exact fun j _ => (((baring F d).coord (z j) |>.toContinuousLinearMap).continuous.comp (continuous_apply j))⟩ |
| 44 | end test |
| 45 | structure Section where |
| 46 | r : ℕ |
| 47 | p : Fin r → E F d |
| 48 | f : Test r |
| 49 | |
| 50 | abbrev direction (q : Section F d) := ℝ × Buffer F d |
| 51 | -- differentiate a single continuous test |
| 52 | def current (q : Section F d) (B : Buffer F d) (x : Points q.r) := ∑ j : Fin q.r, (visible F d x) (Function.update q.p j (B.val (q.p j))) |
| 53 | def paths (p : Fin r→E F d) : Buffer F d →ₗ[ℝ] (Fin r→E F d) where |
| 54 | toFun b j := b.val (p j) |
| 55 | map_add' _ _ := rfl |
| 56 | map_smul' _ _ := rfl |
| 57 | |
| 58 | def feedback (q : Section F d) : Buffer F d →ₗ[ℝ] ℝ := Complex.reCLM.toLinearMap ∘ₗ ((sampleMap F d q.f).restrictScalars ℝ |>.linearDeriv q.p |>.toLinearMap) ∘ₗ paths F d q.p |
| 59 | |
| 60 | theorem feedback_eq (q : Section F d) (b : Buffer F d) : feedback F d q b = Complex.re (∑ j : Fin q.r, wickReading F d q.f (Function.update q.p j (b.val (q.p j)))) := by |
| 61 | dsimp only [feedback, LinearMap.comp_apply, ContinuousLinearMap.coe_coe] |
| 62 | change Complex.reCLM _ = _ |
| 63 | rw [ContinuousMultilinearMap.linearDeriv_apply]; apply congrArg Complex.re; apply Finset.sum_congr rfl; intro _ _; rfl |
| 64 | lemma current_read (q : Section F d) (b : Buffer F d) : feedback F d q b = Complex.re (q.f.applyTo (current F d q b)) := by |
| 65 | rw [feedback_eq]; apply congrArg Complex.re |
| 66 | unfold Test.applyTo current wickReading; simp only [MultilinearMap.coe_mk] |
| 67 | simp_rw [Finset.mul_sum, integral_finsetSum _ (fun j _=> q.f.smearing (visible_cont F d _))]; rfl -- avoid unfold smearing targets |
| 68 | |
| 69 | private lemma feedback_deriv (q : Section F d) (b : Buffer F d) : |
| 70 | HasDerivAt (fun t : ℝ=> Complex.re (wickReading F d q.f (fun j=> motor F (t•b) (q.p j)))) (feedback F d q b) 0 := by |
| 71 | let A := (sampleMap F d q.f).restrictScalars ℝ |
| 72 | let y (t : ℝ) : Fin q.r → E F d := q.p + t • (paths F d q.p b) |
| 73 | have hy : HasDerivAt y (paths F d q.p b) 0 := by |
| 74 | unfold y; apply HasDerivAt.const_add; convert! (hasDerivAt_id (0:ℝ)).smul_const (paths F d q.p b) using 1; simp |
| 75 | have hh : HasFDerivAt A (A.linearDeriv q.p) (y 0) := by rw [show y 0=q.p by simp [y]]; exact A.hasFDerivAt _ |
| 76 | have he := Complex.reCLM.hasFDerivAt.comp_hasDerivAt 0 (hh.comp_hasDerivAt 0 hy) |
| 77 | exact he |
| 78 | |
| 79 | variable {k : ℕ} (s : Fin k → Section F d) (m : ℕ) (g : (Fin k → ℝ) →ₗ[ℝ] (Fin m→ℝ)) |
| 80 | def assemble : Conditions F d m := ⟨k,fun i=>(s i).r,fun i=>(s i).p,fun i=>(s i).f,g⟩ |
| 81 | |
| 82 | lemma chart_deriv_formula (b : Buffer F d) : |
| 83 | fderiv ℝ (chart (assemble F d s m g)) (white (assemble F d s m g),0) (0,b) = g (fun i=> feedback F d (s i) b) := by |
| 84 | let Q := assemble F d s m g |
| 85 | change fderiv ℝ (chart Q) (white Q,0) (0,b)=_ |
| 86 | let Z := fun t:ℝ=> (white Q,t•b) |
| 87 | have hZ : HasDerivAt Z (0,b) 0 := by |
| 88 | unfold Z; convert! (hasDerivAt_const (0:ℝ) (white Q) |>.prodMk ((hasDerivAt_id (0:ℝ)).smul_const b)) using 1;simp |
| 89 | have he i (q : Buffer F d) : decode Q (white Q) (fun j=> motor F q (Q.columns i j)) = wickReading F d (s i).f (fun j=> motor F q ((s i).p j)) := by rw [baring_formula]; rfl |
| 90 | have hf : chart Q ∘ Z = (g.toContinuousLinearMap ∘ fun t=> fun i : Fin k=> Complex.re (wickReading F d (s i).f (fun j=>motor F (t•b) ((s i).p j)))) := funext (fun t=> by unfold chart;dsimp [Z];apply congrArg g; apply funext; intro i; rw [he]) |
| 91 | have hw := g.toContinuousLinearMap.hasFDerivAt.comp_hasDerivAt 0 (hasDerivAt_pi.mpr fun i=>feedback_deriv F d (s i) b) |
| 92 | have hz := ((chart_diff Q).differentiable (by simp) (Z 0)).hasFDerivAt.comp_hasDerivAt 0 hZ |
| 93 | rw [hf] at hz; change _ = g.toContinuousLinearMap _; rw [← hw.deriv, hz.deriv, show Z 0=(white Q,0) by unfold Z; simp] |
| 94 | |
| 95 | -- From scalar real readings to the tested complex identity. |
| 96 | def twistSec (q : Section F d) : Section F d := ⟨q.r,q.p,Complex.I • q.f⟩ |
| 97 | lemma feedback_twist (q : Section F d) (b : Buffer F d) : feedback F d (twistSec F d q) b = -(q.f.applyTo (current F d q b)).im := by |
| 98 | rw [current_read]; unfold twistSec -- include r mismatch |
| 99 | change Complex.re (∫ x : Points q.r, (Complex.I • q.f x) * current F d q b x)= _ |
| 100 | simp_rw [smul_eq_mul,mul_assoc,integral_const_mul]; simp [Test.applyTo, Complex.mul_re] |
| 101 | |
| 102 | def Frozen : Prop := ∀ b : Buffer F d, (∀ (r : ℕ) (p : Fin r→E F d) (x : Points r), x∈conf r → ∑ j : Fin r, visible F d x (Function.update p j (b.val (p j))) = 0) → b=0 |
| 103 | lemma detected (h : Frozen F d) (b : Buffer F d) (hc : ∀ q : Section F d, feedback F d q b=0) : b=0 := h b (fun r p x hx=> by |
| 104 | let K (x) := ∑ j : Fin r, visible F d x (Function.update p j (b.val (p j))) |
| 105 | have hk : ContinuousOn K (conf r) := continuousOn_finset_sum _ (fun _ _=>visible_cont F d _) |
| 106 | have he (f : Test r) : f.applyTo K=0 := by |
| 107 | let q : Section F d := ⟨r,p,f⟩ |
| 108 | have ht := feedback_twist F d q b; have hu := current_read F d q b; rw [hc] at ht hu |
| 109 | apply Complex.ext |
| 110 | · exact Eq.symm hu |
| 111 | change (q.f.applyTo (current F d q b)).im=0; exact neg_eq_zero.mp ht.symm |
| 112 | exact ((Test.weak_null hk).1 he hx)) |
| 113 | |
| 114 | local notation "W" => Buffer F d |
| 115 | lemma finite_detectors (hf : Frozen F d) : ∃ (k : ℕ) (s : Fin k→Section F d), (LinearMap.pi (fun i=> feedback F d (s i))).ker = ⊥ := by |
| 116 | let K := feedback F d |
| 117 | obtain ⟨s,hs,he,_⟩ := Submodule.exists_fun_fin_finrank_span_eq ℝ (Set.range K) |
| 118 | choose t ht using hs |
| 119 | have hg i : K (t i)=s i := ht i |
| 120 | refine ⟨_,t, le_antisymm (fun b hb=> ?_) bot_le⟩ |
| 121 | have hx (q) (hq : q∈Submodule.span ℝ (Set.range K)) : q b=0 := by |
| 122 | rw [←he] at hq |
| 123 | -- use annihilation of span |
| 124 | induction hq using Submodule.span_induction with |
| 125 | | mem v hv => obtain ⟨i,rfl⟩ := hv; rw [←hg i]; exact congrFun (LinearMap.mem_ker.1 hb) i |
| 126 | | zero => exact rfl |
| 127 | | add v z _ _ h g => exact congr_arg₂ (·+·) h g |>.trans (add_zero _) |
| 128 | | smul r v _ h => exact congrArg (r • ·) h |>.trans (smul_zero r) |
| 129 | exact (detected F d hf b fun q=> hx _ (Submodule.subset_span ⟨q,rfl⟩)) ▸ Submodule.zero_mem _ |
| 130 | |
| 131 | lemma square_of_frozen (h : Frozen F d) : ∃ (k : ℕ) (s : Fin k→Section F d) (m : ℕ) (g : (Fin k→ℝ) →ₗ[ℝ] (Fin m→ℝ)), square (assemble F d s m g) ∧ (∀ i, ∃ k : Test ((s i).r), (⇑k : _→ℂ)= (⇑(s i).f : _→ℂ)) := by |
| 132 | obtain ⟨k,s,h⟩ := finite_detectors F d h |
| 133 | let f₁ : W →ₗ[ℝ] (Fin k → ℝ) := LinearMap.pi (fun i => feedback F d (s i)) |
| 134 | have hk : f₁.ker=⊥ := h |
| 135 | obtain ⟨g',hg⟩ := LinearMap.exists_leftInverse_of_injective (K:=ℝ) (V:=W) (V':=Fin k→ℝ) f₁ hk |
| 136 | letI freeW : Module.Free ℝ W := @Module.Free.of_divisionRing ℝ (Buffer F d) _ _ _ |
| 137 | let B := Module.finBasis ℝ W |
| 138 | let e : W ≃ₗ[ℝ] (Fin (Module.finrank ℝ W) → ℝ) := B.equivFun |
| 139 | let H : W ≃L[ℝ] (Fin (Module.finrank ℝ W) → ℝ) := LinearEquiv.toContinuousLinearEquiv (𝕜:=ℝ) (E:=W) (F:=Fin _ → ℝ) e |
| 140 | let g := H.toLinearMap ∘ₗ g' |
| 141 | let Q := assemble F d s _ g |
| 142 | have hs : square Q := by |
| 143 | refine ⟨H, ?_⟩; ext1 b |
| 144 | change H b = fderiv ℝ (chart Q) (white Q,0) (0,b) |
| 145 | rw [chart_deriv_formula]; change H b = H (_) |
| 146 | exact congrArg H (congrArg (fun (a : W→ₗ[ℝ] W)=>a b) hg).symm |
| 147 | exact ⟨k,s,_,g,hs,fun i=> ⟨(s i).f,rfl⟩⟩ |
| 148 | end YM.Pert.Position |