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.Push.FINITE_DETECTION.Centered |
| 2 | import YM.Work.G07.Stencil |
| 3 | |
| 4 | /-! Linear probe variables diagonalizing the actual reflected one-leg kernel, |
| 5 | and their relation to the radial-jet substitutions. -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.Push.FiniteDetection.Free |
| 9 | open Function Set Filter Maxwell Kelvin |
| 10 | open scoped Topology BigOperators ContDiff ComplexConjugate |
| 11 | variable {G : Gauge} {j l : ℕ} |
| 12 | |
| 13 | lemma frob_symm (Y Z : Shell G j) : asProbe Y Z = asProbe Z Y := by |
| 14 | change frob Y.val Z.val = frob Z.val Y.val |
| 15 | rw [frob_apply, frob_apply]; refine Finset.sum_congr rfl fun _ _ => Finset.sum_congr rfl fun _ _ => Finset.sum_congr rfl fun _ _ => |
| 16 | Finset.sum_congr rfl fun _ _ => mul_comm .. |
| 17 | |
| 18 | lemma frob_pos (Y : Shell G j) (h : Y ≠ 0) : 0 < asProbe Y Y := by |
| 19 | by_contra! hv |
| 20 | change frob Y.val Y.val ≤ 0 at hv |
| 21 | rw [frob_apply] at hv; simp_rw [← sq] at hv |
| 22 | have he := le_antisymm hv (by positivity) |
| 23 | rw [Finset.sum_eq_zero_iff_of_nonneg (by intros; positivity)] at he |
| 24 | apply h; apply Subtype.ext |
| 25 | funext i k; ext1 u; ext1 c |
| 26 | have he := he c (Finset.mem_univ _) |
| 27 | rw [Finset.sum_eq_zero_iff_of_nonneg (by intros; positivity)] at he; specialize he i (Finset.mem_univ _) |
| 28 | rw [Finset.sum_eq_zero_iff_of_nonneg (by intros; positivity)] at he; specialize he k (Finset.mem_univ _) |
| 29 | rw [Finset.sum_eq_zero_iff_of_nonneg (by intros; positivity)] at he |
| 30 | change (Y.val i k u) c = 0 |
| 31 | rw [show u = fun a : Fin j => ∑ q : Axis, u a q • basis q from funext fun a => (space_expand _).symm, |
| 32 | ContinuousMultilinearMap.map_sum] |
| 33 | change EuclideanSpace.proj (𝕜 := ℝ) c _ = 0 |
| 34 | rw [map_sum] |
| 35 | apply Finset.sum_eq_zero; intro r _ |
| 36 | have hv : (Y.val i k (basis ∘ r)) c = 0 := sq_eq_zero_iff.mp (he r (Finset.mem_univ _)) |
| 37 | change (Y.val i k (fun a => _ • (basis ∘ r) a)) c = _ |
| 38 | rw [(Y.val i k).map_smul_univ]; simp [hv] |
| 39 | |
| 40 | def pairingShell : LinearMap.BilinForm ℝ (Shell G j) where |
| 41 | toFun := asProbe |
| 42 | map_add' Y Z := by ext1 X; change frob _ _ = frob _ _ + frob _ _; simp [frob_apply, add_mul, Finset.sum_add_distrib] |
| 43 | map_smul' c Y := by ext1 X; change frob _ _ = c * frob _ _; simp [frob_apply, mul_assoc, Finset.mul_sum] |
| 44 | |
| 45 | lemma fullPair : Bijective (pairingShell (G := G) (j := j)) := by |
| 46 | let L := pairingShell (G := G) (j := j) |
| 47 | change Bijective L |
| 48 | have hi : Injective L := fun x y h => by |
| 49 | by_contra hxy |
| 50 | have he : L (x-y) = 0 := by rw [map_sub,h,sub_self] |
| 51 | exact (frob_pos _ (sub_ne_zero.mpr hxy)).ne' (LinearMap.congr_fun he (x-y)) |
| 52 | refine ⟨hi,LinearMap.range_eq_top.mp (Submodule.eq_top_of_finrank_eq ?_)⟩ |
| 53 | exact (LinearMap.finrank_range_of_inj hi).trans (Subspace.dual_finrank_eq ..).symm |
| 54 | |
| 55 | lemma orthShell (G : Gauge) (j : ℕ) : ∃ Y : Module.Basis (Fin (legDim G j)) ℝ (Shell G j), |
| 56 | LinearMap.IsOrthoᵢ pairingShell Y := LinearMap.BilinForm.exists_orthogonal_basis ⟨frob_symm⟩ |
| 57 | |
| 58 | def picked (t : Slot G) := (orthShell G t.1).choose t.2 |
| 59 | def lengthSq (t : Slot G) := gain t.1 * asProbe (picked t) (picked t) |
| 60 | lemma lengthSq_pos (t : Slot G) : 0 < lengthSq t := |
| 61 | mul_pos gain_pos (frob_pos _ ((orthShell G t.1).choose.ne_zero t.2)) |
| 62 | |
| 63 | lemma picked_matrix (a b : Slot G) : pairCol (picked a) (picked b) = if a=b then lengthSq a else 0 := by |
| 64 | rcases a with ⟨i,a⟩; rcases b with ⟨j,b⟩ |
| 65 | rcases eq_or_ne i j with he|he |
| 66 | · subst j |
| 67 | rw [pairCol_diag] |
| 68 | split_ifs with hab |
| 69 | · have h : a=b := Sigma.mk.inj_iff.mp hab |>.2 |> eq_of_heq; subst a; rfl |
| 70 | have h : b ≠ a := fun e => hab (by subst a; rfl) |
| 71 | rw [show frob (picked (G := G) ⟨i,b⟩).val (picked ⟨i,a⟩).val = 0 from (orthShell G i).choose_spec h, mul_zero] |
| 72 | rw [if_neg (by simp [he]), pairCol_distinct (j := i) (l := j) _ _ he] |
| 73 | |
| 74 | /-! Formal linear combinations of order-1 (in field degree, not Taylor degree) |
| 75 | variables. `ordinary` goes into the actual `WickPol`. -/ |
| 76 | abbrev Vars (G : Gauge) := Slot G →₀ ℂ |
| 77 | |
| 78 | def e (a : Slot G) : Vars G := Finsupp.single a 1 |
| 79 | |
| 80 | def ordinary (G : Gauge) : Vars G →ₗ[ℂ] WickPol G := Finsupp.linearCombination ℂ MvPolynomial.X |
| 81 | @[simp] lemma ordinary_e (a : Slot G) : ordinary G (e a) = MvPolynomial.X a := by simp [ordinary,e] |
| 82 | |
| 83 | def encode (p : Probe G j) : Vars G := ∑ i : Fin (legDim G j), ((p (frame G j i) : ℂ)) • e ⟨j,i⟩ |
| 84 | lemma ordinary_encode (p : Probe G j) : ordinary G (encode p) = symbol j p := by |
| 85 | simp only [encode,map_sum,map_smul,ordinary_e, MvPolynomial.smul_eq_C_mul, symbol] |
| 86 | lemma at_encode (p : Probe G j) (A : TaylorTower G) : probe A (ordinary G (encode p)) = (p (A j) : ℂ) := |
| 87 | congr_arg (probe A) (ordinary_encode _ ) |>.trans (symbol_test ..) |
| 88 | |
| 89 | def tensorMatrix (B : Slot G → Slot G → ℂ) : Vars G →ₗ[ℂ] Vars G →ₗ[ℂ] ℂ := |
| 90 | Finsupp.linearCombination ℂ fun i => Finsupp.linearCombination ℂ (B i) |
| 91 | @[simp] lemma tensorMatrix_e (B : Slot G → Slot G → ℂ) (a b) : tensorMatrix B (e a) (e b) = B a b := by |
| 92 | simp [tensorMatrix,e] |
| 93 | |
| 94 | def Q (G : Gauge) := tensorMatrix (G := G) fun a b => (legKernel (coordinateLeg a) (coordinateLeg b) pole : ℂ) |
| 95 | |
| 96 | lemma pairing_encode_at (p : Probe G j) (q : Probe G l) {x : E4} (hx : x ∈ away) : |
| 97 | tensorMatrix (fun a b => (legKernel (coordinateLeg a) (coordinateLeg b) x : ℂ)) (encode p) (encode q) = (pairing hx p q : ℝ) := by |
| 98 | have he {j} (p : Probe G j) : p = ∑ i : Fin (legDim G j), p (frame G j i) • coordinateLeg ⟨j,i⟩ := by |
| 99 | ext1 Y; conv_lhs => arg 2; rw [← (frame G j).sum_repr Y] |
| 100 | let B (i : Fin (legDim G j)) : Probe G j := coordinateLeg ⟨j,i⟩ |
| 101 | change p _ = (∑ i, p (frame G j i) • B i) Y |
| 102 | simp only [map_sum,map_smul,LinearMap.sum_apply,LinearMap.smul_apply,smul_eq_mul] |
| 103 | exact Finset.sum_congr rfl fun i _ => mul_comm _ _ |
| 104 | conv_rhs => rw [he p, he q] |
| 105 | simp only [encode,map_sum,map_smul, LinearMap.sum_apply,LinearMap.smul_apply,Complex.ofReal_sum,Complex.ofReal_mul, smul_eq_mul] |
| 106 | simp only [Finset.mul_sum,tensorMatrix_e] |
| 107 | rfl |
| 108 | |
| 109 | lemma pairing_encode (p : Probe G j) (q : Probe G l) : Q G (encode p) (encode q) = (pairing pole_in p q : ℝ) := pairing_encode_at p q pole_in |
| 110 | |
| 111 | def eigenVar (a : Slot G) := ∑ i ∈ Finset.range (a.1+1), encode (column (picked a) i) |
| 112 | def reflectedVar (a : Slot G) := ∑ i ∈ Finset.range (a.1+1), encode ((column (picked a) i).comp mirrorJet) |
| 113 | |
| 114 | lemma pairing_var (a b : Slot G) : Q G (eigenVar a) (reflectedVar b) = if a=b then (lengthSq a : ℂ) else 0 := by |
| 115 | simp only [eigenVar,reflectedVar,map_sum,LinearMap.sum_apply,pairing_encode] |
| 116 | rw [Finset.sum_comm] |
| 117 | simpa only [pairCol,form,Complex.ofReal_sum,apply_ite (fun x : ℝ => (x : ℂ)), Complex.ofReal_zero] |
| 118 | using congr_arg (fun x : ℝ => (↑x : ℂ)) (picked_matrix a b) |
| 119 | |
| 120 | def forward (G : Gauge) : WickPol G →ₐ[ℂ] WickPol G := MvPolynomial.aeval (fun i => ordinary G (eigenVar i)) |
| 121 | def reversed (G : Gauge) : WickPol G →ₐ[ℂ] WickPol G := MvPolynomial.aeval (fun i => ordinary G (reflectedVar i)) |
| 122 | |
| 123 | lemma coversVars (p : Probe G j) : symbol j p ∈ (forward G).range := by |
| 124 | induction j using Nat.strong_induction_on with | h j ih => ?_ |
| 125 | let b := (orthShell G j).choose.map (LinearEquiv.ofBijective (pairingShell (G := G) (j := j)) fullPair) |
| 126 | rw [← b.sum_repr p] |
| 127 | have ht : symbol j (∑ i, b.repr p i • b i) = ∑ i, (b.repr p i : ℂ) • symbol j (b i) := |
| 128 | equalPol _ _ (fun A => by simp only [map_sum,map_smul,LinearMap.sum_apply,LinearMap.smul_apply, smul_eq_mul,symbol_test, Complex.ofReal_sum,Complex.ofReal_mul]) |
| 129 | rw [ht] |
| 130 | apply Subalgebra.sum_mem; intro i _ |
| 131 | have he : b i = asProbe (picked ⟨j,i⟩) := rfl |
| 132 | apply Subalgebra.smul_mem |
| 133 | have hw : forward G (MvPolynomial.X ⟨j,i⟩) = symbol j (b i) + ∑ k ∈ Finset.range j, symbol k (column (picked ⟨j,i⟩) k) := by |
| 134 | simp only [forward,MvPolynomial.aeval_X,eigenVar,map_add,map_sum,ordinary_encode, he,Finset.sum_range_succ,column_self,add_comm] |
| 135 | rw [eq_sub_of_add_eq hw.symm]; exact Subalgebra.sub_mem _ ⟨_,rfl⟩ (Subalgebra.sum_mem _ fun k hk => ih k (Finset.mem_range.mp hk) _) |
| 136 | |
| 137 | lemma forward_full (G : Gauge) : Surjective (forward G) := fun q => by |
| 138 | change q ∈ (forward G).range |
| 139 | induction q using MvPolynomial.induction_on with |
| 140 | | C a => exact ⟨MvPolynomial.C a,MvPolynomial.aeval_C ..⟩ |
| 141 | | add _ _ hp hq => exact Subalgebra.add_mem _ hp hq |
| 142 | | mul_X _ i hp => exact Subalgebra.mul_mem _ hp (symbol_coordinate i ▸ coversVars (coordinateLeg i)) |
| 143 | |
| 144 | def reflectedTower (A : TaylorTower G) : TaylorTower G := fun j => mirrorJet (A j) |
| 145 | lemma reflects_at (A : TaylorTower G) (p : WickPol G) : probe A (reversed G p) = probe (reflectedTower A) (forward G p) := by |
| 146 | suffices (probe A).comp (reversed G) = (probe (reflectedTower A)).comp (forward G) from DFunLike.congr_fun this p |
| 147 | ext a |
| 148 | simp [reversed,forward,reflectedVar,eigenVar,at_encode,reflectedTower] |
| 149 | |
| 150 | def barred (p : WickPol G) := MvPolynomial.map (starRingEnd ℂ) p |
| 151 | @[simp] lemma eval_bar (A : TaylorTower G) (p : WickPol G) : probe A (barred p) = star (probe A p) := by |
| 152 | unfold barred |
| 153 | induction p using MvPolynomial.induction_on with |
| 154 | | C a => simp [probe] |
| 155 | | add _ _ hp hq => rw [map_add,map_add,map_add,hp,hq,star_add] |
| 156 | | mul_X _ i hp => rw [map_mul,map_mul,map_mul,hp,MvPolynomial.map_X]; simp [probe] |
| 157 | lemma forward_bar_at (A : TaylorTower G) (p : WickPol G) : probe A (forward G (barred p)) = star (probe A (forward G p)) := by |
| 158 | unfold barred |
| 159 | induction p using MvPolynomial.induction_on with |
| 160 | | C a => simp [forward,probe] |
| 161 | | add _ _ hp hq => rw [map_add,map_add,map_add,map_add,map_add,hp,hq,star_add] |
| 162 | | mul_X _ i hp => rw [map_mul,map_mul,map_mul,map_mul,map_mul,hp,MvPolynomial.map_X] |
| 163 | simp [forward, eigenVar,at_encode] |
| 164 | |
| 165 | lemma reversed_observable {v : Labels.Label G j} {p : WickPol G} (h : observable G j v = forward G p) : |
| 166 | observable G j (Labels.tensor σ (Labels.realBar v)) = reversed G (barred p) := by |
| 167 | apply equalPol; intro A |
| 168 | change probe A (reduceEq (Labels.rotated σ (Labels.realBar v).val)) = _ |
| 169 | rw [jet_value,Labels.rotated,σ_inv,Labels.eval_changed] |
| 170 | rw [reflects_at,forward_bar_at,← h] |
| 171 | change Labels.read (Labels.changedJet _ _) (Labels.conjPol _) = star (probe _ (reduceEq v.val)) |
| 172 | rw [jet_value, Labels.conj_value] |
| 173 | congr 3; exact funext fun i => (gaugeMirror (A i)).symm |
| 174 | end YM.Push.FiniteDetection.Free |